dev 2.1.65 → 2.1.66
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 +12 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c46289c8404592daec4d1c5305ab44784ae43c
|
4
|
+
data.tar.gz: c0a1348abb3dcc88078d312f6d4321391db8f669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f29774b40e9fe33208d6a1d9bde674df5424309d84e74f1f9bfc5c25f782394d6ec021c79cedc96faa07337859288809514d20ca1392f4dfbd78eaf0f024f572
|
7
|
+
data.tar.gz: a3fba3e8199283c3657eda8216211e112f700ad23916d13e7f872d87db97b26d1b740b90a353c5d3c2c4eafae4d88f3371c2b0c10b86bac907a454f9af26c6b3
|
data/lib/tasks/setup.rb
CHANGED
@@ -74,12 +74,18 @@ class Setup < Array
|
|
74
74
|
if(defined?(VERSION))
|
75
75
|
#puts "updating nuspec files for VERSION #{VERSION}" if env.debug?
|
76
76
|
Dir.glob('*.nuspec').each{|nuspec|
|
77
|
-
current_version=IO.read(nuspec).scan(/<version>[\d
|
78
|
-
|
79
|
-
if(current_version.
|
80
|
-
|
81
|
-
if
|
82
|
-
|
77
|
+
#current_version=IO.read(nuspec).scan(/<version>[\d.\w]+<\/version>/)[0]
|
78
|
+
current_version=IO.read(nuspec).scan(/<version>([\d.]+)([\w-]+)?<\/version>/)[0]
|
79
|
+
if(!current_version.nil?)
|
80
|
+
tag=IO.read(nuspec).scan(/<version>([\d.]+)([\w-]+)?<\/version>/)[0][1]
|
81
|
+
puts 'no pre-release tag' if tag.nil? || tag.length==0
|
82
|
+
puts "pre-release tag #{tag}" if !tag.nil && tag.length > 0
|
83
|
+
puts "#{nuspec} current version=#{current_version}" if env.debug?
|
84
|
+
if(current_version.include?('<version>'))
|
85
|
+
target_version="<version>#{VERSION}</version>"
|
86
|
+
if(current_version != target_version)
|
87
|
+
add_quiet "<%Text.replace_in_file('#{nuspec}','#{current_version}','#{target_version}')%>"
|
88
|
+
end
|
83
89
|
end
|
84
90
|
end
|
85
91
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|