washout_builder 1.6.5 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/washout_builder/version.rb +3 -3
- data/spec/lib/washout_builder_spec.rb +13 -5
- data/spec/spec_helper.rb +1 -1
- data/washout_builder.gemspec +5 -4
- metadata +38 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e5c569669624e6f3cb9d5453948267a78afb6c4
|
4
|
+
data.tar.gz: 810f5a24b43d2065d3b3c9de43a12e4d1b3d9bf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b5fd89b5988ca077903ddd4cdc8d6f2aefb8475a82513a5ecf552cdf120e3252467951ae88f24e8d0cbce7f118dd0f8fd1cee506dbf695e75a0a668fb229a64
|
7
|
+
data.tar.gz: fa1953764786b31ee97272d02e3a12d3b259f8bd013272d06c3260bb21551be9f86bb7aa20120c38bdf2aba5ada00e28bb9f43b2be6c7ee4fc366f6f0409b631
|
@@ -10,12 +10,12 @@ module WashoutBuilder
|
|
10
10
|
# the major version of the gem
|
11
11
|
MAJOR = 1
|
12
12
|
# the minor version of the gem
|
13
|
-
MINOR =
|
13
|
+
MINOR = 7
|
14
14
|
# the tiny version of the gem
|
15
|
-
TINY =
|
15
|
+
TINY = 0
|
16
16
|
# if the version should be a prerelease
|
17
17
|
PRE = nil
|
18
|
-
|
18
|
+
|
19
19
|
# the full version of the gem composed from major minor tiny and prerelease versions
|
20
20
|
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
21
21
|
end
|
@@ -223,7 +223,9 @@ describe WashoutBuilder do
|
|
223
223
|
},
|
224
224
|
return: nil
|
225
225
|
def rumba
|
226
|
-
|
226
|
+
parameters = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params
|
227
|
+
difference = HashDiff.diff(parameters, { 'rumbas' => [1, 2, 3] })
|
228
|
+
raise 'not ok' unless difference.size == 0
|
227
229
|
render soap: nil
|
228
230
|
end
|
229
231
|
end
|
@@ -239,7 +241,9 @@ describe WashoutBuilder do
|
|
239
241
|
},
|
240
242
|
return: nil
|
241
243
|
def rumba
|
242
|
-
|
244
|
+
parameters = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params
|
245
|
+
difference = HashDiff.diff(parameters, {})
|
246
|
+
raise 'not ok' unless difference.size == 0
|
243
247
|
render soap: nil
|
244
248
|
end
|
245
249
|
end
|
@@ -254,7 +258,9 @@ describe WashoutBuilder do
|
|
254
258
|
},
|
255
259
|
return: nil
|
256
260
|
def rumba
|
257
|
-
|
261
|
+
parameters = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params
|
262
|
+
difference = HashDiff.diff(parameters, {'nested' => {}})
|
263
|
+
raise 'not ok' unless difference.size == 0
|
258
264
|
render soap: nil
|
259
265
|
end
|
260
266
|
end
|
@@ -272,10 +278,12 @@ describe WashoutBuilder do
|
|
272
278
|
},
|
273
279
|
return: nil
|
274
280
|
def rumba
|
275
|
-
|
281
|
+
parameters = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params
|
282
|
+
difference = HashDiff.diff(parameters, { 'rumbas' => [
|
276
283
|
{ 'zombies' => 'suck', 'puppies' => 'rock' },
|
277
284
|
{ 'zombies' => 'slow', 'puppies' => 'fast' }
|
278
|
-
] }
|
285
|
+
] })
|
286
|
+
raise 'not ok' unless difference.size == 0
|
279
287
|
render soap: nil
|
280
288
|
end
|
281
289
|
end
|
data/spec/spec_helper.rb
CHANGED
data/washout_builder.gemspec
CHANGED
@@ -23,11 +23,12 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency 'httpi', '~> 2.4', '>= 2.4'
|
24
24
|
s.add_development_dependency 'nokogiri', '~> 1.6', '>= 1.6'
|
25
25
|
|
26
|
-
s.add_development_dependency '
|
26
|
+
s.add_development_dependency 'hashdiff', '~> 0.3', '>= 0.3'
|
27
|
+
s.add_development_dependency 'rspec-rails', '~> 3.5', '>= 3.5'
|
27
28
|
s.add_development_dependency 'appraisal', '~> 2.1', '>= 2.1'
|
28
|
-
s.add_development_dependency 'simplecov', '~> 0.
|
29
|
-
s.add_development_dependency 'simplecov-summary', '~> 0.0.
|
30
|
-
s.add_development_dependency 'mocha','~> 1.
|
29
|
+
s.add_development_dependency 'simplecov', '~> 0.12', '>= 0.12'
|
30
|
+
s.add_development_dependency 'simplecov-summary', '~> 0.0.5', '>= 0.0.5'
|
31
|
+
s.add_development_dependency 'mocha','~> 1.2', '>= 1.2'
|
31
32
|
s.add_development_dependency 'coveralls','~> 0.8', '>= 0.8'
|
32
33
|
|
33
34
|
s.add_development_dependency 'yard', '>= 0.8', '~> 0.8'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: washout_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wash_out
|
@@ -118,26 +118,46 @@ dependencies:
|
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '1.6'
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: hashdiff
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0.3'
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0.3'
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0.3'
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0.3'
|
121
141
|
- !ruby/object:Gem::Dependency
|
122
142
|
name: rspec-rails
|
123
143
|
requirement: !ruby/object:Gem::Requirement
|
124
144
|
requirements:
|
125
145
|
- - "~>"
|
126
146
|
- !ruby/object:Gem::Version
|
127
|
-
version: '3.
|
147
|
+
version: '3.5'
|
128
148
|
- - ">="
|
129
149
|
- !ruby/object:Gem::Version
|
130
|
-
version: '3.
|
150
|
+
version: '3.5'
|
131
151
|
type: :development
|
132
152
|
prerelease: false
|
133
153
|
version_requirements: !ruby/object:Gem::Requirement
|
134
154
|
requirements:
|
135
155
|
- - "~>"
|
136
156
|
- !ruby/object:Gem::Version
|
137
|
-
version: '3.
|
157
|
+
version: '3.5'
|
138
158
|
- - ">="
|
139
159
|
- !ruby/object:Gem::Version
|
140
|
-
version: '3.
|
160
|
+
version: '3.5'
|
141
161
|
- !ruby/object:Gem::Dependency
|
142
162
|
name: appraisal
|
143
163
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,60 +184,60 @@ dependencies:
|
|
164
184
|
requirements:
|
165
185
|
- - "~>"
|
166
186
|
- !ruby/object:Gem::Version
|
167
|
-
version: '0.
|
187
|
+
version: '0.12'
|
168
188
|
- - ">="
|
169
189
|
- !ruby/object:Gem::Version
|
170
|
-
version: '0.
|
190
|
+
version: '0.12'
|
171
191
|
type: :development
|
172
192
|
prerelease: false
|
173
193
|
version_requirements: !ruby/object:Gem::Requirement
|
174
194
|
requirements:
|
175
195
|
- - "~>"
|
176
196
|
- !ruby/object:Gem::Version
|
177
|
-
version: '0.
|
197
|
+
version: '0.12'
|
178
198
|
- - ">="
|
179
199
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0.
|
200
|
+
version: '0.12'
|
181
201
|
- !ruby/object:Gem::Dependency
|
182
202
|
name: simplecov-summary
|
183
203
|
requirement: !ruby/object:Gem::Requirement
|
184
204
|
requirements:
|
185
205
|
- - "~>"
|
186
206
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.0.
|
207
|
+
version: 0.0.5
|
188
208
|
- - ">="
|
189
209
|
- !ruby/object:Gem::Version
|
190
|
-
version: 0.0.
|
210
|
+
version: 0.0.5
|
191
211
|
type: :development
|
192
212
|
prerelease: false
|
193
213
|
version_requirements: !ruby/object:Gem::Requirement
|
194
214
|
requirements:
|
195
215
|
- - "~>"
|
196
216
|
- !ruby/object:Gem::Version
|
197
|
-
version: 0.0.
|
217
|
+
version: 0.0.5
|
198
218
|
- - ">="
|
199
219
|
- !ruby/object:Gem::Version
|
200
|
-
version: 0.0.
|
220
|
+
version: 0.0.5
|
201
221
|
- !ruby/object:Gem::Dependency
|
202
222
|
name: mocha
|
203
223
|
requirement: !ruby/object:Gem::Requirement
|
204
224
|
requirements:
|
205
225
|
- - "~>"
|
206
226
|
- !ruby/object:Gem::Version
|
207
|
-
version: '1.
|
227
|
+
version: '1.2'
|
208
228
|
- - ">="
|
209
229
|
- !ruby/object:Gem::Version
|
210
|
-
version: '1.
|
230
|
+
version: '1.2'
|
211
231
|
type: :development
|
212
232
|
prerelease: false
|
213
233
|
version_requirements: !ruby/object:Gem::Requirement
|
214
234
|
requirements:
|
215
235
|
- - "~>"
|
216
236
|
- !ruby/object:Gem::Version
|
217
|
-
version: '1.
|
237
|
+
version: '1.2'
|
218
238
|
- - ">="
|
219
239
|
- !ruby/object:Gem::Version
|
220
|
-
version: '1.
|
240
|
+
version: '1.2'
|
221
241
|
- !ruby/object:Gem::Dependency
|
222
242
|
name: coveralls
|
223
243
|
requirement: !ruby/object:Gem::Requirement
|