Skip to content

Commit

Permalink
fix development tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Feb 28, 2013
1 parent e168885 commit 287dd33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
source :rubygems
source 'https://rubygems.org'
gemspec

6 changes: 3 additions & 3 deletions eventmachine.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Gem::Specification.new do |s|
s.files = `git ls-files`.split("\n")
s.extensions = ["ext/extconf.rb", "ext/fastfilereader/extconf.rb"]

s.add_development_dependency 'rake-compiler', '~> 0.8.1'
s.add_development_dependency 'yard', ">= 0.7.2"
s.add_development_dependency 'bluecloth'
s.add_development_dependency 'rake-compiler', '~> 0.8.3'
s.add_development_dependency 'yard', ">= 0.8.5.2"
s.add_development_dependency 'bluecloth' unless RUBY_PLATFORM =~ /java/

s.summary = 'Ruby/EventMachine library'
s.description = "EventMachine implements a fast, single-threaded engine for arbitrary network
Expand Down
23 changes: 3 additions & 20 deletions rakelib/package.rake
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
begin
require 'rubygems'
require 'rubygems/package_task'
rescue LoadError
require 'rake/packagetask'
require 'rake/gempackagetask'
end
require 'rubygems'
require 'rubygems/package_task'

begin
require 'rake/extensiontask'
Expand All @@ -19,7 +14,7 @@ rake-compiler gem seems to be missing. Please install it with
MSG
end

Rake::PackageTask.new(GEMSPEC, EventMachine::VERSION) do |pkg|
Gem::PackageTask.new(GEMSPEC) do |pkg|
end

if RUBY_PLATFORM =~ /java/
Expand Down Expand Up @@ -91,15 +86,3 @@ def gem_cmd(action, name, *args)
end

Rake::Task[:clean].enhance [:clobber_package]

namespace :gem do
desc 'Install gem (and sudo if required)'
task :install => :package do
gem_cmd(:install, "pkg/#{GEMSPEC.name}-#{GEMSPEC.version}.gem")
end

desc 'Uninstall gem (and sudo if required)'
task :uninstall do
gem_cmd(:uninstall, "#{GEMSPEC.name}", "-v=#{GEMSPEC.version}")
end
end

0 comments on commit 287dd33

Please sign in to comment.