calendar_date_select 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/History.txt +216 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Manifest.txt +39 -0
  4. data/Rakefile +31 -0
  5. data/Readme.txt +16 -0
  6. data/init.rb +1 -0
  7. data/js_test/functional/cds_test.html +334 -0
  8. data/js_test/prototype.js +4184 -0
  9. data/js_test/test.css +40 -0
  10. data/js_test/unit/cds_helper_methods.html +46 -0
  11. data/js_test/unittest.js +564 -0
  12. data/lib/calendar_date_select.rb +19 -0
  13. data/lib/calendar_date_select/calendar_date_select.rb +223 -0
  14. data/lib/calendar_date_select/includes_helper.rb +38 -0
  15. data/public/blank_iframe.html +2 -0
  16. data/public/images/calendar_date_select/calendar.gif +0 -0
  17. data/public/javascripts/calendar_date_select/calendar_date_select.js +442 -0
  18. data/public/javascripts/calendar_date_select/format_american.js +34 -0
  19. data/public/javascripts/calendar_date_select/format_db.js +27 -0
  20. data/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
  21. data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
  22. data/public/javascripts/calendar_date_select/format_finnish.js +32 -0
  23. data/public/javascripts/calendar_date_select/format_hyphen_ampm.js +36 -0
  24. data/public/javascripts/calendar_date_select/format_iso_date.js +46 -0
  25. data/public/javascripts/calendar_date_select/format_italian.js +24 -0
  26. data/public/javascripts/calendar_date_select/locale/de.js +10 -0
  27. data/public/javascripts/calendar_date_select/locale/fi.js +10 -0
  28. data/public/javascripts/calendar_date_select/locale/fr.js +10 -0
  29. data/public/javascripts/calendar_date_select/locale/pl.js +10 -0
  30. data/public/javascripts/calendar_date_select/locale/pt.js +11 -0
  31. data/public/javascripts/calendar_date_select/locale/ru.js +10 -0
  32. data/public/stylesheets/calendar_date_select/blue.css +130 -0
  33. data/public/stylesheets/calendar_date_select/default.css +135 -0
  34. data/public/stylesheets/calendar_date_select/plain.css +128 -0
  35. data/public/stylesheets/calendar_date_select/red.css +135 -0
  36. data/public/stylesheets/calendar_date_select/silver.css +133 -0
  37. data/test/functional/calendar_date_select_test.rb +157 -0
  38. data/test/functional/helper_methods_test.rb +15 -0
  39. data/test/test_helper.rb +19 -0
  40. metadata +104 -0
@@ -0,0 +1,15 @@
1
+ require File.join(File.dirname(__FILE__), '../test_helper.rb')
2
+
3
+ class HelperMethodsTest < Test::Unit::TestCase
4
+ def setup
5
+
6
+ end
7
+
8
+ def test_has_time
9
+ assert( ! CalendarDateSelect.has_time?("January 7, 2007"))
10
+ assert(CalendarDateSelect.has_time?("January 7, 2007 5:50pm"))
11
+ assert(CalendarDateSelect.has_time?("January 7, 2007 5:50 pm"))
12
+ assert(CalendarDateSelect.has_time?("January 7, 2007 16:30 pm"))
13
+ end
14
+
15
+ end
@@ -0,0 +1,19 @@
1
+ require "rubygems"
2
+
3
+ require 'test/unit'
4
+
5
+ require 'active_support'
6
+ require 'action_pack'
7
+ require 'action_controller'
8
+ require 'action_view'
9
+
10
+ require 'ostruct'
11
+
12
+ $: << (File.dirname(__FILE__) + "/../lib")
13
+ require "calendar_date_select"
14
+
15
+ class Object
16
+ def to_regexp
17
+ is_a?(Regexp) ? self : Regexp.new(Regexp.escape(self.to_s))
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: calendar_date_select
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.11.1
5
+ platform: ruby
6
+ authors:
7
+ - Tim Harper
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-11-29 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.8.0
24
+ version:
25
+ description: ""
26
+ email:
27
+ - tim c harper at gmail dot com
28
+ executables: []
29
+
30
+ extensions: []
31
+
32
+ extra_rdoc_files:
33
+ - History.txt
34
+ - Manifest.txt
35
+ - Readme.txt
36
+ files:
37
+ - History.txt
38
+ - init.rb
39
+ - js_test/functional/cds_test.html
40
+ - js_test/prototype.js
41
+ - js_test/test.css
42
+ - js_test/unit/cds_helper_methods.html
43
+ - js_test/unittest.js
44
+ - lib/calendar_date_select/calendar_date_select.rb
45
+ - lib/calendar_date_select/includes_helper.rb
46
+ - lib/calendar_date_select.rb
47
+ - Manifest.txt
48
+ - MIT-LICENSE
49
+ - public/blank_iframe.html
50
+ - public/images/calendar_date_select/calendar.gif
51
+ - public/javascripts/calendar_date_select/calendar_date_select.js
52
+ - public/javascripts/calendar_date_select/format_american.js
53
+ - public/javascripts/calendar_date_select/format_db.js
54
+ - public/javascripts/calendar_date_select/format_euro_24hr.js
55
+ - public/javascripts/calendar_date_select/format_euro_24hr_ymd.js
56
+ - public/javascripts/calendar_date_select/format_finnish.js
57
+ - public/javascripts/calendar_date_select/format_hyphen_ampm.js
58
+ - public/javascripts/calendar_date_select/format_iso_date.js
59
+ - public/javascripts/calendar_date_select/format_italian.js
60
+ - public/javascripts/calendar_date_select/locale/de.js
61
+ - public/javascripts/calendar_date_select/locale/fi.js
62
+ - public/javascripts/calendar_date_select/locale/fr.js
63
+ - public/javascripts/calendar_date_select/locale/pl.js
64
+ - public/javascripts/calendar_date_select/locale/pt.js
65
+ - public/javascripts/calendar_date_select/locale/ru.js
66
+ - public/stylesheets/calendar_date_select/blue.css
67
+ - public/stylesheets/calendar_date_select/default.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
+ - Rakefile
72
+ - Readme.txt
73
+ - test/functional/calendar_date_select_test.rb
74
+ - test/functional/helper_methods_test.rb
75
+ - test/test_helper.rb
76
+ has_rdoc: true
77
+ homepage: http://code.google.com/p/calendardateselect/
78
+ post_install_message:
79
+ rdoc_options:
80
+ - --main
81
+ - README.txt
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: "0"
89
+ version:
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: "0"
95
+ version:
96
+ requirements: []
97
+
98
+ rubyforge_project: calendar_date_select
99
+ rubygems_version: 1.3.0
100
+ signing_key:
101
+ specification_version: 2
102
+ summary: ""
103
+ test_files:
104
+ - test/test_helper.rb