dev 2.1.67 → 2.1.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/setup.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 936ba51e9036006e289bdee7c11ee22427556c1a
|
4
|
+
data.tar.gz: 110c28f9a8fcd89749d5da30290e2f599339805f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae9415b6d8bd5bace91a1d34a0c1964814bfba1b07a2fc6b1d5ed5df854591f818702a184e42fc1b157bd415aa1c268a36203838555aef45fd2d2de1993f8a0
|
7
|
+
data.tar.gz: cd584336174161413e4bf1a5062b6ccf9c1d977ceeb150ceb86110dff25d1e2a363434e3720c020276d2d5421cdac5521baa894733d8b84dfa4ad94ba5e6716d
|
data/lib/tasks/setup.rb
CHANGED
@@ -77,9 +77,13 @@ class Setup < Array
|
|
77
77
|
#current_version=IO.read(nuspec).scan(/<version>[\d.\w]+<\/version>/)[0]
|
78
78
|
current_version=IO.read(nuspec).scan(/<version>([\d.]+)([\w-]+)?<\/version>/)[0]
|
79
79
|
if(!current_version.nil?)
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
if(current_version.length > 1)
|
81
|
+
tag=IO.read(nuspec).scan(/<version>([\d.]+)([\w-]+)?<\/version>/)[0][1]
|
82
|
+
puts "pre-release tag #{tag}"
|
83
|
+
else
|
84
|
+
puts 'no pre-release tag'
|
85
|
+
end
|
86
|
+
|
83
87
|
puts "#{nuspec} current version=#{current_version}" if env.debug?
|
84
88
|
if(current_version.include?('<version>'))
|
85
89
|
target_version="<version>#{VERSION}</version>"
|