dito_utils 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: d336c92f442b60e4dd839eb2db1c68c51ebf4d1b
4
- data.tar.gz: f652749caf5fff8af0f63ad84947211c93175801
3
+ metadata.gz: 2d1fccbeef83058397d45f055db0c4960922740f
4
+ data.tar.gz: e052d44ddeb10704186991352c53af93b43de952
5
5
  SHA512:
6
- metadata.gz: e6224c9c645ec1f7ca7e3d8efc3b9b367d41bb4ef51e959448f8cf2d192625db84d13bfb4e249e6286dc6c2987e19d7d7de53817e802299eb882b0a8777f5f53
7
- data.tar.gz: b87806089a9ab594a33335f08d686f9728d587616b9c4afdb2ee64f3611ded5cca656a0340cb6c0e359f7a65d01951f0eb2d779b2ae6da20e4171e80ac4d6771
6
+ metadata.gz: 9b975734a002bf8b328a9645f3489df6e69394940fffb32095e0f1d9f6f2fd4e08480cb431b7b09ba2e58659a150c78ccc368774d5ea3964661a1877a38ef948
7
+ data.tar.gz: 9d6ffe1cc9426721279e29c54f9ec6224439711195109a5f4f9d8a3a150897aa90a1b268dffdf19fd215955d79cc5c4b97dda08ca3b67c49566d5d3c3fc5bcb1
data/Gemfile.lock ADDED
@@ -0,0 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ dito_utils (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.5.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.16)
16
+ dito_utils!
17
+ rake (~> 10.0)
18
+
19
+ BUNDLED WITH
20
+ 1.16.1
Binary file
data/lib/dito_utils.rb CHANGED
@@ -15,7 +15,6 @@ module DitoUtils
15
15
  rescue *error_class => e
16
16
  sleep(@sleep_time)
17
17
  increment_error_count
18
- log_error(e)
19
18
  raise e if last_try?
20
19
  end
21
20
  end
@@ -27,12 +26,6 @@ module DitoUtils
27
26
  @error_count += 1
28
27
  end
29
28
 
30
- def log_error(error)
31
- log = Log.new('method_retry.log')
32
- log.write("#{error.message} => #{error.backtrace.to_json}")
33
- log.close
34
- end
35
-
36
29
  def last_try?
37
30
  @error_count == @retries
38
31
  end
@@ -1,3 +1,3 @@
1
1
  module DitoUtils
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dito_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luís Nascimento
@@ -47,11 +47,13 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
49
  - Gemfile
50
+ - Gemfile.lock
50
51
  - LICENSE.txt
51
52
  - README.md
52
53
  - Rakefile
53
54
  - bin/console
54
55
  - bin/setup
56
+ - dito_utils-0.1.0.gem
55
57
  - dito_utils.gemspec
56
58
  - lib/dito_utils.rb
57
59
  - lib/dito_utils/version.rb