verlane 0.0.2.2 → 0.0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc130cd45481b40aac1a3d90eccec8109e71c326
4
- data.tar.gz: a5297dc8f173cba4329d3e070cf40880871450b0
3
+ metadata.gz: 42219b1efef979bf41e97fa84b9093f8e517210a
4
+ data.tar.gz: d5aa4170896ce13386905b0127b4ec5d2f70a292
5
5
  SHA512:
6
- metadata.gz: 5f957b81f96175beaf8d830a0e857857c611337e96edd3a11888820867949cb8f89249e219bd8a46e10a7ed52fba205ee8ba8cd783185927c2c73a355b61019e
7
- data.tar.gz: ca7a3b30aa83d2c79d611e5f5208aa84ffe3a7cd969d17f1c043d72980b5be1eed4e9812076687b9591c00502b2c1ec152d1d5db1759f8e46b4245a2d35722ba
6
+ metadata.gz: cb62f738bcffe88e67d74323aa85a698b33fe020e53adf4ac97fa3b27199b247fa1ceb9c030ef07c6bab82ed8d48578a0d9f1c1bc93d24e02880161f160ecb97
7
+ data.tar.gz: 092c87a556d09a208697b812895788c34628bff47615991121d5e9332f46de2936e8a54e99258ead22eddb620907a84a06f6307655a973b7f79991d7def8db81
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2.2
1
+ 0.0.2.3
@@ -2,7 +2,9 @@ require 'verlane'
2
2
  require 'versionomy'
3
3
  require 'yaml'
4
4
 
5
- VERSION = if File.exists?('VERSION')
5
+ VERSION = if File.exists?('VERSION.yml')
6
+ Versionomy.parse(YAML.load_file('VERSION.yml'))
7
+ elsif File.exists?('VERSION')
6
8
  Versionomy.parse(File.read('VERSION').strip)
7
9
  else
8
10
  Versionomy.parse('0.0.1')
@@ -23,18 +25,26 @@ def bump_version(version)
23
25
  end
24
26
 
25
27
  def save_version(version)
26
- yaml = if File.exists?('VERSION.yml')
28
+ ver = if File.exists?('VERSION.yml')
27
29
  YAML.load_file('VERSION.yml')
28
30
  else
29
31
  {}
30
32
  end
31
- yaml.merge!(version.values_hash)
32
- yaml[:short] = version.to_s
33
+ ver.merge!(version.values_hash)
34
+ ver[:string] = version.to_s
35
+ ver[:short] = version.to_s
33
36
 
34
- File.open('VERSION.yml', 'w') {|io| io.write yaml.to_yaml}
35
- File.open('VERSION', 'w') {|io| io.write version.to_s}
37
+ if File.exists?('VERSION.yml')
38
+ File.open('VERSION.yml', 'w') {|io| io.write ver.to_yaml}
39
+ system "git add VERSION.yml"
40
+ system "git commit VERSION.yml -m 'Bumped version to #{ver[:string]}'"
41
+ else
42
+ File.open('VERSION', 'w') {|io| io.write ver[:string]}
43
+ system "git add VERSION"
44
+ system "git commit VERSION -m 'Bumped version to #{ver[:string]}'"
45
+ end
36
46
 
37
- puts "New version #{version.to_s}"
47
+ puts "New version #{ver[:string]}"
38
48
  end
39
49
 
40
50
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.2
4
+ version: 0.0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikko Kokkonen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-26 00:00:00.000000000 Z
11
+ date: 2013-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: versionomy
@@ -65,7 +65,6 @@ files:
65
65
  - README.md
66
66
  - Rakefile
67
67
  - VERSION
68
- - VERSION.yml
69
68
  - lib/verlane.rb
70
69
  - lib/verlane/tasks.rb
71
70
  - lib/verlane/tasks/verlane.rake
@@ -1,9 +0,0 @@
1
- ---
2
- :major: 0
3
- :minor: 0
4
- :tiny: 2
5
- :tiny2: 2
6
- :release_type: :final
7
- :patchlevel: 0
8
- :patchlevel_minor: 0
9
- :short: 0.0.2.2