github-linguist 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,8 @@ module Linguist
37
37
  #
38
38
  # Returns an Array of lines
39
39
  def lines
40
- @lines ||= data.split("\n", -1)
40
+ # TODO: data should be required to be a String, no nils
41
+ @lines ||= data ? data.split("\n", -1) : []
41
42
  end
42
43
 
43
44
  # Internal: Is the blob a generated file?
@@ -68,9 +68,10 @@ Apex:
68
68
  primary_extension: .cls
69
69
 
70
70
  AppleScript:
71
+ type: programming
71
72
  aliases:
72
73
  - osascript
73
- primary_extension: .scpt
74
+ primary_extension: .applescript
74
75
 
75
76
  Arc:
76
77
  type: programming
@@ -4,8 +4,7 @@
4
4
  ".cls"
5
5
  ],
6
6
  "AppleScript": [
7
- ".applescript",
8
- ".scpt"
7
+ ".applescript"
9
8
  ],
10
9
  "Arduino": [
11
10
  ".ino"
@@ -258,8 +257,8 @@
258
257
  ".gemrc"
259
258
  ]
260
259
  },
261
- "tokens_total": 331500,
262
- "languages_total": 255,
260
+ "tokens_total": 333026,
261
+ "languages_total": 260,
263
262
  "tokens": {
264
263
  "Apex": {
265
264
  "/*": 15,
@@ -657,56 +656,249 @@
657
656
  "TwilioAPI.getDefaultAccount": 1
658
657
  },
659
658
  "AppleScript": {
660
- "set": 26,
661
- "windowWidth": 6,
662
- "to": 26,
663
- "windowHeight": 6,
664
- "delay": 2,
659
+ "set": 108,
660
+ "windowWidth": 3,
661
+ "to": 128,
662
+ "windowHeight": 3,
663
+ "delay": 3,
665
664
  "AppleScript": 2,
666
- "s": 2,
667
- "text": 2,
668
- "item": 4,
669
- "delimiters": 2,
670
- "tell": 28,
671
- "application": 10,
672
- "screen_width": 4,
673
- "(": 14,
665
+ "s": 3,
666
+ "text": 13,
667
+ "item": 13,
668
+ "delimiters": 1,
669
+ "tell": 40,
670
+ "application": 16,
671
+ "screen_width": 2,
672
+ "(": 89,
674
673
  "do": 4,
675
- "JavaScript": 4,
676
- "in": 4,
677
- "document": 4,
678
- ")": 14,
679
- "screen_height": 4,
680
- "end": 18,
681
- "myFrontMost": 6,
682
- "name": 2,
683
- "of": 18,
684
- "first": 2,
674
+ "JavaScript": 2,
675
+ "in": 13,
676
+ "document": 2,
677
+ ")": 88,
678
+ "screen_height": 2,
679
+ "end": 67,
680
+ "myFrontMost": 3,
681
+ "name": 8,
682
+ "of": 72,
683
+ "first": 1,
685
684
  "processes": 2,
686
- "whose": 2,
687
- "frontmost": 2,
688
- "is": 2,
689
- "true": 2,
690
- "{": 22,
691
- "desktopTop": 4,
692
- "desktopLeft": 2,
693
- "desktopRight": 2,
694
- "desktopBottom": 2,
695
- "}": 22,
685
+ "whose": 1,
686
+ "frontmost": 1,
687
+ "is": 40,
688
+ "true": 8,
689
+ "{": 32,
690
+ "desktopTop": 2,
691
+ "desktopLeft": 1,
692
+ "desktopRight": 1,
693
+ "desktopBottom": 1,
694
+ "}": 32,
696
695
  "bounds": 2,
697
- "desktop": 2,
698
- "try": 8,
699
- "process": 4,
700
- "w": 10,
701
- "h": 8,
702
- "size": 6,
703
- "drawer": 4,
704
- "window": 8,
705
- "on": 4,
706
- "error": 4,
707
- "position": 2,
708
- "-": 8,
709
- "/": 4
696
+ "desktop": 1,
697
+ "try": 10,
698
+ "process": 5,
699
+ "w": 5,
700
+ "h": 4,
701
+ "size": 5,
702
+ "drawer": 2,
703
+ "window": 5,
704
+ "on": 18,
705
+ "error": 3,
706
+ "position": 1,
707
+ "-": 57,
708
+ "/": 2,
709
+ "(*": 8,
710
+ "*)": 8,
711
+ "property": 7,
712
+ "type_list": 6,
713
+ "extension_list": 6,
714
+ "html": 2,
715
+ "not": 5,
716
+ "currently": 2,
717
+ "handled": 2,
718
+ "run": 4,
719
+ "FinderSelection": 4,
720
+ "the": 56,
721
+ "selection": 2,
722
+ "as": 27,
723
+ "alias": 8,
724
+ "list": 9,
725
+ "FS": 10,
726
+ "Ideally": 2,
727
+ "this": 2,
728
+ "could": 2,
729
+ "be": 2,
730
+ "passed": 2,
731
+ "open": 8,
732
+ "handler": 2,
733
+ "SelectionCount": 6,
734
+ "number": 6,
735
+ "count": 10,
736
+ "if": 50,
737
+ "then": 28,
738
+ "userPicksFolder": 6,
739
+ "else": 14,
740
+ "MyPath": 4,
741
+ "path": 6,
742
+ "me": 2,
743
+ "If": 2,
744
+ "I": 2,
745
+ "m": 2,
746
+ "a": 4,
747
+ "double": 2,
748
+ "clicked": 2,
749
+ "droplet": 2,
750
+ "these_items": 18,
751
+ "choose": 2,
752
+ "file": 6,
753
+ "with": 11,
754
+ "prompt": 2,
755
+ "type": 6,
756
+ "thesefiles": 2,
757
+ "item_info": 24,
758
+ "repeat": 19,
759
+ "i": 10,
760
+ "from": 9,
761
+ "this_item": 14,
762
+ "info": 4,
763
+ "for": 5,
764
+ "folder": 10,
765
+ "processFolder": 8,
766
+ "false": 9,
767
+ "and": 7,
768
+ "or": 6,
769
+ "extension": 4,
770
+ "theFilePath": 8,
771
+ "string": 17,
772
+ "thePOSIXFilePath": 8,
773
+ "POSIX": 4,
774
+ "processFile": 8,
775
+ "folders": 2,
776
+ "theFolder": 6,
777
+ "without": 2,
778
+ "invisibles": 2,
779
+ "&": 63,
780
+ "thePOSIXFileName": 6,
781
+ "terminalCommand": 6,
782
+ "convertCommand": 4,
783
+ "newFileName": 4,
784
+ "shell": 2,
785
+ "script": 2,
786
+ "need": 1,
787
+ "pass": 1,
788
+ "URL": 1,
789
+ "Terminal": 1,
790
+ "localMailboxes": 3,
791
+ "every": 3,
792
+ "mailbox": 2,
793
+ "greater": 5,
794
+ "than": 6,
795
+ "messageCountDisplay": 5,
796
+ "return": 16,
797
+ "my": 3,
798
+ "getMessageCountsForMailboxes": 4,
799
+ "everyAccount": 2,
800
+ "account": 1,
801
+ "eachAccount": 3,
802
+ "accountMailboxes": 3,
803
+ "outputMessage": 2,
804
+ "make": 3,
805
+ "new": 2,
806
+ "outgoing": 2,
807
+ "message": 2,
808
+ "properties": 2,
809
+ "content": 2,
810
+ "subject": 1,
811
+ "visible": 2,
812
+ "font": 2,
813
+ "theMailboxes": 2,
814
+ "mailboxes": 1,
815
+ "returns": 2,
816
+ "displayString": 4,
817
+ "eachMailbox": 4,
818
+ "mailboxName": 2,
819
+ "messageCount": 2,
820
+ "messages": 1,
821
+ "unreadCount": 2,
822
+ "unread": 1,
823
+ "padString": 3,
824
+ "theString": 4,
825
+ "fieldLength": 5,
826
+ "integer": 3,
827
+ "stringLength": 4,
828
+ "length": 1,
829
+ "paddedString": 5,
830
+ "character": 2,
831
+ "less": 1,
832
+ "equal": 3,
833
+ "paddingLength": 2,
834
+ "times": 1,
835
+ "space": 1,
836
+ "lowFontSize": 9,
837
+ "highFontSize": 6,
838
+ "messageText": 4,
839
+ "userInput": 4,
840
+ "display": 4,
841
+ "dialog": 4,
842
+ "default": 4,
843
+ "answer": 3,
844
+ "buttons": 3,
845
+ "button": 4,
846
+ "returned": 5,
847
+ "minimumFontSize": 4,
848
+ "newFontSize": 6,
849
+ "result": 2,
850
+ "theText": 3,
851
+ "exit": 1,
852
+ "fontList": 2,
853
+ "activate": 3,
854
+ "crazyTextMessage": 2,
855
+ "eachCharacter": 4,
856
+ "characters": 1,
857
+ "some": 1,
858
+ "random": 4,
859
+ "color": 1,
860
+ "current": 3,
861
+ "pane": 4,
862
+ "UI": 1,
863
+ "elements": 1,
864
+ "enabled": 2,
865
+ "tab": 1,
866
+ "group": 1,
867
+ "click": 1,
868
+ "radio": 1,
869
+ "get": 1,
870
+ "value": 1,
871
+ "field": 1,
872
+ "isVoiceOverRunning": 3,
873
+ "isRunning": 3,
874
+ "contains": 1,
875
+ "isVoiceOverRunningWithAppleScript": 3,
876
+ "isRunningWithAppleScript": 3,
877
+ "VoiceOver": 1,
878
+ "x": 1,
879
+ "vo": 1,
880
+ "cursor": 1,
881
+ "currentDate": 3,
882
+ "date": 1,
883
+ "amPM": 4,
884
+ "currentHour": 9,
885
+ "minutes": 2,
886
+ "<": 2,
887
+ "below": 1,
888
+ "sound": 1,
889
+ "nice": 1,
890
+ "currentMinutes": 4,
891
+ "ensure": 1,
892
+ "nn": 2,
893
+ "gets": 1,
894
+ "AM": 1,
895
+ "readjust": 1,
896
+ "hour": 1,
897
+ "time": 1,
898
+ "currentTime": 3,
899
+ "day": 1,
900
+ "output": 1,
901
+ "say": 1
710
902
  },
711
903
  "Arduino": {
712
904
  "void": 2,
@@ -26465,7 +26657,7 @@
26465
26657
  },
26466
26658
  "language_tokens": {
26467
26659
  "Apex": 4401,
26468
- "AppleScript": 352,
26660
+ "AppleScript": 1878,
26469
26661
  "Arduino": 20,
26470
26662
  "AutoHotkey": 3,
26471
26663
  "C": 29074,
@@ -26535,7 +26727,7 @@
26535
26727
  },
26536
26728
  "languages": {
26537
26729
  "Apex": 6,
26538
- "AppleScript": 2,
26730
+ "AppleScript": 7,
26539
26731
  "Arduino": 1,
26540
26732
  "AutoHotkey": 1,
26541
26733
  "C": 18,
@@ -26603,5 +26795,5 @@
26603
26795
  "XSLT": 1,
26604
26796
  "YAML": 1
26605
26797
  },
26606
- "md5": "a39ed9f3def428ee59ae9d976e19f36e"
26798
+ "md5": "e5daa0ff6e34a82348f754c1584d0040"
26607
26799
  }
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.2.0
4
+ version: 2.2.1
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-03 00:00:00.000000000 Z
12
+ date: 2012-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: charlock_holmes