fuubar 2.1.0.beta2 → 2.1.0
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +24 -6
- data/lib/fuubar.rb +0 -2
- data/lib/fuubar/output.rb +1 -2
- data/spec/fuubar/output_spec.rb +0 -1
- data/spec/fuubar_spec.rb +13 -13
- metadata +18 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24d078e80cd100c3eda0bf54921b78d3b452d7f7
|
|
4
|
+
data.tar.gz: 83f66d8f49e3563c882beb8a5444dec93927ad9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cc7444cbc3ceed0498600b02f6f4f8c56806810696a211ff0f8d94dc27226a589eb52fdea42376919b89adabd53292b79b0734b0784d18293554954c9f49fc8
|
|
7
|
+
data.tar.gz: ba0e0508d504907ccbed873a39e8607091861908a545ab15051354f5e643676415c01f06c621887a303e4d33a8179f535a4fd32c1d6e297a5776a94db72c2430
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#Fuubar
|
|
2
2
|
|
|
3
|
-
[](https://rubygems.org/gems/fuubar)    [](http://travis-ci.org/thekompanee/fuubar) [](https://codeclimate.com/github/thekompanee/fuubar)
|
|
4
4
|
|
|
5
5
|
Fuubar is an instafailing [RSpec](http://github.com/rspec) formatter that uses a progress bar instead of a string of letters and dots as feedback.
|
|
6
6
|
|
|
@@ -11,10 +11,8 @@ Supported Rubies
|
|
|
11
11
|
* MRI Ruby 1.8.7
|
|
12
12
|
* MRI Ruby 1.9.2
|
|
13
13
|
* MRI Ruby 1.9.3
|
|
14
|
-
* MRI Ruby 2.0.
|
|
15
|
-
* MRI Ruby 2.1.
|
|
16
|
-
* MRI Ruby 2.2.x
|
|
17
|
-
* MRI Ruby 2.3.x
|
|
14
|
+
* MRI Ruby 2.0.0
|
|
15
|
+
* MRI Ruby 2.1.0
|
|
18
16
|
* JRuby (in 1.8 compat mode)
|
|
19
17
|
* JRuby (in 1.9 compat mode)
|
|
20
18
|
|
|
@@ -44,6 +42,26 @@ Or, if you want to use Fuubar as your default formatter, simply put the options
|
|
|
44
42
|
--format Fuubar
|
|
45
43
|
--color
|
|
46
44
|
|
|
45
|
+
Security
|
|
46
|
+
--------------------------------------------------------------------------------
|
|
47
|
+
|
|
48
|
+
fuubar is cryptographically signed. To be sure the gem you install hasn’t been
|
|
49
|
+
tampered with:
|
|
50
|
+
|
|
51
|
+
* Add my public key (if you haven’t already) as a trusted certificate
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
gem cert --add <(curl -Ls https://raw.github.com/thekompanee/fuubar/master/certs/thekompanee.pem)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
* gem install fuubar -P MediumSecurity
|
|
58
|
+
|
|
59
|
+
The `MediumSecurity` trust profile will verify signed gems, but allow the
|
|
60
|
+
installation of unsigned dependencies.
|
|
61
|
+
|
|
62
|
+
This is necessary because not all of fuubar has a dependency on RSpec which
|
|
63
|
+
isn't signed, so we cannot use `HighSecurity`.
|
|
64
|
+
|
|
47
65
|
Advanced Usage
|
|
48
66
|
--------------------------------
|
|
49
67
|
|
|
@@ -84,4 +102,4 @@ Found an issue? Have a great idea? Want to help? Great! Create an issue [issue](
|
|
|
84
102
|
License
|
|
85
103
|
--------------------------------
|
|
86
104
|
|
|
87
|
-
fuubar is Copyright © 2010-
|
|
105
|
+
fuubar is Copyright © 2010-2016 Jeff Kreeftmeijer and Jeff Felchner. It is free software, and may be redistributed under the terms specified in the LICENSE file.
|
data/lib/fuubar.rb
CHANGED
|
@@ -118,12 +118,10 @@ class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
# :reek:UtilityFunction disable
|
|
122
121
|
def color_code_for(*args)
|
|
123
122
|
RSpec::Core::Formatters::ConsoleCodes.console_code_for(*args)
|
|
124
123
|
end
|
|
125
124
|
|
|
126
|
-
# :reek:UtilityFunction disable
|
|
127
125
|
def configuration
|
|
128
126
|
RSpec.configuration
|
|
129
127
|
end
|
data/lib/fuubar/output.rb
CHANGED
data/spec/fuubar/output_spec.rb
CHANGED
data/spec/fuubar_spec.rb
CHANGED
|
@@ -71,7 +71,7 @@ describe Fuubar do
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
it 'sets the format of the bar to the default' do
|
|
74
|
-
expect(formatter.progress.instance_variable_get(:@
|
|
74
|
+
expect(formatter.progress.instance_variable_get(:@format)).to eql ' %c/%C |%w>%i| %e '
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
it 'sets the total to the number of examples' do
|
|
@@ -79,8 +79,8 @@ describe Fuubar do
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
it 'sets the bar\'s output' do
|
|
82
|
-
expect(formatter.progress.send(:output)).to
|
|
83
|
-
expect(formatter.progress.send(:output)).to eql output
|
|
82
|
+
expect(formatter.progress.send(:output).stream).to be_a Fuubar::Output
|
|
83
|
+
expect(formatter.progress.send(:output).stream.__getobj__).to eql output
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
context 'and continuous integration is enabled' do
|
|
@@ -90,8 +90,8 @@ describe Fuubar do
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
it 'throttles the progress bar at one second' do
|
|
93
|
-
throttle = formatter.progress.
|
|
94
|
-
throttle_rate = throttle.
|
|
93
|
+
throttle = formatter.progress.__send__(:output).__send__(:throttle)
|
|
94
|
+
throttle_rate = throttle.__send__(:rate)
|
|
95
95
|
|
|
96
96
|
expect(throttle_rate).to eql 1.0
|
|
97
97
|
end
|
|
@@ -100,8 +100,8 @@ describe Fuubar do
|
|
|
100
100
|
before do
|
|
101
101
|
formatter.start(start_notification)
|
|
102
102
|
|
|
103
|
-
throttle = formatter.progress.
|
|
104
|
-
_throttle_rate = throttle.
|
|
103
|
+
throttle = formatter.progress.__send__(:output).__send__(:throttle)
|
|
104
|
+
_throttle_rate = throttle.__send__(:rate=, 0.0)
|
|
105
105
|
|
|
106
106
|
output.rewind
|
|
107
107
|
|
|
@@ -121,8 +121,8 @@ describe Fuubar do
|
|
|
121
121
|
end
|
|
122
122
|
|
|
123
123
|
it 'throttles the progress bar at the default rate' do
|
|
124
|
-
throttle = formatter.progress.
|
|
125
|
-
throttle_rate = throttle.
|
|
124
|
+
throttle = formatter.progress.__send__(:output).__send__(:throttle)
|
|
125
|
+
throttle_rate = throttle.__send__(:rate)
|
|
126
126
|
|
|
127
127
|
expect(throttle_rate).to eql 0.01
|
|
128
128
|
end
|
|
@@ -131,8 +131,8 @@ describe Fuubar do
|
|
|
131
131
|
before do
|
|
132
132
|
formatter.start(start_notification)
|
|
133
133
|
|
|
134
|
-
throttle = formatter.progress.
|
|
135
|
-
_throttle_rate = throttle.
|
|
134
|
+
throttle = formatter.progress.__send__(:output).__send__(:throttle)
|
|
135
|
+
_throttle_rate = throttle.__send__(:rate=, 0.0)
|
|
136
136
|
|
|
137
137
|
output.rewind
|
|
138
138
|
|
|
@@ -160,7 +160,7 @@ describe Fuubar do
|
|
|
160
160
|
before(:each) { formatter.start(start_notification) }
|
|
161
161
|
|
|
162
162
|
it 'properly creates the bar' do
|
|
163
|
-
expect(formatter.progress.instance_variable_get(:@
|
|
163
|
+
expect(formatter.progress.instance_variable_get(:@format)).to eql '%c'
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
end
|
|
@@ -174,7 +174,7 @@ describe Fuubar do
|
|
|
174
174
|
|
|
175
175
|
context 'and no custom options are passed in' do
|
|
176
176
|
it 'sets the format of the bar to the default' do
|
|
177
|
-
expect(formatter.progress.instance_variable_get(:@
|
|
177
|
+
expect(formatter.progress.instance_variable_get(:@format)).to eql ' %c/%C |%w>%i| %e '
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fuubar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.0
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicholas Evans
|
|
@@ -33,7 +33,7 @@ cert_chain:
|
|
|
33
33
|
QwSfDGz6+zsImi5N3UT71+mk7YcviQSgvMRl3VkAv8MZ6wcJ5SQRpf9w0OeFH6Ln
|
|
34
34
|
nNbCoHiYeXX/lz/M6AIbxDIZZTwxcyvF7bdrQ2fbH5MsfQ==
|
|
35
35
|
-----END CERTIFICATE-----
|
|
36
|
-
date: 2016-
|
|
36
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
|
37
37
|
dependencies:
|
|
38
38
|
- !ruby/object:Gem::Dependency
|
|
39
39
|
name: rspec
|
|
@@ -42,9 +42,6 @@ dependencies:
|
|
|
42
42
|
- - "~>"
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
44
|
version: '3.0'
|
|
45
|
-
- - "<="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 3.5.0.beta9
|
|
48
45
|
type: :runtime
|
|
49
46
|
prerelease: false
|
|
50
47
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -52,9 +49,6 @@ dependencies:
|
|
|
52
49
|
- - "~>"
|
|
53
50
|
- !ruby/object:Gem::Version
|
|
54
51
|
version: '3.0'
|
|
55
|
-
- - "<="
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
version: 3.5.0.beta9
|
|
58
52
|
- !ruby/object:Gem::Dependency
|
|
59
53
|
name: ruby-progressbar
|
|
60
54
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -69,6 +63,20 @@ dependencies:
|
|
|
69
63
|
- - "~>"
|
|
70
64
|
- !ruby/object:Gem::Version
|
|
71
65
|
version: '1.4'
|
|
66
|
+
- !ruby/object:Gem::Dependency
|
|
67
|
+
name: awesome_print
|
|
68
|
+
requirement: !ruby/object:Gem::Requirement
|
|
69
|
+
requirements:
|
|
70
|
+
- - "~>"
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '1.7'
|
|
73
|
+
type: :development
|
|
74
|
+
prerelease: false
|
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
76
|
+
requirements:
|
|
77
|
+
- - "~>"
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: '1.7'
|
|
72
80
|
description: the instafailing RSpec progress bar formatter
|
|
73
81
|
email: '["jeff@kreeftmeijer.nl", "accounts+git@thekompanee.com"]'
|
|
74
82
|
executables: []
|
|
@@ -97,9 +105,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
97
105
|
version: '0'
|
|
98
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
107
|
requirements:
|
|
100
|
-
- - "
|
|
108
|
+
- - ">="
|
|
101
109
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
110
|
+
version: '0'
|
|
103
111
|
requirements: []
|
|
104
112
|
rubyforge_project:
|
|
105
113
|
rubygems_version: 2.4.5.1
|
metadata.gz.sig
CHANGED
|
Binary file
|