caleb-chronic 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README +167 -0
  2. data/lib/chronic.rb +127 -0
  3. data/lib/chronic/chronic.rb +249 -0
  4. data/lib/chronic/grabber.rb +26 -0
  5. data/lib/chronic/handlers.rb +524 -0
  6. data/lib/chronic/ordinal.rb +40 -0
  7. data/lib/chronic/pointer.rb +27 -0
  8. data/lib/chronic/repeater.rb +129 -0
  9. data/lib/chronic/repeaters/repeater_day.rb +52 -0
  10. data/lib/chronic/repeaters/repeater_day_name.rb +51 -0
  11. data/lib/chronic/repeaters/repeater_day_portion.rb +94 -0
  12. data/lib/chronic/repeaters/repeater_fortnight.rb +70 -0
  13. data/lib/chronic/repeaters/repeater_hour.rb +57 -0
  14. data/lib/chronic/repeaters/repeater_minute.rb +57 -0
  15. data/lib/chronic/repeaters/repeater_month.rb +66 -0
  16. data/lib/chronic/repeaters/repeater_month_name.rb +98 -0
  17. data/lib/chronic/repeaters/repeater_season.rb +150 -0
  18. data/lib/chronic/repeaters/repeater_season_name.rb +45 -0
  19. data/lib/chronic/repeaters/repeater_second.rb +41 -0
  20. data/lib/chronic/repeaters/repeater_time.rb +124 -0
  21. data/lib/chronic/repeaters/repeater_week.rb +73 -0
  22. data/lib/chronic/repeaters/repeater_weekday.rb +77 -0
  23. data/lib/chronic/repeaters/repeater_weekend.rb +65 -0
  24. data/lib/chronic/repeaters/repeater_year.rb +64 -0
  25. data/lib/chronic/scalar.rb +76 -0
  26. data/lib/chronic/separator.rb +91 -0
  27. data/lib/chronic/time_zone.rb +23 -0
  28. data/lib/numerizer/numerizer.rb +97 -0
  29. data/test/suite.rb +9 -0
  30. data/test/test_Chronic.rb +50 -0
  31. data/test/test_Handler.rb +110 -0
  32. data/test/test_Numerizer.rb +52 -0
  33. data/test/test_RepeaterDayName.rb +52 -0
  34. data/test/test_RepeaterFortnight.rb +63 -0
  35. data/test/test_RepeaterHour.rb +65 -0
  36. data/test/test_RepeaterMonth.rb +47 -0
  37. data/test/test_RepeaterMonthName.rb +57 -0
  38. data/test/test_RepeaterTime.rb +72 -0
  39. data/test/test_RepeaterWeek.rb +63 -0
  40. data/test/test_RepeaterWeekday.rb +56 -0
  41. data/test/test_RepeaterWeekend.rb +75 -0
  42. data/test/test_RepeaterYear.rb +63 -0
  43. data/test/test_Span.rb +24 -0
  44. data/test/test_Time.rb +50 -0
  45. data/test/test_Token.rb +26 -0
  46. data/test/test_parsing.rb +711 -0
  47. metadata +101 -0
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: caleb-chronic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Tom Preston-Werner
8
+ autorequire: chronic
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-16 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: tom@rubyisawesome.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README
24
+ files:
25
+ - lib/chronic/chronic.rb
26
+ - lib/chronic/grabber.rb
27
+ - lib/chronic/handlers.rb
28
+ - lib/chronic/ordinal.rb
29
+ - lib/chronic/pointer.rb
30
+ - lib/chronic/repeater.rb
31
+ - lib/chronic/repeaters/repeater_day.rb
32
+ - lib/chronic/repeaters/repeater_day_name.rb
33
+ - lib/chronic/repeaters/repeater_day_portion.rb
34
+ - lib/chronic/repeaters/repeater_fortnight.rb
35
+ - lib/chronic/repeaters/repeater_hour.rb
36
+ - lib/chronic/repeaters/repeater_minute.rb
37
+ - lib/chronic/repeaters/repeater_month.rb
38
+ - lib/chronic/repeaters/repeater_month_name.rb
39
+ - lib/chronic/repeaters/repeater_season.rb
40
+ - lib/chronic/repeaters/repeater_season_name.rb
41
+ - lib/chronic/repeaters/repeater_second.rb
42
+ - lib/chronic/repeaters/repeater_time.rb
43
+ - lib/chronic/repeaters/repeater_week.rb
44
+ - lib/chronic/repeaters/repeater_weekday.rb
45
+ - lib/chronic/repeaters/repeater_weekend.rb
46
+ - lib/chronic/repeaters/repeater_year.rb
47
+ - lib/chronic/scalar.rb
48
+ - lib/chronic/separator.rb
49
+ - lib/chronic/time_zone.rb
50
+ - lib/chronic.rb
51
+ - lib/numerizer/numerizer.rb
52
+ - test/suite.rb
53
+ - test/test_Chronic.rb
54
+ - test/test_Handler.rb
55
+ - test/test_Numerizer.rb
56
+ - test/test_parsing.rb
57
+ - test/test_RepeaterDayName.rb
58
+ - test/test_RepeaterFortnight.rb
59
+ - test/test_RepeaterHour.rb
60
+ - test/test_RepeaterMonth.rb
61
+ - test/test_RepeaterMonthName.rb
62
+ - test/test_RepeaterTime.rb
63
+ - test/test_RepeaterWeek.rb
64
+ - test/test_RepeaterWeekday.rb
65
+ - test/test_RepeaterWeekend.rb
66
+ - test/test_RepeaterYear.rb
67
+ - test/test_Span.rb
68
+ - test/test_Time.rb
69
+ - test/test_Token.rb
70
+ - README
71
+ has_rdoc: true
72
+ homepage: http://chronic.rubyforge.org
73
+ licenses: []
74
+
75
+ post_install_message:
76
+ rdoc_options:
77
+ - --main
78
+ - README
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: "0"
86
+ version:
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ version:
93
+ requirements: []
94
+
95
+ rubyforge_project:
96
+ rubygems_version: 1.3.5
97
+ signing_key:
98
+ specification_version: 3
99
+ summary: A natural language date parser with timezone support
100
+ test_files:
101
+ - test/suite.rb