github-linguist 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/linguist/heuristics.rb +36 -0
- data/lib/linguist/language.rb +27 -11
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +139 -6
- data/lib/linguist/samples.json +1366 -36
- data/lib/linguist/samples.rb +2 -2
- data/lib/linguist/vendor.yml +18 -20
- data/lib/linguist/version.rb +1 -1
- metadata +2 -16
data/lib/linguist/samples.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
begin
|
2
|
-
require '
|
2
|
+
require 'yajl'
|
3
3
|
rescue LoadError
|
4
4
|
require 'yaml'
|
5
5
|
end
|
@@ -19,7 +19,7 @@ module Linguist
|
|
19
19
|
# Hash of serialized samples object
|
20
20
|
def self.cache
|
21
21
|
@cache ||= begin
|
22
|
-
serializer = defined?(
|
22
|
+
serializer = defined?(Yajl) ? Yajl : YAML
|
23
23
|
serializer.load(File.read(PATH))
|
24
24
|
end
|
25
25
|
end
|
data/lib/linguist/vendor.yml
CHANGED
@@ -36,15 +36,16 @@
|
|
36
36
|
# Go dependencies
|
37
37
|
- Godeps/_workspace/
|
38
38
|
|
39
|
-
#
|
40
|
-
- (
|
39
|
+
# Minified JavaScript and CSS
|
40
|
+
- (\.|-)min\.(js|css)$
|
41
|
+
|
42
|
+
# Bootstrap css and js
|
43
|
+
- (^|/)bootstrap([^.]*)\.(js|css)$
|
41
44
|
|
42
45
|
# Font Awesome
|
43
|
-
- font-awesome.min.css
|
44
46
|
- font-awesome.css
|
45
47
|
|
46
48
|
# Foundation css
|
47
|
-
- foundation.min.css
|
48
49
|
- foundation.css
|
49
50
|
|
50
51
|
# Normalize.css
|
@@ -56,7 +57,6 @@
|
|
56
57
|
|
57
58
|
# Animate.css
|
58
59
|
- animate.css
|
59
|
-
- animate.min.css
|
60
60
|
|
61
61
|
# Vendored dependencies
|
62
62
|
- third[-_]?party/
|
@@ -73,12 +73,12 @@
|
|
73
73
|
## Commonly Bundled JavaScript frameworks ##
|
74
74
|
|
75
75
|
# jQuery
|
76
|
-
- (^|/)jquery([^.]*)
|
77
|
-
- (^|/)jquery\-\d\.\d+(\.\d+)
|
76
|
+
- (^|/)jquery([^.]*)\.js$
|
77
|
+
- (^|/)jquery\-\d\.\d+(\.\d+)?\.js$
|
78
78
|
|
79
79
|
# jQuery UI
|
80
|
-
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)
|
81
|
-
- (^|/)jquery\.(ui|effects)\.([^.]*)
|
80
|
+
- (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$
|
81
|
+
- (^|/)jquery\.(ui|effects)\.([^.]*)\.(js|css)$
|
82
82
|
|
83
83
|
# Prototype
|
84
84
|
- (^|/)prototype(.*)\.js$
|
@@ -116,21 +116,20 @@
|
|
116
116
|
- (^|/)shLegacy\.js$
|
117
117
|
|
118
118
|
# AngularJS
|
119
|
-
- (^|/)angular([^.]*)
|
119
|
+
- (^|/)angular([^.]*)\.js$
|
120
120
|
|
121
121
|
# D3.js
|
122
|
-
- (^|\/)d3(\.v\d+)?([^.]*)
|
122
|
+
- (^|\/)d3(\.v\d+)?([^.]*)\.js$
|
123
123
|
|
124
124
|
# React
|
125
|
-
- (^|/)react(-[^.]*)
|
125
|
+
- (^|/)react(-[^.]*)?\.js$
|
126
126
|
|
127
127
|
# Modernizr
|
128
|
-
- (^|/)modernizr\-\d\.\d+(\.\d+)
|
128
|
+
- (^|/)modernizr\-\d\.\d+(\.\d+)?\.js$
|
129
129
|
- (^|/)modernizr\.custom\.\d+\.js$
|
130
130
|
|
131
131
|
# Knockout
|
132
132
|
- (^|/)knockout-(\d+\.){3}(debug\.)?js$
|
133
|
-
- knockout-min.js
|
134
133
|
|
135
134
|
## Python ##
|
136
135
|
|
@@ -168,8 +167,8 @@
|
|
168
167
|
- \.intellisense\.js$
|
169
168
|
|
170
169
|
# jQuery validation plugin (MS bundles this with asp.net mvc)
|
171
|
-
- (^|/)jquery([^.]*)\.validate(\.unobtrusive)
|
172
|
-
- (^|/)jquery([^.]*)\.unobtrusive\-ajax
|
170
|
+
- (^|/)jquery([^.]*)\.validate(\.unobtrusive)?\.js$
|
171
|
+
- (^|/)jquery([^.]*)\.unobtrusive\-ajax\.js$
|
173
172
|
|
174
173
|
# Microsoft Ajax
|
175
174
|
- (^|/)[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$
|
@@ -196,7 +195,7 @@
|
|
196
195
|
- (^|/)extjs/welcome/
|
197
196
|
|
198
197
|
# Html5shiv
|
199
|
-
- (^|/)html5shiv
|
198
|
+
- (^|/)html5shiv\.js$
|
200
199
|
|
201
200
|
# Samples folders
|
202
201
|
- ^[Ss]amples/
|
@@ -215,8 +214,8 @@
|
|
215
214
|
- ^[Tt]est/fixtures/
|
216
215
|
|
217
216
|
# PhoneGap/Cordova
|
218
|
-
- (^|/)cordova([^.]*)
|
219
|
-
- (^|/)cordova\-\d\.\d(\.\d)
|
217
|
+
- (^|/)cordova([^.]*)\.js$
|
218
|
+
- (^|/)cordova\-\d\.\d(\.\d)?\.js$
|
220
219
|
|
221
220
|
# Foundation js
|
222
221
|
- foundation(\..*)?\.js$
|
@@ -236,7 +235,6 @@
|
|
236
235
|
|
237
236
|
# Octicons
|
238
237
|
- octicons.css
|
239
|
-
- octicons.min.css
|
240
238
|
- sprockets-octicons.scss
|
241
239
|
|
242
240
|
# Typesafe Activator
|
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.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10
|
11
|
+
date: 2014-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.21.1b2
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: json
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: mocha
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|