ginkel-calendar_date_select 1.16.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/.gitignore +3 -0
  2. data/History.txt +270 -0
  3. data/MIT-LICENSE +20 -0
  4. data/Manifest.txt +42 -0
  5. data/README.txt +16 -0
  6. data/Rakefile +38 -0
  7. data/VERSION +1 -0
  8. data/calendar_date_select.gemspec +99 -0
  9. data/init.rb +1 -0
  10. data/js_test/functional/.tmp_cds_test.html +306 -0
  11. data/js_test/functional/cds_test.html +365 -0
  12. data/js_test/functional/format_iso_date_test.html +52 -0
  13. data/js_test/prototype.js +4184 -0
  14. data/js_test/test.css +40 -0
  15. data/js_test/unit/cds_helper_methods.html +46 -0
  16. data/js_test/unittest.js +564 -0
  17. data/lib/calendar_date_select.rb +33 -0
  18. data/lib/calendar_date_select/calendar_date_select.rb +122 -0
  19. data/lib/calendar_date_select/form_helpers.rb +240 -0
  20. data/lib/calendar_date_select/includes_helper.rb +29 -0
  21. data/public/blank_iframe.html +2 -0
  22. data/public/images/calendar_date_select/calendar.gif +0 -0
  23. data/public/javascripts/calendar_date_select/calendar_date_select.js +448 -0
  24. data/public/javascripts/calendar_date_select/format_american.js +35 -0
  25. data/public/javascripts/calendar_date_select/format_danish.js +31 -0
  26. data/public/javascripts/calendar_date_select/format_db.js +27 -0
  27. data/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
  28. data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
  29. data/public/javascripts/calendar_date_select/format_finnish.js +32 -0
  30. data/public/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
  31. data/public/javascripts/calendar_date_select/format_iso_date.js +29 -0
  32. data/public/javascripts/calendar_date_select/format_italian.js +24 -0
  33. data/public/javascripts/calendar_date_select/locale/ar.js +10 -0
  34. data/public/javascripts/calendar_date_select/locale/da.js +11 -0
  35. data/public/javascripts/calendar_date_select/locale/de.js +11 -0
  36. data/public/javascripts/calendar_date_select/locale/es.js +11 -0
  37. data/public/javascripts/calendar_date_select/locale/fi.js +10 -0
  38. data/public/javascripts/calendar_date_select/locale/fr.js +11 -0
  39. data/public/javascripts/calendar_date_select/locale/it.js +9 -0
  40. data/public/javascripts/calendar_date_select/locale/ja.js +11 -0
  41. data/public/javascripts/calendar_date_select/locale/nl.js +11 -0
  42. data/public/javascripts/calendar_date_select/locale/pl.js +11 -0
  43. data/public/javascripts/calendar_date_select/locale/pt.js +11 -0
  44. data/public/javascripts/calendar_date_select/locale/ru.js +10 -0
  45. data/public/javascripts/calendar_date_select/locale/sl.js +11 -0
  46. data/public/javascripts/calendar_date_select/locale/sv.js +9 -0
  47. data/public/stylesheets/calendar_date_select/blue.css +130 -0
  48. data/public/stylesheets/calendar_date_select/default.css +135 -0
  49. data/public/stylesheets/calendar_date_select/green.css +142 -0
  50. data/public/stylesheets/calendar_date_select/plain.css +128 -0
  51. data/public/stylesheets/calendar_date_select/red.css +135 -0
  52. data/public/stylesheets/calendar_date_select/silver.css +133 -0
  53. data/spec/calendar_date_select/calendar_date_select_spec.rb +14 -0
  54. data/spec/calendar_date_select/form_helpers_spec.rb +189 -0
  55. data/spec/calendar_date_select/includes_helper_spec.rb +46 -0
  56. data/spec/spec_helper.rb +26 -0
  57. metadata +130 -0
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ /pkg
2
+ /doc
3
+ *.gem
data/History.txt ADDED
@@ -0,0 +1,270 @@
1
+ == Version 1.16.1
2
+
3
+ * 1.16 was a lemon release. Sorry! Deploy script had an error and messed up the code on the way out.
4
+
5
+ == Version 1.16
6
+
7
+ * Ability to specify a default time/date if no time/date is selected in the target form element. (Shih-gian Lee)
8
+
9
+ == Version 1.15.2
10
+
11
+ * Fix for set date (day must go last) (ujifgc)
12
+ * added logic to wrap image in span tag when there is error fields. (Shih-gian Lee)
13
+ * Initial commit of default time implementation. (Shih-gian Lee)
14
+ * default time implementation in form_helpers.rb. (Shih-gian Lee)
15
+ * Fix calendar_date_select helper for searchlogic compatibility (Andrea Frigido)
16
+ * Added Arabic language translations (Abdul-Jabbar Shalabi)
17
+ * rename instance variable. avoid conflict with name (Cyril Mougel)
18
+ * add translation in french (Cyril Mougel)
19
+ * Adding Slovenian sl-sl locale. (Miha Rebernik)
20
+ * Added danish format (Jacob Kjeldahl)
21
+ * translations for NL (Gert van der Spoel)
22
+ * new color scheme 'green' (Gert van der Spoel)
23
+ * Fixed missing translation in polish locales (Witold Rugowski)
24
+ * Added a italian locale (Andrea Frigido)
25
+ * fix time handling (Robert Brown)
26
+ * Added a spanish locale on public/javascripts/calendar_date_select/locale/es.js (kikito)
27
+ * Added description for iso date format (Lars E. Hoeg)
28
+ * Added Danish (da) translation (Lars E. Hoeg)
29
+ * Fixes issue with nil dates and trying to call type on them (Matt Haley)
30
+
31
+ == Version 1.15.1
32
+ * Bugfix: iso_date fixes (Robert Brown)
33
+
34
+ == Version 1.15
35
+ * Bugfix: don't include the :image option in the input field
36
+
37
+ == Version 1.14
38
+ * Added support for Rails 2.3
39
+
40
+ == Version 1.13
41
+ * Lots of code clean up!
42
+ * Moved test suite over to rspec
43
+ * CalendarDateSelect.default_options implemented. Use CalendarDateSelect.default_options.update(...) to set the default_options for your app.
44
+ * calendar_date_select and calendar_date_select_tag accept an :image parameter.
45
+ * Backwards compatibility hook for Rails 2.1
46
+ * RDOC!
47
+ * Don't try to focus a hidden or disabled element (closes #129 - thanks Bruno)
48
+ * Call onchange callback when clearing the calendar (closes #137 - thanks Chewi)
49
+ * Fixed issue that made :db format worthless (closes #135, thanks Andreas Zecher)
50
+ * dramatic optimization for calendar initial-rendering (thanks Yehudab, Bompus)
51
+
52
+ == Version 1.12 ==
53
+ * Updated for compatibility with Rails 2.2
54
+
55
+ == Version 1.11.1 ==
56
+ * properly wrap buttons if they are too big for the line
57
+ * more translations: german (Jonas), Added russian translation (DEkart)
58
+ * locale fixes:
59
+ * Fix: time doesn't work (using 12 hour instead of 24 hour) in Italian format.
60
+ * updated Portuguese translation with the "Clear" action (Daniel Luz)
61
+ * Portuguese was missing month of October
62
+ * Added a clear button (Hendy Tanata)
63
+ * Reverted a change that attempted to fix position in a scrollable div, but caused probles elsewhere
64
+ * Added :minute_interval to calendar_date_select_process_options, fixing http://code.google.com/p/calendardateselect/issues/detail?id=81
65
+ * Add helpers to give the list of javascripts and stylesheets (calendar_date_select_javascripts and calendar_date_select_stylesheets)
66
+ * Converted over to use Hoe (echoe was giving too many problems). Refactored the directory structure to make it more gem-ish.
67
+
68
+ == Version 1.11 ==
69
+
70
+ * Calendar Date Select now works as a ruby-gem (thanks, artmotion!)
71
+ * Applied fix outlined in Issue #83: http://code.google.com/p/calendardateselect/issues/detail?id=83 (Thanks David Bolton)
72
+
73
+ == Version 1.10.5 ==
74
+ Apr 7, 2008
75
+ * Javascript code refactoring! Less mess!
76
+ * Bugfix - range was including element 42, which is really the 43rd element, so there was an error happening when today happens exactly 43 days after the beginning date (caught this by chance, surprised it wasn't reported before)
77
+
78
+ == Version 1.10.4 ==
79
+ Mar 24, 2008
80
+ * patch applied to fix issue #92: nil object option causes CalendarDateSelect.calendar_date_select(object, method, options) to not use object. Thanks, sskirby!
81
+
82
+ == Version 1.10.3 ==
83
+ Mar 24. 2008
84
+ * Fixed active scaffold integration bug. Thanks tapajos!
85
+
86
+ == Version 1.10.2 ==
87
+ Mar 10. 2008
88
+ * bugfix: calendar_date_select_tag doesn't format Time and Date values (thanks for the patch, sskirby!)
89
+
90
+ == Version 1.10.1 ==
91
+ Mar 10, 2008
92
+ * updated to automatically install locale folder
93
+ * bugfix - cds "today" was showing up as Mar 9th 2008, when it was really Mar 10th 2008 - was caused by a wrinkle in time (Day light savings time)
94
+ * Prototype 1.6.0.1 compatibility issue (77) resolved - thanks mike.nicholaides for the patch!
95
+ * patch applied from mjroghelia to fix ie ssl iframe issue (84)
96
+ * xhtml error fixed -   replaced with #160;
97
+
98
+ ==Version 1.10 ==
99
+ Dec 3, 2007
100
+ * You can now pass in a parameter to tell CalendarDateSelect not to allow selection of certain dates. See the [http://www.restatesman.com/static/calendar?tab=other demo] for an example.
101
+
102
+ ==Version 1.9.2==
103
+ Nov 26, 2007
104
+ * CalendarDateSelect was leaking javascript variables. (nothing was explicitly declared local, so javascript assumes global). Added test case and applied fix. This may help with some of the conflicts CalendarDateSelect has been causing with other scripts.
105
+ * Applied Ryan Wood's patch to fix the problem with using a form builder against objects like authorization[coverage_attributes][]. Thanks Ryan Wood!
106
+ * Wes Hays brought up the point of parseInt trying to auto-detect number formats. Wrote code to force interpretation of digits as base10, with test cases to prove it.
107
+ * Misleading test case failure in Safari fixed: Safari won't let a boolean value to a property that should have a function (understandably). Changed the test variable names to prevent such a conflict.
108
+ * Now uses css :hover, rather than manually setting/removing the hover class. If you are using a custom stylesheet, you'll need to change ".calendar_date_select tbody td.hover" to ".calendar_date_select tbody td:hover" (thanks, Alex Egg)
109
+
110
+ ==Version 1.9.1==
111
+ Nov 15, 2007
112
+ * Removed dependency on deprecated features in 1.6.0. Thanks again, Richard Quadling!
113
+ * Bugfix - was showing wrong day selected when selecting Mar 23, 2008. (Day light savings time issue). Fixed with test case.
114
+ * Added CSS style to show red border around the embedded calendar_date_select div's with errors.
115
+ * Callbacks were broken with 1.9.0. Fixed, added test cases.
116
+
117
+ ==Version 1.9.0==
118
+ Nov 13, 2007
119
+ * Prototype 1.6.0 compatibility update. Will now break with earlier versions of prototype (ie 1.5.1). Big thanks to Kevin Alexander and Richard Quadling
120
+ * Additional test coverage for improved stability going forward.
121
+
122
+ ==Version 1.8.3==
123
+ Nov 12, 2007
124
+
125
+ * Improved close methods:
126
+ * Added "OK" button at the bottom
127
+ * Double clicking a day closes the calendar (not in IE, though... because IE is everyone's favorite browser to program for)
128
+ * Escape key closes calendar
129
+ * Added optional close button at the top, which is hidden by default. Don't use this unless you really need it, because it may disappear in the future.
130
+ * Don't focus a hidden element
131
+ * Navigate down to child input element if exists (in case a div tag is passed in). Resolves problems when input control is wrapped with a error div. Test cases
132
+ * Allow specific year ranges (pass in an array)
133
+ * restrict year navigation inside of a non-flexible range
134
+ * test case to check auto-repopulating of flexibleYearRanges.
135
+ * test case to check boundaries of nonFlexibleYearRanges.
136
+ * Ability to pass in :year_range => 5.years.ago..0.years.ago to calendar_date_select (ruby)
137
+ * Updated test cases
138
+ * Bugfix for duplicate days that were occuring across day-light-saving-time boundaries
139
+ * Added format_american.js (thanks, Wes Hays)
140
+ * Added format_italian.js (thanks, Bigonazzi)
141
+ * Added format_euro_24hr.js (thanks, James Silberbauer)
142
+ * Bugfix for Konqueror - Was showing blank white box for popup window - had to do with Iframe hack.
143
+ * Code-refactoring, clean up, breaking down methods, making the code easier to understand and extend.
144
+ * Added new stylesheet definition: .calendar_date_select .cds_header a.close { display: none}. Update your custom stylesheet with this new definition.
145
+
146
+
147
+ ==Version 1.8.1==
148
+ September 27 2007
149
+ * 1.8.0 was rushed. There were a bunch of bugs that cropped up immediately. This deploy includes JavaScript unit testing using the scriptaculous unit test framework! ([http://www.restatesman.com/calendar_date_select/js_test/functional/cds_test.html click here to run the tests on the latest trunk version]). These unit tests are going to greatly improve the reliability of CalendarDateSelect releases.
150
+
151
+ ==Version 1.8.0==
152
+
153
+ September 26 2007
154
+ * Bugfix - Safari 2 issue fixed (was interpreting "" as January 1, 1969)
155
+ * CSS overhaul - removed buttons and replaced with links. Cleaned up CSS. See CSSDiff_1_7_0__1_8_0 for a diff.
156
+ * :popup => :force (force the user to select a date)
157
+ * :time => "mixed" - You can now create a calendar control that allows a user to select "all day" or a specific time!
158
+ * :month_year => "label" - Replace the clunky dropdowns with a text.
159
+ * Some internal "gardening" on the code
160
+
161
+ ==Version 1.7.1==
162
+
163
+ Aug 29 2007
164
+
165
+ * Rendering options weren't being passed to the input control (like :style, :class, etc.)
166
+
167
+ ==Version 1.7.0==
168
+
169
+ Aug 24 2007
170
+
171
+ * update calendar date select to not rely on dom_id's anymore ( and no longer automatically changes the dom_id for your input fields )
172
+
173
+ * applied Steve Madsen's patch for not blanking out invalid dates.
174
+
175
+ ==Version 1.6.1==
176
+
177
+ Aug 24 2007
178
+
179
+ * Serious javascript bug when using "hyphen_ampm" format fixed. (Was only working in Firefox browsers with firebug installed)
180
+
181
+ * Added a bunch of new callbacks: before_show, before_close, after_show, after_close, after_navigate. (see [http://www.restatesman.com/static/calendar?tab=callbacks here] for details)
182
+
183
+
184
+ ==Version 1.6.0==
185
+
186
+ July 27 2007
187
+
188
+ * Now MUCH easier to change date formats! See ChangingDateFormat for details.
189
+ * Opera button labels fixed
190
+ * Calendar "flicker" fixed when displaying popup window.
191
+ * JS error 106 being thrown - fixed
192
+ * Bug fixes relating to calendar date select deciding whether to display above or below an element on a page
193
+ * XHTML compliance issue resolved - image had an invalid "id"
194
+ * Disabled/readonly elements can't be updated
195
+ * (note, if you wish to prevent user from inputting a date without the date picker, use the "embedded" option. See [http://restatesman.com/static/calendar/ demo] for example).
196
+ * Changes/cleanups submitted by Steve Madsen. If you see Steve, tell him what a great guy he is!
197
+ * Ability to change calendar image via CalendarDateSelect.image=
198
+ * cleaning up on how input tags are rendered
199
+
200
+ ==Version 1.5.2==
201
+
202
+ July 12 2007
203
+ * onchange event handler now supported.
204
+ * detects to see if prototype is loaded. If not, shows error message
205
+ * ability to hide "buttons"
206
+ * date parsing broken out to static function Date.parseFormattedString() for anyone who wants date's to parse a different way from javascript
207
+ * you can no longer select 1:60 pm.
208
+
209
+ ==Version 1.5.1==
210
+
211
+ June 21, 2007
212
+
213
+ * fixed following tickets:
214
+ * Selecting dates in April 2007 doesn't highlight day
215
+ * Selecting 29 February 2008 returns 1 March 2008
216
+ * options[:format] needs to be purged
217
+
218
+ ==Version 1.5==
219
+ June 18, 2007
220
+
221
+ * New CSS stylesheet
222
+
223
+ * Fixed "white on white" css issue when selecting a day
224
+
225
+ * Clicking today now updates the input field
226
+
227
+ ==Version 1.4==
228
+ June 16, 2007
229
+
230
+ * more bug fixes (selecting across daylight savings time causing js error. Sometimes clicking a day of the next month after selecting day 31 of the previous month was causing 2 months later to be selected)
231
+
232
+ * CSS improvements and refactoring
233
+
234
+ * form builder methods now automatically detect whether or not to use a Time field
235
+
236
+ * a bit more optimization
237
+
238
+ * refactored date formatter methods and others so they can be more easily overridden.
239
+
240
+ ==Version 1.3==
241
+ June 8, 2007
242
+
243
+ * a few bug fixes
244
+
245
+ * Modified the helper methods to allow passing of virtually any JavaScript argument into the JavaScript control.
246
+
247
+ ==Version 1.2==
248
+ June 4, 2007
249
+
250
+ * Big optimizations to the redrawing of the calendar. Now, previous/next buttons much more responsive.
251
+
252
+ * Improved feel of pop-up dialog - when somewhere else clicked on the screen other than the popup calendar, popup calendar will automatically close.
253
+
254
+ * If the popup window won't fit on the screen underneath the control, will automatically position to the top.
255
+
256
+
257
+ ==Version 1.1==
258
+ June 2, 2007
259
+
260
+ * There was a very strange bug that crept in for Internet Explorer. Internet Explorer does not allow you to set the innerHTML property for "button" elements. Therefore, it was necessary to change "button" elements to "input" elements of type button.
261
+
262
+ * There was a change to the CSS file. Anything applying styles to "button" elements has been changed to "input.button". If you have a custom stylesheet, update accordingly.
263
+
264
+ ==Version 1.0==
265
+ June 1, 2007
266
+
267
+ * Initial release!
268
+
269
+
270
+
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ All portions Copyright (c) 2007 Tim Harper
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Manifest.txt ADDED
@@ -0,0 +1,42 @@
1
+ History.txt
2
+ init.rb
3
+ js_test/functional/cds_test.html
4
+ js_test/prototype.js
5
+ js_test/test.css
6
+ js_test/unit/cds_helper_methods.html
7
+ js_test/unittest.js
8
+ lib/calendar_date_select/calendar_date_select.rb
9
+ lib/calendar_date_select/includes_helper.rb
10
+ lib/calendar_date_select/form_helpers.rb
11
+ lib/calendar_date_select.rb
12
+ Manifest.txt
13
+ MIT-LICENSE
14
+ public/blank_iframe.html
15
+ public/images/calendar_date_select/calendar.gif
16
+ public/javascripts/calendar_date_select/calendar_date_select.js
17
+ public/javascripts/calendar_date_select/format_american.js
18
+ public/javascripts/calendar_date_select/format_db.js
19
+ public/javascripts/calendar_date_select/format_euro_24hr.js
20
+ public/javascripts/calendar_date_select/format_euro_24hr_ymd.js
21
+ public/javascripts/calendar_date_select/format_finnish.js
22
+ public/javascripts/calendar_date_select/format_hyphen_ampm.js
23
+ public/javascripts/calendar_date_select/format_iso_date.js
24
+ public/javascripts/calendar_date_select/format_italian.js
25
+ public/javascripts/calendar_date_select/locale/de.js
26
+ public/javascripts/calendar_date_select/locale/fi.js
27
+ public/javascripts/calendar_date_select/locale/fr.js
28
+ public/javascripts/calendar_date_select/locale/pl.js
29
+ public/javascripts/calendar_date_select/locale/pt.js
30
+ public/javascripts/calendar_date_select/locale/ru.js
31
+ public/stylesheets/calendar_date_select/blue.css
32
+ public/stylesheets/calendar_date_select/default.css
33
+ public/stylesheets/calendar_date_select/plain.css
34
+ public/stylesheets/calendar_date_select/red.css
35
+ public/stylesheets/calendar_date_select/silver.css
36
+ Rakefile
37
+ README.txt
38
+ spec/
39
+ spec/calendar_date_select
40
+ spec/calendar_date_select/calendar_date_select_spec.rb
41
+ spec/calendar_date_select/form_helpers_spec.rb
42
+ spec/spec_helper.rb
data/README.txt ADDED
@@ -0,0 +1,16 @@
1
+ = CalendarDateSelect
2
+
3
+ http://code.google.com/p/calendardateselect/
4
+
5
+ == Examples
6
+
7
+ "See a demo here":http://electronicholas.com/calendar
8
+
9
+ == Submitting patches
10
+
11
+ Please take care to do the following:
12
+
13
+ * Clean up your patch (don't send a patch bomb with a hundred features in one)
14
+ * Write test cases!
15
+ * As a general rule of thumb, think of ways to make things more general purpose than specific.
16
+
data/Rakefile ADDED
@@ -0,0 +1,38 @@
1
+ # -*- ruby -*-
2
+
3
+
4
+ begin
5
+ require 'rubygems'
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gemspec|
8
+ gemspec.name = "ginkel-calendar_date_select"
9
+ gemspec.version = File.read("VERSION").strip
10
+ gemspec.summary = "Calendar date picker for rails"
11
+ gemspec.description = "Calendar date picker for rails; fork that allows disabling any date entry"
12
+ gemspec.email = "thilo@ginkel.com"
13
+ gemspec.homepage = "http://github.com/ginkel/calendar_date_select"
14
+ gemspec.authors = ["Thilo-Alexander Ginkel", "Shih-gian Lee", "Enrique Garcia Cota (kikito)", "Tim Charper", "Lars E. Hoeg"]
15
+ #gemspec.rubyforge_project = "ginkel-calendar_date_select"
16
+ end
17
+ rescue LoadError
18
+ puts "Jeweler not available. Install it with: sudo gem install jeweler"
19
+ end
20
+
21
+ desc "Set the current gem version in the code according to the VERSION file"
22
+ task :set_version do
23
+ VERSION=File.read("VERSION").strip
24
+ ["lib/calendar_date_select/calendar_date_select.rb", "public/javascripts/calendar_date_select/calendar_date_select.js"].each do |file|
25
+ abs_file = File.dirname(__FILE__) + "/" + file
26
+ src = File.read(abs_file)
27
+ src = src.map do |line|
28
+ case line
29
+ when /^ *VERSION/ then " VERSION = '#{VERSION}'\n"
30
+ when /^\/\/ CalendarDateSelect version / then "// CalendarDateSelect version #{VERSION} - a prototype based date picker\n"
31
+ else
32
+ line
33
+ end
34
+ end.join
35
+ File.open(abs_file, "wb") { |f| f << src }
36
+ end
37
+ end
38
+ # vim: syntax=Ruby
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.16.1.1
@@ -0,0 +1,99 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{calendar_date_select}
8
+ s.version = "1.16.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Thilo-Alexander Ginkel", "Shih-gian Lee", "Enrique Garcia Cota (kikito)", "Tim Charper", "Lars E. Hoeg"]
12
+ s.date = %q{2010-06-11}
13
+ s.description = %q{Calendar date picker for rails; fork that allows disabling any date entry}
14
+ s.email = %q{thilo@ginkel.com}
15
+ s.extra_rdoc_files = [
16
+ "README.txt"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "History.txt",
21
+ "MIT-LICENSE",
22
+ "Manifest.txt",
23
+ "README.txt",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "calendar_date_select.gemspec",
27
+ "init.rb",
28
+ "js_test/functional/.tmp_cds_test.html",
29
+ "js_test/functional/cds_test.html",
30
+ "js_test/functional/format_iso_date_test.html",
31
+ "js_test/prototype.js",
32
+ "js_test/test.css",
33
+ "js_test/unit/cds_helper_methods.html",
34
+ "js_test/unittest.js",
35
+ "lib/calendar_date_select.rb",
36
+ "lib/calendar_date_select/calendar_date_select.rb",
37
+ "lib/calendar_date_select/form_helpers.rb",
38
+ "lib/calendar_date_select/includes_helper.rb",
39
+ "public/blank_iframe.html",
40
+ "public/images/calendar_date_select/calendar.gif",
41
+ "public/javascripts/calendar_date_select/calendar_date_select.js",
42
+ "public/javascripts/calendar_date_select/format_american.js",
43
+ "public/javascripts/calendar_date_select/format_danish.js",
44
+ "public/javascripts/calendar_date_select/format_db.js",
45
+ "public/javascripts/calendar_date_select/format_euro_24hr.js",
46
+ "public/javascripts/calendar_date_select/format_euro_24hr_ymd.js",
47
+ "public/javascripts/calendar_date_select/format_finnish.js",
48
+ "public/javascripts/calendar_date_select/format_hyphen_ampm.js",
49
+ "public/javascripts/calendar_date_select/format_iso_date.js",
50
+ "public/javascripts/calendar_date_select/format_italian.js",
51
+ "public/javascripts/calendar_date_select/locale/ar.js",
52
+ "public/javascripts/calendar_date_select/locale/da.js",
53
+ "public/javascripts/calendar_date_select/locale/de.js",
54
+ "public/javascripts/calendar_date_select/locale/es.js",
55
+ "public/javascripts/calendar_date_select/locale/fi.js",
56
+ "public/javascripts/calendar_date_select/locale/fr.js",
57
+ "public/javascripts/calendar_date_select/locale/it.js",
58
+ "public/javascripts/calendar_date_select/locale/ja.js",
59
+ "public/javascripts/calendar_date_select/locale/nl.js",
60
+ "public/javascripts/calendar_date_select/locale/pl.js",
61
+ "public/javascripts/calendar_date_select/locale/pt.js",
62
+ "public/javascripts/calendar_date_select/locale/ru.js",
63
+ "public/javascripts/calendar_date_select/locale/sl.js",
64
+ "public/javascripts/calendar_date_select/locale/sv.js",
65
+ "public/stylesheets/calendar_date_select/blue.css",
66
+ "public/stylesheets/calendar_date_select/default.css",
67
+ "public/stylesheets/calendar_date_select/green.css",
68
+ "public/stylesheets/calendar_date_select/plain.css",
69
+ "public/stylesheets/calendar_date_select/red.css",
70
+ "public/stylesheets/calendar_date_select/silver.css",
71
+ "spec/calendar_date_select/calendar_date_select_spec.rb",
72
+ "spec/calendar_date_select/form_helpers_spec.rb",
73
+ "spec/calendar_date_select/includes_helper_spec.rb",
74
+ "spec/spec_helper.rb"
75
+ ]
76
+ s.homepage = %q{http://github.com/ginkel/calendar_date_select}
77
+ s.rdoc_options = ["--charset=UTF-8"]
78
+ s.require_paths = ["lib"]
79
+ s.rubyforge_project = %q{ginkel-calendar_date_select}
80
+ s.rubygems_version = %q{1.3.7}
81
+ s.summary = %q{Calendar date picker for rails}
82
+ s.test_files = [
83
+ "spec/calendar_date_select/includes_helper_spec.rb",
84
+ "spec/calendar_date_select/calendar_date_select_spec.rb",
85
+ "spec/calendar_date_select/form_helpers_spec.rb",
86
+ "spec/spec_helper.rb"
87
+ ]
88
+
89
+ if s.respond_to? :specification_version then
90
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
91
+ s.specification_version = 3
92
+
93
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
94
+ else
95
+ end
96
+ else
97
+ end
98
+ end
99
+