fortschritt 0.2.5 → 0.2.6
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 +4 -4
- data/README.md +4 -0
- data/lib/fortschritt/enumerable.rb +0 -4
- data/lib/fortschritt/meter.rb +1 -1
- data/lib/fortschritt/printer.rb +1 -1
- data/lib/fortschritt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 382ac11558dc49a6e06feada424773a35514dc15
|
|
4
|
+
data.tar.gz: 5ab2a1e062c63ca84f8164ac7bd3349a57d9c985
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fce85c767c1e359e443c111bdc310648b031f40262031d34e2f5ccfd01f6d43fbab1c291e3ffb39f28029e951d0c46086b4d1d80d4f4a2980f6d9da949ae609
|
|
7
|
+
data.tar.gz: de9ae32d0a5a65ab10446cfa8ee1e7056faa4fd4aa26de3544d4067729a8f00a16842740f27540d9a4e426bbe4ba982d79e331cbcadefcbe267089f8aacb146e
|
data/README.md
CHANGED
|
@@ -44,6 +44,10 @@ end
|
|
|
44
44
|
# won't output any progress
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
Please note, within a Rails application fortschritt will detect the `Rails.env.test?` environment and silent itself automatically.
|
|
48
|
+
|
|
49
|
+
Fortschritt will also never output anything to a non-tty STDOUT.
|
|
50
|
+
|
|
47
51
|
## Contributing
|
|
48
52
|
|
|
49
53
|
Bug reports and pull requests are welcome on GitHub at https://github.com/xijo/fortschritt.
|
|
@@ -17,11 +17,7 @@ if defined?(Rails)
|
|
|
17
17
|
|
|
18
18
|
extend ActiveSupport::Concern
|
|
19
19
|
|
|
20
|
-
# Silence fortschritt in tests and in non-terminal context
|
|
21
20
|
def with_fortschritt(opts = {})
|
|
22
|
-
unless opts.has_key?(:silent)
|
|
23
|
-
opts[:silent] = Rails.env.test? || !STDOUT.tty?
|
|
24
|
-
end
|
|
25
21
|
Fortschritt.init(size, opts)
|
|
26
22
|
self
|
|
27
23
|
end
|
data/lib/fortschritt/meter.rb
CHANGED
data/lib/fortschritt/printer.rb
CHANGED
data/lib/fortschritt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fortschritt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Johannes Opper
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|