watson-ruby 1.6.0 → 1.6.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/watson/asana.rb +24 -23
- data/lib/watson/config.rb +0 -4
- data/lib/watson/parser.rb +6 -1
- data/lib/watson/version.rb +1 -1
- data/spec/parser_spec.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c34c96ffee2121472d23d7a52d7e2d18e3e8ec2
|
4
|
+
data.tar.gz: 3ff0b2e4488f44809386da142c524c3b92102e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c195675726ac8893b28dca39680622bcf6aa817b94139ea6488599ce4dffccf353b58ebf7198303a8f4621fdfe8f9f29c9dc2e0c31f48a020cfdf74df219330e
|
7
|
+
data.tar.gz: 9fc583eec772f5471e69be16edeca2db5ae4fec5de638acfd6aa6bcb46c45d858047ed262c876b92117f15b6c81efdbb71f314c9660cbd5ae5efba2d4ff996a6
|
data/Gemfile.lock
CHANGED
data/lib/watson/asana.rb
CHANGED
@@ -417,34 +417,35 @@ module Watson
|
|
417
417
|
|
418
418
|
end
|
419
419
|
|
420
|
-
|
421
|
-
|
422
|
-
|
420
|
+
# Unused method, however, could be useful in the future
|
421
|
+
############################################################
|
422
|
+
## Return full record for a particular task
|
423
|
+
#def get_task_record(_api_key, task_id)
|
423
424
|
|
424
|
-
|
425
|
+
# debug_print "#{ self.class } : #{ __method__ }\n"
|
425
426
|
|
426
|
-
|
427
|
+
# task_url = "#{ @end_point }/tasks/#{ task_id }"
|
427
428
|
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
429
|
+
# opts = {
|
430
|
+
# :url => task_url,
|
431
|
+
# :ssl => true,
|
432
|
+
# :method => "GET",
|
433
|
+
# :basic_auth => [_api_key, ""],
|
434
|
+
# :verbose => false
|
435
|
+
# }
|
435
436
|
|
436
|
-
|
437
|
+
# _json, _resp = Watson::Remote.http_call(opts)
|
437
438
|
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
439
|
+
# if _resp.code != "200"
|
440
|
+
# @formatter.print_status "x", RED
|
441
|
+
# print BOLD + "Unable to get task, API key may be invalid\n" + RESET
|
442
|
+
# print " Consider running --remote (-r) option to regenerate key\n\n"
|
443
|
+
# print " Status: #{ _resp.code } - #{ _resp.message }\n"
|
444
|
+
# return false
|
445
|
+
# end
|
445
446
|
|
446
|
-
|
447
|
-
end
|
447
|
+
# _json["data"]
|
448
|
+
#end
|
448
449
|
|
449
450
|
###########################################################
|
450
451
|
# Get project id given project and work space name
|
@@ -616,4 +617,4 @@ module Watson
|
|
616
617
|
|
617
618
|
end
|
618
619
|
|
619
|
-
end
|
620
|
+
end
|
data/lib/watson/config.rb
CHANGED
data/lib/watson/parser.rb
CHANGED
@@ -369,8 +369,10 @@ module Watson
|
|
369
369
|
|
370
370
|
|
371
371
|
_ext = { '.cpp' => ['//', '/*'], # C++
|
372
|
+
'.cxx' => ['//', '/*'],
|
372
373
|
'.cc' => ['//', '/*'],
|
373
374
|
'.hpp' => ['//', '/*'],
|
375
|
+
'.hxx' => ['//', '/*'],
|
374
376
|
'.c' => ['//', '/*'], # C
|
375
377
|
'.h' => ['//', '/*'],
|
376
378
|
'.java' => ['//', '/*', '/**'], # Java
|
@@ -404,7 +406,10 @@ module Watson
|
|
404
406
|
'.vim' => ['"'], # VimL
|
405
407
|
'.md' => ['<!--'], # Markdown
|
406
408
|
'.html' => ['<!--'], # HTML
|
407
|
-
'.el' => [';']
|
409
|
+
'.el' => [';'], # Emacslisp
|
410
|
+
'.sqf' => ['//','/*'], # SQF
|
411
|
+
'.sqs' => [';'], # SQS
|
412
|
+
'.d' => ['//','/*'] # D
|
408
413
|
}
|
409
414
|
|
410
415
|
# Merge config file type list with defaults
|
data/lib/watson/version.rb
CHANGED
data/spec/parser_spec.rb
CHANGED
@@ -19,7 +19,6 @@ describe Parser do
|
|
19
19
|
describe '#get_comment_type' do
|
20
20
|
context 'known extension' do
|
21
21
|
it 'return correct extension for c++' do
|
22
|
-
pp(@parser.get_comment_type('lib/watson.cpp'))
|
23
22
|
@parser.get_comment_type('lib/watson.cpp').should eql ['//', '/*']
|
24
23
|
@parser.get_comment_type('lib/watson.cc').should eql ['//', '/*']
|
25
24
|
@parser.get_comment_type('lib/watson.hpp').should eql ['//', '/*']
|