dev 2.1.65 → 2.1.66

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tasks/setup.rb +12 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a82fef3d14d3de192e3dedcea7e47e5eb0c693d1
4
- data.tar.gz: 644bf7dedb5acd7160f1c3b0506f57f4b1476295
3
+ metadata.gz: 78c46289c8404592daec4d1c5305ab44784ae43c
4
+ data.tar.gz: c0a1348abb3dcc88078d312f6d4321391db8f669
5
5
  SHA512:
6
- metadata.gz: 61f1f1b2952868d4d07813810441e0fb487570c9fcd98a3638309f2f66ab983361c74e2280520a673afe1127ad81a65ce1e73cbe02ef8cb3081d3257bf9fb578
7
- data.tar.gz: 43f5217a7a2f07af76e852ec9e1d5a9d6976f670a03f47784244b4a842547a18ac2674b4f0e445095089c1d24937393e46f7165956b2683a808f558bd5fa37ef
6
+ metadata.gz: f29774b40e9fe33208d6a1d9bde674df5424309d84e74f1f9bfc5c25f782394d6ec021c79cedc96faa07337859288809514d20ca1392f4dfbd78eaf0f024f572
7
+ data.tar.gz: a3fba3e8199283c3657eda8216211e112f700ad23916d13e7f872d87db97b26d1b740b90a353c5d3c2c4eafae4d88f3371c2b0c10b86bac907a454f9af26c6b3
@@ -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.]+<\/version>/)[0]
78
- puts "#{nuspec} current version=#{current_version}" if env.debug?
79
- if(current_version.include?('<version>'))
80
- target_version="<version>#{VERSION}</version>"
81
- if(current_version != target_version)
82
- add_quiet "<%Text.replace_in_file('#{nuspec}','#{current_version}','#{target_version}')%>"
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.65
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-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake