soaspec 0.0.56 → 0.0.57

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: 7ca711d0fe88c0b2181c2791c5908f76b9d9a5a7
4
- data.tar.gz: 3d9d66498b61796dc9c6e8d8aa4717659f0fd8fd
3
+ metadata.gz: a9e706722f34e7890feb47a8e56bde1fa5cbed45
4
+ data.tar.gz: a5a8574360353674f7cc7fc753916082056f49c3
5
5
  SHA512:
6
- metadata.gz: 22036e4d33d4b377816c9799ef717b99a1df24b68e0f8b475538889649efba711f03a4c45de38fe664be19026092d3fae0d3cb7c97adcdd6d50a38c7d0396b9b
7
- data.tar.gz: 6be02c83421551ea9e0f1e94bb6c42a4a535d9cdc56c303f846cb5e376b3f25c8799e7284bc967e29b0105a3234c378496870c5a58788046e85b22e147afd11a
6
+ metadata.gz: 265da1e3514f9ba0ad3e47ab6999279d0b1b57ff9667bd8fac6536bee12a748cf88a98a9d25f26e0257c66f3e6fc7d895c3cff6dcfeb156d8db996e2feb7be53
7
+ data.tar.gz: aebc6ae4895a036b28b7c092d18dffff39e15f0bbc8da72f752ec8fb89e6acbca7d4dc872edd3eff3d047e50db4e356c2047cb8b47f828e14b69f83c845723db
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /tmp/
10
10
  /.idea/
11
11
  /credentials/
12
+ Gemfile.lock
12
13
  coverage
13
14
 
14
15
  # rspec failure tracking
data/Gemfile CHANGED
@@ -4,17 +4,3 @@ git_source(:gitlab) { |repo_name| "https://gitlab.com/samuel-garratt/soaspec" }
4
4
 
5
5
  # Specify your gem's dependencies in soaspec.gemspec
6
6
  gemspec
7
- gem 'data_magic'
8
- gem 'rest-client'
9
- gem 'savon'
10
- gem 'require_all'
11
- gem 'nokogiri'
12
- gem 'rake', '12.2.1'
13
- gem 'rspec'
14
- gem 'rspec-its'
15
- gem 'rspec_junit_formatter'
16
- gem 'xml-simple'
17
- gem 'jsonpath'
18
- gem 'simplecov'
19
- gem 'sinatra'
20
- gem 'rack-test'
File without changes
@@ -53,11 +53,11 @@ class Hash
53
53
  false
54
54
  end
55
55
 
56
- # Whether key is present at least once
57
- def include_key?(key)
58
- result = find_all_values_for key
59
- result != []
60
- end
56
+ # # Whether key is present at least once
57
+ # def include_key?(key)
58
+ # result = find_all_values_for key
59
+ # result != []
60
+ # end
61
61
 
62
62
  # Loop through each item within a key within a Hash if the key exists
63
63
  # @param [Key] key Key within hash to iterate through
@@ -133,9 +133,12 @@ module Soaspec
133
133
  response.to_xml.to_s.include? expected
134
134
  end
135
135
 
136
+ # @param [Symbol] expected
136
137
  # @return [Boolean] Whether response body contains expected key
137
138
  def include_key?(response, expected)
138
- response.body.include_key? expected
139
+ body = response.body
140
+ body.extend Hashie::Extensions::DeepFind
141
+ !body.deep_find_all(expected).empty?
139
142
  end
140
143
 
141
144
  # Returns the value at the provided xpath
@@ -1,3 +1,3 @@
1
1
  module Soaspec
2
- VERSION = '0.0.56'.freeze
2
+ VERSION = '0.0.57'.freeze
3
3
  end
data/soaspec.gemspec CHANGED
@@ -23,13 +23,19 @@ the same configuration "
23
23
  spec.require_paths = ['lib']
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.16'
26
- spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'data_magic'
27
+ spec.add_development_dependency 'rake', '~> 12.0'
28
+ spec.add_development_dependency 'require_all'
27
29
  spec.add_development_dependency 'rspec', '~> 3.0'
30
+ spec.add_development_dependency 'simplecov'
31
+ spec.add_dependency 'hashie'
28
32
  spec.add_dependency 'jsonpath'
33
+ spec.add_dependency 'nokogiri'
29
34
  spec.add_dependency 'rest-client', '>= 2.0' # REST
30
35
  spec.add_dependency 'rspec', '~> 3.0' # This framework is designed to work with RSpec
31
36
  spec.add_dependency 'rspec-its', '>= 1.2.0'
32
37
  spec.add_dependency 'savon', '>= 2' # SOAP
38
+ spec.add_dependency 'sinatra'
33
39
  spec.add_dependency 'xml-simple', '>= 1.1.5'
34
40
 
35
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soaspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.56
4
+ version: 0.0.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - SamuelGarrattIQA
@@ -24,20 +24,48 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: data_magic
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '10.0'
47
+ version: '12.0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '10.0'
54
+ version: '12.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: require_all
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rspec
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +80,34 @@ dependencies:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
82
  version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: hashie
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
55
111
  - !ruby/object:Gem::Dependency
56
112
  name: jsonpath
57
113
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +122,20 @@ dependencies:
66
122
  - - ">="
67
123
  - !ruby/object:Gem::Version
68
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: nokogiri
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
69
139
  - !ruby/object:Gem::Dependency
70
140
  name: rest-client
71
141
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +192,20 @@ dependencies:
122
192
  - - ">="
123
193
  - !ruby/object:Gem::Version
124
194
  version: '2'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sinatra
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
125
209
  - !ruby/object:Gem::Dependency
126
210
  name: xml-simple
127
211
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +240,6 @@ files:
156
240
  - CODE_OF_CONDUCT.md
157
241
  - ChangeLog
158
242
  - Gemfile
159
- - Gemfile.lock
160
243
  - LICENSE.txt
161
244
  - README.md
162
245
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,143 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- soaspec (0.0.56)
5
- jsonpath
6
- rest-client (>= 2.0)
7
- rspec (~> 3.0)
8
- rspec-its (>= 1.2.0)
9
- savon (>= 2)
10
- xml-simple (>= 1.1.5)
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- akami (1.3.1)
16
- gyoku (>= 0.4.0)
17
- nokogiri
18
- builder (3.2.3)
19
- concurrent-ruby (1.0.5)
20
- data_magic (1.2)
21
- faker (>= 1.1.2)
22
- yml_reader (>= 0.6)
23
- diff-lcs (1.3)
24
- docile (1.3.0)
25
- domain_name (0.5.20170404)
26
- unf (>= 0.0.5, < 1.0.0)
27
- faker (1.8.5)
28
- i18n (~> 0.9.1)
29
- ffi (1.9.18-x64-mingw32)
30
- gyoku (1.3.1)
31
- builder (>= 2.1.2)
32
- http-cookie (1.0.3)
33
- domain_name (~> 0.5)
34
- httpi (2.4.3)
35
- rack
36
- socksify
37
- i18n (0.9.1)
38
- concurrent-ruby (~> 1.0)
39
- json (2.1.0)
40
- jsonpath (0.8.11)
41
- multi_json
42
- to_regexp (~> 0.2.1)
43
- mime-types (3.1)
44
- mime-types-data (~> 3.2015)
45
- mime-types-data (3.2016.0521)
46
- mini_portile2 (2.3.0)
47
- multi_json (1.13.1)
48
- mustermann (1.0.2)
49
- netrc (0.11.0)
50
- nokogiri (1.8.2)
51
- mini_portile2 (~> 2.3.0)
52
- nokogiri (1.8.2-x64-mingw32)
53
- mini_portile2 (~> 2.3.0)
54
- nori (2.6.0)
55
- rack (2.0.4)
56
- rack-protection (2.0.1)
57
- rack
58
- rack-test (0.6.3)
59
- rack (>= 1.0)
60
- rake (12.2.1)
61
- require_all (1.5.0)
62
- rest-client (2.0.2)
63
- http-cookie (>= 1.0.2, < 2.0)
64
- mime-types (>= 1.16, < 4.0)
65
- netrc (~> 0.8)
66
- rest-client (2.0.2-x64-mingw32)
67
- ffi (~> 1.9)
68
- http-cookie (>= 1.0.2, < 2.0)
69
- mime-types (>= 1.16, < 4.0)
70
- netrc (~> 0.8)
71
- rspec (3.7.0)
72
- rspec-core (~> 3.7.0)
73
- rspec-expectations (~> 3.7.0)
74
- rspec-mocks (~> 3.7.0)
75
- rspec-core (3.7.0)
76
- rspec-support (~> 3.7.0)
77
- rspec-expectations (3.7.0)
78
- diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.7.0)
80
- rspec-its (1.2.0)
81
- rspec-core (>= 3.0.0)
82
- rspec-expectations (>= 3.0.0)
83
- rspec-mocks (3.7.0)
84
- diff-lcs (>= 1.2.0, < 2.0)
85
- rspec-support (~> 3.7.0)
86
- rspec-support (3.7.0)
87
- rspec_junit_formatter (0.3.0)
88
- rspec-core (>= 2, < 4, != 2.12.0)
89
- savon (2.12.0)
90
- akami (~> 1.2)
91
- builder (>= 2.1.2)
92
- gyoku (~> 1.2)
93
- httpi (~> 2.3)
94
- nokogiri (>= 1.8.1)
95
- nori (~> 2.4)
96
- wasabi (~> 3.4)
97
- simplecov (0.16.0)
98
- docile (~> 1.1)
99
- json (>= 1.8, < 3)
100
- simplecov-html (~> 0.10.0)
101
- simplecov-html (0.10.2)
102
- sinatra (2.0.1)
103
- mustermann (~> 1.0)
104
- rack (~> 2.0)
105
- rack-protection (= 2.0.1)
106
- tilt (~> 2.0)
107
- socksify (1.7.1)
108
- tilt (2.0.8)
109
- to_regexp (0.2.1)
110
- unf (0.1.4)
111
- unf_ext
112
- unf_ext (0.0.7.4)
113
- unf_ext (0.0.7.4-x64-mingw32)
114
- wasabi (3.5.0)
115
- httpi (~> 2.0)
116
- nokogiri (>= 1.4.2)
117
- xml-simple (1.1.5)
118
- yml_reader (0.7)
119
-
120
- PLATFORMS
121
- ruby
122
- x64-mingw32
123
-
124
- DEPENDENCIES
125
- bundler (~> 1.16)
126
- data_magic
127
- jsonpath
128
- nokogiri
129
- rack-test
130
- rake (= 12.2.1)
131
- require_all
132
- rest-client
133
- rspec
134
- rspec-its
135
- rspec_junit_formatter
136
- savon
137
- simplecov
138
- sinatra
139
- soaspec!
140
- xml-simple
141
-
142
- BUNDLED WITH
143
- 1.16.1