progress 3.1.0 → 3.1.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.
- checksums.yaml +8 -8
- data/.rubocop.yml +6 -0
- data/.travis.yml +7 -3
- data/LICENSE.txt +1 -1
- data/README.markdown +1 -1
- data/lib/progress.rb +3 -2
- data/lib/progress/class_methods.rb +1 -1
- data/progress.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDYxYmQzMDY4NTI1ZmYyOTZlNmFhZTE3MzRlZDc5ZjM2MjYwNDQ1NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWJkMDUyYmIyOTg3MzM5NGViMWVmMDRkYTk0ZTYyMGI0ZTNhN2EyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTA2NWQxNDlhMDA1Y2Y5ZjZhMzEzOTVmNmEyYWY1ZjJlMGNjZWIzYTU0MTY3
|
10
|
+
YWM0ZTQ3MmUzNGUxZWMzNDNiNzIzZTA2NDM0ZDEzZTVlYWNlOWY0MjRjOWJl
|
11
|
+
Nzg0N2ZiZjA5ZTU1MjlkMTZkZDNhZTBiOGE4YWJhNzNhZGVmNjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjJiYzE4OTY4YmM0OThhYzMwNGE2YmRjZTQ5MmM4MzFhZWIyNzVjM2U5YTg5
|
14
|
+
ZGFmMjUxZThkNjA4MzhiNjFiZmZjNDk4YzA5MDcxZjRlZmQ4NzdjYThkMDg5
|
15
|
+
YTIwM2QwZTJkOWNkYzJhNGYyNWNkMDY2NmRiMGViZWM5MjI2ODI=
|
data/.rubocop.yml
CHANGED
@@ -17,6 +17,9 @@ Metrics/CyclomaticComplexity:
|
|
17
17
|
Metrics/MethodLength:
|
18
18
|
Max: 20
|
19
19
|
|
20
|
+
Metrics/ModuleLength:
|
21
|
+
Max: 160
|
22
|
+
|
20
23
|
Metrics/PerceivedComplexity:
|
21
24
|
Max: 10
|
22
25
|
|
@@ -47,6 +50,9 @@ Style/IfUnlessModifier:
|
|
47
50
|
Style/IndentHash:
|
48
51
|
EnforcedStyle: consistent
|
49
52
|
|
53
|
+
Style/ParallelAssignment:
|
54
|
+
Enabled: false
|
55
|
+
|
50
56
|
Style/PercentLiteralDelimiters:
|
51
57
|
PreferredDelimiters:
|
52
58
|
'%w': '[]'
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
data/README.markdown
CHANGED
data/lib/progress.rb
CHANGED
@@ -60,6 +60,7 @@ class Progress
|
|
60
60
|
@total = total
|
61
61
|
@current = 0.0
|
62
62
|
@title = title
|
63
|
+
@mutex = Mutex.new
|
63
64
|
end
|
64
65
|
|
65
66
|
def to_f(inner)
|
@@ -77,7 +78,7 @@ class Progress
|
|
77
78
|
@step = step
|
78
79
|
@note = note
|
79
80
|
ret = yield if block_given?
|
80
|
-
|
81
|
+
@mutex.synchronize do
|
81
82
|
@current += step
|
82
83
|
end
|
83
84
|
ret
|
@@ -87,7 +88,7 @@ class Progress
|
|
87
88
|
@step = new_current - @current
|
88
89
|
@note = note
|
89
90
|
ret = yield if block_given?
|
90
|
-
|
91
|
+
@mutex.synchronize do
|
91
92
|
@current = new_current
|
92
93
|
end
|
93
94
|
ret
|
data/progress.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: progress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project: progress
|
85
|
-
rubygems_version: 2.4.
|
85
|
+
rubygems_version: 2.4.7
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Show progress of long running tasks
|