httply 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 1a9a2b6ebd2873064c17ff349e01c280258cf3672aa3efa9fc4d9552d4d64852
4
- data.tar.gz: 304af45cd9cf5870fb14e1883d44fb8306cd01cb28b397f456a35d52736767f6
3
+ metadata.gz: e4b24e64d0b6293748c8c6eaf149a6cc5dd0b71d2c5a3c4df52786b296c660a7
4
+ data.tar.gz: '086bdd1ed6a821fe25139bf2c61acb776f43c4dfb8dffb62ee62d30456863be4'
5
5
  SHA512:
6
- metadata.gz: 2276fbddf8538d72109e60498cdac15f6e3ce0a595b1a37a126b19965d2e1b244965c8a86df0f2c78196c68a267dc3d14dbebfac1bf01e6e91935e19003a8bdd
7
- data.tar.gz: bdfad9a05aa7b634193faf62f3768e80414591719bf0a7a06f9e8449378ca4d378e9684146672ae9550f58ba022fc9294148ede57570989f917065029fc478a2
6
+ metadata.gz: d804c2d112b0db8456161a54a182d541120de7077296bda8f37252e0902c52ab7ac63fc6619311ece80f024e4b84ab2f2776f3082a1b97c9c5d1569b7ad25351
7
+ data.tar.gz: cc9df5063c936449780d770e5c55482bcd22a2f01964b7b4d0a64dec0dd724865445b9fe613d275c60263bd5abeb6b419e3da6756b426c27b8131684d447f49c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- httply (0.1.4)
4
+ httply (0.1.6)
5
5
  agents (>= 0.1.4)
6
6
  faraday (>= 0.15.4)
7
7
  faraday_middleware (>= 0.13.1)
@@ -20,7 +20,7 @@ GEM
20
20
  mini_portile2 (2.4.0)
21
21
  multi_xml (0.6.0)
22
22
  multipart-post (2.1.1)
23
- nokogiri (1.10.3)
23
+ nokogiri (1.10.4)
24
24
  mini_portile2 (~> 2.4.0)
25
25
  pry (0.12.2)
26
26
  coderay (~> 1.1.0)
@@ -30,15 +30,15 @@ GEM
30
30
  rspec-core (~> 3.8.0)
31
31
  rspec-expectations (~> 3.8.0)
32
32
  rspec-mocks (~> 3.8.0)
33
- rspec-core (3.8.0)
33
+ rspec-core (3.8.2)
34
34
  rspec-support (~> 3.8.0)
35
- rspec-expectations (3.8.3)
35
+ rspec-expectations (3.8.4)
36
36
  diff-lcs (>= 1.2.0, < 2.0)
37
37
  rspec-support (~> 3.8.0)
38
- rspec-mocks (3.8.0)
38
+ rspec-mocks (3.8.1)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
40
  rspec-support (~> 3.8.0)
41
- rspec-support (3.8.0)
41
+ rspec-support (3.8.2)
42
42
 
43
43
  PLATFORMS
44
44
  ruby
data/httply.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_dependency "faraday", ">= 0.15.4"
26
+ spec.add_dependency "faraday", ">= 0.15.4"
27
27
  spec.add_dependency "faraday_middleware", ">= 0.13.1"
28
28
  spec.add_dependency "agents", ">= 0.1.4"
29
29
 
data/lib/httply.rb CHANGED
@@ -33,8 +33,9 @@ module Httply
33
33
  end
34
34
 
35
35
  [:get, :head, :post, :put, :patch, :delete].each do |http_verb|
36
- define_method(http_verb) do |path, args|
37
- ::Httply::Client.new.send(http_verb, path, **args)
36
+ define_method(http_verb) do |path, *args|
37
+ args = args.any? ? args.flatten.first : nil
38
+ ::Httply::Client.new.send(http_verb, path)
38
39
  end
39
40
  end
40
41
 
@@ -1,3 +1,3 @@
1
1
  module Httply
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httply
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-24 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday