webspicy 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/restful/Gemfile.lock +2 -2
- data/lib/webspicy/client/http_client.rb +4 -2
- data/lib/webspicy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e83b4c7a3ae49ad5ace22bd09b125d7b6f2187
|
4
|
+
data.tar.gz: 6cae46275a65c3e3fd952538f56dfc5fa9cbd614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b91bc99250b56a458adb2084fffaa6534ac874dc4fe3d9926721c1115b54bdbcb8b3ff55497486e90c42962c58de3c0cfe38bfbd2ea3fabab99b0c08c95f139
|
7
|
+
data.tar.gz: 245fcfe318ee56dc18facf713952b2b3bc423cfe1bd006b6397bfa144bccc3a3d140ac621080e723e79ec81c9bc1eb228e9188bebe5d29208fc45231a4217259
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
webspicy (0.12.
|
4
|
+
webspicy (0.12.1)
|
5
5
|
finitio (~> 0.6, >= 0.6.1)
|
6
6
|
http (~> 2)
|
7
7
|
path (~> 1.3)
|
@@ -45,7 +45,7 @@ GEM
|
|
45
45
|
rspec-mocks (~> 3.8.0)
|
46
46
|
rspec-core (3.8.0)
|
47
47
|
rspec-support (~> 3.8.0)
|
48
|
-
rspec-expectations (3.8.
|
48
|
+
rspec-expectations (3.8.2)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
50
|
rspec-support (~> 3.8.0)
|
51
51
|
rspec-mocks (3.8.0)
|
@@ -77,9 +77,11 @@ module Webspicy
|
|
77
77
|
headers['Content-Type'] ||= 'application/json'
|
78
78
|
@last_response = HTTP[headers].post(url, body: params.to_json)
|
79
79
|
when FileUpload
|
80
|
-
|
81
|
-
|
80
|
+
file = HTTP::FormData::File.new(body.path, {
|
81
|
+
content_type: body.content_type,
|
82
|
+
filename: body.path.basename.to_s
|
82
83
|
})
|
84
|
+
@last_response = HTTP[headers].post(url, form: { body.param_name.to_sym => file })
|
83
85
|
else
|
84
86
|
headers['Content-Type'] ||= 'application/json'
|
85
87
|
@last_response = HTTP[headers].post(url, body: body)
|
data/lib/webspicy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webspicy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
224
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.
|
225
|
+
rubygems_version: 2.5.2
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: Webspicy helps testing web services as software operation black boxes!
|