lib/bones/plugins/gem.rb in bones-3.4.3 vs lib/bones/plugins/gem.rb in bones-3.4.4
- old
+ new
@@ -99,15 +99,10 @@
config = ::Bones.config
config.gem.files ||= manifest
config.gem.executables ||= config.gem.files.find_all {|fn| fn =~ %r/^bin/}
config.gem.development_dependencies << ['bones', ">= #{Bones.version}"]
-
- have?(:gemcutter) {
- Gem.searcher.instance_variable_get(:@gemspecs).
- map {|gs| gs.name}.include? 'gemcutter'
- }
end
def define_tasks
config = ::Bones.config
@@ -180,19 +175,17 @@
::Bones::GemPackageTask.new(config.gem._spec) do |pkg|
pkg.need_tar = config.gem.need_tar
pkg.need_zip = config.gem.need_zip
end
- if have? :gemcutter
- desc 'Package and upload to Gemcutter'
- task :release => [:clobber, 'gem'] do |t|
- v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
- abort "Versions don't match #{v} vs #{config.version}" if v != config.version
+ desc 'Package and upload to rubygems.org'
+ task :release => [:clobber, 'gem'] do |t|
+ v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
+ abort "Versions don't match #{v} vs #{config.version}" if v != config.version
- Dir.glob("pkg/#{config.gem._spec.full_name}*.gem").each { |fn|
- sh "#{GEM} push #{fn}"
- }
- end
+ Dir.glob("pkg/#{config.gem._spec.full_name}*.gem").each { |fn|
+ sh "#{GEM} push #{fn}"
+ }
end
desc 'Show information about the gem'
task :debug => 'gem:prereqs' do
puts config.gem._spec.to_ruby