soaspec 0.0.19 → 0.0.20
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 +4 -4
- data/.gitignore +13 -13
- data/.rspec +3 -3
- data/.travis.yml +5 -5
- data/CODE_OF_CONDUCT.md +74 -74
- data/ChangeLog +61 -55
- data/Gemfile +16 -16
- data/Gemfile.lock +115 -115
- data/LICENSE.txt +21 -21
- data/README.md +85 -66
- data/Rakefile +20 -20
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/config/data/default.yml +2 -2
- data/exe/soaspec-init +254 -252
- data/exe/xml_to_yaml_file +63 -63
- data/lib/soaspec.rb +61 -48
- data/lib/soaspec/basic_soap_handler.rb +132 -122
- data/lib/soaspec/exchange.rb +56 -56
- data/lib/soaspec/hash_methods.rb +71 -71
- data/lib/soaspec/matchers.rb +40 -39
- data/lib/soaspec/soaspec_shared_examples.rb +18 -18
- data/lib/soaspec/spec_logger.rb +17 -17
- data/lib/soaspec/tester.rb +30 -30
- data/lib/soaspec/version.rb +3 -3
- data/lib/soaspec/xpath_not_found.rb +7 -0
- data/soaspec.gemspec +34 -34
- data/template/soap_template.xml +9 -9
- metadata +4 -3
data/lib/soaspec/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Soaspec
|
2
|
-
VERSION = '0.0.
|
3
|
-
end
|
1
|
+
module Soaspec
|
2
|
+
VERSION = '0.0.20'
|
3
|
+
end
|
data/soaspec.gemspec
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'soaspec/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'soaspec'
|
8
|
-
spec.version = Soaspec::VERSION
|
9
|
-
spec.authors = ['SamuelGarrattIQA']
|
10
|
-
spec.email = ['samuel.garratt@integrationqa.com']
|
11
|
-
|
12
|
-
spec.summary = %q{Helps to create RSpec specs for SOAP or REST apis }
|
13
|
-
spec.description = %q{Helps to create RSpec specs for SOAP or REST apis. Easily represent multiple requests with
|
14
|
-
the same configuration }
|
15
|
-
spec.homepage = 'https://gitlab.com/samuel-garratt/soaspec'
|
16
|
-
spec.license = 'MIT'
|
17
|
-
|
18
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
-
f.match(%r{^(test|spec|features)/})
|
20
|
-
end
|
21
|
-
spec.bindir = 'exe'
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
-
spec.require_paths = ['lib']
|
24
|
-
|
25
|
-
spec.add_development_dependency 'bundler', '~> 1.16'
|
26
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
-
spec.add_dependency 'rest-client', '>= 2.0' # REST
|
29
|
-
spec.add_dependency 'rspec', '~> 3.0' # This framework is designed to work with RSpec
|
30
|
-
spec.add_dependency 'rspec-its', '>= 1.2.0'
|
31
|
-
spec.add_dependency 'savon', '>= 2' # SOAP
|
32
|
-
spec.add_dependency 'xml-simple', '>= 1.1.5'
|
33
|
-
|
34
|
-
end
|
1
|
+
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'soaspec/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'soaspec'
|
8
|
+
spec.version = Soaspec::VERSION
|
9
|
+
spec.authors = ['SamuelGarrattIQA']
|
10
|
+
spec.email = ['samuel.garratt@integrationqa.com']
|
11
|
+
|
12
|
+
spec.summary = %q{Helps to create RSpec specs for SOAP or REST apis }
|
13
|
+
spec.description = %q{Helps to create RSpec specs for SOAP or REST apis. Easily represent multiple requests with
|
14
|
+
the same configuration }
|
15
|
+
spec.homepage = 'https://gitlab.com/samuel-garratt/soaspec'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{^(test|spec|features)/})
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
+
spec.add_dependency 'rest-client', '>= 2.0' # REST
|
29
|
+
spec.add_dependency 'rspec', '~> 3.0' # This framework is designed to work with RSpec
|
30
|
+
spec.add_dependency 'rspec-its', '>= 1.2.0'
|
31
|
+
spec.add_dependency 'savon', '>= 2' # SOAP
|
32
|
+
spec.add_dependency 'xml-simple', '>= 1.1.5'
|
33
|
+
|
34
|
+
end
|
data/template/soap_template.xml
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
<s12:Envelope xmlns:s12='http://www.w3.org/2003/05/soap-envelope'>
|
2
|
-
<s12:Body>
|
3
|
-
<ns1:GetWeather xmlns:ns1='http://www.webserviceX.NET'>
|
4
|
-
<!-- optional -->
|
5
|
-
<ns1:CityName><%= test_values[:city_name] || 'Wellington' %></ns1:CityName>
|
6
|
-
<!-- optional -->
|
7
|
-
<ns1:CountryName><%= test_values[:country] || 'New Zealand' %></ns1:CountryName>
|
8
|
-
</ns1:GetWeather>
|
9
|
-
</s12:Body>
|
1
|
+
<s12:Envelope xmlns:s12='http://www.w3.org/2003/05/soap-envelope'>
|
2
|
+
<s12:Body>
|
3
|
+
<ns1:GetWeather xmlns:ns1='http://www.webserviceX.NET'>
|
4
|
+
<!-- optional -->
|
5
|
+
<ns1:CityName><%= test_values[:city_name] || 'Wellington' %></ns1:CityName>
|
6
|
+
<!-- optional -->
|
7
|
+
<ns1:CountryName><%= test_values[:country] || 'New Zealand' %></ns1:CountryName>
|
8
|
+
</ns1:GetWeather>
|
9
|
+
</s12:Body>
|
10
10
|
</s12:Envelope>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soaspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SamuelGarrattIQA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- lib/soaspec/spec_logger.rb
|
157
157
|
- lib/soaspec/tester.rb
|
158
158
|
- lib/soaspec/version.rb
|
159
|
+
- lib/soaspec/xpath_not_found.rb
|
159
160
|
- soaspec.gemspec
|
160
161
|
- template/soap_template.xml
|
161
162
|
homepage: https://gitlab.com/samuel-garratt/soaspec
|
@@ -178,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
179
|
version: '0'
|
179
180
|
requirements: []
|
180
181
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.6.
|
182
|
+
rubygems_version: 2.6.14
|
182
183
|
signing_key:
|
183
184
|
specification_version: 4
|
184
185
|
summary: Helps to create RSpec specs for SOAP or REST apis
|