ginkel-calendar_date_select 1.16.1.1
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/.gitignore +3 -0
- data/History.txt +270 -0
- data/MIT-LICENSE +20 -0
- data/Manifest.txt +42 -0
- data/README.txt +16 -0
- data/Rakefile +38 -0
- data/VERSION +1 -0
- data/calendar_date_select.gemspec +99 -0
- data/init.rb +1 -0
- data/js_test/functional/.tmp_cds_test.html +306 -0
- data/js_test/functional/cds_test.html +365 -0
- data/js_test/functional/format_iso_date_test.html +52 -0
- data/js_test/prototype.js +4184 -0
- data/js_test/test.css +40 -0
- data/js_test/unit/cds_helper_methods.html +46 -0
- data/js_test/unittest.js +564 -0
- data/lib/calendar_date_select.rb +33 -0
- data/lib/calendar_date_select/calendar_date_select.rb +122 -0
- data/lib/calendar_date_select/form_helpers.rb +240 -0
- data/lib/calendar_date_select/includes_helper.rb +29 -0
- data/public/blank_iframe.html +2 -0
- data/public/images/calendar_date_select/calendar.gif +0 -0
- data/public/javascripts/calendar_date_select/calendar_date_select.js +448 -0
- data/public/javascripts/calendar_date_select/format_american.js +35 -0
- data/public/javascripts/calendar_date_select/format_danish.js +31 -0
- data/public/javascripts/calendar_date_select/format_db.js +27 -0
- data/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
- data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
- data/public/javascripts/calendar_date_select/format_finnish.js +32 -0
- data/public/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
- data/public/javascripts/calendar_date_select/format_iso_date.js +29 -0
- data/public/javascripts/calendar_date_select/format_italian.js +24 -0
- data/public/javascripts/calendar_date_select/locale/ar.js +10 -0
- data/public/javascripts/calendar_date_select/locale/da.js +11 -0
- data/public/javascripts/calendar_date_select/locale/de.js +11 -0
- data/public/javascripts/calendar_date_select/locale/es.js +11 -0
- data/public/javascripts/calendar_date_select/locale/fi.js +10 -0
- data/public/javascripts/calendar_date_select/locale/fr.js +11 -0
- data/public/javascripts/calendar_date_select/locale/it.js +9 -0
- data/public/javascripts/calendar_date_select/locale/ja.js +11 -0
- data/public/javascripts/calendar_date_select/locale/nl.js +11 -0
- data/public/javascripts/calendar_date_select/locale/pl.js +11 -0
- data/public/javascripts/calendar_date_select/locale/pt.js +11 -0
- data/public/javascripts/calendar_date_select/locale/ru.js +10 -0
- data/public/javascripts/calendar_date_select/locale/sl.js +11 -0
- data/public/javascripts/calendar_date_select/locale/sv.js +9 -0
- data/public/stylesheets/calendar_date_select/blue.css +130 -0
- data/public/stylesheets/calendar_date_select/default.css +135 -0
- data/public/stylesheets/calendar_date_select/green.css +142 -0
- data/public/stylesheets/calendar_date_select/plain.css +128 -0
- data/public/stylesheets/calendar_date_select/red.css +135 -0
- data/public/stylesheets/calendar_date_select/silver.css +133 -0
- data/spec/calendar_date_select/calendar_date_select_spec.rb +14 -0
- data/spec/calendar_date_select/form_helpers_spec.rb +189 -0
- data/spec/calendar_date_select/includes_helper_spec.rb +46 -0
- data/spec/spec_helper.rb +26 -0
- metadata +130 -0
@@ -0,0 +1,133 @@
|
|
1
|
+
.calendar_date_select {
|
2
|
+
color:white;
|
3
|
+
border:#777 1px solid;
|
4
|
+
display:block;
|
5
|
+
width:195px;
|
6
|
+
z-index: 1000;
|
7
|
+
}
|
8
|
+
/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
|
9
|
+
iframe.ie6_blocker {
|
10
|
+
position: absolute;
|
11
|
+
z-index: 999;
|
12
|
+
}
|
13
|
+
|
14
|
+
.calendar_date_select thead th {
|
15
|
+
font-weight:bold;
|
16
|
+
background-color: #000;
|
17
|
+
border-top:1px solid #777;
|
18
|
+
border-bottom:2px solid #333;
|
19
|
+
color: white !important;
|
20
|
+
}
|
21
|
+
|
22
|
+
.calendar_date_select .cds_buttons {
|
23
|
+
text-align:center;
|
24
|
+
padding:5px 0px;
|
25
|
+
background-color: #555;
|
26
|
+
}
|
27
|
+
|
28
|
+
.calendar_date_select .cds_footer {
|
29
|
+
background-color: black;
|
30
|
+
padding:3px;
|
31
|
+
font-size:12px;
|
32
|
+
text-align:center;
|
33
|
+
}
|
34
|
+
|
35
|
+
.calendar_date_select table {
|
36
|
+
margin: 0px;
|
37
|
+
padding: 0px;
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
.calendar_date_select .cds_header {
|
42
|
+
background-color: #ccc;
|
43
|
+
border-bottom: 2px solid #aaa;
|
44
|
+
text-align:center;
|
45
|
+
}
|
46
|
+
|
47
|
+
.calendar_date_select .cds_header span {
|
48
|
+
font-size:15px;
|
49
|
+
color: black;
|
50
|
+
font-weight: bold;
|
51
|
+
}
|
52
|
+
|
53
|
+
.calendar_date_select select { font-size:11px;}
|
54
|
+
|
55
|
+
.calendar_date_select .cds_header a:hover {
|
56
|
+
color: white;
|
57
|
+
}
|
58
|
+
.calendar_date_select .cds_header a {
|
59
|
+
width:22px;
|
60
|
+
height:20px;
|
61
|
+
text-decoration: none;
|
62
|
+
font-size:14px;
|
63
|
+
color:black !important;
|
64
|
+
}
|
65
|
+
|
66
|
+
.calendar_date_select .cds_header a.prev {
|
67
|
+
float:left;
|
68
|
+
}
|
69
|
+
.calendar_date_select .cds_header a.next {
|
70
|
+
float:right;
|
71
|
+
}
|
72
|
+
.calendar_date_select .cds_header a.close {
|
73
|
+
float:right;
|
74
|
+
display:none;
|
75
|
+
}
|
76
|
+
|
77
|
+
.calendar_date_select .cds_header select.month {
|
78
|
+
width:90px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.calendar_date_select .cds_header select.year {
|
82
|
+
width:61px;
|
83
|
+
}
|
84
|
+
|
85
|
+
.calendar_date_select .cds_buttons a {
|
86
|
+
color: white;
|
87
|
+
font-size: 9px;
|
88
|
+
}
|
89
|
+
.calendar_date_select td {
|
90
|
+
font-size:12px;
|
91
|
+
width: 24px;
|
92
|
+
height: 21px;
|
93
|
+
text-align:center;
|
94
|
+
vertical-align: middle;
|
95
|
+
background-color: #666666;
|
96
|
+
}
|
97
|
+
.calendar_date_select td.weekend {
|
98
|
+
background-color: #606060;
|
99
|
+
}
|
100
|
+
|
101
|
+
.calendar_date_select td div {
|
102
|
+
color: #fff;
|
103
|
+
}
|
104
|
+
.calendar_date_select td div.other {
|
105
|
+
color: #888;
|
106
|
+
}
|
107
|
+
.calendar_date_select td.selected div {
|
108
|
+
color:black;
|
109
|
+
}
|
110
|
+
|
111
|
+
.calendar_date_select tbody td {
|
112
|
+
border-bottom: 1px solid #555;
|
113
|
+
}
|
114
|
+
.calendar_date_select td.selected {
|
115
|
+
background-color:white;
|
116
|
+
}
|
117
|
+
|
118
|
+
.calendar_date_select td:hover {
|
119
|
+
background-color:#ccc;
|
120
|
+
}
|
121
|
+
|
122
|
+
.calendar_date_select td.today {
|
123
|
+
border: 1px dashed #999;
|
124
|
+
}
|
125
|
+
|
126
|
+
.calendar_date_select td.disabled div {
|
127
|
+
color: #454545;
|
128
|
+
}
|
129
|
+
|
130
|
+
|
131
|
+
.fieldWithErrors .calendar_date_select {
|
132
|
+
border: 2px solid red;
|
133
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe CalendarDateSelect do
|
4
|
+
it "should detect presence of time in a string" do
|
5
|
+
CalendarDateSelect.has_time?("January 7, 2007").should == false
|
6
|
+
CalendarDateSelect.has_time?("January 7, 2007 5:50pm").should == true
|
7
|
+
CalendarDateSelect.has_time?("January 7, 2007 5:50 pm").should == true
|
8
|
+
CalendarDateSelect.has_time?("January 7, 2007 16:30 pm").should == true
|
9
|
+
|
10
|
+
CalendarDateSelect.has_time?(Date.parse("January 7, 2007 3:00 pm")).should == false
|
11
|
+
CalendarDateSelect.has_time?(Time.parse("January 7, 2007 3:00 pm")).should == true
|
12
|
+
CalendarDateSelect.has_time?(DateTime.parse("January 7, 2007 3:00 pm")).should == true
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,189 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe CalendarDateSelect::FormHelpers do
|
4
|
+
include ActionView::Helpers::FormHelper
|
5
|
+
include ActionView::Helpers::JavaScriptHelper
|
6
|
+
include ActionView::Helpers::AssetTagHelper
|
7
|
+
include ActionView::Helpers::TagHelper
|
8
|
+
include ActionView::Helpers::FormTagHelper
|
9
|
+
|
10
|
+
include CalendarDateSelect::FormHelpers
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@controller = ActionController::Base.new
|
14
|
+
@request = OpenStruct.new
|
15
|
+
@controller.request = @request
|
16
|
+
|
17
|
+
@model = OpenStruct.new
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "mixed mode" do
|
21
|
+
it "should not output a time when the value is a Date" do
|
22
|
+
@model.start_datetime = Date.parse("January 2, 2007")
|
23
|
+
output = calendar_date_select(:model, :start_datetime, :time => "mixed")
|
24
|
+
output.should_not match(/12:00 AM/)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should output a time when the value is a Time" do
|
28
|
+
@model.start_datetime = Time.parse("January 2, 2007 12:00 AM")
|
29
|
+
output = calendar_date_select(:model, :start_datetime, :time => "mixed")
|
30
|
+
output.should match(/12:00 AM/)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should render a time when time is passed as 'true'" do
|
35
|
+
@model.start_datetime = Date.parse("January 2, 2007")
|
36
|
+
output = calendar_date_select(:model, :start_datetime, :time => "true")
|
37
|
+
output.should match(/12:00 AM/)
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should time_false__model_returns_time__should_render_without_time" do
|
41
|
+
@model.start_datetime = Time.parse("January 2, 2007 12:00 AM")
|
42
|
+
output = calendar_date_select(:model, :start_datetime)
|
43
|
+
output.should_not match(/12:00 AM/)
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should _nil_model__shouldnt_populate_value" do
|
47
|
+
@model = nil
|
48
|
+
output = calendar_date_select(:model, :start_datetime)
|
49
|
+
|
50
|
+
output.should_not match(/value/)
|
51
|
+
end
|
52
|
+
|
53
|
+
describe "default time mode" do
|
54
|
+
it "should wrap default date in javascript function when passed as string" do
|
55
|
+
@model.start_datetime = nil
|
56
|
+
output = calendar_date_select(:model, :start_datetime, :default_time => "new Date()")
|
57
|
+
output.should match(/value=""/)
|
58
|
+
output.should include("default_time:function() { return new Date() }")
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should wrap formatted date with default time with Date() when passed a date object" do
|
62
|
+
@model.start_datetime = nil
|
63
|
+
output = calendar_date_select(:model, :start_datetime, :default_time => Date.parse("January 2, 2007"))
|
64
|
+
output.should match(/value=""/)
|
65
|
+
output.should include("default_time:new Date('January 02, 2007 12:00 AM')")
|
66
|
+
end
|
67
|
+
|
68
|
+
it "should wrap formatted date and time with Date() when passed a time object" do
|
69
|
+
@model.start_datetime = nil
|
70
|
+
output = calendar_date_select(:model, :start_datetime, :default_time => Time.parse("January 2, 2007 5:45 PM"))
|
71
|
+
output.should match(/value=""/)
|
72
|
+
output.should include("default_time:new Date('January 02, 2007 05:45 PM')")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
it "should _vdc__should_auto_format_function" do
|
77
|
+
@model.start_datetime = Time.parse("January 2, 2007 12:00 AM")
|
78
|
+
output = calendar_date_select(:model,
|
79
|
+
:start_datetime,
|
80
|
+
:valid_date_check => "date < new Date()"
|
81
|
+
)
|
82
|
+
output.should include("valid_date_check:function(date) { return(date < new Date()) }")
|
83
|
+
|
84
|
+
output = calendar_date_select(:model,
|
85
|
+
:start_datetime,
|
86
|
+
:valid_date_check => "return(date < new Date())"
|
87
|
+
)
|
88
|
+
output.should include("valid_date_check:function(date) { return(date < new Date()) }")
|
89
|
+
output = calendar_date_select(:model,
|
90
|
+
:start_datetime,
|
91
|
+
:valid_date_check => "function(p) { return(date < new Date()) }"
|
92
|
+
)
|
93
|
+
output.should include("valid_date_check:function(p) { return(date < new Date()) }")
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should raise an error if the valid_date_check function is missing a return statement" do
|
97
|
+
message = ":valid_date_check function is missing a 'return' statement. Try something like: :valid_date_check => 'if (date > new(Date)) return true; else return false;'"
|
98
|
+
lambda {
|
99
|
+
output = calendar_date_select(:model,
|
100
|
+
:start_datetime,
|
101
|
+
:valid_date_check => "date = 5; date < new Date());"
|
102
|
+
)
|
103
|
+
}.should raise_error(ArgumentError, message)
|
104
|
+
|
105
|
+
lambda {
|
106
|
+
output = calendar_date_select(:model,
|
107
|
+
:start_datetime,
|
108
|
+
:valid_date_check => "function(p) { date = 5; date < new Date()); }"
|
109
|
+
)
|
110
|
+
}.should raise_error(ArgumentError, message)
|
111
|
+
end
|
112
|
+
|
113
|
+
it "should render the year_range argument correctly" do
|
114
|
+
output = calendar_date_select(:model, :start_datetime)
|
115
|
+
output.should include("year_range:10")
|
116
|
+
output = calendar_date_select(:model, :start_datetime, :year_range => 2000..2010)
|
117
|
+
output.should include("year_range:[2000, 2010]")
|
118
|
+
output = calendar_date_select(:model, :start_datetime, :year_range => (15.years.ago..5.years.ago))
|
119
|
+
output.should include("year_range:[#{15.years.ago.year}, #{5.years.ago.year}]")
|
120
|
+
end
|
121
|
+
|
122
|
+
it "should disregard the :object parameter when nil" do
|
123
|
+
@model.start_datetime = Time.parse("January 2, 2007 12:00 AM")
|
124
|
+
output = calendar_date_select(:model, :start_datetime, :time => true, :object => nil)
|
125
|
+
output.should include(CalendarDateSelect.format_date(@model.start_datetime))
|
126
|
+
end
|
127
|
+
|
128
|
+
it "should regard :object parameter" do
|
129
|
+
@model.start_datetime = Time.parse("January 2, 2007 12:00 AM")
|
130
|
+
output = calendar_date_select(:lame_o, :start_datetime, :time => true, :object => @model)
|
131
|
+
output.should include(CalendarDateSelect.format_date(@model.start_datetime))
|
132
|
+
end
|
133
|
+
|
134
|
+
it "should respect parameters provided in default_options" do
|
135
|
+
new_options = CalendarDateSelect.default_options.merge(:popup => "force")
|
136
|
+
CalendarDateSelect.stub!(:default_options).and_return(new_options)
|
137
|
+
calendar_date_select_tag(:name, "").should include("popup:'force'")
|
138
|
+
end
|
139
|
+
|
140
|
+
it "should respect the :image option" do
|
141
|
+
output = calendar_date_select_tag(:name, "Some String", :image => "boogy.png")
|
142
|
+
output.should include("boogy.png")
|
143
|
+
end
|
144
|
+
|
145
|
+
it "should not pass the :image option as a javascript option" do
|
146
|
+
output = calendar_date_select_tag(:name, "Some String", :image => "boogy.png")
|
147
|
+
output.should_not include("image:")
|
148
|
+
end
|
149
|
+
|
150
|
+
it "should use the CSS class calendar_date_select_tag for popup selector icon" do
|
151
|
+
output = calendar_date_select_tag(:name, "Some String", :image => "boogy.png")
|
152
|
+
output.should include("calendar_date_select_popup_icon")
|
153
|
+
end
|
154
|
+
|
155
|
+
describe "calendar_date_select_tag" do
|
156
|
+
before(:each) do
|
157
|
+
@time = Time.parse("January 2, 2007 12:01:23 AM")
|
158
|
+
end
|
159
|
+
|
160
|
+
it "should use the string verbatim when provided" do
|
161
|
+
output = calendar_date_select_tag(:name, "Some String")
|
162
|
+
|
163
|
+
output.should include("Some String")
|
164
|
+
end
|
165
|
+
|
166
|
+
it "should not render the time when time is false (or nil)" do
|
167
|
+
output = calendar_date_select_tag(:name, @time, :time => false)
|
168
|
+
|
169
|
+
output.should_not match(/12:01 AM/)
|
170
|
+
output.should include(CalendarDateSelect.format_date(@time.to_date))
|
171
|
+
end
|
172
|
+
|
173
|
+
it "should render the time when :time => true" do
|
174
|
+
output = calendar_date_select_tag(:name, @time, :time => true)
|
175
|
+
|
176
|
+
output.should include(CalendarDateSelect.format_date(@time))
|
177
|
+
end
|
178
|
+
|
179
|
+
it "should render the time when :time => 'mixed'" do
|
180
|
+
output = calendar_date_select_tag(:name, @time, :time => 'mixed')
|
181
|
+
output.should include(CalendarDateSelect.format_date(@time))
|
182
|
+
end
|
183
|
+
|
184
|
+
it "not include the image option in the result input tag" do
|
185
|
+
output = calendar_date_select_tag(:name, @time, :time => 'mixed')
|
186
|
+
output.should_not include("image=")
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe CalendarDateSelect::IncludesHelper do
|
4
|
+
include ActionView::Helpers::TagHelper
|
5
|
+
include ActionView::Helpers::AssetTagHelper
|
6
|
+
include CalendarDateSelect::IncludesHelper
|
7
|
+
|
8
|
+
describe "calendar_date_select_includes" do
|
9
|
+
it "should include the specified locale" do
|
10
|
+
calendar_date_select_includes(:locale => "fr").should include("calendar_date_select/locale/fr.js")
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should include the specified style" do
|
14
|
+
calendar_date_select_includes(:style => "blue").should include("calendar_date_select/blue.css")
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should complain if you provide an illegitimate argument" do
|
18
|
+
lambda { calendar_date_select_includes(:language => "fr") }.should raise_error(ArgumentError)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "calendar_date_select_javascripts" do
|
23
|
+
it "should return an array of javascripts" do
|
24
|
+
calendar_date_select_javascripts.should == ["calendar_date_select/calendar_date_select"]
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should return the :javascript_include of the specified format, if the specified format expects it" do
|
28
|
+
CalendarDateSelect.stub!(:format).and_return(CalendarDateSelect::FORMATS[:hyphen_ampm])
|
29
|
+
calendar_date_select_javascripts.should == ["calendar_date_select/calendar_date_select", "calendar_date_select/format_hyphen_ampm"]
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should blow up if an illegitimate argument is passed" do
|
33
|
+
lambda { calendar_date_select_javascripts(:language => "fr") }.should raise_error(ArgumentError)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "calendar_date_select_stylesheets" do
|
38
|
+
it "should return an array of stylesheet" do
|
39
|
+
calendar_date_select_javascripts.should == ["calendar_date_select/calendar_date_select"]
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should blow up if an illegitimate argument is passed" do
|
43
|
+
lambda { calendar_date_select_stylesheets(:css_version => "blue") }.should raise_error(ArgumentError)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
|
3
|
+
require 'spec'
|
4
|
+
|
5
|
+
gem 'activesupport', "~> 2.3.5"
|
6
|
+
gem 'actionpack', ">= 2.2.0"
|
7
|
+
|
8
|
+
require 'active_support'
|
9
|
+
require 'action_pack'
|
10
|
+
require 'action_controller'
|
11
|
+
require 'action_view'
|
12
|
+
|
13
|
+
require 'ostruct'
|
14
|
+
|
15
|
+
ActionView::Helpers::InstanceTag.class_eval do
|
16
|
+
class << self; alias new_with_backwards_compatibility new; end
|
17
|
+
end
|
18
|
+
|
19
|
+
$: << (File.dirname(__FILE__) + "/../lib")
|
20
|
+
require "calendar_date_select"
|
21
|
+
|
22
|
+
class String
|
23
|
+
def to_regexp
|
24
|
+
is_a?(Regexp) ? self : Regexp.new(Regexp.escape(self.to_s))
|
25
|
+
end
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ginkel-calendar_date_select
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 217
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 16
|
9
|
+
- 1
|
10
|
+
- 1
|
11
|
+
version: 1.16.1.1
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Thilo-Alexander Ginkel
|
15
|
+
- Shih-gian Lee
|
16
|
+
- Enrique Garcia Cota (kikito)
|
17
|
+
- Tim Charper
|
18
|
+
- Lars E. Hoeg
|
19
|
+
autorequire:
|
20
|
+
bindir: bin
|
21
|
+
cert_chain: []
|
22
|
+
|
23
|
+
date: 2010-06-11 00:00:00 +02:00
|
24
|
+
default_executable:
|
25
|
+
dependencies: []
|
26
|
+
|
27
|
+
description: Calendar date picker for rails; fork that allows disabling any date entry
|
28
|
+
email: thilo@ginkel.com
|
29
|
+
executables: []
|
30
|
+
|
31
|
+
extensions: []
|
32
|
+
|
33
|
+
extra_rdoc_files:
|
34
|
+
- README.txt
|
35
|
+
files:
|
36
|
+
- .gitignore
|
37
|
+
- History.txt
|
38
|
+
- MIT-LICENSE
|
39
|
+
- Manifest.txt
|
40
|
+
- README.txt
|
41
|
+
- Rakefile
|
42
|
+
- VERSION
|
43
|
+
- calendar_date_select.gemspec
|
44
|
+
- init.rb
|
45
|
+
- js_test/functional/.tmp_cds_test.html
|
46
|
+
- js_test/functional/cds_test.html
|
47
|
+
- js_test/functional/format_iso_date_test.html
|
48
|
+
- js_test/prototype.js
|
49
|
+
- js_test/test.css
|
50
|
+
- js_test/unit/cds_helper_methods.html
|
51
|
+
- js_test/unittest.js
|
52
|
+
- lib/calendar_date_select.rb
|
53
|
+
- lib/calendar_date_select/calendar_date_select.rb
|
54
|
+
- lib/calendar_date_select/form_helpers.rb
|
55
|
+
- lib/calendar_date_select/includes_helper.rb
|
56
|
+
- public/blank_iframe.html
|
57
|
+
- public/images/calendar_date_select/calendar.gif
|
58
|
+
- public/javascripts/calendar_date_select/calendar_date_select.js
|
59
|
+
- public/javascripts/calendar_date_select/format_american.js
|
60
|
+
- public/javascripts/calendar_date_select/format_danish.js
|
61
|
+
- public/javascripts/calendar_date_select/format_db.js
|
62
|
+
- public/javascripts/calendar_date_select/format_euro_24hr.js
|
63
|
+
- public/javascripts/calendar_date_select/format_euro_24hr_ymd.js
|
64
|
+
- public/javascripts/calendar_date_select/format_finnish.js
|
65
|
+
- public/javascripts/calendar_date_select/format_hyphen_ampm.js
|
66
|
+
- public/javascripts/calendar_date_select/format_iso_date.js
|
67
|
+
- public/javascripts/calendar_date_select/format_italian.js
|
68
|
+
- public/javascripts/calendar_date_select/locale/ar.js
|
69
|
+
- public/javascripts/calendar_date_select/locale/da.js
|
70
|
+
- public/javascripts/calendar_date_select/locale/de.js
|
71
|
+
- public/javascripts/calendar_date_select/locale/es.js
|
72
|
+
- public/javascripts/calendar_date_select/locale/fi.js
|
73
|
+
- public/javascripts/calendar_date_select/locale/fr.js
|
74
|
+
- public/javascripts/calendar_date_select/locale/it.js
|
75
|
+
- public/javascripts/calendar_date_select/locale/ja.js
|
76
|
+
- public/javascripts/calendar_date_select/locale/nl.js
|
77
|
+
- public/javascripts/calendar_date_select/locale/pl.js
|
78
|
+
- public/javascripts/calendar_date_select/locale/pt.js
|
79
|
+
- public/javascripts/calendar_date_select/locale/ru.js
|
80
|
+
- public/javascripts/calendar_date_select/locale/sl.js
|
81
|
+
- public/javascripts/calendar_date_select/locale/sv.js
|
82
|
+
- public/stylesheets/calendar_date_select/blue.css
|
83
|
+
- public/stylesheets/calendar_date_select/default.css
|
84
|
+
- public/stylesheets/calendar_date_select/green.css
|
85
|
+
- public/stylesheets/calendar_date_select/plain.css
|
86
|
+
- public/stylesheets/calendar_date_select/red.css
|
87
|
+
- public/stylesheets/calendar_date_select/silver.css
|
88
|
+
- spec/calendar_date_select/calendar_date_select_spec.rb
|
89
|
+
- spec/calendar_date_select/form_helpers_spec.rb
|
90
|
+
- spec/calendar_date_select/includes_helper_spec.rb
|
91
|
+
- spec/spec_helper.rb
|
92
|
+
has_rdoc: true
|
93
|
+
homepage: http://github.com/ginkel/calendar_date_select
|
94
|
+
licenses: []
|
95
|
+
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options:
|
98
|
+
- --charset=UTF-8
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
version: "0"
|
119
|
+
requirements: []
|
120
|
+
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 1.3.7
|
123
|
+
signing_key:
|
124
|
+
specification_version: 3
|
125
|
+
summary: Calendar date picker for rails
|
126
|
+
test_files:
|
127
|
+
- spec/calendar_date_select/includes_helper_spec.rb
|
128
|
+
- spec/calendar_date_select/calendar_date_select_spec.rb
|
129
|
+
- spec/calendar_date_select/form_helpers_spec.rb
|
130
|
+
- spec/spec_helper.rb
|