Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Added gem_init for vendored gem installation. Updated README to refle…
Browse files Browse the repository at this point in the history
…ct the installation
  • Loading branch information
artmotion committed Jun 24, 2008
1 parent 5439bbf commit 3e37a08
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
23 changes: 22 additions & 1 deletion README
Expand Up @@ -7,4 +7,25 @@ see demo here -- http://restatesman.com/static/calendar
::Project Site::
http://code.google.com/p/calendardateselect/

It works!
It works!



Setup for "vendored gem":
In enviroment.rb add the gem:
config.gem "artmotion-calendar_date_select", :version => "1.10.6", :source => "http://gems.github.com", :lib => 'gem_init'

Install the gem locally (this installs the gem system wide)
sudo rake gems:install

Unpack the gem locally (this unpacks it vendor/gems/ inside your applicatio)
rake gems:unpack

Remove the system wide gem (this is require until Ticket#324 is closed [http://rails.lighthouseapp.com/projects/8994/tickets/324-gem-dependencies-inconsistently-load-rails-init-rb])
sudo gem uninstall artmotion-calendar_date_select

Don't forget to include the javascript helper in your view:
<%= javascript_include_tag :defaults %>
<%= calendar_date_select_includes %>


2 changes: 1 addition & 1 deletion calendar_date_select.gemspec
Expand Up @@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.description = "CalendarDateSelect is semi-light-weight and easy to use! It takes full advantage of the prototype.js library, resulting in less code, but maintaining a great deal of functionality. Project site: http://code.google.com/p/calendardateselect/"
s.has_rdoc = false
s.authors = ["Tim Harper"]
s.files = ["CHANGELOG","MIT-LICENSE","README","calendar_date_select.gemspec","init.rb","js_test/prototype.js","js_test/test.css","js_test/unittest.js","js_test/functional/cds_test.html","js_test/unit/cds_helper_methods.html","lib/calendar_date_select.rb","lib/includes_helper.rb","public/blank_iframe.html","public/images/calendar_date_select/calendar.gif","public/javascripts/calendar_date_select/calendar_date_select.js","public/javascripts/calendar_date_select/format_american.js","public/javascripts/calendar_date_select/format_db.js","public/javascripts/calendar_date_select/format_euro_24hr.js","public/javascripts/calendar_date_select/format_euro_24hr_ymd.js","public/javascripts/calendar_date_select/format_finnish.js","public/javascripts/calendar_date_select/format_hyphen_ampm.js","public/javascripts/calendar_date_select/format_iso_date.js","public/javascripts/calendar_date_select/format_italian.js","public/javascripts/calendar_date_select/locale/fi.js","public/javascripts/calendar_date_select/locale/pl.js","public/javascripts/calendar_date_select/locale/pt.js","public/stylesheets/calendar_date_select/blue.css","public/stylesheets/calendar_date_select/default.css","public/stylesheets/calendar_date_select/plain.css","public/stylesheets/calendar_date_select/red.css","public/stylesheets/calendar_date_select/silver.css","test/test_helper.rb","test/functional/calendar_date_select_test.rb","test/functional/helper_methods_test.rb"]
s.files = ["CHANGELOG","MIT-LICENSE","README","calendar_date_select.gemspec","init.rb","js_test/prototype.js","js_test/test.css","js_test/unittest.js","js_test/functional/cds_test.html","js_test/unit/cds_helper_methods.html","lib/calendar_date_select.rb","lib/gem_init.rb","lib/includes_helper.rb","public/blank_iframe.html","public/images/calendar_date_select/calendar.gif","public/javascripts/calendar_date_select/calendar_date_select.js","public/javascripts/calendar_date_select/format_american.js","public/javascripts/calendar_date_select/format_db.js","public/javascripts/calendar_date_select/format_euro_24hr.js","public/javascripts/calendar_date_select/format_euro_24hr_ymd.js","public/javascripts/calendar_date_select/format_finnish.js","public/javascripts/calendar_date_select/format_hyphen_ampm.js","public/javascripts/calendar_date_select/format_iso_date.js","public/javascripts/calendar_date_select/format_italian.js","public/javascripts/calendar_date_select/locale/fi.js","public/javascripts/calendar_date_select/locale/pl.js","public/javascripts/calendar_date_select/locale/pt.js","public/stylesheets/calendar_date_select/blue.css","public/stylesheets/calendar_date_select/default.css","public/stylesheets/calendar_date_select/plain.css","public/stylesheets/calendar_date_select/red.css","public/stylesheets/calendar_date_select/silver.css","test/test_helper.rb","test/functional/calendar_date_select_test.rb","test/functional/helper_methods_test.rb"]
s.test_files = ["test/test_helper.rb","test/functional/calendar_date_select_test.rb","test/functional/helper_methods_test.rb"]
end

3 changes: 3 additions & 0 deletions lib/gem_init.rb
@@ -0,0 +1,3 @@
# delegate to original init.rb from the plugin
require File.dirname(__FILE__) + '/../init'

0 comments on commit 3e37a08

Please sign in to comment.