forked from rails/thor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|