verlane 0.0.2.2 → 0.0.2.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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/verlane/tasks/verlane.rake +17 -7
- metadata +2 -3
- data/VERSION.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42219b1efef979bf41e97fa84b9093f8e517210a
|
4
|
+
data.tar.gz: d5aa4170896ce13386905b0127b4ec5d2f70a292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb62f738bcffe88e67d74323aa85a698b33fe020e53adf4ac97fa3b27199b247fa1ceb9c030ef07c6bab82ed8d48578a0d9f1c1bc93d24e02880161f160ecb97
|
7
|
+
data.tar.gz: 092c87a556d09a208697b812895788c34628bff47615991121d5e9332f46de2936e8a54e99258ead22eddb620907a84a06f6307655a973b7f79991d7def8db81
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.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
|
-
|
28
|
+
ver = if File.exists?('VERSION.yml')
|
27
29
|
YAML.load_file('VERSION.yml')
|
28
30
|
else
|
29
31
|
{}
|
30
32
|
end
|
31
|
-
|
32
|
-
|
33
|
+
ver.merge!(version.values_hash)
|
34
|
+
ver[:string] = version.to_s
|
35
|
+
ver[:short] = version.to_s
|
33
36
|
|
34
|
-
File.
|
35
|
-
|
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 #{
|
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.
|
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-
|
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
|