Skip to content

Commit

Permalink
change gem build tool from hoe 1.x to bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
7hunderbird committed Sep 6, 2012
1 parent 63db525 commit c4ddc40
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 118 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pkg
*.gem
.rbenv-version
.DS_Store
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source "http://rubygems.org"
gemspec
4 changes: 4 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
== 0.6.0 / 2012-09-06
* Bundler and a clean gemspec now manage the release of eycap.
* Use the :bundle_without to optionally specify groups more than 'test and development' only.

== 0.5.23 / 2012-05-31
* Changed README to markdown format.
* Improved README to give instructions on general setup and usage.
Expand Down
34 changes: 0 additions & 34 deletions Manifest.txt

This file was deleted.

35 changes: 2 additions & 33 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,33 +1,2 @@
require 'rubygems'
require 'hoe'
require './lib/eycap'

Hoe.new('eycap', Eycap::VERSION) do |p|
p.author = 'Engine Yard'
p.email = 'appsupport@engineyard.com'
p.summary = 'Capistrano tasks for Engine Yard private cloud slices'
p.description = 'A bunch of useful recipes to help deployment to Engine Yard private cloud slices'
p.url = 'http://github.com/engineyard/eycap'
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.extra_deps << ['capistrano', '>= 2.2.0']
end

desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/eycap.rb"
end

task :coverage do
system("rm -fr coverage")
system("rcov test/test_*.rb")
system("open coverage/index.html")
end

desc "Upload site to Rubyforge"
task :site do
end

desc 'Install the package as a gem.'
task :install_gem_no_doc => [:clean, :package] do
sh "#{'sudo ' unless Hoe::WINDOZE}gem install --local --no-rdoc --no-ri pkg/*.gem"
end
require 'bundler'
Bundler::GemHelper.install_tasks
37 changes: 16 additions & 21 deletions eycap.gemspec
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
Gem::Specification.new do |s|
s.name = %q{eycap}
s.version = "0.5.23"
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/eycap/version', __FILE__)

s.specification_version = 2 if s.respond_to? :specification_version=
Gem::Specification.new do |gem|
gem.authors = ["Engine Yard", "Tyler Bird"]
gem.email = ["appsupport@engineyard.com"]
gem.description = %q{Capistrano recipes for the Engine Yard Managed platform.}
gem.summary = %q{Recipes that help automate the processes of the Engine Yard stack for users of the Managed platform.}
gem.homepage = "http://github.com/engineyard/eycap"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Engine Yard", "Tyler Bird"]
s.date = %q{2012-05-31}
s.description = %q{A bunch of useful recipes to help deployment to the Engine Yard private cloud.}
s.email = %q{appsupport@engineyard.com}
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.markdown"]
s.files = ["History.txt", "Manifest.txt", "README.markdown", "Rakefile", "lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb", "lib/capistrano/recipes/deploy/strategy/unshared_remote_cache.rb", "lib/eycap.rb", "lib/eycap/lib/ey_logger.rb", "lib/eycap/lib/ey_logger_hooks.rb", "lib/eycap/recipes.rb", "lib/eycap/recipes/backgroundrb.rb", "lib/eycap/recipes/database.rb", "lib/eycap/recipes/deploy.rb", "lib/eycap/recipes/ferret.rb", "lib/eycap/recipes/juggernaut.rb", "lib/eycap/recipes/memcached.rb", "lib/eycap/recipes/mongrel.rb", "lib/eycap/recipes/monit.rb", "lib/eycap/recipes/nginx.rb", "lib/eycap/recipes/passenger.rb", "lib/eycap/recipes/slice.rb", "lib/eycap/recipes/solr.rb", "lib/eycap/recipes/sphinx.rb", "lib/eycap/recipes/ssl.rb", "lib/eycap/recipes/templates/maintenance.rhtml", "lib/eycap/recipes/tomcat.rb", "lib/eycap/recipes/unicorn.rb", "lib/eycap/recipes/apache.rb", "lib/eycap/recipes/delayed_job.rb", "lib/eycap/recipes/bundler.rb", "lib/eycap/recipes/resque.rb", "test/test_eycap.rb", "test/test_helper.rb"]
s.has_rdoc = true
s.homepage = %q{http://github.com/engineyard/eycap}
s.rdoc_options = ["--main", "README.markdown"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{eycap}
s.rubygems_version = %q{1.0.1}
s.summary = %q{Capistrano tasks for Engine Yard private cloud.}
s.test_files = ["test/test_eycap.rb", "test/test_helper.rb"]
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "eycap"
gem.require_paths = ["lib"]
gem.version = Eycap::VERSION

s.add_dependency(%q<capistrano>, [">= 2.2.0"])
s.add_dependency(%q<hoe>, [">= 1.5.1"])
gem.add_dependency "capistrano", ">= 2.2.0"
end

29 changes: 27 additions & 2 deletions lib/eycap.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
module Eycap
VERSION = '0.5.23'
require '../eycap/lib/ey_logger'
require '../eycap/lib/ey_logger_hooks'
require '../eycap/recipes/apache'
require '../eycap/recipes/backgroundrb'
require '../eycap/recipes/bundler'
require '../eycap/recipes/database'
require '../eycap/recipes/delayed_job'
require '../eycap/recipes/deploy'
require '../eycap/recipes/ferret'
require '../eycap/recipes/juggernaut'
require '../eycap/recipes/memcached'
require '../eycap/recipes/mongrel'
require '../eycap/recipes/monit'
require '../eycap/recipes/nginx'
require '../eycap/recipes/passenger'
require '../eycap/recipes/resque'
require '../eycap/recipes/slice'
require '../eycap/recipes/solr'
require '../eycap/recipes/sphinx'
require '../eycap/recipes/ssl'
require '../eycap/recipes/tomcat'
require '../eycap/recipes/unicorn'

Capistrano::Configuration.instance(:must_exist).load do
default_run_options[:pty] = true if respond_to?(:default_run_options)
set :keep_releases, 3
set :runner, defer { user }
end
28 changes: 0 additions & 28 deletions lib/eycap/recipes.rb

This file was deleted.

4 changes: 4 additions & 0 deletions lib/eycap/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Eycap
VERSION = '0.6.0'
end

0 comments on commit c4ddc40

Please sign in to comment.