rtask 005 → 006
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rtask.rb +7 -0
- metadata +1 -1
data/lib/rtask.rb
CHANGED
@@ -35,6 +35,7 @@ class RTask
|
|
35
35
|
@project = @gemify[:rubyforge_project]
|
36
36
|
@package = @gemify[:name]
|
37
37
|
@version = @gemify[:version]
|
38
|
+
@lib_version = config[:version]
|
38
39
|
if config.has_key?(:use)
|
39
40
|
list = config[:use]
|
40
41
|
list -= config[:exclude] if config[:exclude]
|
@@ -88,6 +89,12 @@ class RTask
|
|
88
89
|
end
|
89
90
|
|
90
91
|
def real_release #:nodoc:
|
92
|
+
if @lib_version and @version.to_s != @lib_version.to_s
|
93
|
+
puts "Version confilict between the library and in .gemified"
|
94
|
+
puts "library: " + @lib_version.to_s
|
95
|
+
puts "Gemify : " + @version.to_s
|
96
|
+
exit
|
97
|
+
end
|
91
98
|
filename = "#{@package}-#{@version}"
|
92
99
|
gem = filename + ".gem"
|
93
100
|
tgz = filename + ".tgz"
|