Sha256: 3b3d9af569d73672142bd9cad62f4093cc449aae12b1098d373ed0a11202ec8b

Contents?: true

Size: 841 Bytes

Versions: 10

Compression:

Stored size: 841 Bytes

Contents

require 'fileutils'

# Install all the needed support files (CSS and JavaScript)

js_dir = File.dirname(__FILE__) + '/../../../public/javascripts/'
datepicker_js = js_dir + 'datepicker.js'
lang_dir = js_dir + 'lang'
datepicker_css = File.dirname(__FILE__) + '/../../../public/stylesheets/datepicker.css'
images_dir = File.dirname(__FILE__) + '/../../../public/images/datepicker'

FileUtils.cp File.dirname(__FILE__) + '/public/javascripts/datepicker.js', datepicker_js unless File.exists?(datepicker_js)
FileUtils.cp_r File.dirname(__FILE__) + '/public/javascripts/lang/', lang_dir unless File.exists?(lang_dir)
FileUtils.cp File.dirname(__FILE__) + '/public/stylesheets/datepicker.css', datepicker_css unless File.exists?(datepicker_css)
FileUtils.cp_r File.dirname(__FILE__) + '/public/images/', images_dir unless File.exists?(images_dir)

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.11.3 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.11.2 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.11.1 vendor/plugins/unobtrusive_date_picker/install.rb
rd_unobtrusive_date_picker-0.1.0 install.rb
spree-0.11.0 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.10.2 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.10.1 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.10.0 vendor/plugins/unobtrusive_date_picker/install.rb
spree-0.10.0.beta vendor/plugins/unobtrusive_date_picker/install.rb