rtask 005 → 006

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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