github-linguist 2.9.7 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- require 'yaml'
1
+ begin
2
+ require 'json'
3
+ rescue LoadError
4
+ require 'yaml'
5
+ end
2
6
 
3
7
  require 'linguist/md5'
4
8
  require 'linguist/classifier'
@@ -14,7 +18,8 @@ module Linguist
14
18
 
15
19
  # Hash of serialized samples object
16
20
  if File.exist?(PATH)
17
- DATA = YAML.load_file(PATH)
21
+ serializer = defined?(JSON) ? JSON : YAML
22
+ DATA = serializer.load(File.read(PATH))
18
23
  end
19
24
 
20
25
  # Public: Iterate over each sample.
@@ -12,6 +12,9 @@
12
12
  # Caches
13
13
  - cache/
14
14
 
15
+ # Dependencies
16
+ - ^[Dd]ependencies/
17
+
15
18
  # C deps
16
19
  # https://github.com/joyent/node
17
20
  - ^deps/
@@ -27,8 +30,12 @@
27
30
  # Erlang bundles
28
31
  - ^rebar$
29
32
 
33
+ # Bootstrap minified css and js
34
+ - (^|/)bootstrap([^.]*)(\.min)\.(js|css)$
35
+
30
36
  # Vendored dependencies
31
- - vendor/
37
+ - thirdparty/
38
+ - vendors?/
32
39
 
33
40
  # Debian packaging
34
41
  - ^debian/
@@ -86,6 +93,8 @@
86
93
  # WAF
87
94
  - ^waf$
88
95
 
96
+ # .osx
97
+ - ^.osx$
89
98
 
90
99
  ## Obj-C ##
91
100
 
@@ -108,14 +117,29 @@
108
117
  - ^[Pp]ackages/
109
118
 
110
119
  # ExtJS
111
- - (^|/)extjs/
120
+ - (^|/)extjs/.*?\.js$
121
+ - (^|/)extjs/.*?\.xml$
122
+ - (^|/)extjs/.*?\.txt$
123
+ - (^|/)extjs/.*?\.html$
124
+ - (^|/)extjs/.*?\.properties$
125
+ - (^|/)extjs/.sencha/
126
+ - (^|/)extjs/docs/
127
+ - (^|/)extjs/builds/
128
+ - (^|/)extjs/cmd/
129
+ - (^|/)extjs/examples/
130
+ - (^|/)extjs/locale/
131
+ - (^|/)extjs/packages/
132
+ - (^|/)extjs/plugins/
133
+ - (^|/)extjs/resources/
134
+ - (^|/)extjs/src/
135
+ - (^|/)extjs/welcome/
112
136
 
113
137
  # Samples folders
114
138
  - ^[Ss]amples/
115
139
 
116
140
  # LICENSE, README, git config files
117
141
  - ^COPYING$
118
- - ^LICENSE$
142
+ - LICENSE$
119
143
  - gitattributes$
120
144
  - gitignore$
121
145
  - gitmodules$
@@ -125,5 +149,12 @@
125
149
  # Test fixtures
126
150
  - ^[Tt]est/fixtures/
127
151
 
152
+ # PhoneGap/Cordova
153
+ - (^|/)cordova([^.]*)(\.min)?\.js$
154
+ - (^|/)cordova\-\d\.\d(\.\d)?(\.min)?\.js$
155
+
156
+ # Vagrant
157
+ - ^Vagrantfile$
158
+
128
159
  # .DS_Store's
129
160
  - .[Dd][Ss]_[Ss]tore$
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: 2.9.7
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-03 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: escape_utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.3.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.3.1
41
41
  - !ruby/object:Gem::Dependency
@@ -58,16 +58,16 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.5.2
61
+ version: 0.5.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.5.2
68
+ version: 0.5.4
69
69
  - !ruby/object:Gem::Dependency
70
- name: mocha
70
+ name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '>='
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: json
84
+ name: mocha
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '>='