rtask 005 → 006

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rtask.rb +7 -0
  2. metadata +1 -1
@@ -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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtask
3
3
  version: !ruby/object:Gem::Version
4
- version: "005"
4
+ version: "006"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keita Yamaguchi