Skip to content

Commit

Permalink
Replace jeweler with bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Nov 20, 2010
1 parent 9bc8df1 commit f4bae73
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 185 deletions.
9 changes: 1 addition & 8 deletions Gemfile
@@ -1,13 +1,6 @@
source 'http://rubygems.org'

gem 'diff-lcs'
gem 'jeweler'
gem 'fakeweb'
gem 'rake'
gem 'rdoc'
gem 'rspec'
gem 'simplecov'
gem 'thor'
gemspec

platforms :mri_18 do
gem "ruby-debug", ">= 0.10.3"
Expand Down
26 changes: 11 additions & 15 deletions Gemfile.lock
@@ -1,19 +1,18 @@
PATH
remote: .
specs:
thor (0.14.4)

GEM
remote: http://rubygems.org/
specs:
archive-tar-minitar (0.5.2)
columnize (0.3.2)
diff-lcs (1.1.2)
fakeweb (1.3.0)
git (1.2.5)
jeweler (1.5.1)
bundler (~> 1.0.0)
git (>= 1.2.5)
rake
linecache (0.43)
linecache19 (0.5.11)
ruby_core_source (>= 0.1.4)
rake (0.8.7)
rdoc (2.5.11)
rspec (2.1.0)
rspec-core (~> 2.1.0)
Expand Down Expand Up @@ -41,19 +40,16 @@ GEM
simplecov (0.3.7)
simplecov-html (>= 0.3.7)
simplecov-html (0.3.9)
thor (0.14.4)

PLATFORMS
ruby

DEPENDENCIES
diff-lcs
fakeweb
jeweler
rake
rdoc
rspec
bundler (~> 1.0)
fakeweb (~> 1.3)
rdoc (~> 2.5)
rspec (~> 2.1)
ruby-debug (>= 0.10.3)
ruby-debug19
simplecov
thor
simplecov (~> 0.3)
thor!
51 changes: 9 additions & 42 deletions Thorfile
@@ -1,57 +1,24 @@
# enconding: utf-8

require File.join(File.dirname(__FILE__), "lib", "thor", "version")
require 'thor/rake_compat'
require 'rspec/core/rake_task'

GEM_NAME = 'thor'
EXTRA_RDOC_FILES = ["README.md", "LICENSE", "CHANGELOG.rdoc", "Thorfile"]

class Default < Thor
include Thor::RakeCompat

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

begin
require 'rdoc/task'
rescue LoadError
end
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rdoc/task'
if defined?(RDoc)
RDoc::Task.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.rdoc_dir = "rdoc"
rdoc.title = GEM_NAME
rdoc.rdoc_files.include(*EXTRA_RDOC_FILES)
rdoc.main = 'README.md'
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'thor'
rdoc.rdoc_files.include('README.md', 'LICENSE', 'CHANGELOG.rdoc', 'Thorfile')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.options << '--line-numbers' << '--inline-source'
end
end

begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = GEM_NAME
s.version = Thor::VERSION.dup
s.rubyforge_project = "textmate"
s.platform = Gem::Platform::RUBY
s.summary = "A scripting framework that replaces rake, sake and rubigen"
s.email = "ruby-thor@googlegroups.com"
s.homepage = "http://yehudakatz.com"
s.description = "A scripting framework that replaces rake, sake and rubigen"
s.authors = ['Yehuda Katz', 'José Valim']
s.has_rdoc = true
s.extra_rdoc_files = EXTRA_RDOC_FILES
s.require_path = 'lib'
s.bindir = "bin"
s.executables = %w( thor rake2thor )
s.files = s.extra_rdoc_files + Dir.glob("{bin,lib}/**/*")
s.test_files.include 'spec/**/*'
s.test_files.include 'spec/fixtures/doc/components/.empty_directory'
s.test_files.exclude 'spec/sandbox/**/*'
end

Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
end
end
139 changes: 19 additions & 120 deletions thor.gemspec
@@ -1,125 +1,24 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Thorfile, and run the gemspec command
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/thor/version', __FILE__)

Gem::Specification.new do |s|
s.name = %q{thor}
s.version = "0.14.4"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Yehuda Katz", "Jos\303\251 Valim"]
s.date = %q{2010-11-04}
s.add_development_dependency("bundler", "~> 1.0")
s.add_development_dependency("fakeweb", "~> 1.3")
s.add_development_dependency("rdoc", "~> 2.5")
s.add_development_dependency("rspec", "~> 2.1")
s.add_development_dependency("simplecov", "~> 0.3")
s.name = 'thor'
s.version = Thor::VERSION.dup
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6") if s.respond_to? :required_rubygems_version=
s.authors = ['Yehuda Katz', 'José Valim']
s.description = %q{A scripting framework that replaces rake, sake and rubigen}
s.email = %q{ruby-thor@googlegroups.com}
s.executables = ["thor", "rake2thor"]
s.extra_rdoc_files = [
"CHANGELOG.rdoc",
"LICENSE",
"README.md",
"Thorfile"
]
s.files = [
"CHANGELOG.rdoc",
"LICENSE",
"README.md",
"Thorfile",
"bin/rake2thor",
"bin/thor",
"lib/thor.rb",
"lib/thor/actions.rb",
"lib/thor/actions/create_file.rb",
"lib/thor/actions/directory.rb",
"lib/thor/actions/empty_directory.rb",
"lib/thor/actions/file_manipulation.rb",
"lib/thor/actions/inject_into_file.rb",
"lib/thor/base.rb",
"lib/thor/core_ext/file_binary_read.rb",
"lib/thor/core_ext/hash_with_indifferent_access.rb",
"lib/thor/core_ext/ordered_hash.rb",
"lib/thor/error.rb",
"lib/thor/group.rb",
"lib/thor/invocation.rb",
"lib/thor/parser.rb",
"lib/thor/parser/argument.rb",
"lib/thor/parser/arguments.rb",
"lib/thor/parser/option.rb",
"lib/thor/parser/options.rb",
"lib/thor/rake_compat.rb",
"lib/thor/runner.rb",
"lib/thor/shell.rb",
"lib/thor/shell/basic.rb",
"lib/thor/shell/color.rb",
"lib/thor/shell/html.rb",
"lib/thor/task.rb",
"lib/thor/util.rb",
"lib/thor/version.rb"
]
s.homepage = %q{http://yehudakatz.com}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{textmate}
s.rubygems_version = %q{1.3.7}
s.summary = %q{A scripting framework that replaces rake, sake and rubigen}
s.test_files = [
"spec/actions/create_file_spec.rb",
"spec/actions/directory_spec.rb",
"spec/actions/empty_directory_spec.rb",
"spec/actions/file_manipulation_spec.rb",
"spec/actions/inject_into_file_spec.rb",
"spec/actions_spec.rb",
"spec/base_spec.rb",
"spec/core_ext/hash_with_indifferent_access_spec.rb",
"spec/core_ext/ordered_hash_spec.rb",
"spec/fixtures/application.rb",
"spec/fixtures/bundle/execute.rb",
"spec/fixtures/doc/block_helper.rb",
"spec/fixtures/doc/config.rb",
"spec/group_spec.rb",
"spec/invocation_spec.rb",
"spec/parser/argument_spec.rb",
"spec/parser/arguments_spec.rb",
"spec/parser/option_spec.rb",
"spec/parser/options_spec.rb",
"spec/rake_compat_spec.rb",
"spec/runner_spec.rb",
"spec/shell/basic_spec.rb",
"spec/shell/color_spec.rb",
"spec/shell/html_spec.rb",
"spec/shell_spec.rb",
"spec/spec_helper.rb",
"spec/task_spec.rb",
"spec/thor_spec.rb",
"spec/util_spec.rb",
"spec/actions",
"spec/core_ext",
"spec/fixtures",
"spec/fixtures/bundle",
"spec/fixtures/bundle/main.thor",
"spec/fixtures/doc",
"spec/fixtures/doc/%file_name%.rb.tt",
"spec/fixtures/doc/components",
"spec/fixtures/doc/README",
"spec/fixtures/group.thor",
"spec/fixtures/invoke.thor",
"spec/fixtures/path with spaces",
"spec/fixtures/script.thor",
"spec/fixtures/task.thor",
"spec/parser",
"spec/sandbox",
"spec/shell",
"spec/spec.opts",
"spec/fixtures/doc/components/.empty_directory"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
end
s.email = ['ruby-thor@googlegroups.com']
s.extra_rdoc_files = ['CHANGELOG.rdoc', 'LICENSE', 'README.md', 'Thorfile']
s.homepage = 'http://yehudakatz.com/2008/05/12/by-thors-hammer/'
s.rdoc_options = ['--charset=UTF-8']
s.require_paths = ['lib']
s.summary = s.description
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
end

0 comments on commit f4bae73

Please sign in to comment.