ocean-rails 3.8.4 → 3.8.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38d84dfad509e2adcf4e7fd45e96521ece3c2a43
4
- data.tar.gz: acc6f3f985fcc089587f77283877144a01f98fd7
3
+ metadata.gz: b7a64533cd6ce4a0538cf0332a911dd9bd4614dc
4
+ data.tar.gz: 38461ac9de60806ace00d35dcfa6c70c25046709
5
5
  SHA512:
6
- metadata.gz: f25b2e7f2e80212f0e94bded0caa88d915ca9539bb9d2fdae9c0f7cc4710f47bfbe963a1c6bdbc985c6df625c16d2a79414635f118adb1eec6db5a6b3935d761
7
- data.tar.gz: 32c800b13506c94da5b3633d11654b8462b0dffa1676a150a5cbf68c496f39e9cba0f58079fdba10694f9d18cd154bb84f99108571163657887610dc3399f986
6
+ metadata.gz: 1453873d124f4ad23e3bc5743e7e54191d1d59897b6d3e1b6c5a9ec9a0e783084938dd42f9c25651b85f57e3d1a0da871496d09e412f757840f7473a7d95c648
7
+ data.tar.gz: 7c58ad7e768fef523f4366de096be1736b2c708134066c3cd74a7a2ea8b6f9532cdff2b877d58d444a19c53fb06fcfc8b75a7ba5de15a78e678891532af139d0
data/lib/ocean/api.rb CHANGED
@@ -553,10 +553,13 @@ class Api
553
553
  # Takes the same args as +.async_job_body+, post an AsyncJob and returns the Response.
554
554
  # The AsyncJob is always created as the service ApiUser; the job carries its own
555
555
  # credentials and token, specified as keywords +:credentials+ and +:token+.
556
+ # If you have precomputed the job description hash, pass it using the keyword
557
+ # +:job+ as the only parameter.
556
558
  #
557
- def self.run_async_job(*args)
559
+ def self.run_async_job(href=nil, method=nil, job: nil, **keywords)
560
+ job = job || async_job_body(href, method, **keywords)
558
561
  Api.request "#{INTERNAL_OCEAN_API_URL}/v1/async_jobs", :post,
559
- body: async_job_body(*args).to_json, x_api_token: Api.service_token
562
+ body: job.to_json, x_api_token: Api.service_token
560
563
  end
561
564
 
562
565
  end
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "3.8.4"
2
+ VERSION = "3.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.4
4
+ version: 3.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson