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 +4 -4
- data/Gemfile.lock +20 -0
- data/dito_utils-0.1.0.gem +0 -0
- data/lib/dito_utils.rb +0 -7
- data/lib/dito_utils/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d1fccbeef83058397d45f055db0c4960922740f
|
4
|
+
data.tar.gz: e052d44ddeb10704186991352c53af93b43de952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b975734a002bf8b328a9645f3489df6e69394940fffb32095e0f1d9f6f2fd4e08480cb431b7b09ba2e58659a150c78ccc368774d5ea3964661a1877a38ef948
|
7
|
+
data.tar.gz: 9d6ffe1cc9426721279e29c54f9ec6224439711195109a5f4f9d8a3a150897aa90a1b268dffdf19fd215955d79cc5c4b97dda08ca3b67c49566d5d3c3fc5bcb1
|
data/Gemfile.lock
ADDED
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
|
data/lib/dito_utils/version.rb
CHANGED
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.
|
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
|