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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d35edb615b3286d46d23a3f476b78f21c911796
4
- data.tar.gz: f6163157450d238be3e35181572b5f95b847720a
3
+ metadata.gz: 0e5c569669624e6f3cb9d5453948267a78afb6c4
4
+ data.tar.gz: 810f5a24b43d2065d3b3c9de43a12e4d1b3d9bf5
5
5
  SHA512:
6
- metadata.gz: 1e7b70c644987bd0d406418f63c52b0bbdf1b072438d7cb140b1c4c2bf017fe28cab52c8ee62711946f095de174e137f00f58848cbd936b877a4aeb97b63a5f5
7
- data.tar.gz: 9a1e0bb4dc7323225cb97613111ffb2ac173e222e16750404944d79cb1f07276744f34e2321aa81823c47418d4fedde7fe4c54b78fb81769904d320852beced5
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 = 6
13
+ MINOR = 7
14
14
  # the tiny version of the gem
15
- TINY = 5
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
- raise 'not ok' unless params == { 'rumbas' => [1, 2, 3] }
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
- raise 'not ok' unless params == {}
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
- raise 'not ok' unless params == { 'nested' => {} }
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
- raise 'not ok' unless params == { 'rumbas' => [
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
@@ -4,7 +4,7 @@ ENV['RAILS_ENV'] = 'test'
4
4
  require 'simplecov'
5
5
  require 'simplecov-summary'
6
6
  require 'coveralls'
7
-
7
+ require 'hashdiff'
8
8
  # require "codeclimate-test-reporter"
9
9
  formatters = [SimpleCov::Formatter::HTMLFormatter]
10
10
 
@@ -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 'rspec-rails', '~> 3.4', '>= 3.4'
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.11', '>= 0.11'
29
- s.add_development_dependency 'simplecov-summary', '~> 0.0.4', '>= 0.0.4'
30
- s.add_development_dependency 'mocha','~> 1.1', '>= 1.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.6.5
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-07 00:00:00.000000000 Z
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.4'
147
+ version: '3.5'
128
148
  - - ">="
129
149
  - !ruby/object:Gem::Version
130
- version: '3.4'
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.4'
157
+ version: '3.5'
138
158
  - - ">="
139
159
  - !ruby/object:Gem::Version
140
- version: '3.4'
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.11'
187
+ version: '0.12'
168
188
  - - ">="
169
189
  - !ruby/object:Gem::Version
170
- version: '0.11'
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.11'
197
+ version: '0.12'
178
198
  - - ">="
179
199
  - !ruby/object:Gem::Version
180
- version: '0.11'
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.4
207
+ version: 0.0.5
188
208
  - - ">="
189
209
  - !ruby/object:Gem::Version
190
- version: 0.0.4
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.4
217
+ version: 0.0.5
198
218
  - - ">="
199
219
  - !ruby/object:Gem::Version
200
- version: 0.0.4
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.1'
227
+ version: '1.2'
208
228
  - - ">="
209
229
  - !ruby/object:Gem::Version
210
- version: '1.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.1'
237
+ version: '1.2'
218
238
  - - ">="
219
239
  - !ruby/object:Gem::Version
220
- version: '1.1'
240
+ version: '1.2'
221
241
  - !ruby/object:Gem::Dependency
222
242
  name: coveralls
223
243
  requirement: !ruby/object:Gem::Requirement