fuubar 0.0.2 → 0.0.3

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuubar (0.0.2)
4
+ fuubar (0.0.3)
5
5
  rspec (~> 2.0)
6
6
  rspec-instafail (~> 0.1.4)
7
7
  ruby-progressbar (~> 0.0.9)
data/README.textile CHANGED
@@ -1,6 +1,6 @@
1
- h1. Fuubar
1
+ h1. Fuubar "!http://stillmaintained.com/jeffkreeftmeijer/fuubar.png!":http://stillmaintained.com/jeffkreeftmeijer/fuubar
2
2
 
3
- 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. Here's "a video of Fuubar in action":http://vimeo.com/16845253.
3
+ 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. Here's "a video of Fuubar in action":http://vimeo.com/16845253.
4
4
 
5
5
  h2. Installation
6
6
 
@@ -15,4 +15,6 @@ bc. --format Fuubar
15
15
 
16
16
  h2. Contributing
17
17
 
18
- Found an issue? Have a great idea? Want to help? Great! Create an issue "issue":http://github.com/jeffkreeftmeijer/fuubar/issues for it, "ask":http://github.com/inbox/new/jeffkreeftmeijer, or even better; fork the project and fix the problem yourself. Pull requests are always welcome. :)
18
+ Found an issue? Have a great idea? Want to help? Great! Create an issue "issue":http://github.com/jeffkreeftmeijer/fuubar/issues for it, "ask":http://github.com/inbox/new/jeffkreeftmeijer, or even better; fork the project and fix the problem yourself. Pull requests are always welcome. :)
19
+
20
+ Yay for "Fuubar's awesome contributors":https://github.com/jeffkreeftmeijer/fuubar/wiki/Contributors!
data/fuubar.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "fuubar"
5
- s.version = '0.0.2'
5
+ s.version = '0.0.3'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Nicholas Evans", "Jeff Kreeftmeijer"]
8
8
  s.email = ["jeff@kreeftmeijer.nl"]
data/lib/fuubar.rb CHANGED
@@ -17,8 +17,8 @@ class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
17
17
  def increment
18
18
  with_color do
19
19
  @finished_count += 1
20
- @progress_bar.inc
21
20
  @progress_bar.instance_variable_set("@title", " #{finished_count}/#{example_count}")
21
+ @progress_bar.inc
22
22
  end
23
23
  end
24
24
 
data/spec/fuubar_spec.rb CHANGED
@@ -120,6 +120,12 @@ describe Fuubar do
120
120
  lambda { @formatter.increment }.should change(@formatter, :finished_count).by(1)
121
121
  end
122
122
 
123
+ it 'should increment the progress bar before updating the title' do
124
+ @progress_bar.should_receive(:instance_variable_set).ordered
125
+ @progress_bar.should_receive(:inc).ordered
126
+ @formatter.increment
127
+ end
128
+
123
129
  end
124
130
 
125
131
  describe 'instafail' do
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuubar
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 2
9
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Nicholas Evans
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-11-18 00:00:00 +01:00
19
+ date: 2010-12-08 00:00:00 +01:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: rspec
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ~>
27
29
  - !ruby/object:Gem::Version
30
+ hash: 3
28
31
  segments:
29
32
  - 2
30
33
  - 0
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: ruby-progressbar
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ~>
40
44
  - !ruby/object:Gem::Version
45
+ hash: 13
41
46
  segments:
42
47
  - 0
43
48
  - 0
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: rspec-instafail
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ~>
54
60
  - !ruby/object:Gem::Version
61
+ hash: 19
55
62
  segments:
56
63
  - 0
57
64
  - 1
@@ -89,23 +96,27 @@ rdoc_options: []
89
96
  require_paths:
90
97
  - lib
91
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
+ none: false
92
100
  requirements:
93
101
  - - ">="
94
102
  - !ruby/object:Gem::Version
103
+ hash: 3
95
104
  segments:
96
105
  - 0
97
106
  version: "0"
98
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
99
109
  requirements:
100
110
  - - ">="
101
111
  - !ruby/object:Gem::Version
112
+ hash: 3
102
113
  segments:
103
114
  - 0
104
115
  version: "0"
105
116
  requirements: []
106
117
 
107
118
  rubyforge_project: fuubar
108
- rubygems_version: 1.3.6
119
+ rubygems_version: 1.3.7
109
120
  signing_key:
110
121
  specification_version: 3
111
122
  summary: the instafailing RSpec progress bar formatter