calendar_date_select_rails3 1.16.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/.gitignore +3 -0
  2. data/History.txt +277 -0
  3. data/MIT-LICENSE +20 -0
  4. data/Manifest.txt +42 -0
  5. data/README.txt +17 -0
  6. data/Rakefile +37 -0
  7. data/VERSION +1 -0
  8. data/calendar_date_select_rails3.gemspec +94 -0
  9. data/js_test/functional/.tmp_cds_test.html +306 -0
  10. data/js_test/functional/cds_test.html +376 -0
  11. data/js_test/functional/format_iso_date_test.html +52 -0
  12. data/js_test/prototype.js +4184 -0
  13. data/js_test/test.css +40 -0
  14. data/js_test/unit/cds_helper_methods.html +46 -0
  15. data/js_test/unittest.js +564 -0
  16. data/lib/calendar_date_select.rb +47 -0
  17. data/lib/calendar_date_select/calendar_date_select.rb +122 -0
  18. data/lib/calendar_date_select/form_helpers.rb +237 -0
  19. data/lib/calendar_date_select/includes_helper.rb +29 -0
  20. data/public/blank_iframe.html +2 -0
  21. data/public/images/calendar_date_select/calendar.gif +0 -0
  22. data/public/javascripts/calendar_date_select/calendar_date_select.js +459 -0
  23. data/public/javascripts/calendar_date_select/format_american.js +35 -0
  24. data/public/javascripts/calendar_date_select/format_danish.js +31 -0
  25. data/public/javascripts/calendar_date_select/format_db.js +27 -0
  26. data/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
  27. data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
  28. data/public/javascripts/calendar_date_select/format_finnish.js +32 -0
  29. data/public/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
  30. data/public/javascripts/calendar_date_select/format_iso_date.js +29 -0
  31. data/public/javascripts/calendar_date_select/format_italian.js +24 -0
  32. data/public/javascripts/calendar_date_select/locale/ar.js +10 -0
  33. data/public/javascripts/calendar_date_select/locale/da.js +11 -0
  34. data/public/javascripts/calendar_date_select/locale/de.js +11 -0
  35. data/public/javascripts/calendar_date_select/locale/es.js +11 -0
  36. data/public/javascripts/calendar_date_select/locale/fi.js +10 -0
  37. data/public/javascripts/calendar_date_select/locale/fr.js +11 -0
  38. data/public/javascripts/calendar_date_select/locale/it.js +9 -0
  39. data/public/javascripts/calendar_date_select/locale/nl.js +11 -0
  40. data/public/javascripts/calendar_date_select/locale/pl.js +11 -0
  41. data/public/javascripts/calendar_date_select/locale/pt.js +11 -0
  42. data/public/javascripts/calendar_date_select/locale/ru.js +10 -0
  43. data/public/javascripts/calendar_date_select/locale/sl.js +11 -0
  44. data/public/stylesheets/calendar_date_select/blue.css +130 -0
  45. data/public/stylesheets/calendar_date_select/default.css +135 -0
  46. data/public/stylesheets/calendar_date_select/green.css +142 -0
  47. data/public/stylesheets/calendar_date_select/plain.css +128 -0
  48. data/public/stylesheets/calendar_date_select/red.css +135 -0
  49. data/public/stylesheets/calendar_date_select/silver.css +133 -0
  50. data/spec/calendar_date_select/calendar_date_select_spec.rb +14 -0
  51. data/spec/calendar_date_select/form_helpers_spec.rb +189 -0
  52. data/spec/calendar_date_select/includes_helper_spec.rb +46 -0
  53. data/spec/spec_helper.rb +26 -0
  54. metadata +106 -0
@@ -0,0 +1,3 @@
1
+ /pkg
2
+ /doc
3
+ *.gem
@@ -0,0 +1,277 @@
1
+ == Version 1.16.2
2
+
3
+ * Fixed calendar_date_select's method of firing onChange for its target element. (Ethan)
4
+ * added Czech translation. (deric)
5
+ * Fixed issue #11. (Kevin Triemstra)
6
+ * Fixed rubygems dependency in Rakefile (to fix jeweler load error). (Thilo-Alexander Ginkel)
7
+
8
+ == Version 1.16.1
9
+
10
+ * 1.16 was a lemon release. Sorry! Deploy script had an error and messed up the code on the way out.
11
+
12
+ == Version 1.16
13
+
14
+ * Ability to specify a default time/date if no time/date is selected in the target form element. (Shih-gian Lee)
15
+
16
+ == Version 1.15.2
17
+
18
+ * Fix for set date (day must go last) (ujifgc)
19
+ * added logic to wrap image in span tag when there is error fields. (Shih-gian Lee)
20
+ * Initial commit of default time implementation. (Shih-gian Lee)
21
+ * default time implementation in form_helpers.rb. (Shih-gian Lee)
22
+ * Fix calendar_date_select helper for searchlogic compatibility (Andrea Frigido)
23
+ * Added Arabic language translations (Abdul-Jabbar Shalabi)
24
+ * rename instance variable. avoid conflict with name (Cyril Mougel)
25
+ * add translation in french (Cyril Mougel)
26
+ * Adding Slovenian sl-sl locale. (Miha Rebernik)
27
+ * Added danish format (Jacob Kjeldahl)
28
+ * translations for NL (Gert van der Spoel)
29
+ * new color scheme 'green' (Gert van der Spoel)
30
+ * Fixed missing translation in polish locales (Witold Rugowski)
31
+ * Added a italian locale (Andrea Frigido)
32
+ * fix time handling (Robert Brown)
33
+ * Added a spanish locale on public/javascripts/calendar_date_select/locale/es.js (kikito)
34
+ * Added description for iso date format (Lars E. Hoeg)
35
+ * Added Danish (da) translation (Lars E. Hoeg)
36
+ * Fixes issue with nil dates and trying to call type on them (Matt Haley)
37
+
38
+ == Version 1.15.1
39
+ * Bugfix: iso_date fixes (Robert Brown)
40
+
41
+ == Version 1.15
42
+ * Bugfix: don't include the :image option in the input field
43
+
44
+ == Version 1.14
45
+ * Added support for Rails 2.3
46
+
47
+ == Version 1.13
48
+ * Lots of code clean up!
49
+ * Moved test suite over to rspec
50
+ * CalendarDateSelect.default_options implemented. Use CalendarDateSelect.default_options.update(...) to set the default_options for your app.
51
+ * calendar_date_select and calendar_date_select_tag accept an :image parameter.
52
+ * Backwards compatibility hook for Rails 2.1
53
+ * RDOC!
54
+ * Don't try to focus a hidden or disabled element (closes #129 - thanks Bruno)
55
+ * Call onchange callback when clearing the calendar (closes #137 - thanks Chewi)
56
+ * Fixed issue that made :db format worthless (closes #135, thanks Andreas Zecher)
57
+ * dramatic optimization for calendar initial-rendering (thanks Yehudab, Bompus)
58
+
59
+ == Version 1.12 ==
60
+ * Updated for compatibility with Rails 2.2
61
+
62
+ == Version 1.11.1 ==
63
+ * properly wrap buttons if they are too big for the line
64
+ * more translations: german (Jonas), Added russian translation (DEkart)
65
+ * locale fixes:
66
+ * Fix: time doesn't work (using 12 hour instead of 24 hour) in Italian format.
67
+ * updated Portuguese translation with the "Clear" action (Daniel Luz)
68
+ * Portuguese was missing month of October
69
+ * Added a clear button (Hendy Tanata)
70
+ * Reverted a change that attempted to fix position in a scrollable div, but caused probles elsewhere
71
+ * Added :minute_interval to calendar_date_select_process_options, fixing http://code.google.com/p/calendardateselect/issues/detail?id=81
72
+ * Add helpers to give the list of javascripts and stylesheets (calendar_date_select_javascripts and calendar_date_select_stylesheets)
73
+ * Converted over to use Hoe (echoe was giving too many problems). Refactored the directory structure to make it more gem-ish.
74
+
75
+ == Version 1.11 ==
76
+
77
+ * Calendar Date Select now works as a ruby-gem (thanks, artmotion!)
78
+ * Applied fix outlined in Issue #83: http://code.google.com/p/calendardateselect/issues/detail?id=83 (Thanks David Bolton)
79
+
80
+ == Version 1.10.5 ==
81
+ Apr 7, 2008
82
+ * Javascript code refactoring! Less mess!
83
+ * 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)
84
+
85
+ == Version 1.10.4 ==
86
+ Mar 24, 2008
87
+ * patch applied to fix issue #92: nil object option causes CalendarDateSelect.calendar_date_select(object, method, options) to not use object. Thanks, sskirby!
88
+
89
+ == Version 1.10.3 ==
90
+ Mar 24. 2008
91
+ * Fixed active scaffold integration bug. Thanks tapajos!
92
+
93
+ == Version 1.10.2 ==
94
+ Mar 10. 2008
95
+ * bugfix: calendar_date_select_tag doesn't format Time and Date values (thanks for the patch, sskirby!)
96
+
97
+ == Version 1.10.1 ==
98
+ Mar 10, 2008
99
+ * updated to automatically install locale folder
100
+ * 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)
101
+ * Prototype 1.6.0.1 compatibility issue (77) resolved - thanks mike.nicholaides for the patch!
102
+ * patch applied from mjroghelia to fix ie ssl iframe issue (84)
103
+ * xhtml error fixed -   replaced with #160;
104
+
105
+ ==Version 1.10 ==
106
+ Dec 3, 2007
107
+ * 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.
108
+
109
+ ==Version 1.9.2==
110
+ Nov 26, 2007
111
+ * 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.
112
+ * Applied Ryan Wood's patch to fix the problem with using a form builder against objects like authorization[coverage_attributes][]. Thanks Ryan Wood!
113
+ * 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.
114
+ * 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.
115
+ * 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)
116
+
117
+ ==Version 1.9.1==
118
+ Nov 15, 2007
119
+ * Removed dependency on deprecated features in 1.6.0. Thanks again, Richard Quadling!
120
+ * Bugfix - was showing wrong day selected when selecting Mar 23, 2008. (Day light savings time issue). Fixed with test case.
121
+ * Added CSS style to show red border around the embedded calendar_date_select div's with errors.
122
+ * Callbacks were broken with 1.9.0. Fixed, added test cases.
123
+
124
+ ==Version 1.9.0==
125
+ Nov 13, 2007
126
+ * 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
127
+ * Additional test coverage for improved stability going forward.
128
+
129
+ ==Version 1.8.3==
130
+ Nov 12, 2007
131
+
132
+ * Improved close methods:
133
+ * Added "OK" button at the bottom
134
+ * Double clicking a day closes the calendar (not in IE, though... because IE is everyone's favorite browser to program for)
135
+ * Escape key closes calendar
136
+ * 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.
137
+ * Don't focus a hidden element
138
+ * 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
139
+ * Allow specific year ranges (pass in an array)
140
+ * restrict year navigation inside of a non-flexible range
141
+ * test case to check auto-repopulating of flexibleYearRanges.
142
+ * test case to check boundaries of nonFlexibleYearRanges.
143
+ * Ability to pass in :year_range => 5.years.ago..0.years.ago to calendar_date_select (ruby)
144
+ * Updated test cases
145
+ * Bugfix for duplicate days that were occuring across day-light-saving-time boundaries
146
+ * Added format_american.js (thanks, Wes Hays)
147
+ * Added format_italian.js (thanks, Bigonazzi)
148
+ * Added format_euro_24hr.js (thanks, James Silberbauer)
149
+ * Bugfix for Konqueror - Was showing blank white box for popup window - had to do with Iframe hack.
150
+ * Code-refactoring, clean up, breaking down methods, making the code easier to understand and extend.
151
+ * Added new stylesheet definition: .calendar_date_select .cds_header a.close { display: none}. Update your custom stylesheet with this new definition.
152
+
153
+
154
+ ==Version 1.8.1==
155
+ September 27 2007
156
+ * 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.
157
+
158
+ ==Version 1.8.0==
159
+
160
+ September 26 2007
161
+ * Bugfix - Safari 2 issue fixed (was interpreting "" as January 1, 1969)
162
+ * CSS overhaul - removed buttons and replaced with links. Cleaned up CSS. See CSSDiff_1_7_0__1_8_0 for a diff.
163
+ * :popup => :force (force the user to select a date)
164
+ * :time => "mixed" - You can now create a calendar control that allows a user to select "all day" or a specific time!
165
+ * :month_year => "label" - Replace the clunky dropdowns with a text.
166
+ * Some internal "gardening" on the code
167
+
168
+ ==Version 1.7.1==
169
+
170
+ Aug 29 2007
171
+
172
+ * Rendering options weren't being passed to the input control (like :style, :class, etc.)
173
+
174
+ ==Version 1.7.0==
175
+
176
+ Aug 24 2007
177
+
178
+ * update calendar date select to not rely on dom_id's anymore ( and no longer automatically changes the dom_id for your input fields )
179
+
180
+ * applied Steve Madsen's patch for not blanking out invalid dates.
181
+
182
+ ==Version 1.6.1==
183
+
184
+ Aug 24 2007
185
+
186
+ * Serious javascript bug when using "hyphen_ampm" format fixed. (Was only working in Firefox browsers with firebug installed)
187
+
188
+ * 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)
189
+
190
+
191
+ ==Version 1.6.0==
192
+
193
+ July 27 2007
194
+
195
+ * Now MUCH easier to change date formats! See ChangingDateFormat for details.
196
+ * Opera button labels fixed
197
+ * Calendar "flicker" fixed when displaying popup window.
198
+ * JS error 106 being thrown - fixed
199
+ * Bug fixes relating to calendar date select deciding whether to display above or below an element on a page
200
+ * XHTML compliance issue resolved - image had an invalid "id"
201
+ * Disabled/readonly elements can't be updated
202
+ * (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).
203
+ * Changes/cleanups submitted by Steve Madsen. If you see Steve, tell him what a great guy he is!
204
+ * Ability to change calendar image via CalendarDateSelect.image=
205
+ * cleaning up on how input tags are rendered
206
+
207
+ ==Version 1.5.2==
208
+
209
+ July 12 2007
210
+ * onchange event handler now supported.
211
+ * detects to see if prototype is loaded. If not, shows error message
212
+ * ability to hide "buttons"
213
+ * date parsing broken out to static function Date.parseFormattedString() for anyone who wants date's to parse a different way from javascript
214
+ * you can no longer select 1:60 pm.
215
+
216
+ ==Version 1.5.1==
217
+
218
+ June 21, 2007
219
+
220
+ * fixed following tickets:
221
+ * Selecting dates in April 2007 doesn't highlight day
222
+ * Selecting 29 February 2008 returns 1 March 2008
223
+ * options[:format] needs to be purged
224
+
225
+ ==Version 1.5==
226
+ June 18, 2007
227
+
228
+ * New CSS stylesheet
229
+
230
+ * Fixed "white on white" css issue when selecting a day
231
+
232
+ * Clicking today now updates the input field
233
+
234
+ ==Version 1.4==
235
+ June 16, 2007
236
+
237
+ * 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)
238
+
239
+ * CSS improvements and refactoring
240
+
241
+ * form builder methods now automatically detect whether or not to use a Time field
242
+
243
+ * a bit more optimization
244
+
245
+ * refactored date formatter methods and others so they can be more easily overridden.
246
+
247
+ ==Version 1.3==
248
+ June 8, 2007
249
+
250
+ * a few bug fixes
251
+
252
+ * Modified the helper methods to allow passing of virtually any JavaScript argument into the JavaScript control.
253
+
254
+ ==Version 1.2==
255
+ June 4, 2007
256
+
257
+ * Big optimizations to the redrawing of the calendar. Now, previous/next buttons much more responsive.
258
+
259
+ * Improved feel of pop-up dialog - when somewhere else clicked on the screen other than the popup calendar, popup calendar will automatically close.
260
+
261
+ * If the popup window won't fit on the screen underneath the control, will automatically position to the top.
262
+
263
+
264
+ ==Version 1.1==
265
+ June 2, 2007
266
+
267
+ * 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.
268
+
269
+ * 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.
270
+
271
+ ==Version 1.0==
272
+ June 1, 2007
273
+
274
+ * Initial release!
275
+
276
+
277
+
@@ -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.
@@ -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
@@ -0,0 +1,17 @@
1
+ = CalendarDateSelect
2
+
3
+ http://code.google.com/p/calendardateselect/
4
+
5
+ * This project is looking for a new maintainer. Please contact me if you have sufficient interest in this project to move it forward.
6
+
7
+ == Examples
8
+
9
+ "See a demo here":http://electronicholas.com/calendar
10
+
11
+ == Submitting patches
12
+
13
+ Please take care to do the following:
14
+
15
+ * Clean up your patch (don't send a patch bomb with a hundred features in one)
16
+ * Write test cases!
17
+ * As a general rule of thumb, think of ways to make things more general purpose than specific.
@@ -0,0 +1,37 @@
1
+ # -*- ruby -*-
2
+
3
+
4
+ begin
5
+ require 'rubygems'
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gemspec|
8
+ gemspec.name = "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"
12
+ gemspec.email = ""
13
+ gemspec.homepage = "http://github.com/timcharper/calendar_date_select"
14
+ gemspec.authors = ["Shih-gian Lee", "Enrique Garcia Cota (kikito)", "Tim Charper", "Lars E. Hoeg"]
15
+ end
16
+ rescue LoadError
17
+ puts "Jeweler not available. Install it with: sudo gem install jeweler"
18
+ end
19
+
20
+ desc "Set the current gem version in the code according to the VERSION file"
21
+ task :set_version do
22
+ VERSION=File.read("VERSION").strip
23
+ ["lib/calendar_date_select/calendar_date_select.rb", "public/javascripts/calendar_date_select/calendar_date_select.js"].each do |file|
24
+ abs_file = File.dirname(__FILE__) + "/" + file
25
+ src = File.read(abs_file)
26
+ src = src.map do |line|
27
+ case line
28
+ when /^ *VERSION/ then " VERSION = '#{VERSION}'\n"
29
+ when /^\/\/ CalendarDateSelect version / then "// CalendarDateSelect version #{VERSION} - a prototype based date picker\n"
30
+ else
31
+ line
32
+ end
33
+ end.join
34
+ File.open(abs_file, "wb") { |f| f << src }
35
+ end
36
+ end
37
+ # vim: syntax=Ruby
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.16.2
@@ -0,0 +1,94 @@
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_rails3}
8
+ s.version = "1.16.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Shih-gian Lee", "Enrique Garcia Cota (kikito)", "Tim Charper", "Lars E. Hoeg"]
12
+ s.date = %q{2010-03-29}
13
+ s.description = %q{Calendar date picker for rails}
14
+ s.email = %q{}
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_rails3.gemspec",
27
+ "js_test/functional/.tmp_cds_test.html",
28
+ "js_test/functional/cds_test.html",
29
+ "js_test/functional/format_iso_date_test.html",
30
+ "js_test/prototype.js",
31
+ "js_test/test.css",
32
+ "js_test/unit/cds_helper_methods.html",
33
+ "js_test/unittest.js",
34
+ "lib/calendar_date_select.rb",
35
+ "lib/calendar_date_select/calendar_date_select.rb",
36
+ "lib/calendar_date_select/form_helpers.rb",
37
+ "lib/calendar_date_select/includes_helper.rb",
38
+ "public/blank_iframe.html",
39
+ "public/images/calendar_date_select/calendar.gif",
40
+ "public/javascripts/calendar_date_select/calendar_date_select.js",
41
+ "public/javascripts/calendar_date_select/format_american.js",
42
+ "public/javascripts/calendar_date_select/format_danish.js",
43
+ "public/javascripts/calendar_date_select/format_db.js",
44
+ "public/javascripts/calendar_date_select/format_euro_24hr.js",
45
+ "public/javascripts/calendar_date_select/format_euro_24hr_ymd.js",
46
+ "public/javascripts/calendar_date_select/format_finnish.js",
47
+ "public/javascripts/calendar_date_select/format_hyphen_ampm.js",
48
+ "public/javascripts/calendar_date_select/format_iso_date.js",
49
+ "public/javascripts/calendar_date_select/format_italian.js",
50
+ "public/javascripts/calendar_date_select/locale/ar.js",
51
+ "public/javascripts/calendar_date_select/locale/da.js",
52
+ "public/javascripts/calendar_date_select/locale/de.js",
53
+ "public/javascripts/calendar_date_select/locale/es.js",
54
+ "public/javascripts/calendar_date_select/locale/fi.js",
55
+ "public/javascripts/calendar_date_select/locale/fr.js",
56
+ "public/javascripts/calendar_date_select/locale/it.js",
57
+ "public/javascripts/calendar_date_select/locale/nl.js",
58
+ "public/javascripts/calendar_date_select/locale/pl.js",
59
+ "public/javascripts/calendar_date_select/locale/pt.js",
60
+ "public/javascripts/calendar_date_select/locale/ru.js",
61
+ "public/javascripts/calendar_date_select/locale/sl.js",
62
+ "public/stylesheets/calendar_date_select/blue.css",
63
+ "public/stylesheets/calendar_date_select/default.css",
64
+ "public/stylesheets/calendar_date_select/green.css",
65
+ "public/stylesheets/calendar_date_select/plain.css",
66
+ "public/stylesheets/calendar_date_select/red.css",
67
+ "public/stylesheets/calendar_date_select/silver.css",
68
+ "spec/calendar_date_select/calendar_date_select_spec.rb",
69
+ "spec/calendar_date_select/form_helpers_spec.rb",
70
+ "spec/calendar_date_select/includes_helper_spec.rb",
71
+ "spec/spec_helper.rb"
72
+ ]
73
+ s.homepage = %q{http://github.com/timcharper/calendar_date_select}
74
+ s.rdoc_options = ["--charset=UTF-8"]
75
+ s.require_paths = ["lib"]
76
+ s.rubygems_version = %q{1.3.6}
77
+ s.summary = %q{Calendar date picker for rails}
78
+ s.test_files = [
79
+ "spec/calendar_date_select/calendar_date_select_spec.rb",
80
+ "spec/calendar_date_select/form_helpers_spec.rb",
81
+ "spec/calendar_date_select/includes_helper_spec.rb",
82
+ "spec/spec_helper.rb"
83
+ ]
84
+
85
+ if s.respond_to? :specification_version then
86
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
87
+ s.specification_version = 3
88
+
89
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
90
+ else
91
+ end
92
+ else
93
+ end
94
+ end