async-rest 0.15.0 → 0.17.0

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
  SHA256:
3
- metadata.gz: 2a25bf93c109edc39f017bd8897b6f40cd588f9d09cd49ab0c121019a1aeb581
4
- data.tar.gz: 29ada9fd6af46ba978cf89a24b7741ce94bcb779c0f1beaf87c174b33a98cd63
3
+ metadata.gz: b8b711b28f3b500c7d4cf7730fb6a91d210b2e03b6a8f4b3af26aaf71124a2ed
4
+ data.tar.gz: 52f0a4d55f68c67a3e0947e333c186a66c775dc0b1784217932ae9abdac5d2fa
5
5
  SHA512:
6
- metadata.gz: d9667632e07ff0d8a72c26eb1cdf68f9f765b390cddbf604402b67f79e70cb493860d172dd25eab00dd3c2934f5f69ddfbdb6fe14e5585845420bff0cd84bf02
7
- data.tar.gz: 01c2a95426350e1b53dbc477176f9c6e75f0d244974c8308c6244678524cf5f3a67f797f2acf3ab3b835806caeeea9f9b1c0026e2996e551df773990b7aa072e
6
+ metadata.gz: ad395d69a4c5db1ef31f7a59182e07045a82e028553f95efe11355668c061107e98fc8e5c7c957c85b876d283cab47f3f1d28771042a91aed242d7ee44f6df91
7
+ data.tar.gz: 186cc200fbdc8c16ffccb89300f80fd8e58ee34af6cafa3d0165291d032553626eb2c58369d22de6b2522c44a9d198e188c918b316ba194a95423d1d42e5364a
checksums.yaml.gz.sig CHANGED
Binary file
@@ -47,13 +47,7 @@ module Async
47
47
  # @returns [Representation] the representation of the resource.
48
48
  def self.for(resource, response, &block)
49
49
  if block_given?
50
- if block.arity == 1
51
- # Original behaviour:
52
- yield(response)
53
- else
54
- # New behaviour:
55
- return yield(resource, response)
56
- end
50
+ return yield(resource, response, self)
57
51
  else
58
52
  return self.new(resource, value: response.read, metadata: response.headers)
59
53
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module REST
8
- VERSION = "0.15.0"
8
+ VERSION = "0.17.0"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file