recipes/jquery.rb in rails_apps_composer-1.0.0 vs recipes/jquery.rb in rails_apps_composer-1.0.3
- old
+ new
@@ -1,7 +1,7 @@
# Application template recipe for the rails_apps_composer. Check for a newer version here:
-# https://github.com/fortuity/rails_apps_composer/blob/master/recipes/jquery.rb
+# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/jquery.rb
if config['jquery']
if recipes.include? 'rails 3.0'
say_wizard "Replacing Prototype framework with jQuery for Rails 3.0."
after_bundler do
@@ -23,11 +23,11 @@
end
# adjust the Javascript defaults
# first uncomment "config.action_view.javascript_expansions"
gsub_file "config/application.rb", /# config.action_view.javascript_expansions/, "config.action_view.javascript_expansions"
# then add "jquery rails" if necessary
- gsub_file "config/application.rb", /= \%w\(\)/, "%w(jquery rails)"
+ gsub_file "config/application.rb", /= \%w\(\)/, "= %w(jquery rails)"
# finally change to "jquery jqueryui rails" if necessary
if config['ui']
gsub_file "config/application.rb", /jquery rails/, "jquery jqueryui rails"
end
end
@@ -51,10 +51,10 @@
__END__
name: jQuery
description: "Install jQuery (with jQuery UI option) for Rails 3.0 or 3.1."
-author: fortuity
+author: RailsApps
exclusive: javascript_framework
category: assets
tags: [javascript, framework]