intellisense-ruby 0.6.6 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intellisense-ruby (0.5.8)
4
+ intellisense-ruby (0.7.5)
5
5
  aws-sdk
6
6
  faraday (>= 0.8, < 0.10)
7
7
  faraday_middleware (>= 0.8, < 0.10)
@@ -10,24 +10,22 @@ PATH
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- aws-sdk (1.11.1)
13
+ aws-sdk (1.20.0)
14
14
  json (~> 1.4)
15
- nokogiri (>= 1.4.4)
15
+ nokogiri (>= 1.4.4, < 1.6.0)
16
16
  uuidtools (~> 2.1)
17
17
  diff-lcs (1.2.4)
18
18
  faraday (0.8.8)
19
19
  multipart-post (~> 1.2.0)
20
20
  faraday_middleware (0.9.0)
21
21
  faraday (>= 0.7.4, < 0.9)
22
- json (1.7.7)
22
+ json (1.8.1)
23
23
  metaclass (0.0.1)
24
- mini_portile (0.5.1)
25
24
  mocha (0.14.0)
26
25
  metaclass (~> 0.0.1)
27
- multi_json (1.8.0)
26
+ multi_json (1.8.2)
28
27
  multipart-post (1.2.0)
29
- nokogiri (1.6.0)
30
- mini_portile (~> 0.5.0)
28
+ nokogiri (1.5.10)
31
29
  rake (10.1.0)
32
30
  rspec (2.14.1)
33
31
  rspec-core (~> 2.14.0)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -82,7 +82,7 @@
82
82
  "file": "lib/intellisense-ruby/sqs_publisher.rb",
83
83
  "settings":
84
84
  {
85
- "buffer_size": 1214,
85
+ "buffer_size": 1187,
86
86
  "line_ending": "Unix"
87
87
  }
88
88
  },
@@ -98,7 +98,7 @@
98
98
  "file": "lib/intellisense-ruby/client.rb",
99
99
  "settings":
100
100
  {
101
- "buffer_size": 7706,
101
+ "buffer_size": 7805,
102
102
  "line_ending": "Unix"
103
103
  }
104
104
  },
@@ -114,7 +114,7 @@
114
114
  "file": "lib/intellisense-ruby/consumer.rb",
115
115
  "settings":
116
116
  {
117
- "buffer_size": 2798,
117
+ "buffer_size": 2816,
118
118
  "line_ending": "Unix"
119
119
  }
120
120
  },
@@ -143,10 +143,10 @@
143
143
  }
144
144
  },
145
145
  {
146
- "contents": "Searching 29 files for \"transport\" (case sensitive)\n\n/home/pnayak/Documents/workspace/intellisense-ruby/lib/intellisense-ruby/consumer.rb:\n 24 @batch_size = options[:batch_size] || IntellisenseRuby::Defaults::Queue::BATCH_SIZE\n 25 @on_error = options[:on_error] || Proc.new { |status, error| }\n 26: @transport = options[:transport] || IntellisenseRuby::Defaults::Request::TRANSPORT\n 27 \n 28 @current_batch = []\n ..\n 31 \n 32 @logger = options[:logger]\n 33: log('############## SENSOR initialized! with transport ' + @transport)\n 34 \n 35 end\n ..\n 59 #log(\"about to send messages \" + @current_batch)\n 60 \n 61: case @transport\n 62 when 'http'\n 63: puts 'using http transport'\n 64 req = IntellisenseRuby::Request.new\n 65 res = req.post(@secret, @current_batch)\n ..\n 69 }\n 70 when 'sqs'\n 71: puts 'using SQS transport'\n 72 sqs = IntellisenseRuby::SQS_PUBLISHER.new\n 73 sqs.send(\"test\")\n ..\n 77 else\n 78 # cannot do anything\n 79: puts 'UNKNOWN transport - error'\n 80 end\n 81 \n\n8 matches in 1 file\n",
146
+ "contents": "Searching 29 files for \"transport\" (case sensitive)\n\n/home/pnayak/Documents/workspace/intellisense-ruby/lib/intellisense-ruby/consumer.rb:\n 24 @batch_size = options[:batch_size] || IntellisenseRuby::Defaults::Queue::BATCH_SIZE\n 25 @on_error = options[:on_error] || Proc.new { |status, error| }\n 26: @transport = options[:transport] || IntellisenseRuby::Defaults::Request::TRANSPORT\n 27 \n 28 @current_batch = []\n ..\n 31 \n 32 @logger = options[:logger]\n 33: log('############## SENSOR initialized! with transport ' + @transport)\n 34 \n 35 end\n ..\n 59 #log(\"about to send messages \" + @current_batch)\n 60 \n 61: case @transport\n 62 when 'http'\n 63: puts 'using http transport'\n 64 req = IntellisenseRuby::Request.new\n 65 res = req.post(@secret, @current_batch)\n ..\n 69 }\n 70 when 'sqs'\n 71: puts 'using SQS transport'\n 72 sqs = IntellisenseRuby::SQS_PUBLISHER.new\n 73 sqs.send(\"test\")\n ..\n 77 else\n 78 # cannot do anything\n 79: puts 'UNKNOWN transport - error'\n 80 end\n 81 \n\n8 matches in 1 file\n\n\nSearching 26 files for \"transport\" (case sensitive)\n\n/home/pnayak/Documents/workspace/intellisense-ruby/intellisense-ruby.sublime-workspace:\n 144 },\n 145 {\n 146: \"contents\": \"Searching 29 files for \\\"transport\\\" (case sensitive)\\n\\n/home/pnayak/Documents/workspace/intellisense-ruby/lib/intellisense-ruby/consumer.rb:\\n 24 @batch_size = options[:batch_size] || IntellisenseRuby::Defaults::Queue::BATCH_SIZE\\n 25 @on_error = options[:on_error] || Proc.new { |status, error| }\\n 26: @transport = options[:transport] || IntellisenseRuby::Defaults::Request::TRANSPORT\\n 27 \\n 28 @current_batch = []\\n ..\\n 31 \\n 32 @logger = options[:logger]\\n 33: log('############## SENSOR initialized! with transport ' + @transport)\\n 34 \\n 35 end\\n ..\\n 59 #log(\\\"about to send messages \\\" + @current_batch)\\n 60 \\n 61: case @transport\\n 62 when 'http'\\n 63: puts 'using http transport'\\n 64 req = IntellisenseRuby::Request.new\\n 65 res = req.post(@secret, @current_batch)\\n ..\\n 69 }\\n 70 when 'sqs'\\n 71: puts 'using SQS transport'\\n 72 sqs = IntellisenseRuby::SQS_PUBLISHER.new\\n 73 sqs.send(\\\"test\\\")\\n ..\\n 77 else\\n 78 # cannot do anything\\n 79: puts 'UNKNOWN transport - error'\\n 80 end\\n 81 \\n\\n8 matches in 1 file\\n\",\n 147 \"settings\":\n 148 {\n ...\n 425 \"find_history\":\n 426 [\n 427: \"transport\",\n 428 \"check_api_key\",\n 429 \"Analytics\",\n\n/home/pnayak/Documents/workspace/intellisense-ruby/lib/intellisense-ruby/consumer.rb:\n 24 @batch_size = options[:batch_size] || IntellisenseRuby::Defaults::Queue::BATCH_SIZE\n 25 @on_error = options[:on_error] || Proc.new { |status, error| }\n 26: @transport = options[:transport] || IntellisenseRuby::Defaults::Request::TRANSPORT\n 27 \n 28 @current_batch = []\n ..\n 31 \n 32 @logger = options[:logger]\n 33: log('DEBUG ############## SENSOR initialized! with transport ' + @transport)\n 34 \n 35 end\n ..\n 59 #log(\"about to send messages \" + @current_batch)\n 60 \n 61: case @transport\n 62 when 'http'\n 63: puts 'using http transport'\n 64 req = IntellisenseRuby::Request.new\n 65 res = req.post(@secret, @current_batch)\n ..\n 69 }\n 70 when 'sqs'\n 71: log('DEBUG ############## SENSOR using SQS transport to send ' + @current_batch.to_s)\n 72 sqs = IntellisenseRuby::SQS_Publisher.new logger: @logger\n 73 sqs.send_message(@current_batch)\n ..\n 77 else\n 78 # cannot do anything\n 79: puts 'UNKNOWN transport - error'\n 80 end\n 81 \n\n18 matches across 2 files\n",
147
147
  "settings":
148
148
  {
149
- "buffer_size": 1221,
149
+ "buffer_size": 4097,
150
150
  "line_ending": "Unix",
151
151
  "name": "Find Results",
152
152
  "scratch": true
@@ -404,7 +404,7 @@
404
404
  },
405
405
  "find_in_files":
406
406
  {
407
- "height": 0.0,
407
+ "height": 95.0,
408
408
  "where_history":
409
409
  [
410
410
  "/home/pnayak/Documents/workspace/intellisense-ruby",
@@ -424,6 +424,9 @@
424
424
  "case_sensitive": true,
425
425
  "find_history":
426
426
  [
427
+ "transport",
428
+ "secret",
429
+ "enqueue",
427
430
  "transport",
428
431
  "check_api_key",
429
432
  "Analytics",
@@ -548,10 +551,7 @@
548
551
  "currentItemUuid",
549
552
  "currentItemUUID",
550
553
  "self.contentId ",
551
- "contentId",
552
- "addTag",
553
- "userutil",
554
- "Tag"
554
+ "contentId"
555
555
  ],
556
556
  "highlight": true,
557
557
  "in_selection": false,
@@ -600,7 +600,7 @@
600
600
  "groups":
601
601
  [
602
602
  {
603
- "selected": 1,
603
+ "selected": 5,
604
604
  "sheets":
605
605
  [
606
606
  {
@@ -725,15 +725,15 @@
725
725
  "file": "lib/intellisense-ruby/sqs_publisher.rb",
726
726
  "settings":
727
727
  {
728
- "buffer_size": 1214,
728
+ "buffer_size": 1187,
729
729
  "regions":
730
730
  {
731
731
  },
732
732
  "selection":
733
733
  [
734
734
  [
735
- 120,
736
- 120
735
+ 213,
736
+ 213
737
737
  ]
738
738
  ],
739
739
  "settings":
@@ -744,6 +744,109 @@
744
744
  "README",
745
745
  "FIXME"
746
746
  ],
747
+ "codeintel": true,
748
+ "codeintel_config":
749
+ {
750
+ "JavaScript":
751
+ {
752
+ "codeintel_max_recursive_dir_depth": 2,
753
+ "codeintel_scan_files_in_project": false,
754
+ "javascriptExtraPaths":
755
+ [
756
+ ]
757
+ },
758
+ "PHP":
759
+ {
760
+ "codeintel_max_recursive_dir_depth": 5,
761
+ "codeintel_scan_files_in_project": false,
762
+ "phpExtraPaths":
763
+ [
764
+ ]
765
+ },
766
+ "Python":
767
+ {
768
+ "env":
769
+ {
770
+ }
771
+ }
772
+ },
773
+ "codeintel_enabled_languages":
774
+ [
775
+ "JavaScript",
776
+ "Mason",
777
+ "XBL",
778
+ "XUL",
779
+ "RHTML",
780
+ "SCSS",
781
+ "Python",
782
+ "HTML",
783
+ "Ruby",
784
+ "Python3",
785
+ "XML",
786
+ "Sass",
787
+ "XSLT",
788
+ "Django",
789
+ "HTML5",
790
+ "Perl",
791
+ "CSS",
792
+ "Twig",
793
+ "Less",
794
+ "Smarty",
795
+ "Node.js",
796
+ "Tcl",
797
+ "TemplateToolkit",
798
+ "PHP"
799
+ ],
800
+ "codeintel_live": true,
801
+ "codeintel_live_enabled_languages":
802
+ [
803
+ "JavaScript",
804
+ "Mason",
805
+ "XBL",
806
+ "XUL",
807
+ "RHTML",
808
+ "SCSS",
809
+ "Python",
810
+ "HTML",
811
+ "Ruby",
812
+ "Python3",
813
+ "XML",
814
+ "Sass",
815
+ "XSLT",
816
+ "Django",
817
+ "HTML5",
818
+ "Perl",
819
+ "CSS",
820
+ "Twig",
821
+ "Less",
822
+ "Smarty",
823
+ "Node.js",
824
+ "Tcl",
825
+ "TemplateToolkit",
826
+ "PHP"
827
+ ],
828
+ "codeintel_max_recursive_dir_depth": 10,
829
+ "codeintel_scan_exclude_dir":
830
+ {
831
+ "JavaScript":
832
+ [
833
+ "/build/",
834
+ "/min/"
835
+ ]
836
+ },
837
+ "codeintel_scan_files_in_project": true,
838
+ "codeintel_selected_catalogs":
839
+ [
840
+ "PyWin32",
841
+ "jQuery",
842
+ "Rails"
843
+ ],
844
+ "codeintel_snippets": true,
845
+ "codeintel_syntax_map":
846
+ {
847
+ "Python Django": "Python"
848
+ },
849
+ "codeintel_tooltips": "popup",
747
850
  "csslint_options":
748
851
  {
749
852
  "adjoining-classes": "warning",
@@ -805,6 +908,7 @@
805
908
  [
806
909
  ],
807
910
  "pyflakes_ignore_import_*": true,
911
+ "sublime_auto_complete": true,
808
912
  "sublimelinter": true,
809
913
  "sublimelinter_delay": 2,
810
914
  "sublimelinter_disable":
@@ -832,7 +936,7 @@
832
936
  "translate_tabs_to_spaces": true
833
937
  },
834
938
  "translation.x": 0.0,
835
- "translation.y": 102.0,
939
+ "translation.y": 0.0,
836
940
  "zoom_level": 1.0
837
941
  },
838
942
  "type": "text"
@@ -959,15 +1063,15 @@
959
1063
  "file": "lib/intellisense-ruby/client.rb",
960
1064
  "settings":
961
1065
  {
962
- "buffer_size": 7706,
1066
+ "buffer_size": 7805,
963
1067
  "regions":
964
1068
  {
965
1069
  },
966
1070
  "selection":
967
1071
  [
968
1072
  [
969
- 2522,
970
- 2522
1073
+ 766,
1074
+ 766
971
1075
  ]
972
1076
  ],
973
1077
  "settings":
@@ -1170,7 +1274,7 @@
1170
1274
  "translate_tabs_to_spaces": true
1171
1275
  },
1172
1276
  "translation.x": 0.0,
1173
- "translation.y": 1122.0,
1277
+ "translation.y": 147.0,
1174
1278
  "zoom_level": 1.0
1175
1279
  },
1176
1280
  "type": "text"
@@ -1297,15 +1401,15 @@
1297
1401
  "file": "lib/intellisense-ruby/consumer.rb",
1298
1402
  "settings":
1299
1403
  {
1300
- "buffer_size": 2798,
1404
+ "buffer_size": 2816,
1301
1405
  "regions":
1302
1406
  {
1303
1407
  },
1304
1408
  "selection":
1305
1409
  [
1306
1410
  [
1307
- 2146,
1308
- 2146
1411
+ 2199,
1412
+ 2199
1309
1413
  ]
1310
1414
  ],
1311
1415
  "settings":
@@ -1316,6 +1420,109 @@
1316
1420
  "README",
1317
1421
  "FIXME"
1318
1422
  ],
1423
+ "codeintel": true,
1424
+ "codeintel_config":
1425
+ {
1426
+ "JavaScript":
1427
+ {
1428
+ "codeintel_max_recursive_dir_depth": 2,
1429
+ "codeintel_scan_files_in_project": false,
1430
+ "javascriptExtraPaths":
1431
+ [
1432
+ ]
1433
+ },
1434
+ "PHP":
1435
+ {
1436
+ "codeintel_max_recursive_dir_depth": 5,
1437
+ "codeintel_scan_files_in_project": false,
1438
+ "phpExtraPaths":
1439
+ [
1440
+ ]
1441
+ },
1442
+ "Python":
1443
+ {
1444
+ "env":
1445
+ {
1446
+ }
1447
+ }
1448
+ },
1449
+ "codeintel_enabled_languages":
1450
+ [
1451
+ "JavaScript",
1452
+ "Mason",
1453
+ "XBL",
1454
+ "XUL",
1455
+ "RHTML",
1456
+ "SCSS",
1457
+ "Python",
1458
+ "HTML",
1459
+ "Ruby",
1460
+ "Python3",
1461
+ "XML",
1462
+ "Sass",
1463
+ "XSLT",
1464
+ "Django",
1465
+ "HTML5",
1466
+ "Perl",
1467
+ "CSS",
1468
+ "Twig",
1469
+ "Less",
1470
+ "Smarty",
1471
+ "Node.js",
1472
+ "Tcl",
1473
+ "TemplateToolkit",
1474
+ "PHP"
1475
+ ],
1476
+ "codeintel_live": true,
1477
+ "codeintel_live_enabled_languages":
1478
+ [
1479
+ "JavaScript",
1480
+ "Mason",
1481
+ "XBL",
1482
+ "XUL",
1483
+ "RHTML",
1484
+ "SCSS",
1485
+ "Python",
1486
+ "HTML",
1487
+ "Ruby",
1488
+ "Python3",
1489
+ "XML",
1490
+ "Sass",
1491
+ "XSLT",
1492
+ "Django",
1493
+ "HTML5",
1494
+ "Perl",
1495
+ "CSS",
1496
+ "Twig",
1497
+ "Less",
1498
+ "Smarty",
1499
+ "Node.js",
1500
+ "Tcl",
1501
+ "TemplateToolkit",
1502
+ "PHP"
1503
+ ],
1504
+ "codeintel_max_recursive_dir_depth": 10,
1505
+ "codeintel_scan_exclude_dir":
1506
+ {
1507
+ "JavaScript":
1508
+ [
1509
+ "/build/",
1510
+ "/min/"
1511
+ ]
1512
+ },
1513
+ "codeintel_scan_files_in_project": true,
1514
+ "codeintel_selected_catalogs":
1515
+ [
1516
+ "PyWin32",
1517
+ "jQuery",
1518
+ "Rails"
1519
+ ],
1520
+ "codeintel_snippets": true,
1521
+ "codeintel_syntax_map":
1522
+ {
1523
+ "Python Django": "Python"
1524
+ },
1525
+ "codeintel_tooltips": "popup",
1319
1526
  "csslint_options":
1320
1527
  {
1321
1528
  "adjoining-classes": "warning",
@@ -1377,6 +1584,7 @@
1377
1584
  [
1378
1585
  ],
1379
1586
  "pyflakes_ignore_import_*": true,
1587
+ "sublime_auto_complete": true,
1380
1588
  "sublimelinter": true,
1381
1589
  "sublimelinter_delay": 2,
1382
1590
  "sublimelinter_disable":
@@ -1404,7 +1612,7 @@
1404
1612
  "translate_tabs_to_spaces": true
1405
1613
  },
1406
1614
  "translation.x": 0.0,
1407
- "translation.y": 969.0,
1615
+ "translation.y": 1282.0,
1408
1616
  "zoom_level": 1.0
1409
1617
  },
1410
1618
  "type": "text"
@@ -1667,6 +1875,109 @@
1667
1875
  "README",
1668
1876
  "FIXME"
1669
1877
  ],
1878
+ "codeintel": true,
1879
+ "codeintel_config":
1880
+ {
1881
+ "JavaScript":
1882
+ {
1883
+ "codeintel_max_recursive_dir_depth": 2,
1884
+ "codeintel_scan_files_in_project": false,
1885
+ "javascriptExtraPaths":
1886
+ [
1887
+ ]
1888
+ },
1889
+ "PHP":
1890
+ {
1891
+ "codeintel_max_recursive_dir_depth": 5,
1892
+ "codeintel_scan_files_in_project": false,
1893
+ "phpExtraPaths":
1894
+ [
1895
+ ]
1896
+ },
1897
+ "Python":
1898
+ {
1899
+ "env":
1900
+ {
1901
+ }
1902
+ }
1903
+ },
1904
+ "codeintel_enabled_languages":
1905
+ [
1906
+ "JavaScript",
1907
+ "Mason",
1908
+ "XBL",
1909
+ "XUL",
1910
+ "RHTML",
1911
+ "SCSS",
1912
+ "Python",
1913
+ "HTML",
1914
+ "Ruby",
1915
+ "Python3",
1916
+ "XML",
1917
+ "Sass",
1918
+ "XSLT",
1919
+ "Django",
1920
+ "HTML5",
1921
+ "Perl",
1922
+ "CSS",
1923
+ "Twig",
1924
+ "Less",
1925
+ "Smarty",
1926
+ "Node.js",
1927
+ "Tcl",
1928
+ "TemplateToolkit",
1929
+ "PHP"
1930
+ ],
1931
+ "codeintel_live": true,
1932
+ "codeintel_live_enabled_languages":
1933
+ [
1934
+ "JavaScript",
1935
+ "Mason",
1936
+ "XBL",
1937
+ "XUL",
1938
+ "RHTML",
1939
+ "SCSS",
1940
+ "Python",
1941
+ "HTML",
1942
+ "Ruby",
1943
+ "Python3",
1944
+ "XML",
1945
+ "Sass",
1946
+ "XSLT",
1947
+ "Django",
1948
+ "HTML5",
1949
+ "Perl",
1950
+ "CSS",
1951
+ "Twig",
1952
+ "Less",
1953
+ "Smarty",
1954
+ "Node.js",
1955
+ "Tcl",
1956
+ "TemplateToolkit",
1957
+ "PHP"
1958
+ ],
1959
+ "codeintel_max_recursive_dir_depth": 10,
1960
+ "codeintel_scan_exclude_dir":
1961
+ {
1962
+ "JavaScript":
1963
+ [
1964
+ "/build/",
1965
+ "/min/"
1966
+ ]
1967
+ },
1968
+ "codeintel_scan_files_in_project": true,
1969
+ "codeintel_selected_catalogs":
1970
+ [
1971
+ "PyWin32",
1972
+ "jQuery",
1973
+ "Rails"
1974
+ ],
1975
+ "codeintel_snippets": true,
1976
+ "codeintel_syntax_map":
1977
+ {
1978
+ "Python Django": "Python"
1979
+ },
1980
+ "codeintel_tooltips": "popup",
1670
1981
  "csslint_options":
1671
1982
  {
1672
1983
  "adjoining-classes": "warning",
@@ -1728,6 +2039,7 @@
1728
2039
  [
1729
2040
  ],
1730
2041
  "pyflakes_ignore_import_*": true,
2042
+ "sublime_auto_complete": true,
1731
2043
  "sublimelinter": true,
1732
2044
  "sublimelinter_delay": 2,
1733
2045
  "sublimelinter_disable":
@@ -1762,7 +2074,7 @@
1762
2074
  "buffer": 9,
1763
2075
  "settings":
1764
2076
  {
1765
- "buffer_size": 1221,
2077
+ "buffer_size": 4097,
1766
2078
  "regions":
1767
2079
  {
1768
2080
  "match":
@@ -1801,6 +2113,78 @@
1801
2113
  [
1802
2114
  1156,
1803
2115
  1165
2116
+ ],
2117
+ [
2118
+ 1435,
2119
+ 1444
2120
+ ],
2121
+ [
2122
+ 1743,
2123
+ 1752
2124
+ ],
2125
+ [
2126
+ 1764,
2127
+ 1773
2128
+ ],
2129
+ [
2130
+ 1984,
2131
+ 1993
2132
+ ],
2133
+ [
2134
+ 1999,
2135
+ 2008
2136
+ ],
2137
+ [
2138
+ 2136,
2139
+ 2145
2140
+ ],
2141
+ [
2142
+ 2205,
2143
+ 2214
2144
+ ],
2145
+ [
2146
+ 2406,
2147
+ 2415
2148
+ ],
2149
+ [
2150
+ 2603,
2151
+ 2612
2152
+ ],
2153
+ [
2154
+ 2763,
2155
+ 2772
2156
+ ],
2157
+ [
2158
+ 3099,
2159
+ 3108
2160
+ ],
2161
+ [
2162
+ 3120,
2163
+ 3129
2164
+ ],
2165
+ [
2166
+ 3340,
2167
+ 3349
2168
+ ],
2169
+ [
2170
+ 3355,
2171
+ 3364
2172
+ ],
2173
+ [
2174
+ 3484,
2175
+ 3493
2176
+ ],
2177
+ [
2178
+ 3551,
2179
+ 3560
2180
+ ],
2181
+ [
2182
+ 3773,
2183
+ 3782
2184
+ ],
2185
+ [
2186
+ 4026,
2187
+ 4035
1804
2188
  ]
1805
2189
  ],
1806
2190
  "scope": ""
@@ -1809,8 +2193,8 @@
1809
2193
  "selection":
1810
2194
  [
1811
2195
  [
1812
- 333,
1813
- 333
2196
+ 1223,
2197
+ 1223
1814
2198
  ]
1815
2199
  ],
1816
2200
  "settings":
@@ -1821,6 +2205,109 @@
1821
2205
  "README",
1822
2206
  "FIXME"
1823
2207
  ],
2208
+ "codeintel": true,
2209
+ "codeintel_config":
2210
+ {
2211
+ "JavaScript":
2212
+ {
2213
+ "codeintel_max_recursive_dir_depth": 2,
2214
+ "codeintel_scan_files_in_project": false,
2215
+ "javascriptExtraPaths":
2216
+ [
2217
+ ]
2218
+ },
2219
+ "PHP":
2220
+ {
2221
+ "codeintel_max_recursive_dir_depth": 5,
2222
+ "codeintel_scan_files_in_project": false,
2223
+ "phpExtraPaths":
2224
+ [
2225
+ ]
2226
+ },
2227
+ "Python":
2228
+ {
2229
+ "env":
2230
+ {
2231
+ }
2232
+ }
2233
+ },
2234
+ "codeintel_enabled_languages":
2235
+ [
2236
+ "JavaScript",
2237
+ "Mason",
2238
+ "XBL",
2239
+ "XUL",
2240
+ "RHTML",
2241
+ "SCSS",
2242
+ "Python",
2243
+ "HTML",
2244
+ "Ruby",
2245
+ "Python3",
2246
+ "XML",
2247
+ "Sass",
2248
+ "XSLT",
2249
+ "Django",
2250
+ "HTML5",
2251
+ "Perl",
2252
+ "CSS",
2253
+ "Twig",
2254
+ "Less",
2255
+ "Smarty",
2256
+ "Node.js",
2257
+ "Tcl",
2258
+ "TemplateToolkit",
2259
+ "PHP"
2260
+ ],
2261
+ "codeintel_live": true,
2262
+ "codeintel_live_enabled_languages":
2263
+ [
2264
+ "JavaScript",
2265
+ "Mason",
2266
+ "XBL",
2267
+ "XUL",
2268
+ "RHTML",
2269
+ "SCSS",
2270
+ "Python",
2271
+ "HTML",
2272
+ "Ruby",
2273
+ "Python3",
2274
+ "XML",
2275
+ "Sass",
2276
+ "XSLT",
2277
+ "Django",
2278
+ "HTML5",
2279
+ "Perl",
2280
+ "CSS",
2281
+ "Twig",
2282
+ "Less",
2283
+ "Smarty",
2284
+ "Node.js",
2285
+ "Tcl",
2286
+ "TemplateToolkit",
2287
+ "PHP"
2288
+ ],
2289
+ "codeintel_max_recursive_dir_depth": 10,
2290
+ "codeintel_scan_exclude_dir":
2291
+ {
2292
+ "JavaScript":
2293
+ [
2294
+ "/build/",
2295
+ "/min/"
2296
+ ]
2297
+ },
2298
+ "codeintel_scan_files_in_project": true,
2299
+ "codeintel_selected_catalogs":
2300
+ [
2301
+ "PyWin32",
2302
+ "jQuery",
2303
+ "Rails"
2304
+ ],
2305
+ "codeintel_snippets": true,
2306
+ "codeintel_syntax_map":
2307
+ {
2308
+ "Python Django": "Python"
2309
+ },
2310
+ "codeintel_tooltips": "popup",
1824
2311
  "csslint_options":
1825
2312
  {
1826
2313
  "adjoining-classes": "warning",
@@ -1873,7 +2360,7 @@
1873
2360
  "trailing": true,
1874
2361
  "wsh": true
1875
2362
  },
1876
- "output_tag": 1,
2363
+ "output_tag": 2,
1877
2364
  "pep8": true,
1878
2365
  "pep8_ignore":
1879
2366
  [
@@ -1888,6 +2375,7 @@
1888
2375
  "result_file_regex": "^([A-Za-z\\\\/<].*):$",
1889
2376
  "result_line_regex": "^ +([0-9]+):",
1890
2377
  "scroll_past_end": true,
2378
+ "sublime_auto_complete": true,
1891
2379
  "sublimelinter": true,
1892
2380
  "sublimelinter_delay": 2,
1893
2381
  "sublimelinter_disable":
@@ -1913,7 +2401,7 @@
1913
2401
  "syntax": "Packages/Default/Find Results.hidden-tmLanguage"
1914
2402
  },
1915
2403
  "translation.x": 0.0,
1916
- "translation.y": 0.0,
2404
+ "translation.y": 666.0,
1917
2405
  "zoom_level": 1.0
1918
2406
  },
1919
2407
  "type": "text"
@@ -28,7 +28,7 @@ module IntellisenseRuby
28
28
  @thread = Thread.new { @consumer.run }
29
29
 
30
30
  @logger = options[:logger]
31
- log('DEBUG: ############## SENSOR initialized!')
31
+ log('intellisense-ruby: SENSOR initialized!')
32
32
 
33
33
  end
34
34
 
@@ -43,7 +43,7 @@ module IntellisenseRuby
43
43
  #
44
44
  def describe(entity)
45
45
 
46
- log('DEBUG: ############## describing entity' + entity.to_s)
46
+ log("intellisense-ruby: describing entity #{entity.to_s}")
47
47
 
48
48
  check_api_key
49
49
 
@@ -83,7 +83,7 @@ module IntellisenseRuby
83
83
  #
84
84
  def track(learning_event)
85
85
 
86
- log('DEBUG: ############## recording learning event!')
86
+ log("intellisense-ruby: recording learning event - #{learning_event.to_s}")
87
87
 
88
88
  check_api_key
89
89
 
@@ -31,7 +31,7 @@ module IntellisenseRuby
31
31
  @mutex = Mutex.new
32
32
 
33
33
  @logger = options[:logger]
34
- log('DEBUG ############## SENSOR initialized! with transport ' + @transport)
34
+ log('intellisense-ruby: SENSOR initialized! with transport ' + @transport)
35
35
 
36
36
  end
37
37
 
@@ -61,7 +61,7 @@ module IntellisenseRuby
61
61
 
62
62
  case @transport
63
63
  when 'http'
64
- puts 'using http transport'
64
+ log("intellisense-ruby: SENSOR using HTTP transport to send #{@current_batch.to_s}")
65
65
  req = IntellisenseRuby::Request.new
66
66
  res = req.post(@secret, @current_batch)
67
67
  @on_error.call(res.status, res.error) unless res.status == 200
@@ -69,7 +69,7 @@ module IntellisenseRuby
69
69
  @current_batch = []
70
70
  }
71
71
  when 'sqs'
72
- log('DEBUG ############## SENSOR using SQS transport to send ' + @current_batch.to_s)
72
+ log("intellisense-ruby: SENSOR using SQS transport to send #{@current_batch.to_s}")
73
73
  sqs = IntellisenseRuby::SQS_Publisher.new @options
74
74
  sqs.send_message(@current_batch)
75
75
  @mutex.synchronize {
@@ -77,7 +77,7 @@ module IntellisenseRuby
77
77
  }
78
78
  else
79
79
  # cannot do anything
80
- puts 'UNKNOWN transport - error'
80
+ log_error('intellisense-ruby: SENSOR UNKNOWN transport - error...')
81
81
  end
82
82
 
83
83
  end
@@ -103,5 +103,13 @@ module IntellisenseRuby
103
103
  end
104
104
  end
105
105
 
106
+ def log_error(message)
107
+ if !@logger.nil?
108
+ @logger.debug(message)
109
+ else
110
+ puts message
111
+ end
112
+ end
113
+
106
114
  end
107
115
  end
@@ -7,6 +7,8 @@ module IntellisenseRuby
7
7
 
8
8
  class SQS_Publisher
9
9
 
10
+ attr_accessor :sqs_queue
11
+
10
12
  def initialize(options = {})
11
13
 
12
14
  @sqs = AWS::SQS.new(
@@ -16,25 +18,30 @@ module IntellisenseRuby
16
18
  @sqs_queue = @sqs.queues[options[:warehouse_queue_url]]
17
19
 
18
20
  @logger = options[:logger]
19
- log('DEBUG ############## SQS_Publisher created! with queue ' + @sqs_queue.to_s)
20
21
 
21
- #queue_urls = @sqs.queues.collect(&:url)
22
- #queue = @sqs.queues[queue_urls[0]]
23
- #pp queue
24
- # msg = queue.send_message("TEST")
25
- # puts "Sent message: #{msg.id}"
22
+ begin
23
+ @sqs_queue.arn
24
+ log_info("intellisense-ruby: SQS_Publisher created! with queue #{@sqs_queue.url}")
25
+ rescue => ex
26
+ log_error("intellisense-ruby: SQS_Publisher creation FAILED... messages will not be sent due to: #{ex.class.name}")
27
+ @sqs_queue = nil
28
+ end
26
29
 
27
30
  end
28
31
 
29
32
  def send_message(message = {})
30
33
 
31
- return false unless @sqs_queue
32
-
33
- log('DEBUG ############## SQS_Publisher created! sending message ' + message.to_s)
34
+ if @sqs_queue.nil?
35
+ log_error("intellisense-ruby: SENSOR FAILED to send message to SQS: #{message}")
36
+ return false
37
+ end
34
38
 
35
39
  val = message.to_s
36
40
  msg = @sqs_queue.send_message(val)
37
- puts "Sent message: #{msg.id}"
41
+
42
+ log_info("intellisense-ruby: SQS_Publisher - Sent message: #{msg.id}")
43
+
44
+ return true
38
45
 
39
46
  end
40
47
 
@@ -48,6 +55,24 @@ module IntellisenseRuby
48
55
  end
49
56
  end
50
57
 
58
+ # private: log the requested message
59
+ def log_info(message)
60
+ if !@logger.nil?
61
+ @logger.info(message)
62
+ else
63
+ puts message
64
+ end
65
+ end
66
+
67
+ # private: log the requested message
68
+ def log_error(message)
69
+ if !@logger.nil?
70
+ @logger.error(message)
71
+ else
72
+ puts message
73
+ end
74
+ end
75
+
51
76
  end
52
77
 
53
78
  end
@@ -1,3 +1,3 @@
1
1
  module IntellisenseRuby
2
- VERSION = '0.6.6'
2
+ VERSION = '0.7.5'
3
3
  end
@@ -8,19 +8,32 @@ describe IntellisenseRuby::SQS_Publisher do
8
8
 
9
9
  describe '#init' do
10
10
 
11
- it 'should initialize correctly' do
11
+ it 'should not initialize correctly without valid credentials' do
12
12
  sqs_publisher = IntellisenseRuby::SQS_Publisher.new
13
+ puts sqs_publisher.sqs_queue
14
+ expect(sqs_publisher.sqs_queue).to eq(nil)
13
15
  end
14
16
 
15
17
  end
16
18
 
17
19
  describe '#send_message' do
18
20
 
19
- it 'should send correctly' do
21
+ it 'should NOT send without valid credentials' do
20
22
  #AWS::SQS::Queue.any_instance.stubs(:send_message).returns('STUBBED send_message')
21
- sqs_publisher = IntellisenseRuby::SQS_Publisher.new
22
23
  #sqs_publisher.stubs(:send_message).returns('STUBBED send_message')
23
- puts sqs_publisher.send_message(value: 'test')
24
+ sqs_publisher = IntellisenseRuby::SQS_Publisher.new
25
+ expect(sqs_publisher.send_message(value: 'test')).to eq(false)
26
+ end
27
+
28
+ end
29
+
30
+ describe '#send_message' do
31
+
32
+ it 'should send with valid credentials' do
33
+ # AWS::SQS::Queue.any_instance.stubs(:send_message).returns('STUBBED send_message')
34
+ # sqs_publisher.stubs(:send_message).returns('STUBBED send_message')
35
+ # sqs_publisher = IntellisenseRuby::SQS_Publisher.new
36
+ # expect(sqs_publisher.send_message(value: 'test')).to eq(false)
24
37
  end
25
38
 
26
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intellisense-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.7.5
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: 2013-12-04 00:00:00.000000000 Z
12
+ date: 2013-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -150,18 +150,25 @@ files:
150
150
  - lib/intellisense-ruby/consumer.rb
151
151
  - lib/intellisense-ruby/client.rb
152
152
  - lib/intellisense-ruby/defaults.rb
153
+ - intellisense-ruby-0.7.4.gem
154
+ - intellisense-ruby-0.7.3.gem
153
155
  - intellisense-ruby.sublime-project
156
+ - intellisense-ruby-0.6.6.gem
157
+ - intellisense-ruby-0.6.8.gem
158
+ - intellisense-ruby-0.7.2.gem
154
159
  - intellisense-ruby.sublime-workspace
155
160
  - README.md
156
161
  - Gemfile
157
162
  - Gemfile.lock
158
163
  - intellisense-ruby.gemspec
159
164
  - Rakefile
165
+ - intellisense-ruby-0.7.0.gem
160
166
  - spec/consumer_spec.rb
161
167
  - spec/module_spec.rb
162
168
  - spec/spec_helper.rb
163
169
  - spec/sqs_publisher_spec.rb
164
170
  - spec/client_spec.rb
171
+ - intellisense-ruby-0.6.7.gem
165
172
  homepage: https://github.com/pnayak/intellisense-ruby.git
166
173
  licenses: []
167
174
  post_install_message: