fluffle 0.4.0 → 0.5.0

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: 23e4f19afd95059c202ab4bc0af6272d02a7c9d0
4
- data.tar.gz: 7ebfc0c7c29f5a947413d870e7652b745636a57a
3
+ metadata.gz: c406204c168a6849d976d8154159052a8af28ce8
4
+ data.tar.gz: 1c4da10c4f99f1226efe8ea2e294eeb96c4aeccb
5
5
  SHA512:
6
- metadata.gz: b0ce2b422e356596c1dad872f56ce106360f82e0c5079f3372817a586af11de7a0c0409ed6578f43b8ca21b8837b12c33b69469cd20c971e33b98ccb2023355d
7
- data.tar.gz: 80c7da2ff18ece5e1754a36a595cff627c0f925d84b2c652c352064e891ff52c2209c5eee56f795ee00bc748fbbb78270bbb4ec9de719f1c860b97558c5fa3c2
6
+ metadata.gz: dfbcd74286bbb9f5eff6fbaec37bbaa4cebbd77658be972f3470fb694cba351d98dd97bdf5c810b298f0dde8721555841d8d7f3a39526e681723dd2e24c47bb3
7
+ data.tar.gz: dab4d65da0025678e4315fe9bc94f411c5d1a2a520434e9a3d409a9b34c7907c00f50f98833f9984450dc2b25fb79d229096fbe5752bc893a015e587d307314c
@@ -83,7 +83,7 @@ module Fluffle
83
83
  end
84
84
  end
85
85
 
86
- def call(method, params = [], queue: 'default', **opts)
86
+ def call(method, params = [], queue: 'default', raw_response: false, **opts)
87
87
  # Using `.fetch` here so that we can pass `nil` as the timeout and have
88
88
  # it be respected
89
89
  timeout = opts.fetch :timeout, self.default_timeout
@@ -100,6 +100,8 @@ module Fluffle
100
100
  response = publish_and_wait payload, queue: queue,
101
101
  timeout: timeout
102
102
 
103
+ return response if raw_response
104
+
103
105
  if response.key? 'result'
104
106
  response['result']
105
107
  else
@@ -1,3 +1,3 @@
1
1
  module Fluffle
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dirk Gadsden