artmotion-calendar_date_select 1.10.5 → 1.10.6
Sign up to get free protection for your applications and to get access to all the features.
data/README
CHANGED
@@ -7,4 +7,25 @@ see demo here -- http://restatesman.com/static/calendar
|
|
7
7
|
::Project Site::
|
8
8
|
http://code.google.com/p/calendardateselect/
|
9
9
|
|
10
|
-
It works!
|
10
|
+
It works!
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
Setup for "vendored gem":
|
15
|
+
In enviroment.rb add the gem:
|
16
|
+
config.gem "artmotion-calendar_date_select", :version => "1.10.6", :source => "http://gems.github.com", :lib => 'gem_init'
|
17
|
+
|
18
|
+
Install the gem locally (this installs the gem system wide)
|
19
|
+
sudo rake gems:install
|
20
|
+
|
21
|
+
Unpack the gem locally (this unpacks it vendor/gems/ inside your applicatio)
|
22
|
+
rake gems:unpack
|
23
|
+
|
24
|
+
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])
|
25
|
+
sudo gem uninstall artmotion-calendar_date_select
|
26
|
+
|
27
|
+
Don't forget to include the javascript helper in your view:
|
28
|
+
<%= javascript_include_tag :defaults %>
|
29
|
+
<%= calendar_date_select_includes %>
|
30
|
+
|
31
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "calendar_date_select"
|
3
|
-
s.version = "1.10.
|
3
|
+
s.version = "1.10.6"
|
4
4
|
s.date = "2008-06-24"
|
5
5
|
s.summary = "A popular and flexible JavaScript DatePicker for RubyOnRails"
|
6
6
|
s.email = "timcharper@gmail.com"
|
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
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/"
|
9
9
|
s.has_rdoc = false
|
10
10
|
s.authors = ["Tim Harper"]
|
11
|
-
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_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"]
|
11
|
+
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"]
|
12
12
|
s.test_files = ["test/test_helper.rb","test/functional/calendar_date_select_test.rb","test/functional/helper_methods_test.rb"]
|
13
13
|
end
|
14
|
+
|
data/lib/calendar_date_select.rb
CHANGED
@@ -29,6 +29,11 @@ class CalendarDateSelect
|
|
29
29
|
:time => " %H:%M",
|
30
30
|
:javascript_include => "format_euro_24hr"
|
31
31
|
},
|
32
|
+
:euro_24hr_ymd => {
|
33
|
+
:date => "%Y.%m.%d",
|
34
|
+
:time => " %H:%M",
|
35
|
+
:javascript_include => "format_euro_24hr_ymd"
|
36
|
+
},
|
32
37
|
:italian => {
|
33
38
|
:date => "%d/%m/%Y",
|
34
39
|
:time => " %H:%M",
|
data/lib/gem_init.rb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
// Formats date and time as "2000.01.20 17:00"
|
2
|
+
Date.prototype.toFormattedString = function(include_time)
|
3
|
+
{
|
4
|
+
str = this.getFullYear() + "." + Date.padded2(this.getMonth()+1) + "." + Date.padded2(this.getDate());
|
5
|
+
if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() }
|
6
|
+
return str;
|
7
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artmotion-calendar_date_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Harper
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- js_test/functional/cds_test.html
|
34
34
|
- js_test/unit/cds_helper_methods.html
|
35
35
|
- lib/calendar_date_select.rb
|
36
|
+
- lib/gem_init.rb
|
36
37
|
- lib/includes_helper.rb
|
37
38
|
- public/blank_iframe.html
|
38
39
|
- public/images/calendar_date_select/calendar.gif
|
@@ -40,6 +41,7 @@ files:
|
|
40
41
|
- public/javascripts/calendar_date_select/format_american.js
|
41
42
|
- public/javascripts/calendar_date_select/format_db.js
|
42
43
|
- public/javascripts/calendar_date_select/format_euro_24hr.js
|
44
|
+
- public/javascripts/calendar_date_select/format_euro_24hr_ymd.js
|
43
45
|
- public/javascripts/calendar_date_select/format_finnish.js
|
44
46
|
- public/javascripts/calendar_date_select/format_hyphen_ampm.js
|
45
47
|
- public/javascripts/calendar_date_select/format_iso_date.js
|
@@ -77,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
79
|
requirements: []
|
78
80
|
|
79
81
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.0
|
82
|
+
rubygems_version: 1.2.0
|
81
83
|
signing_key:
|
82
84
|
specification_version: 2
|
83
85
|
summary: A popular and flexible JavaScript DatePicker for RubyOnRails
|