afmotion 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/afmotion/http.rb +1 -1
- data/lib/afmotion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69787414b3be0ca464dfb2d7454c8e7eecd1d88f
|
4
|
+
data.tar.gz: 5c34b19456c5e5c6b0e2acd47000fb848ce408ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ec767cca0a59b869d3d5f504c48653d3418dd5c68c5d802f60802dbc23a3d37caa6b43201b0c40f1d50e8210a54fbddec188a4beface966f5600115a873de7
|
7
|
+
data.tar.gz: 4428cf7d886665c4dadfa1e147e989a8036b834cfe65726dcec517229f3fbc4a25bce510d88f5833b1aed8f813e7a1eb6865f61ccd5ab53220c7498d56d55739
|
data/Gemfile.lock
CHANGED
data/lib/afmotion/http.rb
CHANGED
@@ -42,7 +42,7 @@ module AFMotion
|
|
42
42
|
[HTTP, JSON, XML, PLIST, Image].each do |base|
|
43
43
|
AFMotion::HTTP_METHODS.each do |method_name|
|
44
44
|
method_signature = "#{method_name.to_s.upcase}:parameters:success:failure:"
|
45
|
-
base.define_singleton_method(method_name, -> (url, parameters =
|
45
|
+
base.define_singleton_method(method_name, -> (url, parameters = nil, &callback) do
|
46
46
|
base.operation_manager.send(method_signature, url,
|
47
47
|
parameters,
|
48
48
|
AFMotion::Operation.success_block_for_http_method(method_name, callback),
|
data/lib/afmotion/version.rb
CHANGED