safettp 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/safettp/client.rb +2 -10
- data/lib/safettp/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: adc752b44ac151fa6a93702094861e00cce98442
|
4
|
+
data.tar.gz: de254e78e0e26ab118cb72ead678d7e059fa596d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4ed01599f49747b74a900a1940bf9c5c6b2b2b5a41546f2fb6500ca3b4e1d3da494cefd42e9376ac58949f4436bdb5cab0f7348ea98208b5b016dbd7f91570
|
7
|
+
data.tar.gz: 42d11540ef5530da04f22a67d23007d04da1875d2a8ae481e8b5633538d15eaa08709849ac9ed1e870ff4571ec6391da0714778c06ad80618463f217b011df06
|
data/lib/safettp/client.rb
CHANGED
@@ -45,16 +45,8 @@ module Safettp::Client
|
|
45
45
|
def self.included(base)
|
46
46
|
base.extend(ClassMethods)
|
47
47
|
|
48
|
-
%i[get delete].each do |method|
|
49
|
-
define_method(method) do
|
50
|
-
|uri_suffix, query = {}, options = { query: query }, &block|
|
51
|
-
perform(method, uri_suffix, options, &block)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
%i[post put patch].each do |method|
|
56
|
-
define_method(method) do
|
57
|
-
|uri_suffix, body = {}, options = { body: body }, &block|
|
48
|
+
%i[get post put patch delete].each do |method|
|
49
|
+
define_method(method) do |uri_suffix, options, &block|
|
58
50
|
perform(method, uri_suffix, options, &block)
|
59
51
|
end
|
60
52
|
end
|
data/lib/safettp/version.rb
CHANGED