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 +4 -4
- data/Gemfile.lock +6 -6
- data/httply.gemspec +1 -1
- data/lib/httply.rb +3 -2
- data/lib/httply/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4b24e64d0b6293748c8c6eaf149a6cc5dd0b71d2c5a3c4df52786b296c660a7
|
4
|
+
data.tar.gz: '086bdd1ed6a821fe25139bf2c61acb776f43c4dfb8dffb62ee62d30456863be4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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.
|
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.
|
33
|
+
rspec-core (3.8.2)
|
34
34
|
rspec-support (~> 3.8.0)
|
35
|
-
rspec-expectations (3.8.
|
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.
|
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.
|
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
|
-
|
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
|
|
data/lib/httply/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|