version_info 1.1.2 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- version_info (1.1.1)
4
+ version_info (1.1.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  major: 1
3
3
  minor: 1
4
- patch: 2
4
+ patch: 4
@@ -62,7 +62,11 @@ describe "VersionInfo defaults" do
62
62
  File.stub!(:open).and_yield(io)
63
63
  TestFile::VERSION.bump(:minor)
64
64
  TestFile::VERSION.save
65
- io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\n"
65
+ if RUBY_PATCHLEVEL >= 290 # asume ruby 1.9.2
66
+ io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\n"
67
+ else
68
+ io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\n"
69
+ end
66
70
  end
67
71
 
68
72
  it "can save custom data " do
@@ -71,7 +75,11 @@ describe "VersionInfo defaults" do
71
75
  TestFile::VERSION.bump(:minor)
72
76
  TestFile::VERSION.author = 'jcangas'
73
77
  TestFile::VERSION.save
74
- io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
78
+ if RUBY_PATCHLEVEL >= 290 # asume ruby 1.9.2
79
+ io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
80
+ else
81
+ io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
82
+ end
75
83
  end
76
84
 
77
85
  it "can load " do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: version_info
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.2
5
+ version: 1.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jorge L. Cangas