Dimitri Kennedy
f5953a09da
add example cjsx file
2014-11-20 16:48:22 -05:00
Dimitri Kennedy
a17f6c8ae1
add .cjsx extension for Facebook’s JSX in coffescript
2014-11-20 14:56:09 -05:00
Brandon Keepers
9823af0cb4
Fix for shebang with relative bin
...
`#!/usr/bin/env bin/linguist` is a valid shebang
2014-11-20 12:50:35 -05:00
Brandon Keepers
45384bd498
More missing interpreters
2014-11-20 12:29:16 -05:00
Brandon Keepers
56bfde998b
Only strip minor version off of interpreters
...
This used to turn `python2.4` into `python`, which causes trouble with
`perl6`, which is a different language definition.
2014-11-20 12:28:30 -05:00
Brandon Keepers
870feb8592
Add missing interpreters
2014-11-20 11:27:54 -05:00
Brandon Keepers
2670e2b035
Test that interpreters are defined in languages.yml
2014-11-20 11:21:52 -05:00
Brandon Keepers
eccea65641
Fix for interpreters not getting add to samples.json
2014-11-20 11:14:05 -05:00
Brandon Keepers
231ad86176
sync cached gems
2014-11-20 08:51:56 -05:00
Florian Kaiser
9658b02502
add Chart.js as vendor
...
http://www.chartjs.org
2014-11-20 10:02:45 +01:00
Manuel Rego Casasnovas
30c6b6e5a1
Add XHTML example file
2014-11-20 00:30:21 +01:00
Manuel Rego Casasnovas
b44e58dd7f
Add support for .xht extension which is used in some XHTML files
2014-11-19 23:08:51 +01:00
Vicent Marti
bce31e8b51
Merge pull request #1747 from github/cut-release-v4.0.2
...
Cut release v4.0.2
v4.0.2
2014-11-19 18:12:07 +01:00
Adam Roben
011c654c2a
Bump version to v4.0.2
2014-11-19 12:08:49 -05:00
Adam Roben
2457b52658
Update grammars.yml
2014-11-19 12:08:43 -05:00
Arfon Smith
a3adaa6a7b
Merge pull request #1745 from github/f-case
...
Fix failures on case-insensitive filesystem
2014-11-19 07:04:58 -06:00
Brandon Keepers
a6f168d1ac
Rename file to avoid case-insensitive collision
2014-11-18 23:22:10 -05:00
Arfon Smith
f792029a20
Merge pull request #1743 from github/codemirror
...
Codemirror should be considered vendored
2014-11-18 20:02:12 -06:00
Arfon Smith
2a5dd5b224
Adding test for codemirror
2014-11-18 19:34:41 -06:00
Martín Gaitán
fb7dcfd62d
Exclude codemirror
...
An example of a wrong detection due to codemirror is my project. https://github.com/mgaitan/waliki
2014-11-18 20:17:15 -03:00
Brandon Keepers
245a1a92cf
Merge remote-tracking branch 'origin/master' into test-helper
...
* origin/master:
Add Gemfile.lock sample
Remove deprecated method
#all_extensions already includes primary extension
typo
remove unused assertion
Symlink ant.xml to build.xml
Avoid shadowing variable name
Update comment
Make missing sample failure message similar
Remove blank extensions property
Fix sample tests
Add Forth extensions .f and .for; add heuristics for Forth and FORTRAN.
Add FORTRAN and Forth samples.
Extensions aren't actually required
Fix errors from pedantic test
Make pedantic test actually pedantic
Removing extensions when they should be filenames
Adding sample pom.xml files
Link to contributing docs
require samples if filename matches multiple languages
Conflicts:
test/test_pedantic.rb
2014-11-18 16:48:26 -05:00
Brandon Keepers
aa7ab2065b
Add test helper to make test env consistent
2014-11-18 16:46:09 -05:00
Brandon Keepers
719f6e876b
Merge pull request #1732 from github/filename-matches-multiple-langages
...
Require samples if filename matches multiple languages
2014-11-18 16:31:19 -05:00
Brandon Keepers
8724dc8ccc
Merge pull request #889 from larsbrinkhoff/fortran
...
FIX: .f misidentified as Fortran
2014-11-18 16:05:23 -05:00
Brandon Keepers
63f9d0bdeb
Add Gemfile.lock sample
...
Gemfile.lock should not actually get classified as Ruby, but we can fix that in another PR.
2014-11-18 15:36:42 -05:00
Brandon Keepers
d7fd12cb32
Remove deprecated method
2014-11-18 15:19:23 -05:00
Brandon Keepers
850ab6dedb
#all_extensions already includes primary extension
2014-11-18 15:10:07 -05:00
Brandon Keepers
b20fa497b9
typo
2014-11-18 15:07:36 -05:00
Brandon Keepers
1abc7ee2ef
remove unused assertion
2014-11-18 15:04:12 -05:00
Brandon Keepers
d7a032afcd
Symlink ant.xml to build.xml
...
We require samples for explicitly defined filenames that matches multiple languages. This is generally a good thing, but in this case they will be identical.
2014-11-18 15:02:59 -05:00
Brandon Keepers
587c764950
Avoid shadowing variable name
2014-11-18 14:57:39 -05:00
Brandon Keepers
1abbcb6435
Update comment
2014-11-18 14:57:32 -05:00
Brandon Keepers
17f3d7005a
Make missing sample failure message similar
2014-11-18 14:55:15 -05:00
Brandon Keepers
ac59620728
Remove blank extensions property
2014-11-18 14:48:43 -05:00
Brandon Keepers
ba8b55391d
Fix sample tests
2014-11-18 14:48:21 -05:00
Lars Brinkhoff
03c1e725ce
Add Forth extensions .f and .for; add heuristics for Forth and FORTRAN.
2014-11-18 20:21:19 +01:00
Lars Brinkhoff
4cefaf2808
Add FORTRAN and Forth samples.
2014-11-18 20:12:39 +01:00
Brandon Keepers
757801e32f
Merge remote-tracking branch 'origin/master' into filename-matches-multiple-langages
...
* origin/master:
Allow mime-types 2.x to be used with Linguist
Upgrade to rugged 0.22.0b1
Mention that languages need to be quite popular
fix vendor/cache
Gemfile.lock is nolonger considered generated
Tests for BlobHelper#empty?
remove reference to empty.js
Remove more empty samples
Bail earlier if the file is empty.
Moving comments
Use heuristics earlier to inform the rest of the classification process
Removing inconsistency of `find_by_heuristics` (was sometimes returning nil and sometimes returning and empty array)
Removing unused array of candidate languages.
Reworking most heuristics to only return one match
2014-11-18 14:09:15 -05:00
Brandon Keepers
749ea2a580
Merge pull request #1734 from github/just-filenames
...
Removing extensions when they should be filenames
2014-11-18 14:01:57 -05:00
Adam Roben
dc373fb51f
Merge pull request #1737 from github/relax-mime-types
...
Allow mime-types 2.x to be used with Linguist
2014-11-18 11:47:35 -05:00
Arfon Smith
0443c4db2d
Merge pull request #1674 from github/rework-heuristics
...
Rework heuristics
2014-11-18 10:43:01 -06:00
Adam Roben
d699ba3a98
Allow mime-types 2.x to be used with Linguist
...
The API is compatible for our purposes, and this allows Linguist to be
used in apps that pull in newer versions of mime-types through other
gems.
2014-11-18 10:46:04 -05:00
Adam Roben
92d2782ceb
Merge pull request #1738 from github/update-rugged
...
Upgrade to rugged 0.22.0b1
2014-11-18 10:45:38 -05:00
Adam Roben
e76ebb1a74
Upgrade to rugged 0.22.0b1
...
0.21.2 was just released but doesn't contain the Repository::Attributes
code we depend on. 0.22.0b1 has this code.
2014-11-18 10:40:37 -05:00
Arfon Smith
cacde403c0
Merge pull request #1736 from github/aroben-patch-1
...
Mention that languages need to be quite popular
2014-11-18 08:07:51 -06:00
Adam Roben
906b0ee30e
Mention that languages need to be quite popular
...
The precedent seems to be "hundreds of repos".
2014-11-18 08:48:00 -05:00
Brandon Keepers
cd7549390e
Extensions aren't actually required
2014-11-17 20:00:09 -05:00
Brandon Keepers
f30cab30f4
fix vendor/cache
2014-11-17 19:42:22 -05:00
Brandon Keepers
63c83d014b
Fix errors from pedantic test
2014-11-17 18:53:14 -05:00
Brandon Keepers
b8e426d3a3
Make pedantic test actually pedantic
...
What do you call someone that thinks they are pedantic but actually
aren’t? All the crazy custom parsing in this test was making so it
wasn’t actually doing anything.
2014-11-17 18:52:53 -05:00