mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 07:18:53 -05:00
Update Rakefile for version file change
This commit is contained in:
parent
9d91e3f82c
commit
aa5f056ae6
8
Rakefile
8
Rakefile
@ -1,7 +1,5 @@
|
||||
require 'rubygems'
|
||||
|
||||
version_file = File.expand_path __FILE__ + '/../VERSION'
|
||||
version = File.read(version_file).strip
|
||||
require File.expand_path('../lib/mail_catcher/version', __FILE__)
|
||||
|
||||
spec_file = File.expand_path __FILE__ + '/../mailcatcher.gemspec'
|
||||
spec = Gem::Specification.load spec_file
|
||||
@ -10,7 +8,7 @@ require 'rdoc/task'
|
||||
RDoc::Task.new :rdoc => "rdoc",
|
||||
:clobber_rdoc => "rdoc:clean",
|
||||
:rerdoc => "rdoc:force" do |rdoc|
|
||||
rdoc.title = "MailCatcher #{version}"
|
||||
rdoc.title = "MailCatcher #{MailCatcher::VERSION}"
|
||||
rdoc.rdoc_dir = 'rdoc'
|
||||
rdoc.main = 'README.md'
|
||||
rdoc.rdoc_files.include 'lib/**/*.rb'
|
||||
@ -45,7 +43,7 @@ task "package" => ["build", "package:gem"]
|
||||
|
||||
desc "Release Gem to RubyGems"
|
||||
task "release:gem" do
|
||||
%x[gem push mailcatcher-#{version}.gem]
|
||||
%x[gem push mailcatcher-#{MailCatcher::VERSION}.gem]
|
||||
end
|
||||
|
||||
task "release" => ["package", "release:gem"]
|
||||
|
Loading…
Reference in New Issue
Block a user