Sha256: 7d761ccf9f1eb066d53c82390468940deca8a7a714834f09a1e63172151523bd

Contents?: true

Size: 617 Bytes

Versions: 7

Compression:

Stored size: 617 Bytes

Contents

def setup_script
  begin
    get('https://github.com/padrino/padrino-static/raw/master/js/jquery.js',  destination_root("/public/javascripts/jquery.js"))
    get('https://github.com/padrino/padrino-static/raw/master/ujs/jquery.js', destination_root("/public/javascripts/jquery-ujs.js"))
  rescue
    copy_file('templates/static/js/jquery.js',  destination_root("/public/javascripts/jquery.js"))
    copy_file('templates/static/ujs/jquery.js', destination_root("/public/javascripts/jquery-ujs.js"))
  end
  create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
padrino-gen-0.10.1 lib/padrino-gen/generators/components/scripts/jquery.rb
padrino-gen-0.10.0 lib/padrino-gen/generators/components/scripts/jquery.rb
padrino-gen-0.9.29 lib/padrino-gen/generators/components/scripts/jquery.rb
padrino-gen-0.9.28 lib/padrino-gen/generators/components/scripts/jquery.rb
padrino-gen-0.9.27 lib/padrino-gen/generators/components/scripts/jquery.rb
padrino-gen-0.9.26 lib/padrino-gen/generators/components/scripts/jquery.rb
padrino-gen-0.9.25 lib/padrino-gen/generators/components/scripts/jquery.rb