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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/rest/representation.rb +1 -7
- data/lib/async/rest/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26ab0148b98834201d42e7055654d043077bad78b227d2524f1debff48175654
|
4
|
+
data.tar.gz: 99fde3b0d62ecca89557ad7bc5161d9fa1396cea16d0ca1885fd76e0d87f22d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/async/rest/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|