language_sniffer 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'language_sniffer/language'
2
3
  require 'language_sniffer/pathname'
3
4
  require 'yaml'
@@ -31,7 +32,11 @@ module LanguageSniffer
31
32
  #
32
33
  # Returns an Array of lines
33
34
  def lines
34
- @lines ||= (data ? data.split("\n", -1) : [])
35
+ @lines ||= begin
36
+ (data ? data.split("\n", -1) : [])
37
+ rescue ArgumentError # invalid byte sequence in UTF-8
38
+ []
39
+ end
35
40
  end
36
41
 
37
42
  # Public: Get number of lines of code
@@ -225,6 +230,24 @@ module LanguageSniffer
225
230
  end
226
231
  end
227
232
 
233
+ # Internal: Guess language of .cls files
234
+ #
235
+ # Returns a Language.
236
+ def guess_cls_language
237
+ if lines.grep(/^(%|\\)/).any?
238
+ Language['TeX']
239
+ elsif lines.grep(/^\s*(CLASS|METHOD|INTERFACE).*:\s*/i).any? || lines.grep(/^\s*(USING|DEFINE)/i).any?
240
+ Language['OpenEdge ABL']
241
+ elsif lines.grep(/\{$/).any? || lines.grep(/\}$/).any?
242
+ Language['Apex']
243
+ elsif lines.grep(/^(\'\*|Attribute|Option|Sub|Private|Protected|Public|Friend)/i).any?
244
+ Language['Visual Basic']
245
+ else
246
+ # The most common language should be the fallback
247
+ Language['TeX']
248
+ end
249
+ end
250
+
228
251
  # Internal: Guess language of header files (.h).
229
252
  #
230
253
  # Returns a Language.
@@ -297,6 +320,39 @@ module LanguageSniffer
297
320
  end
298
321
  end
299
322
 
323
+ # Internal: Guess language of .t files.
324
+ #
325
+ # Returns a Language.
326
+ def guess_t_language
327
+ score = 0
328
+ score += 1 if lines.grep(/^% /).any?
329
+ score += data.gsub(/ := /).count
330
+ score += data.gsub(/proc |procedure |fcn |function /).count
331
+ score += data.gsub(/var \w+: \w+/).count
332
+
333
+ # Tell-tale signs its gotta be Perl
334
+ if lines.grep(/^(my )?(sub |\$|@|%)\w+/).any?
335
+ score = 0
336
+ end
337
+
338
+ if score >= 3
339
+ Language['Turing']
340
+ else
341
+ Language['Perl']
342
+ end
343
+ end
344
+
345
+ # Internal: Guess language of .v files.
346
+ #
347
+ # Returns a Language
348
+ def guess_v_language
349
+ if lines.grep(/^(\/\*|\/\/|module|parameter|input|output|wire|reg|always|initial|begin|\`)/).any?
350
+ Language['Verilog']
351
+ else
352
+ Language['Coq']
353
+ end
354
+ end
355
+
300
356
  # Internal: Guess language of .gsp files.
301
357
  #
302
358
  # Returns a Language.
@@ -1,8 +1,15 @@
1
1
  # Defines all Languages known
2
2
  #
3
+ # All languages have an associated lexer for syntax highlighting. It
4
+ # defaults to name.downcase, which covers most cases. Make sure the
5
+ # lexer exists in lexers.yml. This is a list of available in our
6
+ # version of pygments.
7
+ #
3
8
  # type - Either data, programming, markup, or nil
9
+ # lexer - An explicit lexer String (defaults to name.downcase)
4
10
  # aliases - An Array of additional aliases (implicitly
5
11
  # includes name.downcase)
12
+ # ace_mode - A String name of Ace Mode (if available)
6
13
  # extension - An Array of associated extensions
7
14
  # primary_extension - A String for the main extension associated with
8
15
  # the langauge. (defaults to extensions.first)
@@ -10,6 +17,7 @@
10
17
  # searchable - Boolean flag to enable searching (defaults to true)
11
18
  # search_term - Deprecated: Some languages maybe indexed under a
12
19
  # different alias. Avoid defining new exceptions.
20
+ # color - CSS hex color to represent the language.
13
21
  #
14
22
  # Any additions or modifications (even trivial) should have corresponding
15
23
  # test change in `test/test_blob.rb`.
@@ -48,7 +56,15 @@ Ada:
48
56
  - .adb
49
57
  - .ads
50
58
 
59
+ Apex:
60
+ type: programming
61
+ lexer: Text only
62
+ extensions:
63
+ - .cls
64
+
51
65
  AppleScript:
66
+ aliases:
67
+ - osascript
52
68
  primary_extension: .scpt
53
69
  extensions:
54
70
  - .applescript
@@ -60,6 +76,12 @@ Arc:
60
76
  extensions:
61
77
  - .arc
62
78
 
79
+ Arduino:
80
+ type: programming
81
+ lexer: C++
82
+ extensions:
83
+ - .ino
84
+
63
85
  Assembly:
64
86
  type: programming
65
87
  lexer: NASM
@@ -69,6 +91,11 @@ Assembly:
69
91
  extensions:
70
92
  - .asm
71
93
 
94
+ Augeas:
95
+ type: programming
96
+ extensions:
97
+ - .aug
98
+
72
99
  AutoHotkey:
73
100
  type: programming
74
101
  lexer: autohotkey
@@ -106,6 +133,11 @@ Brainfuck:
106
133
  - .b
107
134
  - .bf
108
135
 
136
+ Bro:
137
+ type: programming
138
+ extensions:
139
+ - .bro
140
+
109
141
  C:
110
142
  type: programming
111
143
  overrides:
@@ -114,9 +146,11 @@ C:
114
146
  extensions:
115
147
  - .c
116
148
  - .h
149
+ - .w
117
150
 
118
151
  C#:
119
152
  type: programming
153
+ ace_mode: csharp
120
154
  search_term: csharp
121
155
  aliases:
122
156
  - csharp
@@ -125,6 +159,7 @@ C#:
125
159
 
126
160
  C++:
127
161
  type: programming
162
+ ace_mode: c_cpp
128
163
  search_term: cpp
129
164
  aliases:
130
165
  - cpp
@@ -148,6 +183,15 @@ C-ObjDump:
148
183
  extensions:
149
184
  - .c-objdump
150
185
 
186
+ C2hs Haskell:
187
+ type: programming
188
+ lexer: Haskell
189
+ group: Haskell
190
+ aliases:
191
+ - c2hs
192
+ extensions:
193
+ - .chs
194
+
151
195
  CMake:
152
196
  extensions:
153
197
  - .cmake
@@ -156,6 +200,7 @@ CMake:
156
200
  - CMakeLists.txt
157
201
 
158
202
  CSS:
203
+ ace_mode: css
159
204
  extensions:
160
205
  - .css
161
206
 
@@ -166,6 +211,7 @@ ChucK:
166
211
 
167
212
  Clojure:
168
213
  type: programming
214
+ ace_mode: clojure
169
215
  primary_extension: .clj
170
216
  extensions:
171
217
  - .clj
@@ -173,6 +219,7 @@ Clojure:
173
219
 
174
220
  CoffeeScript:
175
221
  type: programming
222
+ ace_mode: coffee
176
223
  aliases:
177
224
  - coffee
178
225
  extensions:
@@ -183,6 +230,7 @@ CoffeeScript:
183
230
  ColdFusion:
184
231
  type: programming
185
232
  lexer: Coldfusion HTML
233
+ ace_mode: coldfusion
186
234
  search_term: cfm
187
235
  aliases:
188
236
  - cfm
@@ -198,8 +246,14 @@ Common Lisp:
198
246
  primary_extension: .lisp
199
247
  extensions:
200
248
  - .lisp
249
+ - .lsp
201
250
  - .ny
202
251
 
252
+ Coq:
253
+ type: programming
254
+ extensions:
255
+ - .v
256
+
203
257
  Cpp-ObjDump:
204
258
  type: data
205
259
  lexer: cpp-objdump
@@ -242,13 +296,29 @@ Darcs Patch:
242
296
  - .darcspatch
243
297
  - .dpatch
244
298
 
299
+ Dart:
300
+ type: programming
301
+ extensions:
302
+ - .dart
303
+
245
304
  Delphi:
246
305
  type: programming
247
306
  primary_extension: .pas
248
307
  extensions:
249
308
  - .dpr
309
+ - .lpr
250
310
  - .pas
251
311
 
312
+ DCPU-16 ASM:
313
+ type: programming
314
+ lexer: dasm16
315
+ primary_extension: .dasm16
316
+ extensions:
317
+ - .dasm
318
+ - .dasm16
319
+ aliases:
320
+ - dasm16
321
+
252
322
  Diff:
253
323
  extensions:
254
324
  - .diff
@@ -259,17 +329,32 @@ Dylan:
259
329
  extensions:
260
330
  - .dylan
261
331
 
332
+ Ecere Projects:
333
+ type: data
334
+ group: JavaScript
335
+ lexer: JSON
336
+ extensions:
337
+ - .epj
338
+
262
339
  Eiffel:
263
340
  type: programming
264
341
  lexer: Text only
265
342
  extensions:
266
343
  - .e
267
344
 
345
+ Elixir:
346
+ type: programming
347
+ primary_extension: .ex
348
+ extensions:
349
+ - .ex
350
+ - .exs
351
+
268
352
  Emacs Lisp:
269
353
  type: programming
270
354
  lexer: Scheme
271
355
  aliases:
272
356
  - elisp
357
+ - emacs
273
358
  primary_extension: .el
274
359
  extensions:
275
360
  - .el
@@ -284,7 +369,7 @@ Erlang:
284
369
 
285
370
  F#:
286
371
  type: programming
287
- lexer: OCaml
372
+ lexer: FSharp
288
373
  search_term: ocaml
289
374
  extensions:
290
375
  - .fs
@@ -297,9 +382,21 @@ FORTRAN:
297
382
  primary_extension: .f90
298
383
  extensions:
299
384
  - .F
385
+ - .F03
386
+ - .F08
387
+ - .F77
300
388
  - .F90
389
+ - .F95
390
+ - .FOR
391
+ - .FPP
301
392
  - .f
393
+ - .f03
394
+ - .f08
395
+ - .f77
302
396
  - .f90
397
+ - .f95
398
+ - .for
399
+ - .fpp
303
400
 
304
401
  Factor:
305
402
  type: programming
@@ -313,6 +410,11 @@ Fancy:
313
410
  - .fancypack
314
411
  - .fy
315
412
 
413
+ Fantom:
414
+ type: programming
415
+ extensions:
416
+ - .fan
417
+
316
418
  GAS:
317
419
  type: programming
318
420
  group: Assembly
@@ -375,7 +477,7 @@ Groff:
375
477
 
376
478
  Groovy:
377
479
  type: programming
378
- lexer: Java
480
+ ace_mode: groovy
379
481
  primary_extension: .groovy
380
482
  extensions:
381
483
  - .gradle
@@ -393,6 +495,7 @@ Groovy Server Pages:
393
495
 
394
496
  HTML:
395
497
  type: markup
498
+ ace_mode: html
396
499
  primary_extension: .html
397
500
  extensions:
398
501
  - .htm
@@ -425,6 +528,7 @@ HTML+PHP:
425
528
  HaXe:
426
529
  type: programming
427
530
  lexer: haXe
531
+ ace_mode: haxe
428
532
  extensions:
429
533
  - .hx
430
534
  - .hxml
@@ -473,13 +577,14 @@ Ioke:
473
577
  JSON:
474
578
  type: data
475
579
  group: JavaScript
476
- lexer: JavaScript
580
+ ace_mode: json
477
581
  searchable: false
478
582
  extensions:
479
583
  - .json
480
584
 
481
585
  Java:
482
586
  type: programming
587
+ ace_mode: java
483
588
  extensions:
484
589
  - .java
485
590
  - .pde
@@ -495,13 +600,16 @@ Java Server Pages:
495
600
 
496
601
  JavaScript:
497
602
  type: programming
603
+ ace_mode: javascript
498
604
  aliases:
499
605
  - js
500
606
  - node
501
607
  primary_extension: .js
502
608
  extensions:
609
+ - .bones
503
610
  - .jake
504
611
  - .js
612
+ - .jsfl
505
613
  - .jsm
506
614
  - .jss
507
615
  - .jsx
@@ -511,6 +619,18 @@ JavaScript:
511
619
  filenames:
512
620
  - Jakefile
513
621
 
622
+ Julia:
623
+ type: programming
624
+ extensions:
625
+ - .jl
626
+
627
+ Kotlin:
628
+ type: programming
629
+ extensions:
630
+ - .kt
631
+ - .ktm
632
+ - .kts
633
+
514
634
  LLVM:
515
635
  extensions:
516
636
  - .ll
@@ -531,9 +651,14 @@ Literate Haskell:
531
651
  extensions:
532
652
  - .lhs
533
653
 
654
+ Logtalk:
655
+ type: programming
656
+ extensions:
657
+ - .lgt
658
+
534
659
  Lua:
535
660
  type: programming
536
- primary_extension: .lua
661
+ ace_mode: lua
537
662
  extensions:
538
663
  - .lua
539
664
  - .nse
@@ -541,16 +666,21 @@ Lua:
541
666
  Makefile:
542
667
  extensions:
543
668
  - .mak
669
+ - .mk
544
670
  filenames:
671
+ - makefile
545
672
  - Makefile
673
+ - GNUmakefile
546
674
 
547
675
  Mako:
548
676
  extensions:
677
+ - .mako
549
678
  - .mao
550
679
 
551
680
  Markdown:
552
681
  type: markup
553
682
  lexer: Text only
683
+ ace_mode: markdown
554
684
  primary_extension: .md
555
685
  extensions:
556
686
  - .markdown
@@ -600,8 +730,10 @@ Nemerle:
600
730
  - .n
601
731
 
602
732
  Nimrod:
733
+ type: programming
603
734
  extensions:
604
735
  - .nim
736
+ - .nimrod
605
737
 
606
738
  Nu:
607
739
  type: programming
@@ -623,6 +755,7 @@ NumPy:
623
755
 
624
756
  OCaml:
625
757
  type: programming
758
+ ace_mode: ocaml
626
759
  primary_extension: .ml
627
760
  extensions:
628
761
  - .ml
@@ -652,6 +785,11 @@ Objective-J:
652
785
  - .j
653
786
  - .sj
654
787
 
788
+ Opa:
789
+ type: programming
790
+ extensions:
791
+ - .opa
792
+
655
793
  OpenCL:
656
794
  type: programming
657
795
  group: C
@@ -659,8 +797,20 @@ OpenCL:
659
797
  extensions:
660
798
  - .cl
661
799
 
800
+ OpenEdge ABL:
801
+ type: programming
802
+ aliases:
803
+ - progress
804
+ - openedge
805
+ - abl
806
+ primary_extension: .p
807
+ extensions:
808
+ - .cls
809
+ - .p
810
+
662
811
  PHP:
663
812
  type: programming
813
+ ace_mode: php
664
814
  extensions:
665
815
  - .aw
666
816
  - .ctp
@@ -669,6 +819,8 @@ PHP:
669
819
  - .php4
670
820
  - .php5
671
821
  - .phpt
822
+ filenames:
823
+ - Phakefile
672
824
 
673
825
  Parrot:
674
826
  type: programming
@@ -695,19 +847,31 @@ Parrot Assembly:
695
847
 
696
848
  Perl:
697
849
  type: programming
850
+ ace_mode: perl
698
851
  overrides:
699
852
  - .pl
853
+ - .t
700
854
  primary_extension: .pl
701
855
  extensions:
702
856
  - .PL
703
857
  - .perl
704
858
  - .ph
705
859
  - .pl
860
+ - .plx
706
861
  - .pm
707
862
  - .pod
708
863
  - .psgi
709
864
  - .t
710
865
 
866
+ PowerShell:
867
+ type: programming
868
+ ace_mode: powershell
869
+ aliases:
870
+ - posh
871
+ extensions:
872
+ - .ps1
873
+ - .psm1
874
+
711
875
  Prolog:
712
876
  type: programming
713
877
  extensions:
@@ -715,6 +879,13 @@ Prolog:
715
879
  - .pro
716
880
  - .prolog
717
881
 
882
+ Puppet:
883
+ type: programming
884
+ extensions:
885
+ - .pp
886
+ filenames:
887
+ - Modulefile
888
+
718
889
  Pure Data:
719
890
  type: programming
720
891
  lexer: Text only
@@ -723,11 +894,13 @@ Pure Data:
723
894
 
724
895
  Python:
725
896
  type: programming
897
+ ace_mode: python
726
898
  primary_extension: .py
727
899
  extensions:
728
900
  - .py
729
901
  - .pyw
730
902
  - .wsgi
903
+ - .xpy
731
904
 
732
905
  Python traceback:
733
906
  type: data
@@ -785,6 +958,7 @@ Redcode:
785
958
 
786
959
  Ruby:
787
960
  type: programming
961
+ ace_mode: ruby
788
962
  aliases:
789
963
  - jruby
790
964
  - macruby
@@ -797,6 +971,7 @@ Ruby:
797
971
  - .gemspec
798
972
  - .god
799
973
  - .irbrc
974
+ - .podspec
800
975
  - .rake
801
976
  - .rb
802
977
  - .rbuild
@@ -807,32 +982,40 @@ Ruby:
807
982
  - .watchr
808
983
  filenames:
809
984
  - Capfile
810
- - Rakefile
811
- - Thorfile
812
985
  - Gemfile
813
986
  - Guardfile
987
+ - Podfile
988
+ - Rakefile
989
+ - Thorfile
814
990
  - Vagrantfile
815
991
 
816
992
  Rust:
817
993
  type: programming
818
994
  lexer: Text only
819
- primary_extension: .rs
820
995
  extensions:
821
- - .rc
822
996
  - .rs
823
997
 
824
998
  SCSS:
825
999
  type: markup
826
1000
  group: CSS
1001
+ ace_mode: scss
827
1002
  extensions:
828
1003
  - .scss
829
1004
 
830
1005
  SQL:
831
1006
  type: data
1007
+ ace_mode: sql
832
1008
  searchable: false
833
1009
  extensions:
834
1010
  - .sql
835
1011
 
1012
+ Sage:
1013
+ type: programming
1014
+ lexer: Python
1015
+ group: Python
1016
+ extensions:
1017
+ - .sage
1018
+
836
1019
  Sass:
837
1020
  type: markup
838
1021
  group: CSS
@@ -841,6 +1024,7 @@ Sass:
841
1024
 
842
1025
  Scala:
843
1026
  type: programming
1027
+ ace_mode: scala
844
1028
  primary_extension: .scala
845
1029
  extensions:
846
1030
  - .sbt
@@ -855,6 +1039,13 @@ Scheme:
855
1039
  - .sps
856
1040
  - .ss
857
1041
 
1042
+ Scilab:
1043
+ type: programming
1044
+ primary_extension: .sci
1045
+ extensions:
1046
+ - .sce
1047
+ - .tst
1048
+
858
1049
  Self:
859
1050
  type: programming
860
1051
  lexer: Text only
@@ -881,6 +1072,8 @@ Shell:
881
1072
  - .zlogin
882
1073
  - .zsh
883
1074
  - .zshrc
1075
+ - bashrc
1076
+ - zshrc
884
1077
 
885
1078
  Smalltalk:
886
1079
  type: programming
@@ -893,7 +1086,6 @@ Smarty:
893
1086
 
894
1087
  Standard ML:
895
1088
  type: programming
896
- lexer: Standard ML
897
1089
  aliases:
898
1090
  - sml
899
1091
  primary_extension: .sml
@@ -922,26 +1114,46 @@ Tcsh:
922
1114
 
923
1115
  TeX:
924
1116
  type: markup
1117
+ ace_mode: latex
925
1118
  primary_extension: .tex
1119
+ overrides:
1120
+ - .cls
926
1121
  extensions:
927
1122
  - .aux
928
1123
  - .cls
1124
+ - .dtx
1125
+ - .ins
1126
+ - .ltx
929
1127
  - .sty
930
1128
  - .tex
931
1129
  - .toc
932
1130
 
1131
+ Tea:
1132
+ type: markup
1133
+ extensions:
1134
+ - .tea
1135
+
933
1136
  Text:
934
1137
  type: data
935
1138
  lexer: Text only
1139
+ ace_mode: text
936
1140
  extensions:
937
1141
  - .txt
938
1142
 
939
1143
  Textile:
940
1144
  type: markup
941
1145
  lexer: Text only
1146
+ ace_mode: textile
942
1147
  extensions:
943
1148
  - .textile
944
1149
 
1150
+ Turing:
1151
+ type: programming
1152
+ lexer: Text only
1153
+ extensions:
1154
+ - .t
1155
+ - .tu
1156
+
945
1157
  Twig:
946
1158
  type: markup
947
1159
  group: PHP
@@ -951,8 +1163,7 @@ Twig:
951
1163
 
952
1164
  VHDL:
953
1165
  type: programming
954
- lexer: Text only
955
- primary_extension: .vhd
1166
+ lexer: vhdl
956
1167
  extensions:
957
1168
  - .vhd
958
1169
  - .vhdl
@@ -961,10 +1172,13 @@ Vala:
961
1172
  type: programming
962
1173
  extensions:
963
1174
  - .vala
1175
+ - .vapi
964
1176
 
965
1177
  Verilog:
966
1178
  type: programming
967
- lexer: verilog
1179
+ lexer: Verilog
1180
+ overrides:
1181
+ - .v
968
1182
  extensions:
969
1183
  - .v
970
1184
 
@@ -978,6 +1192,8 @@ VimL:
978
1192
  filenames:
979
1193
  - .gvimrc
980
1194
  - .vimrc
1195
+ - vimrc
1196
+ - gvimrc
981
1197
 
982
1198
  Visual Basic:
983
1199
  type: programming
@@ -992,6 +1208,7 @@ Visual Basic:
992
1208
 
993
1209
  XML:
994
1210
  type: markup
1211
+ ace_mode: xml
995
1212
  primary_extension: .xml
996
1213
  extensions:
997
1214
  - .glade
@@ -1006,6 +1223,8 @@ XML:
1006
1223
  - .wxl
1007
1224
  - .wxs
1008
1225
  - .xaml
1226
+ - .xlf
1227
+ - .xliff
1009
1228
  - .xml
1010
1229
  - .xsd
1011
1230
  - .xsl
@@ -1036,6 +1255,14 @@ YAML:
1036
1255
  filenames:
1037
1256
  - .gemrc
1038
1257
 
1258
+ eC:
1259
+ type: programming
1260
+ search_term: ec
1261
+ primary_extension: .ec
1262
+ extensions:
1263
+ - .ec
1264
+ - .eh
1265
+
1039
1266
  mupad:
1040
1267
  lexer: MuPAD
1041
1268
  extensions:
@@ -2,7 +2,7 @@ module LanguageSniffer
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,88 +1,76 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: language_sniffer
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 1
10
- version: 1.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - GitHub, Inc.
14
9
  - Michael Grosser
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-10-01 00:00:00 +02:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- requirement: &id001 !ruby/object:Gem::Requirement
13
+ date: 2012-05-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake
17
+ requirement: !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
32
23
  type: :development
33
- name: rake
34
- version_requirements: *id001
35
24
  prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
36
31
  description:
37
32
  email: grosser.michael@gmail.com
38
- executables:
33
+ executables:
39
34
  - language_sniffer
40
35
  extensions: []
41
-
42
36
  extra_rdoc_files: []
43
-
44
- files:
45
- - lib/language_sniffer.rb
46
- - lib/language_sniffer/pathname.rb
47
- - lib/language_sniffer/language.rb
48
- - lib/language_sniffer/version.rb
37
+ files:
49
38
  - lib/language_sniffer/blob_helper.rb
50
- - lib/language_sniffer/languages.yml
51
39
  - lib/language_sniffer/file_blob.rb
40
+ - lib/language_sniffer/language.rb
41
+ - lib/language_sniffer/languages.yml
42
+ - lib/language_sniffer/pathname.rb
43
+ - lib/language_sniffer/version.rb
44
+ - lib/language_sniffer.rb
52
45
  - bin/language_sniffer
53
- has_rdoc: true
54
46
  homepage: http://github.com/grosser/language_sniffer
55
47
  licenses: []
56
-
57
48
  post_install_message:
58
49
  rdoc_options: []
59
-
60
- require_paths:
50
+ require_paths:
61
51
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
52
+ required_ruby_version: !ruby/object:Gem::Requirement
63
53
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ segments:
69
59
  - 0
70
- version: "0"
71
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ hash: 322465844304122196
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
62
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ segments:
78
68
  - 0
79
- version: "0"
69
+ hash: 322465844304122196
80
70
  requirements: []
81
-
82
71
  rubyforge_project:
83
- rubygems_version: 1.6.2
72
+ rubygems_version: 1.8.24
84
73
  signing_key:
85
74
  specification_version: 3
86
75
  summary: Language detection
87
76
  test_files: []
88
-