webspicy 0.20.18 → 0.20.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb926aeeae60b8f3568595dfef40404aa9242b3bc1b44194d73b6716b662a315
|
4
|
+
data.tar.gz: ae5969698e0dfee763d25a9918881c77b18b15f0642b2773813fe58a31ca63aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 680f7ffeea26ec3fec0884883a3dbd46989ea14cf76d7daf29457032cbb5ba68f0fe8391f3e6edcd244689bc8f5e791b82a68b703e64eeb802190ebcfff5c001
|
7
|
+
data.tar.gz: 7ac2a6f5988916d62745312ef1f3bc16fab09a424204d0643d0dcddce5b5e916afe9f879847fc9256f77db6dd6330ee555d355b76461ed59667d4c450e1b615f
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://github.com/enspirit/webspicy/actions/workflows/integration.yml)
|
2
2
|
# Webspicy
|
3
3
|
|
4
4
|
A specification and test framework for web services seen as black-box software
|
@@ -32,10 +32,10 @@ module Webspicy
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def subject
|
35
|
-
@subject ||= data["headerLines"]
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
@subject ||= data["subject"] || data["headerLines"]
|
36
|
+
.select{|h| h["key"] == "subject" }
|
37
|
+
.map{|h| h["line"][/Subject:\s*(.*)$/, 1] }
|
38
|
+
.first
|
39
39
|
end
|
40
40
|
|
41
41
|
def headers
|
data/lib/webspicy/version.rb
CHANGED
@@ -96,14 +96,16 @@ module Webspicy
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def post(url, params = {}, headers = nil, body = nil)
|
99
|
-
handler = get_handler(headers)
|
100
|
-
|
101
99
|
url = url + "?" + Rack::Utils.build_query(params) if body && !params.empty?
|
100
|
+
headers = {
|
101
|
+
"Content-Type" => "application/json"
|
102
|
+
}.merge(headers || {}) if body.nil?
|
103
|
+
handler = get_handler(headers)
|
102
104
|
|
103
105
|
case body
|
104
106
|
when NilClass
|
105
107
|
info_request("POST", url, params, headers, body)
|
106
|
-
handler.post(url, params.to_json,
|
108
|
+
handler.post(url, params.to_json, headers)
|
107
109
|
when FileUpload
|
108
110
|
file = Rack::Test::UploadedFile.new(body.path, body.content_type)
|
109
111
|
info_request("POST", url, params, headers, body)
|
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.20.
|
4
|
+
version: 0.20.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -84,16 +84,22 @@ dependencies:
|
|
84
84
|
name: finitio
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.10.0
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 0.12.0
|
90
93
|
type: :runtime
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
93
96
|
requirements:
|
94
|
-
- - "
|
97
|
+
- - ">="
|
95
98
|
- !ruby/object:Gem::Version
|
96
99
|
version: 0.10.0
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.12.0
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: http
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -386,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
386
392
|
- !ruby/object:Gem::Version
|
387
393
|
version: '0'
|
388
394
|
requirements: []
|
389
|
-
rubygems_version: 3.
|
395
|
+
rubygems_version: 3.1.4
|
390
396
|
signing_key:
|
391
397
|
specification_version: 4
|
392
398
|
summary: Webspicy helps testing web services as software operation black boxes!
|