dev 2.1.67 → 2.1.68

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 +7 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 642794361b1e4b3e628d2633717274f7c82df553
4
- data.tar.gz: 95559b545add57fb3dda1b3dc0fee3e993a0d1e4
3
+ metadata.gz: 936ba51e9036006e289bdee7c11ee22427556c1a
4
+ data.tar.gz: 110c28f9a8fcd89749d5da30290e2f599339805f
5
5
  SHA512:
6
- metadata.gz: 35596a5f807e914814d7c7e85c979ea8e97706e6a9d8d33b7cede39fd5e83f615e2229f1a23d96ccf0e9e2458e07490dbe1664dd20cf14603adf35d035d4f508
7
- data.tar.gz: acaca55dca8d1850d4b2ad5fa2cfdca7ab9789ab3157d1a9d823c278a34cd263379955e4c9a960841a38295c8a17ec00a75dfe54cc6789504e9fe6d4abb94a59
6
+ metadata.gz: aae9415b6d8bd5bace91a1d34a0c1964814bfba1b07a2fc6b1d5ed5df854591f818702a184e42fc1b157bd415aa1c268a36203838555aef45fd2d2de1993f8a0
7
+ data.tar.gz: cd584336174161413e4bf1a5062b6ccf9c1d977ceeb150ceb86110dff25d1e2a363434e3720c020276d2d5421cdac5521baa894733d8b84dfa4ad94ba5e6716d
@@ -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
- tag=IO.read(nuspec).scan(/<version>([\d.]+)([\w-]+)?<\/version>/)[0][1]
81
- puts 'no pre-release tag' if tag.length==0
82
- puts "pre-release tag #{tag}" if tag.length > 0
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>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.67
4
+ version: 2.1.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow