rallytastic 1.2.1 → 1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -17,6 +17,7 @@ class RevisionHistory
17
17
  end
18
18
 
19
19
  def revisions
20
+ revision_uris ||= []
20
21
  revision_uris.collect do |uri|
21
22
  Revision.new(:rally_uri => uri)
22
23
  end
data/rallytastic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rallytastic}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Clark"]
@@ -9,5 +9,10 @@ describe RevisionHistory do
9
9
  it "should return array" do
10
10
  @history.revisions.class.should == Array
11
11
  end
12
+
13
+ it "should return array even if revision_history is empty" do
14
+ @history.stub(:revision_uris).and_return(nil)
15
+ @history.revisions.class.should == Array
16
+ end
12
17
  end
13
18
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 1
9
- version: 1.2.1
8
+ - 2
9
+ version: 1.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Clark
@@ -160,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - ">="
162
162
  - !ruby/object:Gem::Version
163
- hash: -3477640353996455396
163
+ hash: -2154549980626592609
164
164
  segments:
165
165
  - 0
166
166
  version: "0"