diff options
Diffstat (limited to 'railties')
-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' |