GICodeWarrior-ci_reporter 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +22 -22
- data/VERSION +1 -1
- data/ci_reporter.gemspec +73 -0
- data/lib/ci/reporter/rspec.rb +1 -35
- metadata +5 -3
data/Rakefile
CHANGED
@@ -4,27 +4,27 @@ require 'spec/rake/verify_rcov'
|
|
4
4
|
MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt", "Rakefile",
|
5
5
|
"*.rake", "lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
|
6
6
|
|
7
|
-
begin
|
8
|
-
File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
|
9
|
-
require 'hoe'
|
10
|
-
require File.dirname(__FILE__) + '/lib/ci/reporter/version'
|
11
|
-
hoe = Hoe.new("ci_reporter", CI::Reporter::VERSION) do |p|
|
12
|
-
p.rubyforge_name = "caldersphere"
|
13
|
-
p.url = "http://caldersphere.rubyforge.org/ci_reporter"
|
14
|
-
p.author = "Nick Sieger"
|
15
|
-
p.email = "nick@nicksieger.com"
|
16
|
-
p.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
|
17
|
-
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
18
|
-
p.description = p.paragraphs_of('README.txt', 0...1).join("\n\n")
|
19
|
-
p.extra_deps.reject!{|d| d.first == "hoe"}
|
20
|
-
p.test_globs = ["spec/**/*_spec.rb"]
|
21
|
-
p.extra_deps << ['builder', ">= 2.1.2"]
|
22
|
-
end
|
23
|
-
hoe.spec.files = MANIFEST
|
24
|
-
hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
|
25
|
-
rescue LoadError
|
26
|
-
puts "You really need Hoe installed to be able to package this gem"
|
27
|
-
end
|
7
|
+
#begin
|
8
|
+
# File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
|
9
|
+
# require 'hoe'
|
10
|
+
# require File.dirname(__FILE__) + '/lib/ci/reporter/version'
|
11
|
+
# hoe = Hoe.new("ci_reporter", CI::Reporter::VERSION) do |p|
|
12
|
+
# p.rubyforge_name = "caldersphere"
|
13
|
+
# p.url = "http://caldersphere.rubyforge.org/ci_reporter"
|
14
|
+
# p.author = "Nick Sieger"
|
15
|
+
# p.email = "nick@nicksieger.com"
|
16
|
+
# p.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
|
17
|
+
# p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
18
|
+
# p.description = p.paragraphs_of('README.txt', 0...1).join("\n\n")
|
19
|
+
# p.extra_deps.reject!{|d| d.first == "hoe"}
|
20
|
+
# p.test_globs = ["spec/**/*_spec.rb"]
|
21
|
+
# p.extra_deps << ['builder', ">= 2.1.2"]
|
22
|
+
# end
|
23
|
+
# hoe.spec.files = MANIFEST
|
24
|
+
# hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
|
25
|
+
#rescue LoadError
|
26
|
+
# puts "You really need Hoe installed to be able to package this gem"
|
27
|
+
#end
|
28
28
|
|
29
29
|
begin
|
30
30
|
require 'jeweler'
|
@@ -41,7 +41,7 @@ end
|
|
41
41
|
|
42
42
|
# Hoe insists on setting task :default => :test
|
43
43
|
# !@#$ no easy way to empty the default list of prerequisites
|
44
|
-
Rake::Task['default'].send :instance_variable_set, "@prerequisites", FileList[]
|
44
|
+
#Rake::Task['default'].send :instance_variable_set, "@prerequisites", FileList[]
|
45
45
|
|
46
46
|
# No RCov on JRuby at the moment
|
47
47
|
if RUBY_PLATFORM =~ /java/
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.2
|
data/ci_reporter.gemspec
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{ci_reporter}
|
8
|
+
s.version = "1.6.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Nick Sieger"]
|
12
|
+
s.date = %q{2009-09-23}
|
13
|
+
s.email = %q{nick@nicksieger.com}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"LICENSE.txt",
|
16
|
+
"README.txt"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"History.txt",
|
21
|
+
"LICENSE.txt",
|
22
|
+
"README.txt",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"acceptance/rspec_example_spec.rb",
|
26
|
+
"acceptance/test_unit_example_test.rb",
|
27
|
+
"acceptance/verification_spec.rb",
|
28
|
+
"ci_reporter.gemspec",
|
29
|
+
"lib/ci/reporter/core.rb",
|
30
|
+
"lib/ci/reporter/rake/rspec.rb",
|
31
|
+
"lib/ci/reporter/rake/rspec_loader.rb",
|
32
|
+
"lib/ci/reporter/rake/test_unit.rb",
|
33
|
+
"lib/ci/reporter/rake/test_unit_loader.rb",
|
34
|
+
"lib/ci/reporter/report_manager.rb",
|
35
|
+
"lib/ci/reporter/rspec.rb",
|
36
|
+
"lib/ci/reporter/test_suite.rb",
|
37
|
+
"lib/ci/reporter/test_unit.rb",
|
38
|
+
"lib/ci/reporter/version.rb",
|
39
|
+
"spec/ci/reporter/output_capture_spec.rb",
|
40
|
+
"spec/ci/reporter/rake/rake_tasks_spec.rb",
|
41
|
+
"spec/ci/reporter/report_manager_spec.rb",
|
42
|
+
"spec/ci/reporter/rspec_spec.rb",
|
43
|
+
"spec/ci/reporter/test_suite_spec.rb",
|
44
|
+
"spec/ci/reporter/test_unit_spec.rb",
|
45
|
+
"spec/spec_helper.rb",
|
46
|
+
"stub.rake",
|
47
|
+
"tasks/ci_reporter.rake"
|
48
|
+
]
|
49
|
+
s.homepage = %q{http://github.com/nicksieger/ci_reporter}
|
50
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
51
|
+
s.require_paths = ["lib"]
|
52
|
+
s.rubygems_version = %q{1.3.4}
|
53
|
+
s.summary = %q{Generate reams of XML for use with continuous integration systems.}
|
54
|
+
s.test_files = [
|
55
|
+
"spec/spec_helper.rb",
|
56
|
+
"spec/ci/reporter/test_unit_spec.rb",
|
57
|
+
"spec/ci/reporter/report_manager_spec.rb",
|
58
|
+
"spec/ci/reporter/rake/rake_tasks_spec.rb",
|
59
|
+
"spec/ci/reporter/rspec_spec.rb",
|
60
|
+
"spec/ci/reporter/test_suite_spec.rb",
|
61
|
+
"spec/ci/reporter/output_capture_spec.rb"
|
62
|
+
]
|
63
|
+
|
64
|
+
if s.respond_to? :specification_version then
|
65
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
66
|
+
s.specification_version = 3
|
67
|
+
|
68
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
69
|
+
else
|
70
|
+
end
|
71
|
+
else
|
72
|
+
end
|
73
|
+
end
|
data/lib/ci/reporter/rspec.rb
CHANGED
@@ -6,7 +6,6 @@ require 'ci/reporter/core'
|
|
6
6
|
tried_gem = false
|
7
7
|
begin
|
8
8
|
require 'spec'
|
9
|
-
require 'spec/runner/formatter/specdoc_formatter'
|
10
9
|
rescue LoadError
|
11
10
|
unless tried_gem
|
12
11
|
tried_gem = true
|
@@ -42,24 +41,10 @@ module CI
|
|
42
41
|
attr_accessor :report_manager
|
43
42
|
def initialize(*args)
|
44
43
|
super
|
45
|
-
@report_manager = ReportManager.new(
|
44
|
+
@report_manager = ReportManager.new('spec')
|
46
45
|
@suite = nil
|
47
46
|
end
|
48
47
|
|
49
|
-
def start(spec_count)
|
50
|
-
end
|
51
|
-
|
52
|
-
# rspec 0.9
|
53
|
-
def add_behaviour(name)
|
54
|
-
new_suite(name)
|
55
|
-
end
|
56
|
-
|
57
|
-
# Compatibility with rspec < 1.2.4
|
58
|
-
def add_example_group(example_group)
|
59
|
-
new_suite(example_group.description)
|
60
|
-
end
|
61
|
-
|
62
|
-
# rspec >= 1.2.4
|
63
48
|
def example_group_started(example_group)
|
64
49
|
new_suite(example_group.description)
|
65
50
|
end
|
@@ -88,22 +73,10 @@ module CI
|
|
88
73
|
spec.name = "#{spec.name} (PENDING)"
|
89
74
|
end
|
90
75
|
|
91
|
-
def start_dump
|
92
|
-
end
|
93
|
-
|
94
|
-
def dump_failure(*args)
|
95
|
-
end
|
96
|
-
|
97
76
|
def dump_summary(*args)
|
98
77
|
write_report
|
99
78
|
end
|
100
79
|
|
101
|
-
def dump_pending
|
102
|
-
end
|
103
|
-
|
104
|
-
def close
|
105
|
-
end
|
106
|
-
|
107
80
|
private
|
108
81
|
def write_report
|
109
82
|
@suite.finish
|
@@ -116,12 +89,5 @@ module CI
|
|
116
89
|
@suite.start
|
117
90
|
end
|
118
91
|
end
|
119
|
-
|
120
|
-
class RSpecDoc < RSpec
|
121
|
-
def initialize(*args)
|
122
|
-
@formatter = Spec::Runner::Formatter::SpecdocFormatter.new(*args)
|
123
|
-
super
|
124
|
-
end
|
125
|
-
end
|
126
92
|
end
|
127
93
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: GICodeWarrior-ci_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sieger
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-23 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -32,6 +32,7 @@ files:
|
|
32
32
|
- acceptance/rspec_example_spec.rb
|
33
33
|
- acceptance/test_unit_example_test.rb
|
34
34
|
- acceptance/verification_spec.rb
|
35
|
+
- ci_reporter.gemspec
|
35
36
|
- lib/ci/reporter/core.rb
|
36
37
|
- lib/ci/reporter/rake/rspec.rb
|
37
38
|
- lib/ci/reporter/rake/rspec_loader.rb
|
@@ -53,6 +54,7 @@ files:
|
|
53
54
|
- tasks/ci_reporter.rake
|
54
55
|
has_rdoc: false
|
55
56
|
homepage: http://github.com/nicksieger/ci_reporter
|
57
|
+
licenses:
|
56
58
|
post_install_message:
|
57
59
|
rdoc_options:
|
58
60
|
- --charset=UTF-8
|
@@ -73,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
75
|
requirements: []
|
74
76
|
|
75
77
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
78
|
+
rubygems_version: 1.3.5
|
77
79
|
signing_key:
|
78
80
|
specification_version: 3
|
79
81
|
summary: Generate reams of XML for use with continuous integration systems.
|