dev 2.0.266 → 2.0.267
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 +11 -0
- 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: b2418ca9369ed1bb2a3e05d73526474966cd290b
|
4
|
+
data.tar.gz: dadf8d49da6c42fda59d44c439b8a18d87493f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 512e4764ba14eac71300ef584424667a6e23ff4784b68a3a853b7d85a8d4307d1fe8f03d45b40346a631a46d0d2049c371e81c1f085c5da14591d7750db33c9c
|
7
|
+
data.tar.gz: 8e6db44c370e5932b27aa5b5c1d4e055fc037eeedef8086ae1f284c6c2655cc298986cb415eb2f0060366002ac6e3e3eecef3bdc996b72c459c0fb2dc24736cd
|
data/lib/tasks/setup.rb
CHANGED
@@ -74,6 +74,17 @@ class Setup < Array
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
}
|
77
|
+
Dir.glob('**/wxs').each{|wxs|
|
78
|
+
current_version=IO.read(wxs).scan(/Version=\"([\d.]+)\"/)[0]
|
79
|
+
puts "#{wxs} current version=#{current_version}" if defined?(DEBUG)
|
80
|
+
if(current_version.include?('Version='))
|
81
|
+
target_version="Version=\"#{VERSION}\")="
|
82
|
+
if(current_version != target_version)
|
83
|
+
add "<%Text.replace_in_file('#{wxs}','#{current_version}','#{target_version}')%>"
|
84
|
+
add "<%Text.replace_in_file('Value=\"#{current_version}\"','Value=\"#{target_version}\"')%>"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
}
|
77
88
|
end
|
78
89
|
end
|
79
90
|
end
|