ci_reporter 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 1.7.3 (10/09/12)
2
+
3
+ - Don't extend RSpec BaseFormatter but instead delegate via method_missing for
4
+ better forward-compatibility
5
+
1
6
  == 1.7.2 (9/10/12)
2
7
 
3
8
  - #73: do not search ancestors when checking Test::Unit.const_defined? (Sean Walbran)
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "ci_reporter"
5
- s.version = "1.7.2"
5
+ s.version = "1.7.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Nick Sieger"]
9
- s.date = "2012-09-10"
9
+ s.date = "2012-10-09"
10
10
  s.description = "CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows you to generate XML reports of your test, spec and/or feature runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report XML format, thus allowing your CI system to track test/spec successes and failures."
11
11
  s.email = "nick@nicksieger.com"
12
12
  s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
@@ -86,20 +86,15 @@ module CI
86
86
  end
87
87
 
88
88
  # Custom +RSpec+ formatter used to hook into the spec runs and capture results.
89
- class RSpec < RSpecFormatters::BaseFormatter
89
+ class RSpec
90
90
  attr_accessor :report_manager
91
91
  attr_accessor :formatter
92
92
  def initialize(*args)
93
- super
94
93
  @formatter ||= RSpecFormatters::ProgressFormatter.new(*args)
95
94
  @report_manager = ReportManager.new("spec")
96
95
  @suite = nil
97
96
  end
98
97
 
99
- def start(spec_count)
100
- @formatter.start(spec_count)
101
- end
102
-
103
98
  # rspec 0.9
104
99
  def add_behaviour(name)
105
100
  @formatter.add_behaviour(name)
@@ -117,10 +112,6 @@ module CI
117
112
  @formatter.example_group_started(example_group)
118
113
  new_suite(description_for(example_group))
119
114
  end
120
-
121
- def example_group_finished(example_group)
122
- @formatter.example_group_finished(example_group)
123
- end
124
115
 
125
116
  def example_started(name_or_example)
126
117
  @formatter.example_started(name_or_example)
@@ -163,30 +154,19 @@ module CI
163
154
  spec.skipped = true
164
155
  end
165
156
 
166
- def start_dump
167
- @formatter.start_dump
168
- end
169
-
170
- def dump_failures(*args)
171
- @formatter.dump_failures(*args)
172
- end
173
-
174
- def dump_failure(*args)
175
- @formatter.dump_failure(*args)
176
- end
177
-
178
157
  def dump_summary(*args)
179
158
  @formatter.dump_summary(*args)
180
159
  write_report
181
160
  @formatter.dump_failures
182
161
  end
183
162
 
184
- def dump_pending
185
- @formatter.dump_pending
163
+ def respond_to?(*args)
164
+ @formatter.respond_to?(*args)
186
165
  end
187
166
 
188
- def close
189
- @formatter.close
167
+ # Pass through other methods to RSpec formatter for compatibility
168
+ def method_missing(meth,*args,&block)
169
+ @formatter.send(meth,*args,&block)
190
170
  end
191
171
 
192
172
  private
@@ -6,6 +6,6 @@
6
6
 
7
7
  module CI
8
8
  module Reporter
9
- VERSION = "1.7.2"
9
+ VERSION = "1.7.3"
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: -4021450856772659022
154
+ hash: 2522605448896917189
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  none: false
157
157
  requirements: