steps 1.1.0 → 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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ = 1.1.1
2
+ * Fix breaking issues with debug mode
3
+
1
4
  = 1.1.0
2
5
  * Add debug mode to steps
3
6
  * Add multi-line report capability
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/lib/steps/output.rb CHANGED
@@ -76,6 +76,7 @@ module Steps
76
76
 
77
77
  if @task_depth > 0
78
78
  @task_depth -= 1
79
+ @debug_depth = nil if @debug_depth and @debug_depth == @task_depth
79
80
  if @task_depth > 0
80
81
  print "| ".yellow * (@task_depth - 1)
81
82
  @spinner.start
@@ -104,7 +105,7 @@ module Steps
104
105
  self.result message.blue
105
106
  end
106
107
 
107
- def self.report message, color, bold
108
+ def self.report message, color, bold = true
108
109
  message = message.to_s # try and make sure we're dealing with a string
109
110
  message.each_line do |line|
110
111
  unless line.empty?
data/lib/steps/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Steps
2
- VERSION = '1.0'
2
+ VERSION = '1.1.1'
3
3
  end
4
4
 
data/steps.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "steps"
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Crowd Favorite"]
12
- s.date = "2013-09-30"
12
+ s.date = "2013-10-06"
13
13
  s.description = "A way to simplify the output of shell scripting written in ruby.\n\nIntegrates with Capistrano and Rake tasks.\n"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
data/test.rb CHANGED
@@ -18,8 +18,9 @@ step "Do Something else" do
18
18
  report "Something you probably want to know"
19
19
  sleep 1
20
20
  end
21
- step "Double! Again" do
21
+ step "Double! Again", :debug => true do
22
22
  sleep 1
23
+ raise "Problem"
23
24
  report "Something you probably want to know"
24
25
  end
25
26
  step "Double! Nested Something" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
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: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2013-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored