sprint 1.0.2 → 1.0.3

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.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/lib/sprint.rb +1 -1
  3. data/test/test_sprint.rb +11 -0
  4. metadata +1 -1
data/History.txt CHANGED
@@ -9,3 +9,7 @@
9
9
  === 1.0.2 2009-11-11
10
10
 
11
11
  * Fixed project home in gemspec
12
+
13
+ === 1.0.3 2009-11-11
14
+
15
+ * Fixed String coercion; Sprint::Status now correctly behaves as a String
data/lib/sprint.rb CHANGED
@@ -13,7 +13,7 @@ module Sprint
13
13
  @output
14
14
  end
15
15
  alias :output :to_s
16
- alias :to_string :to_s
16
+ alias :to_str :to_s
17
17
 
18
18
  def good_output
19
19
  raise "Process exited with error code: #{return_code}" unless success?
data/test/test_sprint.rb CHANGED
@@ -29,6 +29,17 @@ class TestSprint < Test::Unit::TestCase
29
29
  should "have a zero status" do
30
30
  assert_equal 0, @results.return_code
31
31
  end
32
+
33
+ should "be convertible to a string" do
34
+ a_string = ("String: " + @results).strip
35
+ assert_equal "String: Test", a_string
36
+ end
37
+
38
+ # Need to find a caller of to_int for an real-world test of int coercion
39
+ # should "be convertible to an int" do
40
+ # an_int = 1 + @results
41
+ # assert_equal 1, an_int
42
+ # end
32
43
  end
33
44
 
34
45
  context "when executing 'false'" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Walker