ocean-rails 6.1.5 → 6.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b498d045f13407db3e50fb87f43640d523221f7
4
- data.tar.gz: c98366ff234bfa09a59729fc1b1758752b2d3409
3
+ metadata.gz: ec467811d141d7d9f66c6976800d9a0bd76353fe
4
+ data.tar.gz: f1e287782f85a2c099036bdb8f8dff9c2f1a60b1
5
5
  SHA512:
6
- metadata.gz: 939304b05f3df6b4780fc565beb34d2a4a2be5be7fa97a72db46a766ca895e55cdba955264e58b7d89ebdc388ec021ed1d31a19ad85f32b52f7bbe5c4b619963
7
- data.tar.gz: 38c0261b633547fee8e2236b90ff16e971a5d56b096a7b95bcc2d22f3648fcf3e0f097b88718bf47cc9794a61b25994b40bfdd6821cf903732262efcd319bb00
6
+ metadata.gz: 9ebebf0cb54310cd1a0282c219866f6c465f3347a978b00f2da8706932f9ca37fe21447e92bd41e5d96509ab5705e108bcfe55012cfcc5a23a2dc737b258d714
7
+ data.tar.gz: f5b5c6cf3c760eb54b52bbe925213f0bc696d00a59034d4ba9b1afb7168bc28be7ae1673ecc07f588db2073e6899a72b3f082aad18023d938e80226b51a11c64
data/lib/ocean/api.rb CHANGED
@@ -394,7 +394,7 @@ class Api
394
394
  when 403
395
395
  # Does not authenticate. Don't repeat the request.
396
396
  nil
397
- when 500
397
+ when 500, 503, 504
398
398
  # Error. Don't repeat.
399
399
  nil
400
400
  else
@@ -533,8 +533,8 @@ class Api
533
533
  # A URL not starting with a / will be internalized.
534
534
  #
535
535
  def self.async_job_body(href=nil, method=:get, body: {},
536
- credentials: nil,
537
- token: nil,
536
+ credentials: Api.credentials,
537
+ #token: Api.service_token,
538
538
  steps: nil,
539
539
  default_step_time: nil,
540
540
  default_poison_limit: nil,
@@ -554,8 +554,8 @@ class Api
554
554
  steps ||= []
555
555
  end
556
556
  h['steps'] = steps
557
- h['credentials'] = credentials || Api.credentials
558
- h['token'] = token || Api.service_token
557
+ h['credentials'] = credentials #|| Api.credentials
558
+ #h['token'] = token #|| Api.service_token
559
559
  h['default_step_time'] = default_step_time if default_step_time
560
560
  h['default_poison_limit'] = default_poison_limit if default_poison_limit
561
561
  h['max_seconds_in_queue'] = max_seconds_in_queue if max_seconds_in_queue
@@ -582,7 +582,7 @@ class Api
582
582
  def self.run_async_job(href=nil, method=nil, job: nil, **keywords, &block)
583
583
  job ||= async_job_body(href, method, **keywords)
584
584
  Api.request "/v1/async_jobs", :post,
585
- body: job.to_json, x_api_token: Api.service_token
585
+ body: job.to_json, x_api_token: nil
586
586
  rescue TimeoutError, NoResponseError => e
587
587
  raise e unless block
588
588
  block.call e
@@ -603,7 +603,7 @@ class Api
603
603
  area: area,
604
604
  name: name,
605
605
  description: description
606
- }#.to_json
606
+ }
607
607
  end
608
608
 
609
609
 
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "6.1.5"
2
+ VERSION = "6.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.5
4
+ version: 6.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus