rspec-example_steps 0.2.1 → 0.2.2

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Railsware (www.railsware.com)
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -130,6 +130,11 @@ Simular to Example :pending behavior:
130
130
  end
131
131
  end
132
132
 
133
+ ## License
134
+
135
+ * Copyright (c) 2013 Railsware [www.railsware.com](http://www.railsware.com)
136
+ * [MIT](www.opensource.org/licenses/MIT)
137
+
133
138
  ## Alternatives
134
139
 
135
140
  * [rspec-steps](https://github.com/LRDesign/rspec-steps)
@@ -19,7 +19,11 @@ module RSpec
19
19
 
20
20
  if example.options[:with_steps]
21
21
  full_message = "#{current_indentation}#{example.description}"
22
- output.puts white(full_message)
22
+ if respond_to?(:default_color)
23
+ output.puts default_color(full_message)
24
+ else
25
+ output.puts white(full_message)
26
+ end
23
27
  end
24
28
  end
25
29
 
@@ -29,7 +33,11 @@ module RSpec
29
33
 
30
34
  def example_step_passed(example_group, type, message, options)
31
35
  full_message = "#{current_indentation} #{type.to_s.capitalize} #{message}"
32
- output.puts green(full_message)
36
+ if respond_to?(:success_color)
37
+ output.puts success_color(full_message)
38
+ else
39
+ output.puts green(full_message)
40
+ end
33
41
  end
34
42
 
35
43
  def example_step_pending(example_group, type, message, options)
@@ -41,12 +49,20 @@ module RSpec
41
49
  full_message << " (PENDING)"
42
50
  end
43
51
 
44
- output.puts yellow(full_message)
52
+ if respond_to?(:pending_color)
53
+ output.puts pending_color(full_message)
54
+ else
55
+ output.puts yellow(full_message)
56
+ end
45
57
  end
46
58
 
47
59
  def example_step_failed(example_group, type, message, options)
48
60
  full_message = "#{current_indentation} #{type.to_s.capitalize} #{message} (FAILED)"
49
- output.puts red(full_message)
61
+ if respond_to?(:failure_color)
62
+ output.puts failure_color(full_message)
63
+ else
64
+ output.puts red(full_message)
65
+ end
50
66
  end
51
67
  end
52
68
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rspec-example_steps"
6
- s.version = "0.2.1"
6
+ s.version = "0.2.2"
7
7
  s.authors = ["Andriy Yanko"]
8
8
  s.email = ["andriy.yanko@gmail.com"]
9
9
  s.homepage = "https://github.com/railsware/rspec-example_steps"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-example_steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-20 00:00:00.000000000 Z
12
+ date: 2013-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec-core
16
- requirement: &19185160 !ruby/object:Gem::Requirement
16
+ requirement: &22903880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>'
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19185160
24
+ version_requirements: *22903880
25
25
  description:
26
26
  email:
27
27
  - andriy.yanko@gmail.com
@@ -31,6 +31,7 @@ extra_rdoc_files: []
31
31
  files:
32
32
  - .gitignore
33
33
  - Gemfile
34
+ - LICENSE
34
35
  - README.md
35
36
  - Rakefile
36
37
  - lib/rspec/example_steps.rb