watson-ruby 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91ffcd1dd3152a9e63f14d03f55f7c7ea50e7e95
4
- data.tar.gz: f799be3066226f1f7ccae68dc1a2502325817a6c
3
+ metadata.gz: 1c34c96ffee2121472d23d7a52d7e2d18e3e8ec2
4
+ data.tar.gz: 3ff0b2e4488f44809386da142c524c3b92102e48
5
5
  SHA512:
6
- metadata.gz: 8c8be18c25738d0c92401834d3adb7259356c98f4c6422e67a06ce4a15638865b1aada5e8be03c38110957d986c3e6ba31d3acb617892fe6dcb44d00c818781e
7
- data.tar.gz: 0270accff9246e278d2e89ea71a5823a21e6771dc14e4d523d96b9bd6e6d2d5b645816b73303c649a46282f4c2f098924af2a4a215da1f6ae8c3cde353a49212
6
+ metadata.gz: c195675726ac8893b28dca39680622bcf6aa817b94139ea6488599ce4dffccf353b58ebf7198303a8f4621fdfe8f9f29c9dc2e0c31f48a020cfdf74df219330e
7
+ data.tar.gz: 9fc583eec772f5471e69be16edeca2db5ae4fec5de638acfd6aa6bcb46c45d858047ed262c876b92117f15b6c81efdbb71f314c9660cbd5ae5efba2d4ff996a6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- watson-ruby (1.6.0)
4
+ watson-ruby (1.6.1)
5
5
  json
6
6
 
7
7
  GEM
data/lib/watson/asana.rb CHANGED
@@ -417,34 +417,35 @@ module Watson
417
417
 
418
418
  end
419
419
 
420
- ###########################################################
421
- # Return full record for a particular task
422
- def get_task_record(_api_key, task_id)
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
- debug_print "#{ self.class } : #{ __method__ }\n"
425
+ # debug_print "#{ self.class } : #{ __method__ }\n"
425
426
 
426
- task_url = "#{ @end_point }/tasks/#{ task_id }"
427
+ # task_url = "#{ @end_point }/tasks/#{ task_id }"
427
428
 
428
- opts = {
429
- :url => task_url,
430
- :ssl => true,
431
- :method => "GET",
432
- :basic_auth => [_api_key, ""],
433
- :verbose => false
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
- _json, _resp = Watson::Remote.http_call(opts)
437
+ # _json, _resp = Watson::Remote.http_call(opts)
437
438
 
438
- if _resp.code != "200"
439
- @formatter.print_status "x", RED
440
- print BOLD + "Unable to get task, API key may be invalid\n" + RESET
441
- print " Consider running --remote (-r) option to regenerate key\n\n"
442
- print " Status: #{ _resp.code } - #{ _resp.message }\n"
443
- return false
444
- end
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
- _json["data"]
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
@@ -604,8 +604,4 @@ module Watson
604
604
  end
605
605
  end
606
606
 
607
- if __FILE__ == $0
608
- @config = Watson::Config.new
609
- end
610
-
611
607
 
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' => [';'] # Emacslisp
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
@@ -1,3 +1,3 @@
1
1
  module Watson
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
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 ['//', '/*']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watson-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nhmood