emmy-http 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emmy_http/model.rb +2 -2
- data/lib/emmy_http/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: 7ee8d4b0efcf09449ffd92416ad81026d0c15d29
|
4
|
+
data.tar.gz: b16f6a69f371a4c9e45467f2f480cbb56c64b15f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06516cddff88e4d243868465127e3b9acd0078740c9af5aeaf0a03b4cc34c115376123a744d84e1c733c39fa4d051bec693b83985d6b949196f410c6557ef98e
|
7
|
+
data.tar.gz: d9d2d96316bbaee93c70eed41a3e46115118db9685fa44bcb4490cce2c48fa3f4f47094df2b2016211116f99889b58ca96a9cbabea9ab8f6e888a0301ec04517
|
data/lib/emmy_http/model.rb
CHANGED
@@ -62,11 +62,11 @@ module EmmyHttp
|
|
62
62
|
instance.api[as] = {path: path}
|
63
63
|
if as
|
64
64
|
cdef as.to_s do |a=nil|
|
65
|
-
|
65
|
+
request(path: path).tap { |r| r.update_attributes(a) if a }
|
66
66
|
end
|
67
67
|
|
68
68
|
cdef "#{as}!" do |*a, &b|
|
69
|
-
send(as, *a, &b)
|
69
|
+
send(as, *a, &b).operation
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
data/lib/emmy_http/version.rb
CHANGED