github-linguist 3.4.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  begin
2
- require 'json'
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?(JSON) ? JSON : YAML
22
+ serializer = defined?(Yajl) ? Yajl : YAML
23
23
  serializer.load(File.read(PATH))
24
24
  end
25
25
  end
@@ -36,15 +36,16 @@
36
36
  # Go dependencies
37
37
  - Godeps/_workspace/
38
38
 
39
- # Bootstrap minified css and js
40
- - (^|/)bootstrap([^.]*)(\.min)?\.(js|css)$
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([^.]*)(\.min)?\.js$
77
- - (^|/)jquery\-\d\.\d+(\.\d+)?(\.min)?\.js$
76
+ - (^|/)jquery([^.]*)\.js$
77
+ - (^|/)jquery\-\d\.\d+(\.\d+)?\.js$
78
78
 
79
79
  # jQuery UI
80
- - (^|/)jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?(\.min)?\.(js|css)$
81
- - (^|/)jquery\.(ui|effects)\.([^.]*)(\.min)?\.(js|css)$
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([^.]*)(\.min)?\.js$
119
+ - (^|/)angular([^.]*)\.js$
120
120
 
121
121
  # D3.js
122
- - (^|\/)d3(\.v\d+)?([^.]*)(\.min)?\.js$
122
+ - (^|\/)d3(\.v\d+)?([^.]*)\.js$
123
123
 
124
124
  # React
125
- - (^|/)react(-[^.]*)?(\.min)?\.js$
125
+ - (^|/)react(-[^.]*)?\.js$
126
126
 
127
127
  # Modernizr
128
- - (^|/)modernizr\-\d\.\d+(\.\d+)?(\.min)?\.js$
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)?(\.min)?\.js$
172
- - (^|/)jquery([^.]*)\.unobtrusive\-ajax(\.min)?\.js$
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(\.min)?\.js$
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([^.]*)(\.min)?\.js$
219
- - (^|/)cordova\-\d\.\d(\.\d)?(\.min)?\.js$
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
@@ -1,3 +1,3 @@
1
1
  module Linguist
2
- VERSION = "3.4.1"
2
+ VERSION = "3.5.0"
3
3
  end
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.1
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-29 00:00:00.000000000 Z
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