github-linguist 2.3.1 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -160,7 +160,7 @@ module Linguist
160
160
  #
161
161
  # Return true or false
162
162
  def safe_to_colorize?
163
- text? && !large? && !high_ratio_of_long_lines?
163
+ !large? && text? && !high_ratio_of_long_lines?
164
164
  end
165
165
 
166
166
  # Internal: Does the blob have a ratio of long lines?
@@ -250,7 +250,9 @@ module Linguist
250
250
  #
251
251
  # Return true or false
252
252
  def indexable?
253
- if binary?
253
+ if size > 100 * 1024
254
+ false
255
+ elsif binary?
254
256
  false
255
257
  elsif extname == '.txt'
256
258
  true
@@ -260,8 +262,6 @@ module Linguist
260
262
  false
261
263
  elsif generated?
262
264
  false
263
- elsif size > 100 * 1024
264
- false
265
265
  else
266
266
  true
267
267
  end
@@ -257,8 +257,8 @@
257
257
  ".gemrc"
258
258
  ]
259
259
  },
260
- "tokens_total": 269398,
261
- "languages_total": 274,
260
+ "tokens_total": 270906,
261
+ "languages_total": 275,
262
262
  "tokens": {
263
263
  "Apex": {
264
264
  "global": 70,
@@ -25170,23 +25170,23 @@
25170
25170
  "/": 2
25171
25171
  },
25172
25172
  "Shell": {
25173
- "SHEBANG#!bash": 5,
25174
- "echo": 20,
25173
+ "SHEBANG#!bash": 6,
25174
+ "echo": 52,
25175
25175
  "export": 6,
25176
25176
  "PATH": 5,
25177
25177
  "pkgname": 1,
25178
25178
  "stud": 4,
25179
- "-": 42,
25179
+ "-": 182,
25180
25180
  "git": 9,
25181
25181
  "pkgver": 1,
25182
25182
  "pkgrel": 1,
25183
25183
  "pkgdesc": 1,
25184
25184
  "arch": 1,
25185
- "(": 16,
25185
+ "(": 89,
25186
25186
  "i686": 1,
25187
25187
  "x86_64": 1,
25188
- ")": 19,
25189
- "url": 1,
25188
+ ")": 134,
25189
+ "url": 4,
25190
25190
  "license": 1,
25191
25191
  "depends": 1,
25192
25192
  "libev": 1,
@@ -25198,26 +25198,26 @@
25198
25198
  "https": 1,
25199
25199
  "//github.com/bumptech/stud.git": 1,
25200
25200
  "_gitname": 1,
25201
- "build": 1,
25202
- "{": 5,
25201
+ "build": 2,
25202
+ "{": 49,
25203
25203
  "cd": 4,
25204
25204
  "msg": 4,
25205
- "if": 15,
25206
- "[": 24,
25207
- "d": 4,
25208
- "]": 24,
25209
- ";": 16,
25210
- "then": 17,
25211
- "&&": 4,
25205
+ "if": 27,
25206
+ "[": 70,
25207
+ "d": 7,
25208
+ "]": 70,
25209
+ ";": 115,
25210
+ "then": 29,
25211
+ "&&": 54,
25212
25212
  "pull": 3,
25213
25213
  "origin": 1,
25214
- "else": 6,
25214
+ "else": 10,
25215
25215
  "clone": 2,
25216
- "fi": 15,
25216
+ "fi": 24,
25217
25217
  "rm": 2,
25218
25218
  "rf": 1,
25219
25219
  "make": 2,
25220
- "}": 5,
25220
+ "}": 47,
25221
25221
  "package": 1,
25222
25222
  "PREFIX": 1,
25223
25223
  "/usr": 1,
@@ -25225,21 +25225,21 @@
25225
25225
  "install": 2,
25226
25226
  "Dm755": 1,
25227
25227
  "init.stud": 1,
25228
- "mkdir": 1,
25229
- "p": 1,
25230
- "#": 9,
25228
+ "mkdir": 2,
25229
+ "p": 2,
25230
+ "#": 11,
25231
25231
  "Bash": 1,
25232
25232
  "script": 1,
25233
- "to": 4,
25234
- "the": 3,
25233
+ "to": 15,
25234
+ "the": 9,
25235
25235
  "dotfile": 1,
25236
- "repository": 2,
25236
+ "repository": 3,
25237
25237
  "does": 1,
25238
- "a": 2,
25238
+ "a": 7,
25239
25239
  "lot": 1,
25240
- "of": 1,
25240
+ "of": 2,
25241
25241
  "fun": 2,
25242
- "stuff": 2,
25242
+ "stuff": 3,
25243
25243
  "like": 1,
25244
25244
  "turning": 1,
25245
25245
  "normal": 1,
@@ -25248,11 +25248,11 @@
25248
25248
  ".bashrc": 1,
25249
25249
  "into": 1,
25250
25250
  "symlinks": 1,
25251
- "this": 1,
25251
+ "this": 4,
25252
25252
  "away": 1,
25253
25253
  "optionally": 1,
25254
25254
  "moving": 1,
25255
- "old": 1,
25255
+ "old": 4,
25256
25256
  "files": 1,
25257
25257
  "so": 1,
25258
25258
  "that": 1,
@@ -25260,7 +25260,7 @@
25260
25260
  "can": 1,
25261
25261
  "be": 1,
25262
25262
  "preserved": 1,
25263
- "setting": 1,
25263
+ "setting": 2,
25264
25264
  "up": 1,
25265
25265
  "cron": 1,
25266
25266
  "job": 1,
@@ -25271,38 +25271,38 @@
25271
25271
  "some": 1,
25272
25272
  "more": 1,
25273
25273
  "shopt": 1,
25274
- "s": 2,
25274
+ "s": 6,
25275
25275
  "nocasematch": 1,
25276
25276
  "This": 1,
25277
25277
  "makes": 1,
25278
25278
  "pattern": 1,
25279
25279
  "matching": 1,
25280
- "case": 2,
25280
+ "case": 8,
25281
25281
  "insensitive": 1,
25282
25282
  "POSTFIX": 1,
25283
25283
  "URL": 1,
25284
25284
  "PUSHURL": 1,
25285
25285
  "overwrite": 3,
25286
- "true": 1,
25286
+ "true": 2,
25287
25287
  "print_help": 2,
25288
- "e": 2,
25289
- "exit": 7,
25290
- "for": 3,
25291
- "opt": 2,
25292
- "in": 4,
25293
- "@": 1,
25294
- "do": 3,
25288
+ "e": 4,
25289
+ "exit": 9,
25290
+ "for": 5,
25291
+ "opt": 3,
25292
+ "in": 14,
25293
+ "@": 3,
25294
+ "do": 7,
25295
25295
  "k": 1,
25296
- "|": 2,
25296
+ "|": 14,
25297
25297
  "keep": 1,
25298
- "local": 3,
25298
+ "local": 22,
25299
25299
  "false": 2,
25300
- "h": 1,
25301
- "help": 1,
25302
- "esac": 1,
25303
- "done": 3,
25304
- "f": 3,
25305
- ".*": 1,
25300
+ "h": 3,
25301
+ "help": 3,
25302
+ "esac": 6,
25303
+ "done": 7,
25304
+ "f": 11,
25305
+ ".*": 2,
25306
25306
  "o": 3,
25307
25307
  "continue": 1,
25308
25308
  "mv": 1,
@@ -25314,35 +25314,296 @@
25314
25314
  ".jobs.cron": 1,
25315
25315
  "source": 3,
25316
25316
  "/.bashrc": 1,
25317
- "set": 2,
25318
- "n": 2,
25317
+ "set": 9,
25318
+ "n": 7,
25319
25319
  "x": 1,
25320
- "unset": 3,
25320
+ "unset": 6,
25321
25321
  "system": 1,
25322
- "exec": 1,
25322
+ "exec": 3,
25323
25323
  "rbenv": 2,
25324
25324
  "versions": 1,
25325
25325
  "bare": 1,
25326
- "version": 1,
25327
- "z": 3,
25328
- "&": 4,
25326
+ "version": 11,
25327
+ "z": 4,
25328
+ "&": 5,
25329
25329
  "prefix": 1,
25330
- "/dev/null": 2,
25330
+ "/dev/null": 6,
25331
25331
  "rvm_ignore_rvmrc": 1,
25332
- "declare": 1,
25332
+ "declare": 22,
25333
25333
  "rvmrc": 3,
25334
25334
  "rvm_rvmrc_files": 3,
25335
25335
  "ef": 1,
25336
25336
  "+": 1,
25337
25337
  "GREP_OPTIONS": 1,
25338
- "grep": 1,
25339
- "printf": 1,
25338
+ "grep": 6,
25339
+ "printf": 4,
25340
25340
  "rvm_path": 4,
25341
25341
  "UID": 1,
25342
- "elif": 2,
25342
+ "elif": 4,
25343
25343
  "rvm_is_not_a_shell_function": 2,
25344
25344
  "rvm_path/scripts": 1,
25345
25345
  "rvm": 1,
25346
+ "r": 15,
25347
+ "sbt_release_version": 2,
25348
+ "sbt_snapshot_version": 2,
25349
+ "SNAPSHOT": 3,
25350
+ "sbt_jar": 3,
25351
+ "sbt_dir": 2,
25352
+ "sbt_create": 2,
25353
+ "sbt_snapshot": 1,
25354
+ "sbt_launch_dir": 3,
25355
+ "scala_version": 3,
25356
+ "java_home": 1,
25357
+ "sbt_explicit_version": 7,
25358
+ "verbose": 6,
25359
+ "debug": 11,
25360
+ "quiet": 6,
25361
+ "build_props_sbt": 3,
25362
+ "project/build.properties": 9,
25363
+ "versionLine": 2,
25364
+ "sbt.version": 3,
25365
+ "versionString": 3,
25366
+ "versionLine##sbt.version": 1,
25367
+ "update_build_props_sbt": 2,
25368
+ "ver": 5,
25369
+ "return": 3,
25370
+ "perl": 3,
25371
+ "pi": 1,
25372
+ "q": 4,
25373
+ "||": 12,
25374
+ "Updated": 1,
25375
+ "file": 3,
25376
+ "Previous": 1,
25377
+ "value": 1,
25378
+ "was": 1,
25379
+ "sbt_version": 8,
25380
+ "v": 5,
25381
+ "echoerr": 3,
25382
+ "vlog": 1,
25383
+ "dlog": 8,
25384
+ "get_script_path": 2,
25385
+ "path": 11,
25386
+ "L": 1,
25387
+ "target": 1,
25388
+ "readlink": 1,
25389
+ "get_mem_opts": 3,
25390
+ "mem": 4,
25391
+ "perm": 6,
25392
+ "/": 2,
25393
+ "<": 2,
25394
+ "codecache": 1,
25395
+ "die": 2,
25396
+ "make_url": 3,
25397
+ "groupid": 1,
25398
+ "category": 1,
25399
+ "default_jvm_opts": 1,
25400
+ "default_sbt_opts": 1,
25401
+ "default_sbt_mem": 2,
25402
+ "noshare_opts": 1,
25403
+ "sbt_opts_file": 1,
25404
+ "jvm_opts_file": 1,
25405
+ "latest_28": 1,
25406
+ "latest_29": 1,
25407
+ "latest_210": 1,
25408
+ "script_path": 1,
25409
+ "script_dir": 1,
25410
+ "script_name": 2,
25411
+ "java_cmd": 2,
25412
+ "java": 2,
25413
+ "sbt_mem": 5,
25414
+ "residual_args": 4,
25415
+ "java_args": 3,
25416
+ "scalac_args": 4,
25417
+ "sbt_commands": 2,
25418
+ "build_props_scala": 1,
25419
+ "build.scala.versions": 1,
25420
+ "versionLine##build.scala.versions": 1,
25421
+ "%": 3,
25422
+ "execRunner": 2,
25423
+ "arg": 3,
25424
+ "sbt_groupid": 3,
25425
+ "*": 11,
25426
+ "org.scala": 4,
25427
+ "tools.sbt": 3,
25428
+ "sbt": 18,
25429
+ "sbt_artifactory_list": 2,
25430
+ "version0": 2,
25431
+ "curl": 4,
25432
+ "list": 1,
25433
+ "only": 2,
25434
+ "F": 1,
25435
+ "pe": 1,
25436
+ "make_release_url": 2,
25437
+ "releases": 1,
25438
+ "make_snapshot_url": 2,
25439
+ "snapshots": 1,
25440
+ "head": 1,
25441
+ "jar_url": 1,
25442
+ "jar_file": 1,
25443
+ "download_url": 2,
25444
+ "jar": 3,
25445
+ "dirname": 1,
25446
+ "which": 4,
25447
+ "fail": 1,
25448
+ "silent": 1,
25449
+ "output": 1,
25450
+ "wget": 2,
25451
+ "O": 1,
25452
+ "acquire_sbt_jar": 1,
25453
+ "sbt_url": 1,
25454
+ "usage": 2,
25455
+ "cat": 3,
25456
+ "<<": 2,
25457
+ "EOM": 3,
25458
+ "Usage": 1,
25459
+ "options": 4,
25460
+ "print": 1,
25461
+ "message": 1,
25462
+ "runner": 1,
25463
+ "is": 5,
25464
+ "chattier": 1,
25465
+ "log": 2,
25466
+ "level": 2,
25467
+ "Debug": 1,
25468
+ "Error": 1,
25469
+ "no": 9,
25470
+ "colors": 2,
25471
+ "disable": 1,
25472
+ "ANSI": 1,
25473
+ "color": 1,
25474
+ "codes": 1,
25475
+ "create": 2,
25476
+ "start": 1,
25477
+ "even": 1,
25478
+ "current": 1,
25479
+ "directory": 3,
25480
+ "contains": 2,
25481
+ "project": 1,
25482
+ "dir": 3,
25483
+ "<path>": 3,
25484
+ "global": 1,
25485
+ "settings/plugins": 1,
25486
+ "default": 4,
25487
+ "/.sbt/": 1,
25488
+ "<version>": 1,
25489
+ "boot": 3,
25490
+ "shared": 1,
25491
+ "/.sbt/boot": 1,
25492
+ "series": 1,
25493
+ "ivy": 2,
25494
+ "Ivy": 1,
25495
+ "/.ivy2": 1,
25496
+ "<integer>": 1,
25497
+ "memory": 1,
25498
+ "share": 2,
25499
+ "use": 1,
25500
+ "all": 1,
25501
+ "caches": 1,
25502
+ "sharing": 1,
25503
+ "offline": 3,
25504
+ "put": 1,
25505
+ "mode": 2,
25506
+ "jvm": 2,
25507
+ "<port>": 1,
25508
+ "Turn": 1,
25509
+ "on": 2,
25510
+ "JVM": 1,
25511
+ "debugging": 1,
25512
+ "open": 1,
25513
+ "at": 1,
25514
+ "given": 2,
25515
+ "port.": 1,
25516
+ "batch": 2,
25517
+ "Disable": 1,
25518
+ "interactive": 1,
25519
+ "The": 1,
25520
+ "way": 1,
25521
+ "accomplish": 1,
25522
+ "pre": 1,
25523
+ "there": 2,
25524
+ "build.properties": 1,
25525
+ "an": 1,
25526
+ "property": 1,
25527
+ "update": 1,
25528
+ "disk.": 1,
25529
+ "That": 1,
25530
+ "scalacOptions": 3,
25531
+ "S": 2,
25532
+ "stripped": 1,
25533
+ "In": 1,
25534
+ "duplicated": 1,
25535
+ "or": 1,
25536
+ "conflicting": 1,
25537
+ "order": 1,
25538
+ "above": 1,
25539
+ "shows": 1,
25540
+ "precedence": 1,
25541
+ "JAVA_OPTS": 1,
25542
+ "lowest": 1,
25543
+ "command": 1,
25544
+ "line": 1,
25545
+ "highest.": 1,
25546
+ "addJava": 9,
25547
+ "addSbt": 12,
25548
+ "addScalac": 2,
25549
+ "addResidual": 2,
25550
+ "addResolver": 1,
25551
+ "addDebugger": 2,
25552
+ "get_jvm_opts": 2,
25553
+ "process_args": 2,
25554
+ "require_arg": 12,
25555
+ "type": 1,
25556
+ "while": 2,
25557
+ "gt": 1,
25558
+ "shift": 28,
25559
+ "integer": 1,
25560
+ "inc": 1,
25561
+ "port": 1,
25562
+ "snapshot": 1,
25563
+ "launch": 1,
25564
+ "scala": 3,
25565
+ "home": 2,
25566
+ "D*": 1,
25567
+ "J*": 1,
25568
+ "S*": 1,
25569
+ "sbtargs": 3,
25570
+ "IFS": 1,
25571
+ "read": 1,
25572
+ "<\"$sbt_opts_file\">": 1,
25573
+ "process": 1,
25574
+ "combined": 1,
25575
+ "args": 2,
25576
+ "reset": 1,
25577
+ "residuals": 1,
25578
+ "argumentCount=": 1,
25579
+ "we": 1,
25580
+ "were": 1,
25581
+ "any": 1,
25582
+ "opts": 1,
25583
+ "eq": 1,
25584
+ "0": 1,
25585
+ "ThisBuild": 1,
25586
+ "Update": 1,
25587
+ "properties": 1,
25588
+ "disk": 1,
25589
+ "explicit": 1,
25590
+ "gives": 1,
25591
+ "us": 1,
25592
+ "choice": 1,
25593
+ "Detected": 1,
25594
+ "Overriding": 1,
25595
+ "alert": 1,
25596
+ "them": 1,
25597
+ "here": 1,
25598
+ "argumentCount": 1,
25599
+ "./build.sbt": 1,
25600
+ "./project": 1,
25601
+ "pwd": 1,
25602
+ "doesn": 1,
25603
+ "t": 1,
25604
+ "understand": 1,
25605
+ "iflast": 1,
25606
+ "#residual_args": 1,
25346
25607
  "SHEBANG#!sh": 2,
25347
25608
  "SHEBANG#!zsh": 2
25348
25609
  },
@@ -27452,7 +27713,7 @@
27452
27713
  "Scheme": 3478,
27453
27714
  "Scilab": 69,
27454
27715
  "SCSS": 39,
27455
- "Shell": 500,
27716
+ "Shell": 2008,
27456
27717
  "Standard ML": 243,
27457
27718
  "SuperCollider": 135,
27458
27719
  "Tea": 3,
@@ -27522,7 +27783,7 @@
27522
27783
  "Scheme": 1,
27523
27784
  "Scilab": 3,
27524
27785
  "SCSS": 1,
27525
- "Shell": 15,
27786
+ "Shell": 16,
27526
27787
  "Standard ML": 2,
27527
27788
  "SuperCollider": 1,
27528
27789
  "Tea": 1,
@@ -27537,5 +27798,5 @@
27537
27798
  "XSLT": 1,
27538
27799
  "YAML": 1
27539
27800
  },
27540
- "md5": "ca1d189ca79aa9c52370da78f2c2b4dd"
27801
+ "md5": "73937d71c79ba8a2f9e085431017cb2d"
27541
27802
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-27 00:00:00.000000000 Z
12
+ date: 2012-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: charlock_holmes
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.2.13
78
+ - !ruby/object:Gem::Dependency
79
+ name: mocha
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  - !ruby/object:Gem::Dependency
79
95
  name: json
80
96
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
181
  version: '0'
166
182
  requirements: []
167
183
  rubyforge_project:
168
- rubygems_version: 1.8.23
184
+ rubygems_version: 1.8.24
169
185
  signing_key:
170
186
  specification_version: 3
171
187
  summary: GitHub Language detection