github-linguist 2.11.3 → 2.11.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 261be2db38bc4cb745e0daa40d88828b4da7d4b8
4
- data.tar.gz: 8a4d226fbae6ffedb7802cef37bc8d05a5e53cc3
3
+ metadata.gz: 8f1b2179b6949740dc4c3d8b0fab689633393961
4
+ data.tar.gz: e732ad717a78ae1bf3ef8a590c5f353b23287e71
5
5
  SHA512:
6
- metadata.gz: b091e44a42a0cf2aaa35de7976460d125dbccea7d7955b51191cc80ae394c065d0a39cbfa2b5cea0d80d2989155cb11d3fedbda2e3d60ad98cd080ee6727ea59
7
- data.tar.gz: 2b9953cb4bf6e268c31c6e38af6ab024a754db16c6bd90e8cba1802abde97ee8ba90c24bcebe598eed2c572cc3743d42be31729362286bdfd95f733d33f2a863
6
+ metadata.gz: 907ab1f0c3ddede302f0b6323b270e6a8bb33a333ac62247da6ac1c90825649390ddef233c4990ca664e8edd61604506b1d3f4d1fb769bbccff1450b5633ad00
7
+ data.tar.gz: 09952ee3c893389cbd2412387431f54e52b06db259496e1771f4aeaad14d563d7802d55e820d3e565eb8de0f17fc8e451fe2a30b47c155525d80e296862a3a52
@@ -112,6 +112,12 @@ module Linguist
112
112
  end
113
113
  end
114
114
 
115
+ def ruby_encoding
116
+ if hash = detect_encoding
117
+ hash[:ruby_encoding]
118
+ end
119
+ end
120
+
115
121
  # Try to guess the encoding
116
122
  #
117
123
  # Returns: a Hash, with :encoding, :confidence, :type
@@ -258,7 +264,7 @@ module Linguist
258
264
  # large) strings.
259
265
  begin
260
266
  encoded_newlines = ["\r\n", "\r", "\n"].
261
- map { |nl| nl.encode(encoding, "ASCII-8BIT").force_encoding(data.encoding) }
267
+ map { |nl| nl.encode(ruby_encoding, "ASCII-8BIT").force_encoding(data.encoding) }
262
268
 
263
269
  data.split(Regexp.union(encoded_newlines), -1)
264
270
  rescue Encoding::ConverterNotFoundError
@@ -430,6 +430,14 @@ Common Lisp:
430
430
  - clisp
431
431
  - ecl
432
432
 
433
+ Component Pascal:
434
+ type: programming
435
+ lexer: Delphi
436
+ color: "#b0ce4e"
437
+ extensions:
438
+ - .cp
439
+ - .cps
440
+
433
441
  Coq:
434
442
  type: programming
435
443
  extensions:
@@ -2017,8 +2025,9 @@ Standard ML:
2017
2025
  aliases:
2018
2026
  - sml
2019
2027
  extensions:
2020
- - .sml
2028
+ - .ML
2021
2029
  - .fun
2030
+ - .sml
2022
2031
 
2023
2032
  Stata:
2024
2033
  type: programming
@@ -92,6 +92,10 @@
92
92
  ".cl",
93
93
  ".lisp"
94
94
  ],
95
+ "Component Pascal": [
96
+ ".cp",
97
+ ".cps"
98
+ ],
95
99
  "Coq": [
96
100
  ".v"
97
101
  ],
@@ -562,6 +566,7 @@
562
566
  ".nut"
563
567
  ],
564
568
  "Standard ML": [
569
+ ".ML",
565
570
  ".fun",
566
571
  ".sig",
567
572
  ".sml"
@@ -729,8 +734,8 @@
729
734
  ".gemrc"
730
735
  ]
731
736
  },
732
- "tokens_total": 612725,
733
- "languages_total": 799,
737
+ "tokens_total": 613712,
738
+ "languages_total": 802,
734
739
  "tokens": {
735
740
  "ABAP": {
736
741
  "*/**": 1,
@@ -15336,6 +15341,181 @@
15336
15341
  "line": 2,
15337
15342
  "After": 1
15338
15343
  },
15344
+ "Component Pascal": {
15345
+ "MODULE": 2,
15346
+ "ObxControls": 1,
15347
+ ";": 123,
15348
+ "IMPORT": 2,
15349
+ "Dialog": 1,
15350
+ "Ports": 1,
15351
+ "Properties": 1,
15352
+ "Views": 1,
15353
+ "CONST": 1,
15354
+ "beginner": 5,
15355
+ "advanced": 3,
15356
+ "expert": 1,
15357
+ "guru": 2,
15358
+ "TYPE": 1,
15359
+ "View": 6,
15360
+ "POINTER": 2,
15361
+ "TO": 2,
15362
+ "RECORD": 2,
15363
+ "(": 91,
15364
+ "Views.View": 2,
15365
+ ")": 94,
15366
+ "size": 1,
15367
+ "INTEGER": 10,
15368
+ "END": 31,
15369
+ "VAR": 9,
15370
+ "data*": 1,
15371
+ "class*": 1,
15372
+ "list*": 1,
15373
+ "Dialog.List": 1,
15374
+ "width*": 1,
15375
+ "predef": 12,
15376
+ "ARRAY": 2,
15377
+ "OF": 2,
15378
+ "PROCEDURE": 12,
15379
+ "SetList": 4,
15380
+ "BEGIN": 13,
15381
+ "IF": 11,
15382
+ "data.class": 5,
15383
+ "THEN": 12,
15384
+ "data.list.SetLen": 3,
15385
+ "data.list.SetItem": 11,
15386
+ "ELSIF": 1,
15387
+ "ELSE": 3,
15388
+ "v": 6,
15389
+ "CopyFromSimpleView": 2,
15390
+ "source": 2,
15391
+ "v.size": 10,
15392
+ ".size": 1,
15393
+ "Restore": 2,
15394
+ "f": 1,
15395
+ "Views.Frame": 1,
15396
+ "l": 1,
15397
+ "t": 1,
15398
+ "r": 7,
15399
+ "b": 1,
15400
+ "[": 13,
15401
+ "]": 13,
15402
+ "f.DrawRect": 1,
15403
+ "Ports.fill": 1,
15404
+ "Ports.red": 1,
15405
+ "HandlePropMsg": 2,
15406
+ "msg": 2,
15407
+ "Views.PropMessage": 1,
15408
+ "WITH": 1,
15409
+ "Properties.SizePref": 1,
15410
+ "DO": 4,
15411
+ "msg.w": 1,
15412
+ "msg.h": 1,
15413
+ "ClassNotify*": 1,
15414
+ "op": 4,
15415
+ "from": 2,
15416
+ "to": 5,
15417
+ "Dialog.changed": 2,
15418
+ "OR": 4,
15419
+ "&": 8,
15420
+ "data.list.index": 3,
15421
+ "data.width": 4,
15422
+ "Dialog.Update": 2,
15423
+ "data": 2,
15424
+ "Dialog.UpdateList": 1,
15425
+ "data.list": 1,
15426
+ "ClassNotify": 1,
15427
+ "ListNotify*": 1,
15428
+ "ListNotify": 1,
15429
+ "ListGuard*": 1,
15430
+ "par": 2,
15431
+ "Dialog.Par": 2,
15432
+ "par.disabled": 1,
15433
+ "ListGuard": 1,
15434
+ "WidthGuard*": 1,
15435
+ "par.readOnly": 1,
15436
+ "#": 3,
15437
+ "WidthGuard": 1,
15438
+ "Open*": 1,
15439
+ "NEW": 2,
15440
+ "*": 1,
15441
+ "Ports.mm": 1,
15442
+ "Views.OpenAux": 1,
15443
+ "Open": 1,
15444
+ "ObxControls.": 1,
15445
+ "ObxFact": 1,
15446
+ "Stores": 1,
15447
+ "Models": 1,
15448
+ "TextModels": 1,
15449
+ "TextControllers": 1,
15450
+ "Integers": 1,
15451
+ "Read": 3,
15452
+ "TextModels.Reader": 2,
15453
+ "x": 15,
15454
+ "Integers.Integer": 3,
15455
+ "i": 17,
15456
+ "len": 5,
15457
+ "beg": 11,
15458
+ "ch": 14,
15459
+ "CHAR": 3,
15460
+ "buf": 5,
15461
+ "r.ReadChar": 5,
15462
+ "WHILE": 3,
15463
+ "r.eot": 4,
15464
+ "<=>": 1,
15465
+ "ReadChar": 1,
15466
+ "ASSERT": 1,
15467
+ "eot": 1,
15468
+ "<": 8,
15469
+ "r.Pos": 2,
15470
+ "-": 1,
15471
+ "REPEAT": 3,
15472
+ "INC": 4,
15473
+ "UNTIL": 3,
15474
+ "+": 1,
15475
+ "r.SetPos": 2,
15476
+ "X": 1,
15477
+ "Integers.ConvertFromString": 1,
15478
+ "Write": 3,
15479
+ "w": 4,
15480
+ "TextModels.Writer": 2,
15481
+ "Integers.Sign": 2,
15482
+ "w.WriteChar": 3,
15483
+ "Integers.Digits10Of": 1,
15484
+ "DEC": 1,
15485
+ "Integers.ThisDigit10": 1,
15486
+ "Compute*": 1,
15487
+ "end": 6,
15488
+ "n": 3,
15489
+ "s": 3,
15490
+ "Stores.Operation": 1,
15491
+ "attr": 3,
15492
+ "TextModels.Attributes": 1,
15493
+ "c": 3,
15494
+ "TextControllers.Controller": 1,
15495
+ "TextControllers.Focus": 1,
15496
+ "NIL": 3,
15497
+ "c.HasSelection": 1,
15498
+ "c.GetSelection": 1,
15499
+ "c.text.NewReader": 1,
15500
+ "r.ReadPrev": 2,
15501
+ "r.attr": 1,
15502
+ "Integers.Compare": 1,
15503
+ "Integers.Long": 3,
15504
+ "MAX": 1,
15505
+ "LONGINT": 1,
15506
+ "SHORT": 1,
15507
+ "Integers.Short": 1,
15508
+ "Integers.Product": 1,
15509
+ "Models.BeginScript": 1,
15510
+ "c.text": 2,
15511
+ "c.text.Delete": 1,
15512
+ "c.text.NewWriter": 1,
15513
+ "w.SetPos": 1,
15514
+ "w.SetAttr": 1,
15515
+ "Models.EndScript": 1,
15516
+ "Compute": 1,
15517
+ "ObxFact.": 1
15518
+ },
15339
15519
  "Coq": {
15340
15520
  "Inductive": 41,
15341
15521
  "day": 9,
@@ -60661,67 +60841,67 @@
60661
60841
  "newplayer.MoveTo": 1
60662
60842
  },
60663
60843
  "Standard ML": {
60844
+ "structure": 15,
60845
+ "LazyBase": 4,
60846
+ "LAZY_BASE": 5,
60847
+ "struct": 13,
60848
+ "type": 6,
60849
+ "a": 78,
60850
+ "exception": 2,
60851
+ "Undefined": 6,
60852
+ "fun": 60,
60853
+ "delay": 6,
60854
+ "f": 46,
60855
+ "force": 18,
60856
+ "(": 840,
60857
+ ")": 845,
60858
+ "val": 147,
60859
+ "undefined": 2,
60860
+ "fn": 127,
60861
+ "raise": 6,
60862
+ "end": 55,
60863
+ "LazyMemoBase": 4,
60864
+ "datatype": 29,
60865
+ "|": 226,
60866
+ "Done": 2,
60867
+ "of": 91,
60868
+ "lazy": 13,
60869
+ "unit": 7,
60870
+ "-": 20,
60871
+ "let": 44,
60872
+ "open": 9,
60873
+ "B": 2,
60874
+ "inject": 5,
60875
+ "x": 74,
60876
+ "isUndefined": 4,
60877
+ "ignore": 3,
60878
+ ";": 21,
60879
+ "false": 32,
60880
+ "handle": 4,
60881
+ "true": 36,
60882
+ "toString": 4,
60883
+ "if": 51,
60884
+ "then": 51,
60885
+ "else": 51,
60886
+ "eqBy": 5,
60887
+ "p": 10,
60888
+ "y": 50,
60889
+ "eq": 3,
60890
+ "op": 2,
60891
+ "compare": 8,
60892
+ "Ops": 3,
60893
+ "map": 3,
60894
+ "Lazy": 2,
60895
+ "LazyFn": 4,
60896
+ "LazyMemo": 2,
60664
60897
  "signature": 2,
60665
- "LAZY_BASE": 3,
60666
60898
  "sig": 2,
60667
- "type": 5,
60668
- "a": 74,
60669
- "lazy": 12,
60670
- "-": 19,
60671
- ")": 826,
60672
- "end": 52,
60673
60899
  "LAZY": 1,
60674
60900
  "bool": 9,
60675
- "val": 143,
60676
- "inject": 3,
60677
- "toString": 3,
60678
- "(": 822,
60679
60901
  "string": 14,
60680
- "eq": 2,
60681
60902
  "*": 9,
60682
- "eqBy": 3,
60683
- "compare": 7,
60684
60903
  "order": 2,
60685
- "map": 2,
60686
60904
  "b": 58,
60687
- "structure": 10,
60688
- "Ops": 2,
60689
- "LazyBase": 2,
60690
- "struct": 9,
60691
- "exception": 1,
60692
- "Undefined": 3,
60693
- "fun": 51,
60694
- "delay": 3,
60695
- "f": 37,
60696
- "force": 9,
60697
- "undefined": 1,
60698
- "fn": 124,
60699
- "raise": 5,
60700
- "LazyMemoBase": 2,
60701
- "datatype": 28,
60702
- "|": 225,
60703
- "Done": 1,
60704
- "of": 90,
60705
- "unit": 6,
60706
- "let": 43,
60707
- "open": 8,
60708
- "B": 1,
60709
- "x": 59,
60710
- "isUndefined": 2,
60711
- "ignore": 2,
60712
- ";": 20,
60713
- "false": 31,
60714
- "handle": 3,
60715
- "true": 35,
60716
- "if": 50,
60717
- "then": 50,
60718
- "else": 50,
60719
- "p": 6,
60720
- "y": 44,
60721
- "op": 1,
60722
- "Lazy": 1,
60723
- "LazyFn": 2,
60724
- "LazyMemo": 1,
60725
60905
  "functor": 2,
60726
60906
  "Main": 1,
60727
60907
  "S": 2,
@@ -66642,6 +66822,7 @@
66642
66822
  "COBOL": 90,
66643
66823
  "CoffeeScript": 2951,
66644
66824
  "Common Lisp": 2186,
66825
+ "Component Pascal": 825,
66645
66826
  "Coq": 18259,
66646
66827
  "Creole": 134,
66647
66828
  "Crystal": 1506,
@@ -66775,7 +66956,7 @@
66775
66956
  "SourcePawn": 2080,
66776
66957
  "SQL": 1485,
66777
66958
  "Squirrel": 130,
66778
- "Standard ML": 6405,
66959
+ "Standard ML": 6567,
66779
66960
  "Stata": 3133,
66780
66961
  "Stylus": 76,
66781
66962
  "SuperCollider": 133,
@@ -66829,6 +67010,7 @@
66829
67010
  "COBOL": 4,
66830
67011
  "CoffeeScript": 9,
66831
67012
  "Common Lisp": 3,
67013
+ "Component Pascal": 2,
66832
67014
  "Coq": 12,
66833
67015
  "Creole": 1,
66834
67016
  "Crystal": 3,
@@ -66962,7 +67144,7 @@
66962
67144
  "SourcePawn": 1,
66963
67145
  "SQL": 5,
66964
67146
  "Squirrel": 1,
66965
- "Standard ML": 4,
67147
+ "Standard ML": 5,
66966
67148
  "Stata": 7,
66967
67149
  "Stylus": 1,
66968
67150
  "SuperCollider": 1,
@@ -66991,5 +67173,5 @@
66991
67173
  "Zephir": 2,
66992
67174
  "Zimpl": 1
66993
67175
  },
66994
- "md5": "482e5e1de8ec47e0b556809c8fe6f62b"
67176
+ "md5": "4754c31a712c5e22354851fd14d4d4fa"
66995
67177
  }
@@ -168,6 +168,9 @@
168
168
  - (^|/)extjs/src/
169
169
  - (^|/)extjs/welcome/
170
170
 
171
+ # Html5shiv
172
+ - (^|/)html5shiv(\.min)?\.js$
173
+
171
174
  # Samples folders
172
175
  - ^[Ss]amples/
173
176
 
@@ -1,3 +1,3 @@
1
1
  module Linguist
2
- VERSION = "2.11.3"
2
+ VERSION = "2.11.4"
3
3
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.3
4
+ version: 2.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-03 00:00:00.000000000 Z
11
+ date: 2014-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.1
19
+ version: 0.7.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.1
26
+ version: 0.7.2
27
27
  - !ruby/object:Gem::Dependency
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: 1.0.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: 1.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mime-types
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.19'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.19'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pygments.rb
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
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
68
  version: 0.5.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
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
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: mocha
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: yajl-ruby
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: We use this library at GitHub to detect blob languages, highlight code,
@@ -131,8 +131,6 @@ executables:
131
131
  extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
- - bin/linguist
135
- - lib/linguist.rb
136
134
  - lib/linguist/blob_helper.rb
137
135
  - lib/linguist/classifier.rb
138
136
  - lib/linguist/file_blob.rb
@@ -148,6 +146,8 @@ files:
148
146
  - lib/linguist/tokenizer.rb
149
147
  - lib/linguist/vendor.yml
150
148
  - lib/linguist/version.rb
149
+ - lib/linguist.rb
150
+ - bin/linguist
151
151
  homepage: https://github.com/github/linguist
152
152
  licenses:
153
153
  - MIT
@@ -158,17 +158,17 @@ require_paths:
158
158
  - lib
159
159
  required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - ">="
161
+ - - '>='
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - ">="
166
+ - - '>='
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.2.0
171
+ rubygems_version: 2.0.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: GitHub Language detection