Brandon Keepers
8a42f76f03
Remove .script! hack
2015-04-17 14:09:05 +12:00
Paul Chaignon
93186947c2
Move binaries and text files from samples folder to fixtures
2014-12-04 23:48:05 -05:00
Brandon Keepers
10de952ed6
Remove Linguist.interpreter_from_shebang
2014-11-28 14:14:40 -06:00
Brandon Keepers
88f08803ee
require shebang when building samples
2014-11-28 12:34:41 -06:00
Brandon Keepers
ffe2ccf1f6
Don't bother creating an instance
2014-11-27 13:17:28 -05:00
Brandon Keepers
fd85f7f112
consolidate shebang logic
2014-11-27 12:18:23 -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
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
eccea65641
Fix for interpreters not getting add to samples.json
2014-11-20 11:14:05 -05:00
Brandon Keepers
cd743332f4
Use yajl since it is already a dependency
...
Both JSON and Yajl were listed as dependencies. Pygments.rb already requires yajl, so let's just use that instead of using both.
2014-10-17 14:45:28 -04:00
Brandon Keepers
015af19eaf
Move Samples::DATA constant to Samples.cache method
2014-09-16 10:25:30 -04:00
Paul Chaignon
f4e254202b
Set a sort order for the samples.json file's content
2014-06-24 10:50:03 +02:00
Ted Nyman
7e178cc416
Place guards, checks for multiline shell hacks
2013-12-06 22:04:40 -08:00
Ted Nyman
8603760ebe
Merge branch 'master' into more-687
2013-12-06 20:32:22 -08:00
Charlie Somerville
27c9774d1b
prefer JSON, but fall back to YAML if JSON isn't available
2013-12-03 15:55:25 +11:00
Charlie Somerville
10cadb8725
use JSON instead of YAML for loading samples.json
2013-12-03 15:51:24 +11:00
Eric Schulte
7a6202a8c3
language interpreters and shebang lines
...
Add an interpreter array to each language, and match interpreters found
in the shebang lines of scripts to this array to identify the language
of scripts.
With suggestions from tnm. https://github.com/github/linguist/pull/687
2013-11-09 11:44:17 -07:00
Joshua Peek
f9066ffb7b
Sort exts and filenames
2012-09-24 10:12:05 -05:00
Joshua Peek
4531103033
Forgot to move hidden samples to the correct dir
2012-08-03 15:25:38 -05:00
Joshua Peek
12d2e2ec74
Switch to json for samples db
2012-07-23 16:02:14 -05:00
Joshua Peek
7b6caa0f6c
Rename samples subdirectories
2012-07-23 15:52:49 -05:00
Joshua Peek
314f0e4852
Use simple yaml dump for now
2012-07-23 15:05:08 -05:00
Joshua Peek
afedf2557d
Store extnames in samples.yml
2012-07-23 15:00:42 -05:00
Joshua Peek
447aef2183
Don't set DATA const if samples db is missing
2012-07-23 13:51:46 -05:00
Joshua Peek
6842044b52
Store md5 in samples db
2012-07-23 13:50:35 -05:00
Joshua Peek
bf944f6d1a
Make classify a function on the Classifier
2012-07-23 13:47:15 -05:00
Joshua Peek
b9779e805e
Move outdated check to samples
2012-07-23 13:21:30 -05:00
Joshua Peek
80e8ee7ce6
Rename Sample -> Samples
2012-07-23 13:15:27 -05:00