rspec_spinner 0.5.2 → 1.1.1
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/.gitignore +7 -0
- data/Rakefile +58 -32
- data/VERSION +1 -0
- data/lib/rspec_spinner.rb +0 -4
- data/lib/rspec_spinner/base.rb +27 -10
- data/rspec_spinner.gemspec +46 -26
- data/spec/rspec_spinner/base_spec.rb +57 -33
- data/spec/spec.opts +2 -0
- metadata +43 -55
- data/Manifest.txt +0 -20
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/tasks/rspec.rake +0 -21
data/.gitignore
ADDED
data/Rakefile
CHANGED
@@ -1,32 +1,58 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "rspec_spinner"
|
8
|
+
gem.summary = "Extra formatters for Rspec"
|
9
|
+
gem.email = "Cool Extra formatters for Rspec"
|
10
|
+
gem.homepage = "http://github.com/nofxx/rspec_spinner"
|
11
|
+
gem.authors = ["Marcos Augusto"]
|
12
|
+
gem.add_dependency 'rspec' # ,'>=1.1.11'],
|
13
|
+
gem.add_dependency 'rtui' #,'>= 0.1.8']
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
|
17
|
+
rescue LoadError
|
18
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'rake/testtask'
|
22
|
+
Rake::TestTask.new(:test) do |test|
|
23
|
+
test.libs << 'lib' << 'test'
|
24
|
+
test.pattern = 'test/**/*_test.rb'
|
25
|
+
test.verbose = true
|
26
|
+
end
|
27
|
+
|
28
|
+
begin
|
29
|
+
require 'rcov/rcovtask'
|
30
|
+
Rcov::RcovTask.new do |test|
|
31
|
+
test.libs << 'test'
|
32
|
+
test.pattern = 'test/**/*_test.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
rescue LoadError
|
36
|
+
task :rcov do
|
37
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'rake/rdoctask'
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
46
|
+
if File.exist?('VERSION.yml')
|
47
|
+
config = YAML.load(File.read('VERSION.yml'))
|
48
|
+
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
49
|
+
else
|
50
|
+
version = ""
|
51
|
+
end
|
52
|
+
|
53
|
+
rdoc.rdoc_dir = 'rdoc'
|
54
|
+
rdoc.title = "rspec_spinner #{version}"
|
55
|
+
rdoc.rdoc_files.include('README*')
|
56
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
57
|
+
end
|
58
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.1
|
data/lib/rspec_spinner.rb
CHANGED
data/lib/rspec_spinner/base.rb
CHANGED
@@ -11,6 +11,11 @@ module RspecSpinner
|
|
11
11
|
|
12
12
|
attr_reader :total, :current
|
13
13
|
|
14
|
+
def initialize(options, where)
|
15
|
+
super
|
16
|
+
@example_times = []
|
17
|
+
end
|
18
|
+
|
14
19
|
def start(example_count)
|
15
20
|
@current = 0
|
16
21
|
@total = example_count
|
@@ -25,16 +30,15 @@ module RspecSpinner
|
|
25
30
|
end
|
26
31
|
|
27
32
|
def example_passed(example)
|
28
|
-
|
29
|
-
|
30
|
-
|
33
|
+
ex = [example_group.description, example.description, example.location, Time.now - @start_time]
|
34
|
+
print_warning_if_slow(*ex)
|
35
|
+
@example_times << ex
|
31
36
|
increment
|
32
37
|
end
|
33
38
|
|
34
39
|
# third param is optional, because earlier versions of rspec sent only two args
|
35
|
-
def example_pending(example, message,
|
36
|
-
|
37
|
-
immediately_dump_pending(desc, message, pending_caller)
|
40
|
+
def example_pending(example, message, deprecated_pending_location=nil)
|
41
|
+
immediately_dump_pending(example.description, message, example.location)
|
38
42
|
mark_error_state_pending
|
39
43
|
increment
|
40
44
|
end
|
@@ -47,6 +51,19 @@ module RspecSpinner
|
|
47
51
|
|
48
52
|
def start_dump
|
49
53
|
output.flush
|
54
|
+
super
|
55
|
+
@output.puts "\n\nTop 15 slowest examples:\n"
|
56
|
+
|
57
|
+
@example_times = @example_times.sort_by do |description, example, location, time|
|
58
|
+
time
|
59
|
+
end.reverse
|
60
|
+
|
61
|
+
@example_times[0..14].each do |description, example, location, time|
|
62
|
+
_,line = location.split(":")
|
63
|
+
@output.print red(sprintf("%.7f", time))
|
64
|
+
@output.puts " #{description}:#{line} #{example}"
|
65
|
+
end
|
66
|
+
@output.flush
|
50
67
|
end
|
51
68
|
|
52
69
|
def dump_failure(*args)
|
@@ -69,10 +86,10 @@ module RspecSpinner
|
|
69
86
|
end
|
70
87
|
|
71
88
|
# stolen and modified from BaseTextFormatter#dump_pending
|
72
|
-
def immediately_dump_pending(desc, msg,
|
89
|
+
def immediately_dump_pending(desc, msg, location)
|
73
90
|
erase_current_line
|
74
91
|
output.puts yellow("PENDING SPEC:") + " #{desc} (#{msg})"
|
75
|
-
output.puts format_backtrace(" Called from #{
|
92
|
+
output.puts format_backtrace(" Called from #{location}")
|
76
93
|
output.puts
|
77
94
|
end
|
78
95
|
|
@@ -113,12 +130,12 @@ module RspecSpinner
|
|
113
130
|
output.print "\e[K"
|
114
131
|
end
|
115
132
|
|
116
|
-
def print_warning_if_slow(group, example, elapsed)
|
133
|
+
def print_warning_if_slow(group, example, location, elapsed)
|
117
134
|
if elapsed > THRESHOLD
|
118
135
|
#mark_error_state(:pending)
|
119
136
|
erase_current_line
|
120
137
|
output.print yellow("SLOW SPEC: #{sprintf("%.4f", elapsed)} ")
|
121
|
-
output.print " #{group} #{example}"
|
138
|
+
output.print " FROM: #{location} / #{group} #{example}"
|
122
139
|
output.puts
|
123
140
|
end
|
124
141
|
end
|
data/rspec_spinner.gemspec
CHANGED
@@ -1,44 +1,64 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{rspec_spinner}
|
5
|
-
s.version = "
|
8
|
+
s.version = "1.1.1"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Marcos
|
9
|
-
s.date = %q{
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
|
13
|
-
|
14
|
-
s.
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
s.authors = ["Marcos Augusto"]
|
12
|
+
s.date = %q{2010-03-18}
|
13
|
+
s.email = %q{Cool Extra formatters for Rspec}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"README.rdoc"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
".gitignore",
|
19
|
+
"History.txt",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"PostInstall.txt",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"lib/rspec_spinner.rb",
|
26
|
+
"lib/rspec_spinner/bar.rb",
|
27
|
+
"lib/rspec_spinner/base.rb",
|
28
|
+
"lib/rspec_spinner/spinner.rb",
|
29
|
+
"rspec_spinner.gemspec",
|
30
|
+
"spec/rspec_spinner/base_spec.rb",
|
31
|
+
"spec/rspec_spinner/spinner_spec.rb",
|
32
|
+
"spec/rspec_spinner_spec.rb",
|
33
|
+
"spec/spec.opts",
|
34
|
+
"spec/spec_helper.rb"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/nofxx/rspec_spinner}
|
37
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
18
38
|
s.require_paths = ["lib"]
|
19
|
-
s.
|
20
|
-
s.rubygems_version = %q{1.3.1}
|
39
|
+
s.rubygems_version = %q{1.3.6}
|
21
40
|
s.summary = %q{Extra formatters for Rspec}
|
41
|
+
s.test_files = [
|
42
|
+
"spec/spec_helper.rb",
|
43
|
+
"spec/rspec_spinner/base_spec.rb",
|
44
|
+
"spec/rspec_spinner/spinner_spec.rb",
|
45
|
+
"spec/rspec_spinner_spec.rb"
|
46
|
+
]
|
22
47
|
|
23
48
|
if s.respond_to? :specification_version then
|
24
49
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
|
-
s.specification_version =
|
50
|
+
s.specification_version = 3
|
26
51
|
|
27
52
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
|
-
s.add_runtime_dependency(%q<rspec>, [">=
|
29
|
-
s.add_runtime_dependency(%q<rtui>, [">= 0
|
30
|
-
s.add_development_dependency(%q<newgem>, [">= 1.3.0"])
|
31
|
-
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
53
|
+
s.add_runtime_dependency(%q<rspec>, [">= 0"])
|
54
|
+
s.add_runtime_dependency(%q<rtui>, [">= 0"])
|
32
55
|
else
|
33
|
-
s.add_dependency(%q<rspec>, [">=
|
34
|
-
s.add_dependency(%q<rtui>, [">= 0
|
35
|
-
s.add_dependency(%q<newgem>, [">= 1.3.0"])
|
36
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
56
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
57
|
+
s.add_dependency(%q<rtui>, [">= 0"])
|
37
58
|
end
|
38
59
|
else
|
39
|
-
s.add_dependency(%q<rspec>, [">=
|
40
|
-
s.add_dependency(%q<rtui>, [">= 0
|
41
|
-
s.add_dependency(%q<newgem>, [">= 1.3.0"])
|
42
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
60
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rtui>, [">= 0"])
|
43
62
|
end
|
44
63
|
end
|
64
|
+
|
@@ -12,10 +12,11 @@ describe "Base" do
|
|
12
12
|
|
13
13
|
it "should produce line break on start dump" do
|
14
14
|
@formatter.start_dump
|
15
|
-
@io.string.should eql("")
|
15
|
+
@io.string.should eql("\n\nTop 15 slowest examples:\n")
|
16
16
|
end
|
17
17
|
|
18
18
|
it "should produce standard summary without pending when pending has a 0 count" do
|
19
|
+
@options.should_receive(:autospec).and_return(true)
|
19
20
|
@formatter.dump_summary(3, 2, 1, 0)
|
20
21
|
@io.string.should eql("\nFinished in 3 seconds\n\n2 examples, 1 failure\n")
|
21
22
|
end
|
@@ -37,62 +38,71 @@ describe "Base" do
|
|
37
38
|
end
|
38
39
|
|
39
40
|
it "should produce standard summary" do
|
41
|
+
@options.should_receive(:autospec).exactly(2).times.and_return(true)
|
40
42
|
example = @pending_group.examples.first
|
41
43
|
@formatter.start(1)
|
42
44
|
@formatter.example_pending(example, "message", "file/here:35")
|
43
45
|
@io.rewind
|
44
46
|
@formatter.dump_summary(3, 2, 1, 1)
|
45
|
-
@io.string.should eql("\nFinished in 3 seconds\n\n2 examples, 1 failure, 1 pending\n \r1 examples: 0% | | ETA: --:--:--\r\e[KPENDING SPEC: pending (message)\n Called from
|
47
|
+
@io.string.should eql("\nFinished in 3 seconds\n\n2 examples, 1 failure, 1 pending\n \r1 examples: 0% | | ETA: --:--:--\r\e[KPENDING SPEC: pending (message)\n Called from /home/nofxx/git/rspec_spinner/spec/rspec_spinner/base_spec.rb:35:\n\n1/1: 100% |====================================================| ETA: 00:00:00\r")
|
46
48
|
end
|
47
49
|
|
48
50
|
it "should update status and go green for passing spec" do
|
49
|
-
|
50
|
-
@example = mock("Example", :description => "Foo") #@passing_group.examples.first
|
51
|
+
@example = mock("Example", :description => "Foo", :location => "/foo/bar:45") #@passing_group.examples.first
|
51
52
|
@io.should_receive(:tty?).and_return(true)
|
52
53
|
@options.should_receive(:colour).and_return(true)
|
53
54
|
@formatter.start(1)
|
54
|
-
|
55
|
+
@formatter.example_started(@example)
|
56
|
+
@formatter.should_receive(:example_group).and_return(mock("Group", :description => "Cool"))
|
55
57
|
@formatter.example_passed(@example)
|
56
|
-
@io.string.should == "\e[
|
58
|
+
@io.string.should == "\r \r1 examples: 0% | | ETA: --:--:--\r\e[32m1/1: 100% |====================================================| ETA: 00:00:00\r\e[0m"
|
57
59
|
end
|
58
60
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
61
|
+
describe "Pending" do
|
62
|
+
|
63
|
+
it "should output pending spec immediately (in yellow)" do
|
64
|
+
@options.should_receive(:colour).and_return(true)
|
65
|
+
@options.should_receive(:autospec).and_return(true)
|
66
|
+
@formatter.start(1)
|
67
|
+
@mock_message = mock("PENDING", :description => "Oi", :backtrace => ["Bad", "Ugly"], :location => "Foo l 20")
|
68
|
+
@formatter.example_pending(@mock_message, "Teste")
|
69
|
+
@io.string.should eql("\r \r1 examples: 0% | | ETA: --:--:--\r\e[K\e[33mPENDING SPEC:\e[0m Oi (Teste)\n Called from Foo l 20\n\n1/1: 100% |====================================================| ETA: 00:00:00\r")
|
70
|
+
end
|
67
71
|
|
68
|
-
it "should push magenta for error spec" do
|
69
|
-
@io.should_receive(:tty?).and_return(true)
|
70
|
-
@options.should_receive(:colour).and_return(true)
|
71
|
-
@formatter.start(1)
|
72
|
-
@mock_fail = mock("Fail", :__full_description => "Error Failed")
|
73
|
-
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new(@mock_fail, RuntimeError.new, "oi"))
|
74
|
-
@io.string.should eql("\r \r1 examples: 0% | | ETA: --:--:--\r\e[K\n98) \e[35mRuntimeError in 'Error Failed'\nRuntimeError\e[0m\n\n\n1/1: 100% |====================================================| ETA: 00:00:00\r")
|
75
72
|
end
|
76
73
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
74
|
+
describe "Failure" do
|
75
|
+
|
76
|
+
it "should output failure spec immediately (in red)" do
|
77
|
+
# @io.should_receive(:tty?).and_return(true)
|
78
|
+
@options.should_receive(:colour).and_return(true)
|
79
|
+
@options.should_receive(:autospec).and_return(true)
|
80
|
+
@formatter.start(1)
|
81
|
+
@mock_message = mock("FAIL", :message => "Really bad", :backtrace => "Bad")
|
82
|
+
@formatter.example_failed("spec", 98, mock("SpecFail", :exception => @mock_message, :header => "Evil failure", :pending_fixed? => false))
|
83
|
+
@io.string.should eql("\r \r1 examples: 0% | | ETA: --:--:--\r\e[K\n98) \e[31mEvil failure\nReally bad\e[0m\nBad\n\n1/1: 100% |====================================================| ETA: 00:00:00\r")
|
84
|
+
end
|
85
|
+
|
86
|
+
it "should push blue for fixed pending spec" do
|
87
|
+
@options.should_receive(:colour).and_return(true)
|
88
|
+
@options.should_receive(:autospec).and_return(true)
|
89
|
+
@formatter.start(1)
|
90
|
+
@mock_message = mock("FAIL", :message => "Really bad", :backtrace => "Bad")
|
91
|
+
@formatter.example_failed("spec", 98, mock("SpecFail", :exception => @mock_message, :header => "Evil failure", :pending_fixed? => true))
|
92
|
+
@io.string.should eql("\r \r1 examples: 0% | | ETA: --:--:--\r\e[K\n98) \e[34mEvil failure\nReally bad\e[0m\nBad\n\n1/1: 100% |====================================================| ETA: 00:00:00\r")
|
93
|
+
end
|
84
94
|
end
|
85
95
|
|
86
96
|
it "should push slow specs" do
|
87
|
-
|
88
|
-
@io.should_receive(:tty?).and_return(true)
|
97
|
+
# @io.should_receive(:tty?).and_return(true)
|
89
98
|
@options.should_receive(:colour).and_return(true)
|
99
|
+
Time.should_receive(:now).at_least(11).times.and_return(Date.parse("10/10/2000 10:10:10"), Date.parse("10/10/2009 10:10:10"))
|
100
|
+
@mock_slow = mock("SLOW", :description => "Pending Fixed", :location => "Foo")
|
101
|
+
@formatter.should_receive(:example_group).and_return(mock("Group", :description => "Cool"))
|
90
102
|
@formatter.start(1)
|
91
|
-
@mock_slow = mock("Slow", :description => "Pending Fixed")
|
92
103
|
@formatter.example_started(@mock_slow)
|
93
104
|
@formatter.example_passed(@mock_slow)
|
94
|
-
@
|
95
|
-
@io.string.should eql("\r \r1 examples: 0% | | ETA: --:--:--\r\e[K\n98) \e[34m'Pending Fixed' FIXED\nSpec::Example::PendingExampleFixedError\e[0m\n\n\n1/1: 100% |====================================================| ETA: 00:00:00\r")
|
105
|
+
@io.string.should eql("\r \r1 examples: 0% | | ETA: --:--:--\r1/1: 100% |====================================================| ETA: 00:00:00\r")
|
96
106
|
end
|
97
107
|
|
98
108
|
it "should push some stuff on start" do
|
@@ -104,6 +114,20 @@ describe "Base" do
|
|
104
114
|
@formatter.dump_failure.should be_nil
|
105
115
|
end
|
106
116
|
|
117
|
+
it "should dump the slowest ones in the end" do
|
118
|
+
@options.should_receive(:colour).and_return(true)
|
119
|
+
@options.should_receive(:autospec).and_return(true)
|
120
|
+
@formatter.start(1)
|
121
|
+
@mock_message = mock("PASS", :description => "Oi", :backtrace => ["Bad", "Ugly"], :location => "Foo l 20")
|
122
|
+
@formatter.should_receive(:example_group).and_return(mock("Group", :description => "Cool"))
|
123
|
+
@formatter.example_started(@mock_message)
|
124
|
+
@formatter.example_passed(@mock_message)
|
125
|
+
@io.string.should eql("\r\n \r1 examples: 0% | | ETA: --:--:--\r1/1: 100% |====================================================| ETA: 00:00:00\r")
|
126
|
+
@formatter.start_dump"\r \r1 examples: 0% | | ETA: --:--:--\r1/1: 100% |====================================================| ETA: 00:00:00\r"
|
127
|
+
|
128
|
+
@io.string.should eql("\n\nTop 10 slowest examples:\n")
|
129
|
+
end
|
130
|
+
|
107
131
|
it "should ignore method missing" do
|
108
132
|
@formatter.method_missing(:foo).should be_nil
|
109
133
|
end
|
data/spec/spec.opts
CHANGED
metadata
CHANGED
@@ -1,116 +1,104 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_spinner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 1.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
|
-
- Marcos
|
12
|
+
- Marcos Augusto
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-03-18 00:00:00 -03:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: rspec
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
name: rtui
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
27
30
|
type: :runtime
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.8
|
34
|
-
version:
|
31
|
+
version_requirements: *id001
|
35
32
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.3.0
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: hoe
|
47
|
-
type: :development
|
48
|
-
version_requirement:
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
name: rtui
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
37
|
- - ">="
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
42
|
+
type: :runtime
|
43
|
+
version_requirements: *id002
|
44
|
+
description:
|
45
|
+
email: Cool Extra formatters for Rspec
|
58
46
|
executables: []
|
59
47
|
|
60
48
|
extensions: []
|
61
49
|
|
62
50
|
extra_rdoc_files:
|
63
|
-
- History.txt
|
64
|
-
- Manifest.txt
|
65
|
-
- PostInstall.txt
|
66
51
|
- README.rdoc
|
67
52
|
files:
|
53
|
+
- .gitignore
|
68
54
|
- History.txt
|
69
55
|
- MIT-LICENSE
|
70
|
-
- Manifest.txt
|
71
56
|
- PostInstall.txt
|
72
57
|
- README.rdoc
|
73
58
|
- Rakefile
|
59
|
+
- VERSION
|
74
60
|
- lib/rspec_spinner.rb
|
75
61
|
- lib/rspec_spinner/bar.rb
|
76
62
|
- lib/rspec_spinner/base.rb
|
77
63
|
- lib/rspec_spinner/spinner.rb
|
78
64
|
- rspec_spinner.gemspec
|
79
|
-
- script/console
|
80
|
-
- script/destroy
|
81
|
-
- script/generate
|
82
65
|
- spec/rspec_spinner/base_spec.rb
|
83
66
|
- spec/rspec_spinner/spinner_spec.rb
|
84
67
|
- spec/rspec_spinner_spec.rb
|
85
68
|
- spec/spec.opts
|
86
69
|
- spec/spec_helper.rb
|
87
|
-
- tasks/rspec.rake
|
88
70
|
has_rdoc: true
|
89
|
-
homepage: http://github.com/nofxx/
|
90
|
-
|
71
|
+
homepage: http://github.com/nofxx/rspec_spinner
|
72
|
+
licenses: []
|
73
|
+
|
74
|
+
post_install_message:
|
91
75
|
rdoc_options:
|
92
|
-
- --
|
93
|
-
- README.rdoc
|
76
|
+
- --charset=UTF-8
|
94
77
|
require_paths:
|
95
78
|
- lib
|
96
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
80
|
requirements:
|
98
81
|
- - ">="
|
99
82
|
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 0
|
100
85
|
version: "0"
|
101
|
-
version:
|
102
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
87
|
requirements:
|
104
88
|
- - ">="
|
105
89
|
- !ruby/object:Gem::Version
|
90
|
+
segments:
|
91
|
+
- 0
|
106
92
|
version: "0"
|
107
|
-
version:
|
108
93
|
requirements: []
|
109
94
|
|
110
|
-
rubyforge_project:
|
111
|
-
rubygems_version: 1.3.
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 1.3.6
|
112
97
|
signing_key:
|
113
|
-
specification_version:
|
98
|
+
specification_version: 3
|
114
99
|
summary: Extra formatters for Rspec
|
115
|
-
test_files:
|
116
|
-
|
100
|
+
test_files:
|
101
|
+
- spec/spec_helper.rb
|
102
|
+
- spec/rspec_spinner/base_spec.rb
|
103
|
+
- spec/rspec_spinner/spinner_spec.rb
|
104
|
+
- spec/rspec_spinner_spec.rb
|
data/Manifest.txt
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
MIT-LICENSE
|
3
|
-
Manifest.txt
|
4
|
-
PostInstall.txt
|
5
|
-
README.rdoc
|
6
|
-
Rakefile
|
7
|
-
lib/rspec_spinner.rb
|
8
|
-
lib/rspec_spinner/bar.rb
|
9
|
-
lib/rspec_spinner/base.rb
|
10
|
-
lib/rspec_spinner/spinner.rb
|
11
|
-
rspec_spinner.gemspec
|
12
|
-
script/console
|
13
|
-
script/destroy
|
14
|
-
script/generate
|
15
|
-
spec/rspec_spinner/base_spec.rb
|
16
|
-
spec/rspec_spinner/spinner_spec.rb
|
17
|
-
spec/rspec_spinner_spec.rb
|
18
|
-
spec/spec.opts
|
19
|
-
spec/spec_helper.rb
|
20
|
-
tasks/rspec.rake
|
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/rspec-spinner.rb'}"
|
9
|
-
puts "Loading rspec-spinner gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec/models"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|