Skip to content

Commit

Permalink
from Jeweler to Bunlder
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed May 6, 2011
1 parent 9c444c1 commit 61c44cc
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 201 deletions.
44 changes: 3 additions & 41 deletions .gitignore
@@ -1,42 +1,4 @@
# rcov generated
coverage

# rdoc generated
rdoc

# yard generated
doc
.yardoc

# bundler
*.gem
.bundle

# jeweler generated
pkg

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
# * Include files you want ignored
# * Run: git config --global core.excludesfile ~/.gitignore
#
# After doing this, these files will be ignored in all your git projects,
# saving you from having to 'pollute' every project you touch with them
#
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
#
# For MacOS:
#
#.DS_Store
#
# For TextMate
#*.tmproj
#tmtags
#
# For emacs:
#*~
#\#*
#.\#*
#
# For vim:
#*.swp
Gemfile.lock
pkg/*
13 changes: 2 additions & 11 deletions Gemfile
@@ -1,13 +1,4 @@
source "http://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "shoulda", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.5.2"
gem "rcov", ">= 0"
end
# Specify your gem's dependencies in hocus_pocus.gemspec
gemspec
20 changes: 0 additions & 20 deletions Gemfile.lock

This file was deleted.

53 changes: 1 addition & 52 deletions Rakefile
@@ -1,53 +1,2 @@
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "hocus_pocus"
gem.homepage = "http://github.com/amatsuda/hocus_pocus"
gem.license = "MIT"
gem.summary = 'An Isolated Engine that casts a spell on your Rails 3.1 app'
gem.description = 'An Isolated Engine that casts a spell on your Rails 3.1 app'
gem.email = "ronnie@dio.jp"
gem.authors = ["Akira Matsuda"]
# Include your dependencies below. Runtime dependencies are required when using your gem,
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
gem.add_runtime_dependency 'nested_scaffold', '>= 0.1.0'
# gem.add_development_dependency 'rspec', '> 1.2.3'
end
Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "hocus_pocus #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Bundler::GemHelper.install_tasks
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

95 changes: 19 additions & 76 deletions hocus_pocus.gemspec
@@ -1,83 +1,26 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
require 'hocus_pocus/version'

Gem::Specification.new do |s|
s.name = %q{hocus_pocus}
s.version = "0.0.1"
s.name = 'hocus_pocus'
s.version = HocusPocus::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Akira Matsuda']
s.email = ['ronnie@dio.jp']
s.homepage = 'http://github.com/amatsuda/hocus_pocus'
s.summary = 'An Isolated Engine that casts a spell on your Rails 3.1 app'
s.description = 'An Isolated Engine that casts a spell on your Rails 3.1 app'

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Akira Matsuda"]
s.date = %q{2010-12-23}
s.description = %q{An Isolated Engine that casts a spell on your Rails 3.1 app}
s.email = %q{ronnie@dio.jp}
s.extra_rdoc_files = [
"LICENSE.txt",
"README.rdoc"
]
s.files = [
".document",
"Gemfile",
"Gemfile.lock",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
"VERSION",
"app/controllers/hocus_pocus/application_controller.rb",
"app/controllers/hocus_pocus/editor_controller.rb",
"app/controllers/hocus_pocus/generator_controller.rb",
"app/helpers/hocus_pocus/application_helper.rb",
"app/helpers/hocus_pocus/generator_helper.rb",
"app/views/hocus_pocus/editor/_editor.html.erb",
"app/views/hocus_pocus/editor/index.js.erb",
"app/views/hocus_pocus/editor/save.js.erb",
"app/views/hocus_pocus/generator/execute.js.erb",
"app/views/hocus_pocus/generator/index.html.erb",
"app/views/hocus_pocus/generator/scaffold.js.erb",
"config/routes.rb",
"hocus_pocus.gemspec",
"lib/hocus_pocus.rb",
"lib/hocus_pocus/engine.rb",
"lib/hocus_pocus/filter.rb",
"lib/tasks/hocus_pocus_tasks.rake",
"public/javascripts/rails.js",
"test/helper.rb",
"test/test_hocus_pocus.rb"
]
s.homepage = %q{http://github.com/amatsuda/hocus_pocus}
s.licenses = ["MIT"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{An Isolated Engine that casts a spell on your Rails 3.1 app}
s.test_files = [
"test/helper.rb",
"test/test_hocus_pocus.rb"
]
s.rubyforge_project = 'hocus_pocus'

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ['lib']

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
s.add_development_dependency(%q<rcov>, [">= 0"])
s.add_runtime_dependency(%q<nested_scaffold>, [">= 0.1.0"])
else
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<nested_scaffold>, [">= 0.1.0"])
end
else
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<nested_scaffold>, [">= 0.1.0"])
end
end
s.extra_rdoc_files = ['README.rdoc']
s.licenses = ['MIT']

s.add_runtime_dependency 'nested_scaffold', ['>= 0.1.0']
end
3 changes: 3 additions & 0 deletions lib/hocus_pocus/version.rb
@@ -0,0 +1,3 @@
module HocusPocus
VERSION = "0.0.1"
end

0 comments on commit 61c44cc

Please sign in to comment.