dev 2.1.68 → 2.1.69
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 +2 -1
- 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: b36f13411306a6ef0dbd08c5e10d552ec1a96104
|
4
|
+
data.tar.gz: 53e3192ce509143e58568fb0b8c85d8640e53308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a401955713e4825194ca76b87e905206a23335619d94a234ff86c121354334d60014c8e96e1fde34bab8a8232a772a8734bef0795da846d36b2d0702e92cd77
|
7
|
+
data.tar.gz: 996c0e8aa89bf29e276ec3326b45bfb0f8a9c0b328e519dd65eea45e930cae1b6d8ab914a8e3774c35a212f40ed41d249ae21f1cdc17dfb599462257c7277f38
|
data/lib/tasks/setup.rb
CHANGED
@@ -77,6 +77,7 @@ 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
|
+
tag=''
|
80
81
|
if(current_version.length > 1)
|
81
82
|
tag=IO.read(nuspec).scan(/<version>([\d.]+)([\w-]+)?<\/version>/)[0][1]
|
82
83
|
puts "pre-release tag #{tag}"
|
@@ -86,7 +87,7 @@ class Setup < Array
|
|
86
87
|
|
87
88
|
puts "#{nuspec} current version=#{current_version}" if env.debug?
|
88
89
|
if(current_version.include?('<version>'))
|
89
|
-
target_version="<version>#{VERSION}</version>"
|
90
|
+
target_version="<version>#{VERSION}#{tag}</version>"
|
90
91
|
if(current_version != target_version)
|
91
92
|
add_quiet "<%Text.replace_in_file('#{nuspec}','#{current_version}','#{target_version}')%>"
|
92
93
|
end
|