forked from rails/thor
-
Notifications
You must be signed in to change notification settings - Fork 0
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
66 changed files
with
2,092 additions
and
2,089 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,6 @@ PercentLiteralDelimiters: | |
'%w': '[]' | ||
'%W': '[]' | ||
'%x': () | ||
|
||
StringLiterals: | ||
EnforcedStyle: double_quotes |
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,28 +1,28 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gem 'rake', '>= 0.9' | ||
gem 'rdoc', '>= 3.9' | ||
gem "rake", ">= 0.9" | ||
gem "rdoc", ">= 3.9" | ||
|
||
group :development do | ||
gem 'guard-rspec' | ||
gem 'pry' | ||
gem "guard-rspec" | ||
gem "pry" | ||
platforms :ruby_19, :ruby_20 do | ||
gem 'pry-debugger' | ||
gem 'pry-stack_explorer' | ||
gem "pry-debugger" | ||
gem "pry-stack_explorer" | ||
end | ||
end | ||
|
||
group :test do | ||
gem 'childlabor' | ||
gem 'coveralls', '>= 0.5.7', :require => false | ||
gem "childlabor" | ||
gem "coveralls", ">= 0.5.7", :require => false | ||
# mime-types is required indirectly by coveralls | ||
# needs to be < 2.0 to work with Ruby 1.8.7 | ||
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18] | ||
gem 'fakeweb', '>= 1.3' | ||
gem 'rspec', '>= 2.14' | ||
gem 'rspec-mocks', '>= 2.12.2' | ||
gem 'rubocop', '>= 0.19', :platforms => [:ruby_19, :ruby_20, :ruby_21] | ||
gem 'simplecov', :require => false | ||
gem "mime-types", "~> 1.25", :platforms => [:jruby, :ruby_18] | ||
gem "fakeweb", ">= 1.3" | ||
gem "rspec", ">= 2.14" | ||
gem "rspec-mocks", ">= 2.12.2" | ||
gem "rubocop", ">= 0.19", :platforms => [:ruby_19, :ruby_20, :ruby_21] | ||
gem "simplecov", :require => false | ||
end | ||
|
||
gemspec |
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,29 +1,29 @@ | ||
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) | ||
|
||
require 'bundler' | ||
require 'thor/rake_compat' | ||
require "bundler" | ||
require "thor/rake_compat" | ||
|
||
class Default < Thor | ||
include Thor::RakeCompat | ||
Bundler::GemHelper.install_tasks | ||
|
||
desc 'build', "Build thor-#{Thor::VERSION}.gem into the pkg directory" | ||
desc "build", "Build thor-#{Thor::VERSION}.gem into the pkg directory" | ||
def build | ||
Rake::Task['build'].execute | ||
Rake::Task["build"].execute | ||
end | ||
|
||
desc 'install', "Build and install thor-#{Thor::VERSION}.gem into system gems" | ||
desc "install", "Build and install thor-#{Thor::VERSION}.gem into system gems" | ||
def install | ||
Rake::Task['install'].execute | ||
Rake::Task["install"].execute | ||
end | ||
|
||
desc 'release', "Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems" | ||
desc "release", "Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems" | ||
def release | ||
Rake::Task['release'].execute | ||
Rake::Task["release"].execute | ||
end | ||
|
||
desc 'spec', 'Run RSpec code examples' | ||
desc "spec", "Run RSpec code examples" | ||
def spec | ||
exec 'rspec spec' | ||
exec "rspec spec" | ||
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,6 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# -*- mode: ruby -*- | ||
|
||
require 'thor/runner' | ||
require "thor/runner" | ||
$thor_runner = true | ||
Thor::Runner.start |
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
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,4 +1,4 @@ | ||
require 'thor/actions/create_file' | ||
require "thor/actions/create_file" | ||
|
||
class Thor | ||
module Actions | ||
|
Oops, something went wrong.