fuubar 2.1.0.beta2 → 2.1.0

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: adbcb0e13d0010bfda9f620cf6a7c8a4c4449631
4
- data.tar.gz: 36f8ecabc6eb7028951615b5c8637df5bd6ba955
3
+ metadata.gz: 24d078e80cd100c3eda0bf54921b78d3b452d7f7
4
+ data.tar.gz: 83f66d8f49e3563c882beb8a5444dec93927ad9d
5
5
  SHA512:
6
- metadata.gz: 7ddd68fab443bcf84bea760ef7a0ed8abf3097ab2f2a68895abbbe235452c53dd20908ea65063e88608e22a39f1aeb433eac5cc66931e6d673e6c7e010636197
7
- data.tar.gz: 3ab78c348737f0324df3bfdbcf8681ae5f3708ed52025c6f25c701ed88d04d94bb0a26d9890bd7e5537720935a5b57170df914577ec932517a3fc55ca2f1b4cf
6
+ metadata.gz: 8cc7444cbc3ceed0498600b02f6f4f8c56806810696a211ff0f8d94dc27226a589eb52fdea42376919b89adabd53292b79b0734b0784d18293554954c9f49fc8
7
+ data.tar.gz: ba0e0508d504907ccbed873a39e8607091861908a545ab15051354f5e643676415c01f06c621887a303e4d33a8179f535a4fd32c1d6e297a5776a94db72c2430
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  #Fuubar
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/fuubar.svg)](https://badge.fury.io/rb/fuubar) [![Build Status](https://secure.travis-ci.org/thekompanee/fuubar.svg?branch=master)](http://travis-ci.org/thekompanee/fuubar) [![Code Climate](https://codeclimate.com/github/thekompanee/fuubar.svg)](https://codeclimate.com/github/thekompanee/fuubar) [![Code Climate](https://codeclimate.com/github/thekompanee/fuubar/coverage.svg)](https://codeclimate.com/github/thekompanee/fuubar)
3
+ [![Gem Version](https://img.shields.io/gem/v/fuubar.svg)](https://rubygems.org/gems/fuubar) ![Rubygems Rank Overall](https://img.shields.io/gem/rt/fuubar.svg) ![Rubygems Rank Daily](https://img.shields.io/gem/rd/fuubar.svg) ![Rubygems Downloads](https://img.shields.io/gem/dv/fuubar/stable.svg) [![Build Status](https://img.shields.io/travis/thekompanee/fuubar/master.svg)](http://travis-ci.org/thekompanee/fuubar) [![Code Climate](https://codeclimate.com/github/thekompanee/fuubar.svg)](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.x
15
- * MRI Ruby 2.1.x
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 &copy; 2010-2013 Jeff Kreeftmeijer and Jeff Felchner. It is free software, and may be redistributed under the terms specified in the LICENSE file.
105
+ fuubar is Copyright &copy; 2010-2016 Jeff Kreeftmeijer and Jeff Felchner. It is free software, and may be redistributed under the terms specified in the LICENSE file.
@@ -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
@@ -1,6 +1,5 @@
1
1
  class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
2
- class Output < Delegator
3
- # :reek:BooleanParameter disable
2
+ class Output < ::Delegator
4
3
  def initialize(output, force_tty = false)
5
4
  @raw_output = output
6
5
  @force_tty = force_tty
@@ -23,7 +23,6 @@ describe Output do
23
23
 
24
24
  expect(output.hello).to eql 'hello'
25
25
  expect(output).to be_tty
26
- expect(output.to_s).to match 'TestTtyOutputClass'
27
26
  end
28
27
 
29
28
  it 'can override the TTY of the passed in class' do
@@ -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(:@format_string)).to eql ' %c/%C |%w>%i| %e '
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 be_a Fuubar::Output
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.instance_variable_get(:@throttle)
94
- throttle_rate = throttle.instance_variable_get(:@period)
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.instance_variable_get(:@throttle)
104
- _throttle_rate = throttle.instance_variable_set(:@period, 0.0)
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.instance_variable_get(:@throttle)
125
- throttle_rate = throttle.instance_variable_get(:@period)
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.instance_variable_get(:@throttle)
135
- _throttle_rate = throttle.instance_variable_set(:@period, 0.0)
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(:@format_string)).to eql '%c'
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(:@format_string)).to eql ' %c/%C |%w>%i| %e '
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.beta2
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-04-24 00:00:00.000000000 Z
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: 1.3.1
110
+ version: '0'
103
111
  requirements: []
104
112
  rubyforge_project:
105
113
  rubygems_version: 2.4.5.1
metadata.gz.sig CHANGED
Binary file