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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb5c3ce9fecd9c628c388c8eb29d12e7c0bc4f28
4
- data.tar.gz: 6c8de0e8e0899c098f56c74e34ded33fde6d4278
3
+ metadata.gz: adc752b44ac151fa6a93702094861e00cce98442
4
+ data.tar.gz: de254e78e0e26ab118cb72ead678d7e059fa596d
5
5
  SHA512:
6
- metadata.gz: b164ee8f62159db74d766a821e197a52956db771f35c43cc9455a70a04a4e20b3b20f10ce22dc7d8692ad941d9e98fc39b4a1efdd9903d332b3888e46bdca9a8
7
- data.tar.gz: bdb722df61dbb289186c256ae75bcc8d2fe63dc543bc2e65e5247686abcfcf9cb27c8b8ef1082f43612827eff1f6baab392971b5d0de706076545612971222c9
6
+ metadata.gz: ab4ed01599f49747b74a900a1940bf9c5c6b2b2b5a41546f2fb6500ca3b4e1d3da494cefd42e9376ac58949f4436bdb5cab0f7348ea98208b5b016dbd7f91570
7
+ data.tar.gz: 42d11540ef5530da04f22a67d23007d04da1875d2a8ae481e8b5633538d15eaa08709849ac9ed1e870ff4571ec6391da0714778c06ad80618463f217b011df06
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Safettp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safettp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emric