unicorn-formatter 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ unicorn
data/Gemfile CHANGED
@@ -1,16 +1,12 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
2
 
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
3
  gem 'rspec'
9
4
 
10
5
  group :development do
11
6
  gem "pry"
12
7
  gem "pry-nav"
13
8
  gem "rspec"
9
+ gem "rdoc"
14
10
  gem "bundler"
15
11
  gem "jeweler"
16
12
  end
@@ -18,16 +18,27 @@ GEM
18
18
  pry-nav (0.2.2)
19
19
  pry (~> 0.9.10)
20
20
  rake (0.9.2.2)
21
+ rake (10.0.1)
22
+ rdoc (3.12)
23
+ json (~> 1.4)
21
24
  rdoc (3.12)
22
25
  json (~> 1.4)
23
26
  rspec (2.11.0)
24
27
  rspec-core (~> 2.11.0)
25
28
  rspec-expectations (~> 2.11.0)
26
29
  rspec-mocks (~> 2.11.0)
30
+ rspec (2.12.0)
31
+ rspec-core (~> 2.12.0)
32
+ rspec-expectations (~> 2.12.0)
33
+ rspec-mocks (~> 2.12.0)
27
34
  rspec-core (2.11.1)
35
+ rspec-core (2.12.0)
28
36
  rspec-expectations (2.11.3)
29
37
  diff-lcs (~> 1.1.3)
38
+ rspec-expectations (2.12.0)
39
+ diff-lcs (~> 1.1.3)
30
40
  rspec-mocks (2.11.3)
41
+ rspec-mocks (2.12.0)
31
42
  slop (3.3.3)
32
43
 
33
44
  PLATFORMS
@@ -38,4 +49,5 @@ DEPENDENCIES
38
49
  jeweler
39
50
  pry
40
51
  pry-nav
52
+ rdoc
41
53
  rspec
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ Jeweler::Tasks.new do |gem|
19
19
  gem.homepage = "http://github.com/daytonn/unicorn-formatter"
20
20
  gem.license = "MIT"
21
21
  gem.summary = %Q{A majestic unicorn will leap across your screen when your specs pass}
22
- gem.description = %Q{This is an rspec formatter based on https://github.com/sdegutis/unicornleap}
22
+ gem.description = %Q{An rspec formatter based on https://github.com/sdegutis/unicornleap}
23
23
  gem.email = "dnolan@gmail.com"
24
24
  gem.authors = ["Dayton Nolan"]
25
25
  # dependencies defined in Gemfile
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -1,7 +1,7 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
3
3
  require 'rspec'
4
- require 'unicorn-formatter'
4
+ require 'unicorn_formatter'
5
5
 
6
6
  # Requires supporting files with custom matchers and macros, etc,
7
7
  # in ./support/ and its subdirectories.
@@ -9,4 +9,4 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
9
 
10
10
  RSpec.configure do |config|
11
11
 
12
- end
12
+ end
@@ -1,7 +1,25 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "UnicornFormatter" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
4
+
5
+ before :each do
6
+ @console = StringIO.new
7
+ @unicorn = UnicornFormatter.new(@output)
8
+ end
9
+ it "overrides the close method" do
10
+ expect(@unicorn).to respond_to(:close)
11
+ end
12
+
13
+ it "executes the unicornleap command when the close is called without failures" do
14
+ @unicorn.close
15
+ end
16
+
17
+ it "doesn't execute the unicornleap command when the close is called with failures" do
18
+ @unicorn.stub(:failure_count) { 2 }
19
+ @unicorn.close
20
+ end
21
+
22
+ it "YOU SHOULD ONLY SEE 1 UNICORN" do
23
+ puts "YOU SHOULD ONLY SEE 1 UNICORN"
6
24
  end
7
- end
25
+ end
@@ -5,25 +5,26 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "unicorn-formatter"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dayton Nolan"]
12
12
  s.date = "2012-11-16"
13
- s.description = "This is an rspec formatter based on https://github.com/sdegutis/unicornleap"
13
+ s.description = "An rspec formatter based on https://github.com/sdegutis/unicornleap"
14
14
  s.email = "dnolan@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
19
  ".document",
20
+ ".rbenv-gemsets",
20
21
  ".rspec",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "README.rdoc",
24
25
  "Rakefile",
25
26
  "VERSION",
26
- "lib/unicorn-formatter.rb",
27
+ "lib/unicorn_formatter.rb",
27
28
  "spec/spec_helper.rb",
28
29
  "spec/unicorn-formatter_spec.rb",
29
30
  "unicorn-formatter.gemspec"
@@ -42,6 +43,7 @@ Gem::Specification.new do |s|
42
43
  s.add_development_dependency(%q<pry>, [">= 0"])
43
44
  s.add_development_dependency(%q<pry-nav>, [">= 0"])
44
45
  s.add_development_dependency(%q<rspec>, [">= 0"])
46
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
45
47
  s.add_development_dependency(%q<bundler>, [">= 0"])
46
48
  s.add_development_dependency(%q<jeweler>, [">= 0"])
47
49
  else
@@ -49,6 +51,7 @@ Gem::Specification.new do |s|
49
51
  s.add_dependency(%q<pry>, [">= 0"])
50
52
  s.add_dependency(%q<pry-nav>, [">= 0"])
51
53
  s.add_dependency(%q<rspec>, [">= 0"])
54
+ s.add_dependency(%q<rdoc>, [">= 0"])
52
55
  s.add_dependency(%q<bundler>, [">= 0"])
53
56
  s.add_dependency(%q<jeweler>, [">= 0"])
54
57
  end
@@ -57,6 +60,7 @@ Gem::Specification.new do |s|
57
60
  s.add_dependency(%q<pry>, [">= 0"])
58
61
  s.add_dependency(%q<pry-nav>, [">= 0"])
59
62
  s.add_dependency(%q<rspec>, [">= 0"])
63
+ s.add_dependency(%q<rdoc>, [">= 0"])
60
64
  s.add_dependency(%q<bundler>, [">= 0"])
61
65
  s.add_dependency(%q<jeweler>, [">= 0"])
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rdoc
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  - !ruby/object:Gem::Dependency
79
95
  name: bundler
80
96
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +123,7 @@ dependencies:
107
123
  - - ! '>='
108
124
  - !ruby/object:Gem::Version
109
125
  version: '0'
110
- description: This is an rspec formatter based on https://github.com/sdegutis/unicornleap
126
+ description: An rspec formatter based on https://github.com/sdegutis/unicornleap
111
127
  email: dnolan@gmail.com
112
128
  executables: []
113
129
  extensions: []
@@ -115,13 +131,14 @@ extra_rdoc_files:
115
131
  - README.rdoc
116
132
  files:
117
133
  - .document
134
+ - .rbenv-gemsets
118
135
  - .rspec
119
136
  - Gemfile
120
137
  - Gemfile.lock
121
138
  - README.rdoc
122
139
  - Rakefile
123
140
  - VERSION
124
- - lib/unicorn-formatter.rb
141
+ - lib/unicorn_formatter.rb
125
142
  - spec/spec_helper.rb
126
143
  - spec/unicorn-formatter_spec.rb
127
144
  - unicorn-formatter.gemspec
@@ -140,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
157
  version: '0'
141
158
  segments:
142
159
  - 0
143
- hash: 3654526349835584655
160
+ hash: -2804228407237700488
144
161
  required_rubygems_version: !ruby/object:Gem::Requirement
145
162
  none: false
146
163
  requirements: