Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add WIN_SUFFIX to configure win gem name

  • Loading branch information...
commit 2c01c5f75680d291d2ce1003bad1219b5a5079ae 1 parent 1cb90c6
@macournoyer macournoyer authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 tasks/gem.rake
View
8 tasks/gem.rake
@@ -1,5 +1,7 @@
require 'rake/gempackagetask'
+WIN_SUFFIX = ENV['WIN_SUFFIX'] || 'x86-mswin32-60'
+
task :clean => :clobber_package
spec = Gem::Specification.new do |s|
@@ -67,7 +69,7 @@ namespace :gem do
namespace :upload do
desc 'Upload the precompiled win32 gem to code.macournoyer.com'
task :win do
- upload "pkg/#{spec.full_name}-x86-mswin32-60.gem", 'gems'
+ upload "pkg/#{spec.full_name}-#{WIN_SUFFIX}.gem", 'gems'
system 'ssh macournoyer@macournoyer.com "cd code.macournoyer.com && gem generate_index"'
end
@@ -76,14 +78,14 @@ namespace :gem do
sh 'rubyforge login'
sh "rubyforge add_release thin thin #{Thin::VERSION::STRING} pkg/#{spec.full_name}.gem"
sh "rubyforge add_file thin thin #{Thin::VERSION::STRING} pkg/#{spec.full_name}.gem"
- sh "rubyforge add_file thin thin #{Thin::VERSION::STRING} pkg/#{spec.full_name}-x86-mswin32-60.gem"
+ sh "rubyforge add_file thin thin #{Thin::VERSION::STRING} pkg/#{spec.full_name}-#{WIN_SUFFIX}.gem"
end
end
desc 'Download the Windows gem from Kevin repo'
task 'download:win' => 'pkg' do
cd 'pkg' do
- `wget http://rubygems.bantamtech.com/ruby18/gems/#{spec.full_name}-x86-mswin32-60.gem`
+ `wget http://rubygems.bantamtech.com/ruby18/gems/#{spec.full_name}-#{WIN_SUFFIX}.gem`
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.