github-linguist 3.1.5 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linguist/generated.rb +9 -0
- data/lib/linguist/heuristics.rb +4 -1
- data/lib/linguist/language.rb +5 -5
- data/lib/linguist/languages.yml +26 -2
- data/lib/linguist/lazy_blob.rb +34 -0
- data/lib/linguist/repository.rb +16 -4
- data/lib/linguist/samples.json +843 -65
- data/lib/linguist/samples.rb +5 -3
- data/lib/linguist/vendor.yml +7 -0
- data/lib/linguist/version.rb +1 -1
- metadata +10 -10
data/lib/linguist/samples.rb
CHANGED
@@ -17,9 +17,11 @@ module Linguist
|
|
17
17
|
PATH = File.expand_path('../samples.json', __FILE__)
|
18
18
|
|
19
19
|
# Hash of serialized samples object
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
def self.cache
|
21
|
+
@cache ||= begin
|
22
|
+
serializer = defined?(JSON) ? JSON : YAML
|
23
|
+
serializer.load(File.read(PATH))
|
24
|
+
end
|
23
25
|
end
|
24
26
|
|
25
27
|
# Public: Iterate over each sample.
|
data/lib/linguist/vendor.yml
CHANGED
@@ -33,6 +33,9 @@
|
|
33
33
|
# Erlang bundles
|
34
34
|
- ^rebar$
|
35
35
|
|
36
|
+
# Go dependencies
|
37
|
+
- Godeps/_workspace/
|
38
|
+
|
36
39
|
# Bootstrap minified css and js
|
37
40
|
- (^|/)bootstrap([^.]*)(\.min)?\.(js|css)$
|
38
41
|
|
@@ -235,3 +238,7 @@
|
|
235
238
|
- octicons.css
|
236
239
|
- octicons.min.css
|
237
240
|
- sprockets-octicons.scss
|
241
|
+
|
242
|
+
# Typesafe Activator
|
243
|
+
- (^|/)activator$
|
244
|
+
- (^|/)activator\.bat$
|
data/lib/linguist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-linguist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|
@@ -67,21 +67,21 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
76
|
-
type: :
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: mocha
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|