2.9.3, update samples, update test

This commit is contained in:
Ted Nyman
2013-08-14 08:35:53 -07:00
parent 06b185f725
commit 6c74d854ec
3 changed files with 758 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'github-linguist'
s.version = '2.9.2'
s.version = '2.9.3'
s.summary = "GitHub Language detection"
s.authors = "GitHub"

View File

@@ -38,6 +38,9 @@
"Coq": [
".v"
],
"CSS": [
".css"
],
"Dart": [
".dart"
],
@@ -396,8 +399,8 @@
".gemrc"
]
},
"tokens_total": 363775,
"languages_total": 437,
"tokens_total": 407642,
"languages_total": 439,
"tokens": {
"ABAP": {
"*/**": 1,
@@ -11894,6 +11897,754 @@
"IHhas_type1.": 1,
"IHhas_type2.": 1
},
"CSS": {
".clearfix": 8,
"{": 1661,
"*zoom": 48,
";": 4219,
"}": 1705,
"before": 48,
"after": 96,
"display": 135,
"table": 44,
"content": 66,
"line": 97,
"-": 8839,
"height": 141,
"clear": 32,
"both": 30,
".hide": 12,
"text": 129,
"font": 142,
"/0": 2,
"a": 268,
"color": 711,
"transparent": 148,
"shadow": 254,
"none": 128,
"background": 770,
"border": 912,
".input": 216,
"block": 133,
"level": 2,
"width": 215,
"%": 366,
"min": 14,
"px": 2535,
"webkit": 364,
"box": 264,
"sizing": 27,
"moz": 316,
"article": 2,
"aside": 2,
"details": 2,
"figcaption": 2,
"figure": 2,
"footer": 2,
"header": 12,
"hgroup": 2,
"nav": 2,
"section": 2,
"audio": 4,
"canvas": 2,
"video": 4,
"inline": 116,
"*display": 20,
"not": 6,
"(": 748,
"[": 384,
"controls": 2,
"]": 384,
")": 748,
"html": 4,
"size": 104,
"adjust": 6,
"ms": 13,
"focus": 232,
"outline": 30,
"thin": 8,
"dotted": 10,
"#333": 6,
"auto": 50,
"ring": 6,
"offset": 6,
"hover": 144,
"active": 46,
"sub": 4,
"sup": 4,
"position": 342,
"relative": 18,
"vertical": 56,
"align": 72,
"baseline": 4,
"top": 376,
"em": 6,
"bottom": 309,
"img": 14,
"max": 18,
"middle": 20,
"interpolation": 2,
"mode": 2,
"bicubic": 2,
"#map_canvas": 2,
".google": 2,
"maps": 2,
"button": 18,
"input": 336,
"select": 90,
"textarea": 76,
"margin": 424,
"*overflow": 3,
"visible": 8,
"normal": 18,
"inner": 37,
"padding": 174,
"type": 174,
"appearance": 6,
"cursor": 30,
"pointer": 12,
"label": 20,
"textfield": 2,
"search": 66,
"decoration": 33,
"cancel": 2,
"overflow": 21,
"@media": 2,
"print": 4,
"*": 2,
"important": 18,
"#000": 2,
"visited": 2,
"underline": 6,
"href": 28,
"attr": 4,
"abbr": 6,
"title": 10,
".ir": 2,
"pre": 16,
"blockquote": 14,
"solid": 93,
"#999": 6,
"page": 6,
"break": 12,
"inside": 4,
"avoid": 6,
"thead": 38,
"group": 120,
"tr": 92,
"@page": 2,
"cm": 2,
"p": 14,
"h2": 14,
"h3": 14,
"orphans": 2,
"widows": 2,
"body": 3,
"family": 10,
"Helvetica": 6,
"Arial": 6,
"sans": 6,
"serif": 6,
"#333333": 26,
"#ffffff": 136,
"#0088cc": 24,
"#005580": 8,
".img": 6,
"rounded": 2,
"radius": 534,
"polaroid": 2,
"#fff": 10,
"#ccc": 13,
"rgba": 409,
"circle": 18,
".row": 126,
"left": 489,
"class*": 100,
"float": 84,
".container": 32,
".navbar": 332,
"static": 14,
"fixed": 36,
".span12": 4,
".span11": 4,
".span10": 4,
".span9": 4,
".span8": 4,
".span7": 4,
".span6": 4,
".span5": 4,
".span4": 4,
".span3": 4,
".span2": 4,
".span1": 4,
".offset12": 6,
".offset11": 6,
".offset10": 6,
".offset9": 6,
".offset8": 6,
".offset7": 6,
".offset6": 6,
".offset5": 6,
".offset4": 6,
".offset3": 6,
".offset2": 6,
".offset1": 6,
"fluid": 126,
"*margin": 70,
"first": 179,
"child": 301,
".controls": 28,
"row": 20,
"+": 105,
"*width": 26,
".pull": 16,
"right": 258,
".lead": 2,
"weight": 28,
"small": 66,
"strong": 2,
"bold": 14,
"style": 21,
"italic": 4,
"cite": 2,
".muted": 2,
"#999999": 50,
"a.muted": 4,
"#808080": 2,
".text": 14,
"warning": 33,
"#c09853": 14,
"a.text": 16,
"#a47e3c": 4,
"error": 10,
"#b94a48": 20,
"#953b39": 6,
"info": 37,
"#3a87ad": 18,
"#2d6987": 6,
"success": 35,
"#468847": 18,
"#356635": 6,
"center": 17,
"h1": 11,
"h4": 20,
"h5": 6,
"h6": 6,
"inherit": 8,
"rendering": 2,
"optimizelegibility": 2,
".page": 2,
"#eeeeee": 31,
"ul": 84,
"ol": 10,
"li": 205,
"ul.unstyled": 2,
"ol.unstyled": 2,
"list": 44,
"ul.inline": 4,
"ol.inline": 4,
"dl": 2,
"dt": 6,
"dd": 6,
".dl": 12,
"horizontal": 60,
"hidden": 9,
"ellipsis": 2,
"white": 25,
"space": 23,
"nowrap": 14,
"hr": 2,
"data": 2,
"original": 2,
"help": 2,
"abbr.initialism": 2,
"transform": 4,
"uppercase": 4,
"blockquote.pull": 10,
"q": 4,
"address": 2,
"code": 6,
"Monaco": 2,
"Menlo": 2,
"Consolas": 2,
"monospace": 2,
"#d14": 2,
"#f7f7f9": 2,
"#e1e1e8": 2,
"word": 6,
"all": 10,
"wrap": 6,
"#f5f5f5": 26,
"pre.prettyprint": 2,
".pre": 2,
"scrollable": 2,
"y": 2,
"scroll": 2,
".label": 30,
".badge": 30,
"empty": 7,
"a.label": 4,
"a.badge": 4,
"#f89406": 27,
"#c67605": 4,
"inverse": 110,
"#1a1a1a": 2,
".btn": 506,
"mini": 34,
"collapse": 12,
"spacing": 3,
".table": 180,
"th": 70,
"td": 66,
"#dddddd": 16,
"caption": 18,
"colgroup": 18,
"tbody": 68,
"condensed": 4,
"bordered": 76,
"separate": 4,
"*border": 8,
"topleft": 16,
"last": 118,
"topright": 16,
"tfoot": 12,
"bottomleft": 16,
"bottomright": 16,
"striped": 13,
"nth": 4,
"odd": 4,
"#f9f9f9": 12,
"cell": 2,
"td.span1": 2,
"th.span1": 2,
"td.span2": 2,
"th.span2": 2,
"td.span3": 2,
"th.span3": 2,
"td.span4": 2,
"th.span4": 2,
"td.span5": 2,
"th.span5": 2,
"td.span6": 2,
"th.span6": 2,
"td.span7": 2,
"th.span7": 2,
"td.span8": 2,
"th.span8": 2,
"td.span9": 2,
"th.span9": 2,
"td.span10": 2,
"th.span10": 2,
"td.span11": 2,
"th.span11": 2,
"td.span12": 2,
"th.span12": 2,
"tr.success": 4,
"#dff0d8": 6,
"tr.error": 4,
"#f2dede": 6,
"tr.warning": 4,
"#fcf8e3": 6,
"tr.info": 4,
"#d9edf7": 6,
"#d0e9c6": 2,
"#ebcccc": 2,
"#faf2cc": 2,
"#c4e3f3": 2,
"form": 38,
"fieldset": 2,
"legend": 6,
"#e5e5e5": 28,
".uneditable": 80,
"#555555": 18,
"#cccccc": 18,
"inset": 132,
"transition": 36,
"linear": 204,
".2s": 16,
"o": 48,
".075": 12,
".6": 6,
"multiple": 2,
"#fcfcfc": 2,
"allowed": 4,
"placeholder": 18,
".radio": 26,
".checkbox": 26,
".radio.inline": 6,
".checkbox.inline": 6,
"medium": 2,
"large": 40,
"xlarge": 2,
"xxlarge": 2,
"append": 120,
"prepend": 82,
"input.span12": 4,
"textarea.span12": 2,
"input.span11": 4,
"textarea.span11": 2,
"input.span10": 4,
"textarea.span10": 2,
"input.span9": 4,
"textarea.span9": 2,
"input.span8": 4,
"textarea.span8": 2,
"input.span7": 4,
"textarea.span7": 2,
"input.span6": 4,
"textarea.span6": 2,
"input.span5": 4,
"textarea.span5": 2,
"input.span4": 4,
"textarea.span4": 2,
"input.span3": 4,
"textarea.span3": 2,
"input.span2": 4,
"textarea.span2": 2,
"input.span1": 4,
"textarea.span1": 2,
"disabled": 36,
"readonly": 10,
".control": 150,
"group.warning": 32,
".help": 44,
"#dbc59e": 6,
".add": 36,
"on": 36,
"group.error": 32,
"#d59392": 6,
"group.success": 32,
"#7aba7b": 6,
"group.info": 32,
"#7ab5d3": 6,
"invalid": 12,
"#ee5f5b": 18,
"#e9322d": 2,
"#f8b9b7": 6,
".form": 132,
"actions": 10,
"#595959": 2,
".dropdown": 126,
"menu": 42,
".popover": 14,
"z": 12,
"index": 14,
"toggle": 84,
".active": 86,
"#a9dba9": 2,
"#46a546": 2,
"prepend.input": 22,
"input.search": 2,
"query": 22,
".search": 22,
"*padding": 36,
"image": 187,
"gradient": 175,
"#e6e6e6": 20,
"from": 40,
"to": 75,
"repeat": 66,
"x": 30,
"filter": 57,
"progid": 48,
"DXImageTransform.Microsoft.gradient": 48,
"startColorstr": 30,
"endColorstr": 30,
"GradientType": 30,
"#bfbfbf": 4,
"*background": 36,
"enabled": 18,
"false": 18,
"#b3b3b3": 2,
".3em": 6,
".2": 12,
".05": 24,
".btn.active": 8,
".btn.disabled": 4,
"#d9d9d9": 4,
"s": 25,
".15": 24,
"default": 12,
"opacity": 15,
"alpha": 7,
"class": 26,
"primary.active": 6,
"warning.active": 6,
"danger.active": 6,
"success.active": 6,
"info.active": 6,
"inverse.active": 6,
"primary": 14,
"#006dcc": 2,
"#0044cc": 20,
"#002a80": 2,
"primary.disabled": 2,
"#003bb3": 2,
"#003399": 2,
"#faa732": 3,
"#fbb450": 16,
"#ad6704": 2,
"warning.disabled": 2,
"#df8505": 2,
"danger": 21,
"#da4f49": 2,
"#bd362f": 20,
"#802420": 2,
"danger.disabled": 2,
"#a9302a": 2,
"#942a25": 2,
"#5bb75b": 2,
"#62c462": 16,
"#51a351": 20,
"#387038": 2,
"success.disabled": 2,
"#499249": 2,
"#408140": 2,
"#49afcd": 2,
"#5bc0de": 16,
"#2f96b4": 20,
"#1f6377": 2,
"info.disabled": 2,
"#2a85a0": 2,
"#24748c": 2,
"#363636": 2,
"#444444": 10,
"#222222": 32,
"#000000": 14,
"inverse.disabled": 2,
"#151515": 12,
"#080808": 2,
"button.btn": 4,
"button.btn.btn": 6,
".btn.btn": 6,
"link": 28,
"url": 4,
"no": 2,
".icon": 288,
".nav": 308,
"pills": 28,
"submenu": 8,
"glass": 2,
"music": 2,
"envelope": 2,
"heart": 2,
"star": 4,
"user": 2,
"film": 2,
"ok": 6,
"remove": 6,
"zoom": 5,
"in": 10,
"out": 10,
"off": 4,
"signal": 2,
"cog": 2,
"trash": 2,
"home": 2,
"file": 2,
"time": 2,
"road": 2,
"download": 4,
"alt": 6,
"upload": 2,
"inbox": 2,
"play": 4,
"refresh": 2,
"lock": 2,
"flag": 2,
"headphones": 2,
"volume": 6,
"down": 12,
"up": 12,
"qrcode": 2,
"barcode": 2,
"tag": 2,
"tags": 2,
"book": 2,
"bookmark": 2,
"camera": 2,
"justify": 2,
"indent": 4,
"facetime": 2,
"picture": 2,
"pencil": 2,
"map": 2,
"marker": 2,
"tint": 2,
"edit": 2,
"share": 4,
"check": 2,
"move": 2,
"step": 4,
"backward": 6,
"fast": 4,
"pause": 2,
"stop": 32,
"forward": 6,
"eject": 2,
"chevron": 8,
"plus": 4,
"sign": 16,
"minus": 4,
"question": 2,
"screenshot": 2,
"ban": 2,
"arrow": 21,
"resize": 8,
"full": 2,
"asterisk": 2,
"exclamation": 2,
"gift": 2,
"leaf": 2,
"fire": 2,
"eye": 4,
"open": 4,
"close": 4,
"plane": 2,
"calendar": 2,
"random": 2,
"comment": 2,
"magnet": 2,
"retweet": 2,
"shopping": 2,
"cart": 2,
"folder": 4,
"hdd": 2,
"bullhorn": 2,
"bell": 2,
"certificate": 2,
"thumbs": 4,
"hand": 8,
"globe": 2,
"wrench": 2,
"tasks": 2,
"briefcase": 2,
"fullscreen": 2,
"toolbar": 8,
".btn.large": 4,
".large.dropdown": 2,
"group.open": 18,
".125": 6,
".btn.dropdown": 2,
"primary.dropdown": 2,
"warning.dropdown": 2,
"danger.dropdown": 2,
"success.dropdown": 2,
"info.dropdown": 2,
"inverse.dropdown": 2,
".caret": 70,
".dropup": 2,
".divider": 8,
"tabs": 94,
"#ddd": 38,
"stacked": 24,
"tabs.nav": 12,
"pills.nav": 4,
".dropdown.active": 4,
".open": 8,
"li.dropdown.open.active": 14,
"li.dropdown.open": 14,
".tabs": 62,
".tabbable": 8,
".tab": 8,
"below": 18,
"pane": 4,
".pill": 6,
".disabled": 22,
"*position": 2,
"*z": 2,
"#fafafa": 2,
"#f2f2f2": 22,
"#d4d4d4": 2,
"collapse.collapse": 2,
".brand": 14,
"#777777": 12,
".1": 24,
".nav.pull": 2,
"navbar": 28,
"#ededed": 2,
"navbar.active": 8,
"navbar.disabled": 4,
"bar": 21,
"absolute": 8,
"li.dropdown": 12,
"li.dropdown.active": 8,
"menu.pull": 8,
"#1b1b1b": 2,
"#111111": 18,
"#252525": 2,
"#515151": 2,
"query.focused": 2,
"#0e0e0e": 2,
"#040404": 18,
".breadcrumb": 8,
".pagination": 78,
"span": 38,
"centered": 2,
".pager": 34,
".next": 4,
".previous": 4,
".thumbnails": 12,
".thumbnail": 6,
"ease": 12,
"a.thumbnail": 4,
".caption": 2,
".alert": 34,
"#fbeed5": 2,
".close": 2,
"#d6e9c6": 2,
"#eed3d7": 2,
"#bce8f1": 2,
"@": 8,
"keyframes": 8,
"progress": 15,
"stripes": 15,
"@keyframes": 2,
".progress": 22,
"#f7f7f7": 3,
".bar": 22,
"#0e90d2": 2,
"#149bdf": 11,
"#0480be": 10,
"deg": 20,
".progress.active": 1,
"animation": 5,
"infinite": 5,
"#dd514c": 1,
"#c43c35": 5,
"danger.progress": 1,
"#5eb95e": 1,
"#57a957": 5,
"success.progress": 1,
"#4bb1cf": 1,
"#339bb9": 5,
"info.progress": 1,
"warning.progress": 1,
".hero": 3,
"unit": 3,
"letter": 1,
".media": 11,
"object": 1,
"heading": 1,
".tooltip": 7,
"visibility": 1,
".tooltip.in": 1,
".tooltip.top": 2,
".tooltip.right": 2,
".tooltip.bottom": 2,
".tooltip.left": 2,
"clip": 3,
".popover.top": 3,
".popover.right": 3,
".popover.bottom": 3,
".popover.left": 3,
"#ebebeb": 1,
".arrow": 12,
".modal": 5,
"backdrop": 2,
"backdrop.fade": 1,
"backdrop.fade.in": 1
},
"Dart": {
"class": 1,
"Point": 7,
@@ -39496,6 +40247,7 @@
"Ceylon": 50,
"CoffeeScript": 2951,
"Coq": 18259,
"CSS": 43867,
"Dart": 68,
"Delphi": 30,
"Diff": 16,
@@ -39599,6 +40351,7 @@
"Ceylon": 1,
"CoffeeScript": 9,
"Coq": 12,
"CSS": 2,
"Dart": 1,
"Delphi": 1,
"Diff": 1,
@@ -39689,5 +40442,5 @@
"Xtend": 2,
"YAML": 1
},
"md5": "a1b641b3e2c3d7f897afbcc4d8bf4282"
"md5": "98ddc204696b84bb42fd75ba9d22e0ca"
}

View File

@@ -160,7 +160,7 @@ class TestLanguage < Test::Unit::TestCase
assert_equal 'cpp', Language['C++'].search_term
assert_equal 'cfm', Language['ColdFusion'].search_term
assert_equal 'dpatch', Language['Darcs Patch'].search_term
assert_equal 'ocaml', Language['F#'].search_term
assert_equal 'fsharp' Language['F#'].search_term
assert_equal 'pot', Language['Gettext Catalog'].search_term
assert_equal 'irc', Language['IRC log'].search_term
assert_equal 'lhs', Language['Literate Haskell'].search_term