dev 2.0.167 → 2.0.168
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 +1 -6
- 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: 5881b7f92ca0bf78433619eb1e38cdf4ffa74e00
|
4
|
+
data.tar.gz: 8ce8d8e37c7c6e24d92e37476e2782042226039a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb302d5287c7a09a988dce7f264c3d310c2566c7e54899ab7cc3a288d945fda884f3a5e17105332904de077bc708bc5266e2e42d2d9a43126c31f6d9d6bb2f45
|
7
|
+
data.tar.gz: 26de234a2107155296659c1bbcb9cb63f69e11df5b6e1b11dc2c62a8176a6510ecd4bf3e08e357d36a49db1b1d5ab93e34fecf0d8e14a91547bdfc54e3a03283
|
data/lib/tasks/setup.rb
CHANGED
@@ -50,12 +50,8 @@ class Setup < Array
|
|
50
50
|
end
|
51
51
|
|
52
52
|
if(defined?(VERSION))
|
53
|
-
#Text.replace_in_file('HelloLibrary.nuspec',/<version>[\d.]+<\/version>/,"<version>#{VERSION}</version>")
|
54
53
|
Dir.glob('*.nuspec').each{|nuspec|
|
55
|
-
|
56
|
-
#published_version = `gem list -r #{spec.name}`.scan(/\((\d+.\d+.\d+)\)/)[0][0]
|
57
54
|
current_version=IO.read(nuspec).scan(/<version>[\d.]+<\/version>/)[0]
|
58
|
-
|
59
55
|
puts "#{nuspec} current version=#{current_version}" if defined?(DEBUG)
|
60
56
|
if(current_version.include?('<version>'))
|
61
57
|
target_version="<version>#{VERSION}</version>"
|
@@ -63,7 +59,6 @@ class Setup < Array
|
|
63
59
|
add "<%Text.replace_in_file('#{nuspec}','#{current_version}','#{target_version}')%>"
|
64
60
|
end
|
65
61
|
end
|
66
|
-
#add "<%Text.replace_in_file('#{nuspec}',/<version>[\d.]+<\/version>/,'<version>#{VERSION}</version>%>'"
|
67
62
|
}
|
68
63
|
Dir.glob('**/AssemblyInfo.cs').each{|assemblyInfo|
|
69
64
|
current_version=IO.read(assemblyInfo).scan(/Version\(\"[\d.]+\"\)/)[0]
|
@@ -71,7 +66,7 @@ class Setup < Array
|
|
71
66
|
if(current_version.include?('Version('))
|
72
67
|
target_version="Version(\"#{VERSION}\")"
|
73
68
|
if(current_version != target_version)
|
74
|
-
add "<%Text.replace_in_file('#{assemblyInfo}','#{current_version}','#{target_version}'%>"
|
69
|
+
add "<%Text.replace_in_file('#{assemblyInfo}','#{current_version}','#{target_version}')%>"
|
75
70
|
end
|
76
71
|
end
|
77
72
|
}
|