diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-13 23:13:48 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-13 23:13:48 +0200 |
commit | 5021dc69a423e1dbf59aca84217af920707c10ba (patch) | |
tree | 257fed5e2ac95e27a83d7c6afafa52349d06b4d8 /railties/lib | |
parent | 52673cd2eee2bdd65f4ae636f4fdc209186ab868 (diff) | |
download | rails-5021dc69a423e1dbf59aca84217af920707c10ba.tar.gz rails-5021dc69a423e1dbf59aca84217af920707c10ba.tar.bz2 rails-5021dc69a423e1dbf59aca84217af920707c10ba.zip |
Vendorized Thor.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators.rb | 6 | ||||
m--------- | railties/lib/vendor/thor | 0 | ||||
-rw-r--r-- | railties/lib/vendor/thor.rb | 9 |
3 files changed, 10 insertions, 5 deletions
diff --git a/railties/lib/generators.rb b/railties/lib/generators.rb index 3cf4ccb79a..ed2ce43ba2 100644 --- a/railties/lib/generators.rb +++ b/railties/lib/generators.rb @@ -11,11 +11,7 @@ end $:.unshift(File.dirname(__FILE__)) -# TODO Use vendored Thor -require 'rubygems' -gem 'josevalim-thor' -require 'thor' - +require 'vendor/thor' require 'generators/base' require 'generators/named_base' diff --git a/railties/lib/vendor/thor b/railties/lib/vendor/thor new file mode 160000 +Subproject fccc2fddfb3e696d4715bfddc1c25211fc7480d diff --git a/railties/lib/vendor/thor.rb b/railties/lib/vendor/thor.rb new file mode 100644 index 0000000000..a98799ce08 --- /dev/null +++ b/railties/lib/vendor/thor.rb @@ -0,0 +1,9 @@ +begin + # Prefer gems to the bundled libs. + require 'rubygems' + gem 'thor', '>= 0.11.0' +rescue Gem::LoadError + $:.unshift "#{File.dirname(__FILE__)}/thor/lib" +end + +require 'thor' |