async-rest 0.15.0 → 0.16.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: 26ab0148b98834201d42e7055654d043077bad78b227d2524f1debff48175654
4
+ data.tar.gz: 99fde3b0d62ecca89557ad7bc5161d9fa1396cea16d0ca1885fd76e0d87f22d0
5
5
  SHA512:
6
- metadata.gz: d9667632e07ff0d8a72c26eb1cdf68f9f765b390cddbf604402b67f79e70cb493860d172dd25eab00dd3c2934f5f69ddfbdb6fe14e5585845420bff0cd84bf02
7
- data.tar.gz: 01c2a95426350e1b53dbc477176f9c6e75f0d244974c8308c6244678524cf5f3a67f797f2acf3ab3b835806caeeea9f9b1c0026e2996e551df773990b7aa072e
6
+ metadata.gz: c42fb4730717aa2e916aef02d9fa4ba310acaf6c2a35f6a6f721f4bf9b655196fc09c44ebeedd50bdbba529a823114068d29a4fb9b624c59a7386b9464aefa75
7
+ data.tar.gz: f6e76697202ef2141bf9a7b65af0b59139f76174266f800759f5ad9be6202880205f63b899331a1ce6b37574dc008301eff869407493b732d2b9b6b7cd248d76
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(response, resource, 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.16.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.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file