lib/generators/jquery/install/install_generator.rb in jquery_rails3-1.6 vs lib/generators/jquery/install/install_generator.rb in jquery_rails3-1.6.1
- old
+ new
@@ -3,12 +3,12 @@
PATH = source_root File.expand_path('../templates', __FILE__)
# Options
class_option :ui, :type => :boolean, :defalut => false, :desc => "Add jquery-ui components to application."
class_option :ui_version, :type => :string, :defalut => "1", :desc => "Version of jquery-ui components to application."
class_option :version, :type => :string, :defalut => "1", :desc => "Version of jquery used in application."
+ OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
-
JS_DEST = "public/javascripts"
CSS_DEST = "public/stylesheets"
def remove_prototype
old_scripts = %w(controls dragdrop effects prototype)
@@ -23,10 +23,10 @@
ui_version = (options[:ui_version].nil?)? "1" : options[:ui_version]
url = "http://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js"
#puts url
get url, "#{JS_DEST}/jquery.js"
- get "http://github.com/rails/jquery-ujs/raw/master/src/rails.js", "#{JS_DEST}/rails.js"
+ get "https://github.com/rails/jquery-ujs/raw/master/src/rails.js", "#{JS_DEST}/rails.js"
url = "http://ajax.googleapis.com/ajax/libs/jqueryui/#{ui_version}/jquery-ui.min.js"
#puts url
if options.ui?
get url, "#{JS_DEST}/jquery-ui.js"
end
\ No newline at end of file