lib/rails/generators/actions.rb in railties-3.0.20 vs lib/rails/generators/actions.rb in railties-3.1.0.beta1
- old
+ new
@@ -1,7 +1,6 @@
require 'open-uri'
-require 'active_support/deprecation'
require 'rbconfig'
module Rails
module Generators
module Actions
@@ -51,24 +50,10 @@
#
def gem(*args)
options = args.extract_options!
name, version = args
- # Deal with deprecated options
- { :env => :group, :only => :group,
- :lib => :require, :require_as => :require }.each do |old, new|
- next unless options[old]
- options[new] = options.delete(old)
- ActiveSupport::Deprecation.warn "#{old.inspect} option in gem is deprecated, use #{new.inspect} instead"
- end
-
- # Deal with deprecated source
- if source = options.delete(:source)
- ActiveSupport::Deprecation.warn ":source option in gem is deprecated, use add_source method instead"
- add_source(source)
- end
-
# Set the message to be shown in logs. Uses the git repo if one is given,
# otherwise use name (version).
parts, message = [ name.inspect ], name
if version ||= options.delete(:version)
parts << version.inspect
@@ -200,12 +185,12 @@
# ==== Examples
#
# initializer("globals.rb") do
# data = ""
#
- # ['MY_WORK', 'ADMINS', 'BEST_COMPANY_EVAR'].each do
- # data << "#{const} = :entp"
+ # ['MY_WORK', 'ADMINS', 'BEST_COMPANY_EVAR'].each do |const|
+ # data << "#{const} = :entp\n"
# end
#
# data
# end
#
@@ -253,19 +238,9 @@
# capify!
#
def capify!
log :capify, ""
in_root { run("#{extify(:capify)} .", :verbose => false) }
- end
-
- # Add Rails to /vendor/rails
- #
- # ==== Example
- #
- # freeze!
- #
- def freeze!(args={})
- ActiveSupport::Deprecation.warn "freeze! is deprecated since your rails app now comes bundled with Rails by default, please check your Gemfile"
end
# Make an entry in Rails routing file config/routes.rb
#
# === Example