Sha256: b4b07cd53a956672a557e4192a3ee022124afb93fb89ba98c15ae58d160368ac
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require 'rails' module Historyjs module Generators class InstallGenerator < ::Rails::Generators::Base desc "This generator installs HistoryJS #{Historyjs::Rails::HISTORYJS_VERSION}, JSON2, and Amplify Store #{Historyjs::Rails::AMPLIFY_STORE_VERSION}" source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__) def copy_historyjs say_status("copying", "History.js (#{Historyjs::Rails::HISTORYJS_VERSION})", :green) copy_file "history_core.js", "public/javascripts/history.js" copy_file "history.html4.js", "public/javascripts/history.html4.js" copy_file "history.adapter.jquery.js", "public/javascripts/history.adapter.jquery.js" end def copy_json2 say_status("copying", "JSON2 (#{Historyjs::Rails::JSON2_VERSION})", :green) copy_file "json2.js", "public/javascripts/json2.js" end def copy_amplify_store say_status("copying", "Amplify Store (#{Historyjs::Rails::AMPLIFY_STORE_VERSION[0..5]})", :green) copy_file "amplify_store.js", "public/javascripts/amplify.store.js" end end end end if ::Rails.version < "3.1"
Version data entries
3 entries across 3 versions & 1 rubygems