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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d78c07ceefb51e2e501878a3c7e85abd6b9497a
4
- data.tar.gz: 027aec45632f053e971203a2d8b6ab5d1b20fa9b
3
+ metadata.gz: 20e83b4c7a3ae49ad5ace22bd09b125d7b6f2187
4
+ data.tar.gz: 6cae46275a65c3e3fd952538f56dfc5fa9cbd614
5
5
  SHA512:
6
- metadata.gz: ebb4af1b2860f2569c18d282b9fcf2c367b6465411f57d7c01848100118412267876f68cf520b2c537610c1435aa78d4304cefdc0f2f3c9ac09ec0b91f644937
7
- data.tar.gz: b743850dc46e00e2e3e2a077e028a6d352a0c378492c34fd471346f3586e0407a309aab1dd4127ff1c5a0625bf8d189068839dbb7cab5de6443c57f6909d015a
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.0)
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.1)
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
- @last_response = HTTP[headers].post(url, form: {
81
- body.param_name.to_sym => HTTP::FormData::File.new(body.path, content_type: body.content_type)
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)
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 12
5
- TINY = 0
5
+ TINY = 1
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
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.0
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-08-22 00:00:00.000000000 Z
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.6.11
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!