laximo 0.9.2 → 0.9.2.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/laximo.rb +8 -13
  3. data/lib/laximo/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a737aafa2d30be961456c1d936edb4ec9efc61c5ac4c05844dd1d947038344e
4
- data.tar.gz: 796f1bd2e0503348161828cfa3748d683757d3003062884a0b7f37aab32b7e54
3
+ metadata.gz: 7fe95807761beff04edf5ec80f0ba10971aa5cd3097b063782ff4654f630f778
4
+ data.tar.gz: 77226366b5239b8b686fff29496cfc4d95a41a39b831b1ee182a6150e5a5164a
5
5
  SHA512:
6
- metadata.gz: 88b03e1a69e56827e3589573f35999fa5d125c7c763b323418d1e06c837aed0e898331649c061363be93138e9e039ff1a1035cd6934e77d2ce3dd38602d798ba
7
- data.tar.gz: e939914757ed7b5e8df33a8dbca862d15a815d18a8a39007187cbc521d8ebdf5832befbe7ea3b0ae39d29a707866222a043e02692d521efc311962df269c9559
6
+ metadata.gz: 9cf6ebcbc6aa0419b6a2b475b812e9e899560c107b5dfed1fab279e501277cf5188effc990685fea240b978676963dcd32de8200a48fccf893fcd2cea5e36439
7
+ data.tar.gz: 15397232b80c4762a80746c3942df4d1f5e739b416edb85f4ba735bffa99b40b8998dadc1ca8de5edeedb20793510a062ab8bdcbcc0e45edf7f3bd356abd5cf3
@@ -36,24 +36,19 @@ module Laximo
36
36
  ::Laximo::Oem.new
37
37
  end
38
38
 
39
- def tryer(try_iter: 5, time: 25)
39
+ def tryer(try_iter: 10, time: 61)
40
40
 
41
- begin
41
+ cl = caller[0][/`.*'/][1..-2]
42
+ yield
42
43
 
43
- cl = caller_locations(1,1).first
44
- yield
44
+ rescue ::Laximo::SoapTooManyRequestError
45
45
 
46
- rescue ::Laximo::SoapTooManyRequestError
46
+ try_iter = try_iter - 1
47
47
 
48
- try_iter = try_iter - 1
48
+ puts "[Method: #{cl}] Waiting #{time} sec."
49
+ sleep time
49
50
 
50
- puts "[#{cl}] Waiting #{time} sec..."
51
- sleep time
52
-
53
- retry if try_iter > 0
54
- raise
55
-
56
- end
51
+ try_iter > 0 ? retry : raise
57
52
 
58
53
  end
59
54
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Laximo
3
3
 
4
- VERSION = '0.9.2'.freeze
4
+ VERSION = '0.9.2.1'.freeze
5
5
 
6
6
  end # Laximo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laximo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pilyaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri