Skip to content

Commit

Permalink
Remove Hoe. (puma#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga authored and nateberkopec committed Aug 16, 2017
1 parent 137a80d commit e8866e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ source "https://rubygems.org"

gemspec

gem "hoe"
gem "hoe-git"
gem "hoe-ignore"
gem "rdoc"
gem "rake-compiler"

Expand Down
34 changes: 6 additions & 28 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "bundler/setup"
require "hoe"
require "rake/testtask"
require "rake/extensiontask"
require "rake/javaextensiontask"
require "rubocop/rake_task"
Expand All @@ -9,31 +9,7 @@ RuboCop::RakeTask.new

IS_JRUBY = defined?(RUBY_ENGINE) ? RUBY_ENGINE == "jruby" : false

Hoe.plugin :git
Hoe.plugin :ignore

# Keep in sync with puma.gemspec
HOE = Hoe.spec "puma" do
self.readme_file = "README.md"
self.urls = %w!http://puma.io https://github.com/puma/puma!

license "BSD-3-Clause"
developer 'Evan Phoenix', '[email protected]'

spec_extras[:extensions] = ["ext/puma_http11/extconf.rb"]
spec_extras[:executables] = ['puma', 'pumactl']
spec_extras[:homepage] = urls.first

require_ruby_version ">= 1.9.3"
end

task :prerelease => [:clobber, :check_manifest, :test]

# hoe/test and rake-compiler don't seem to play well together, so disable
# hoe/test's .gemtest touch file thingy for now
HOE.spec.files -= [".gemtest"]

include Hoe::Git
spec = Gem::Specification.load("puma.gemspec")

desc "Print the current changelog."
task "changelog" do
Expand Down Expand Up @@ -103,7 +79,7 @@ if !IS_JRUBY

# compile extensions using rake-compiler
# C (MRI, Rubinius)
Rake::ExtensionTask.new("puma_http11", HOE.spec) do |ext|
Rake::ExtensionTask.new("puma_http11", spec) do |ext|
# place extension inside namespace
ext.lib_dir = "lib/puma"

Expand All @@ -121,7 +97,7 @@ end
else

# Java (JRuby)
Rake::JavaExtensionTask.new("puma_http11", HOE.spec) do |ext|
Rake::JavaExtensionTask.new("puma_http11", spec) do |ext|
ext.lib_dir = "lib/puma"
end

Expand All @@ -137,6 +113,8 @@ file "lib/puma/puma_http11.rb" do |t|
end
end

Rake::TestTask.new(:test)

# tests require extension be compiled, but depend on the platform
if IS_JRUBY
task :test => [:java]
Expand Down

0 comments on commit e8866e5

Please sign in to comment.