test_joska 1.2.0 → 1.2.1

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
  SHA256:
3
- metadata.gz: bd32319caa01c2a28db076e38b41da9e4b0c45750b2c90ae50ac1574cc3edda7
4
- data.tar.gz: e041a9dce6de356bab78b11a82903d1bb23f44d85f67c6dc75459d54cd89b772
3
+ metadata.gz: 3b20722c0bb40b43780d6f932bb69d0264dc7187f04f6d457d4e52f0043ed474
4
+ data.tar.gz: 3f949aa4d148304a5f2542a9c0f4c7e86ecfaad5a3710841c7568ea077b4e0dd
5
5
  SHA512:
6
- metadata.gz: 6d316c15b37d4bd5a9277c0d720e0d2321f99887d8c2ddae6099084bc5b2062c743f87750081ec4ed2a9dc48a732b04573533f8e37f193148ab51007cd1d7930
7
- data.tar.gz: 28da79c8af0afd68cb7ff2ace63458e308be2415494797e3881586b9b5d6e30b38e676e3344375715d889ea3bccf901060649e79a919f4cd615cb600265e5cc6
6
+ metadata.gz: d121412c920c7e8747d19d1d1fc5db7b466ec7e4ee9fda35aa660c902e51145959774add80e0780fc4bb25cf77f454193389618d85599181464680dd7a57801c
7
+ data.tar.gz: 0f66bf814a60f56ccfe08d1f0c69284984e35ea95dd03474c29d2f76179b4af698cb94396281d0b8c96fcfaafa100e2ea04306d76d9a0d15b3ecc33e8471f429
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test_joska (1.2.0)
4
+ test_joska (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -267,15 +267,11 @@ module TestJoska
267
267
 
268
268
  if !(price1.abs-range...price1.abs+range).include?(price2.abs)
269
269
 
270
- error_name = "#{type1} - #{type2}"
270
+ error_message = "Diferença de preço encontrada (#{type1} - #{type2})\n#{type1}: R$#{price1} / #{type2}: R$#{price2}"
271
271
 
272
- error_message = "#{type1}: R$#{price1} / #{type2}: R$#{price2}",
272
+ raise error_message if @@raise_on_error
273
273
 
274
- tempErrorhandler("price", error_name, error_message)
275
-
276
- raise "Diferença de preço encontrada (#{type1} - #{type2})\n#{error_message}" if @raise_on_error
277
-
278
- jsk_log("Diferença de preço encontrada (#{type1} - #{type2})\n#{error_message}")
274
+ jskLog(error_message)
279
275
 
280
276
  end
281
277
 
@@ -290,15 +286,11 @@ module TestJoska
290
286
 
291
287
  value2 = "null" if value2 == nil
292
288
 
293
- error_name = "#{message} (#{type1} - #{type2})"
294
-
295
- error_message = "#{type1}: #{value1} / #{type2}: #{value2}"
296
-
297
- tempErrorhandler("value", error_name, error_message)
289
+ error_message = "Conflito: #{message} (#{type1} - #{type2})\n#{type1}: #{value1} / #{type2}: #{value2}"
298
290
 
299
- raise "Conflito: #{message} (#{type1} - #{type2})\n(#{error_message})" if @raise_on_error
291
+ raise error_message if @@raise_on_error
300
292
 
301
- jsk_log("Conflito: #{message} (#{type1} - #{type2})\n(#{error_message})")
293
+ jskLog(error_message)
302
294
 
303
295
  end
304
296
 
@@ -310,7 +302,7 @@ module TestJoska
310
302
 
311
303
  end
312
304
 
313
- def genericComparator object1, object2, context, type1 = "Barramento", type2 = "Micro serviço"
305
+ def genericComparator(object1, object2, context, type1 , type2)
314
306
 
315
307
  if object1.is_a?(Hash) && object2.is_a?(Hash)
316
308
 
@@ -1,3 +1,3 @@
1
1
  module TestJoska
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_joska
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Diogo Dovas