gbdev-calendar_date_select 1.11.20080825 → 1.11.20080826
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +1 -1
- data/calendar_date_select.gemspec +1 -1
- data/init.rb +8 -2
- metadata +1 -1
data/CHANGELOG
CHANGED
data/init.rb
CHANGED
@@ -7,10 +7,16 @@ ActionView::Base.send(:include, CalendarDateSelect::FormHelper)
|
|
7
7
|
ActionView::Base.send(:include, CalendarDateSelect::IncludesHelper)
|
8
8
|
|
9
9
|
# install files
|
10
|
+
# FIXME - should check each file or maybe a gem config option to overwrite each startup
|
10
11
|
unless File.exists?(RAILS_ROOT + '/public/javascripts/calendar_date_select/calendar_date_select.js')
|
11
|
-
['/public',
|
12
|
+
['/public',
|
13
|
+
'/public/javascripts/calendar_date_select',
|
14
|
+
'/public/javascripts/calendar_date_select/locale',
|
15
|
+
'/public/stylesheets/calendar_date_select',
|
16
|
+
'/public/images/calendar_date_select'].each do |dir|
|
12
17
|
source = File.join(File.dirname(__FILE__),dir)
|
18
|
+
dest = RAILS_ROOT + dir
|
13
19
|
FileUtils.mkdir_p(dest)
|
14
|
-
FileUtils.cp(Dir.glob(source+'/*.*'), dest)
|
20
|
+
FileUtils.cp(Dir.glob(source+'/*.*'), dest, :verbose => true)
|
15
21
|
end
|
16
22
|
end
|