Vighnesh Rege
6d2aa601cd
Added tests
2015-05-12 12:53:59 -07:00
Arfon Smith
20f19bf049
Some tests to go with #2290
2015-03-31 19:33:50 -05:00
Hsiaoming Yang
e4ce4edd5c
add tests/fixtures to vendor.yml
2015-03-31 20:08:18 +08:00
Arfon Smith
285af6512e
Adding puphpet to vendored list
2015-03-30 16:24:11 -05:00
Arfon Smith
6c37613bf0
Merge branch 'master' into revert-2014-revert-1976-path-for-fileblob
2015-03-14 17:18:36 -05:00
Paul Chaignon
0db133ffb2
Detect Cython generated files
2015-03-14 19:43:17 +01:00
Arfon Smith
8561f2a6b0
Merge branch 'master' into revert-2014-revert-1976-path-for-fileblob
...
Conflicts:
lib/linguist/version.rb
2015-02-24 14:54:14 -06:00
Paul Chaignon
2ca5868610
Detect Go files generated by Protocol Buffers
2015-02-22 10:50:47 +01:00
Adam Roben
80f72a5093
Classify the .google_apis/ directory as vendored
...
This is used in Android projects that use certain Google SDKs to store
the SDKs locally.
2015-02-20 10:36:47 -05:00
Adam Roben
9e020dd15d
Classify "documentation/" directories (lowercase) as documentation
...
This is used in repositories like jashkenas/coffeescript.
2015-02-20 10:24:59 -05:00
Adam Roben
c7c0c30ecf
Classify javadoc/ directories as documentation
2015-02-20 10:24:38 -05:00
Adam Roben
60deead669
Add a couple more documentation patterns
...
These are used in repositories like jashkenas/coffeescript and
tj/git-extras.
2015-02-20 09:53:07 -05:00
Adam Roben
1bf91d4281
Use .html files in some #documentation? tests
...
This is what we were trying to classify in the twbs/bootstrap
repository, for example.
2015-02-13 14:31:40 -05:00
Adam Roben
8d2dd55c94
Categorize INSTALL files as documentation too
2015-02-13 14:30:44 -05:00
Adam Roben
6a86e8ea97
Add BlobHelper#include_in_language_stats?
...
This just extracts some logic from Repository#compute_stats and makes it
testable.
2015-02-13 14:27:20 -05:00
Adam Roben
066052ddd2
Exclude documentation files from language statistics
...
Documentation is an important part of a software project but is not
generally thought of as part of the code for that project. Repository
language statistics are used to quantify the project's code, so it makes
sense to exclude documentation from those computations.
Documentation files are recognized similarly to vendored files.
lib/linguist/documentation.yml contains regular expressions to match
common names for documentation files. A new linguist-documentation Git
attribute can be used to override those conventions.
2015-02-12 10:20:47 -05:00
Arfon Smith
69b68f3a44
Extracting common methods into helper.
2015-01-26 16:22:55 -06:00
Arfon Smith
01be9e68ee
Revert "Revert "Use path for Generated?""
2015-01-20 14:34:36 -06:00
Arfon Smith
36120a9122
Revert "Use path for Generated?"
2015-01-20 08:58:11 -06:00
Adam Roben
96c7bc30d8
Simplify blob tests
...
Now that FileBlobs with relative paths can still access their files on
disk, we can use relative paths for all FileBlobs in the test. This more
closely matches the behavior in github.com's codebase, where all blobs
use relative paths.
2015-01-14 08:57:53 -05:00
Arfon Smith
f4c1cc576b
Modifying BlobHelper and FileBlob to use path
2015-01-09 15:15:34 -06:00
Adam Roben
65296e86a3
Switch to Minitest::Test instead of Test::Unit::TestCase
...
This gives us a consistent test framework across all Ruby versions which
should help avoid errors that are only found when CI runs the tests on
different Rubies. (And this fixes an immediate bug where there's no
`skip` method in the version of test-unit we're currently using only on
Ruby 2.2.)
2014-12-31 15:26:26 -05:00
Paul Chaignon
db70630eaa
Renamed text in Text
2014-12-11 12:51:09 -05:00
Paul Chaignon
f93272f0bd
Move text files from fixtures to samples when possible
2014-12-10 20:09:14 -05:00
Paul Chaignon
93186947c2
Move binaries and text files from samples folder to fixtures
2014-12-04 23:48:05 -05:00
Paul Chaignon
77444284e3
Data folder in fixtures for files with no language
2014-12-04 19:14:44 -05:00
Garen Torikian
3aec4dd2ea
Adjust to ignore generated
2014-12-04 21:27:07 +02:00
Paul Chaignon
e5bc2845cd
Fix for fixture tests: fixture files were not tested at all
2014-12-02 20:26:15 -05:00
Arfon Smith
412af86cb8
Merge pull request #1538 from github/1233-local
...
Detection based on the shebang (updated)
2014-11-26 14:47:12 -06:00
Brandon Keepers
5b2b3a2b53
Merge remote-tracking branch 'origin/master' into test-helper
...
* origin/master: (31 commits)
Link to Lightshow in CONTRIBUTING.md
Switch to a better F# grammar
Bump Rugged again
Checkout the master for testing
Rugged 0.22.0b3
Reordering
Bump version to 4.0.3
Add some docs for tm_scope
Change NONE to none
Checking other case for Chart.jS
Test that all languages have grammars
Fix RHTML's tm_scope
Chart JS is vendored
Switch to a better grammar for Bro
reorder again…
put cjsx at the top
Use a SQF grammar for SQF files
move cjsx before iced
move cjsx before iced
change component name
...
Conflicts:
test/test_language.rb
2014-11-26 15:07:27 -05:00
Arfon Smith
208a3ff480
Merge branch 'master' into 1233-local
...
Conflicts:
lib/linguist/language.rb
2014-11-25 17:04:43 -06:00
Arfon Smith
b6b2cf04a7
Checking other case for Chart.jS
2014-11-21 09:29:28 -06:00
Arfon Smith
38190d92fc
Chart JS is vendored
2014-11-21 08:24:33 -06:00
Arfon Smith
2a5dd5b224
Adding test for codemirror
2014-11-18 19:34:41 -06:00
Brandon Keepers
aa7ab2065b
Add test helper to make test env consistent
2014-11-18 16:46:09 -05:00
Arfon Smith
0443c4db2d
Merge pull request #1674 from github/rework-heuristics
...
Rework heuristics
2014-11-18 10:43:01 -06:00
Arfon Smith
7d850d7c09
Gemfile.lock is nolonger considered generated
2014-11-17 16:31:47 -06:00
Vicent Marti
d12aff9776
Unused test
2014-11-14 17:37:12 +01:00
Vicent Marti
4a10b27611
Remove Pygments
2014-11-14 17:37:12 +01:00
Brandon Keepers
33d75d9623
Tests for BlobHelper#empty?
2014-11-06 15:14:03 -06:00
Brandon Keepers
a0cc2c4c86
remove reference to empty.js
2014-11-06 14:59:34 -06:00
Danijar Hafner
1dbbcb73e7
Add tests for minified JavaScript and CSS
...
Also, exclude -min.css pattern, like already done for JavaScript files
2014-11-03 19:41:31 +01:00
Arfon Smith
9e50e188a8
Merge branch 'master' into 1233-local
...
Conflicts:
lib/linguist/language.rb
lib/linguist/languages.yml
lib/linguist/samples.json
2014-11-01 10:04:22 -05:00
Arfon Smith
5152bd7124
Merge pull request #1547 from bwestlin/master
...
Added files generated by Typesafe Activator to vendor.yml
2014-09-24 17:04:16 -05:00
Keith Rarick
86aa4c3f3d
Add Go dependencies to generated.rb and test_blob.rb
2014-09-22 01:12:46 -07:00
Keith Rarick
19b8721225
Add Go dependencies to vendor.yml and test_blob.rb
2014-09-22 00:58:56 -07:00
Björn Westlin
c7c4883f49
Added files generated by Typesafe Activator to vendor.yml
2014-09-21 22:08:12 +02:00
Arfon Smith
e70cd33323
Moving to fixtures
2014-09-17 08:37:00 -05:00
Arfon Smith
302af86363
Merge branch 'master' into 1233-local
...
Conflicts:
lib/linguist/language.rb
lib/linguist/samples.json
2014-09-16 16:36:10 -05:00
Arfon Smith
e27bf1627d
Merge pull request #1445 from cflee/add-foundation-js
...
Add Foundation js to vendor.yml, and test_blob.rb
2014-08-14 13:16:41 -05:00