mojombo-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 +248 -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 +120 -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 +706 -0
  47. metadata +102 -0
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mojombo-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: 2008-08-13 00:00:00 -07: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
26
+ - lib/chronic/chronic.rb
27
+ - lib/chronic/grabber.rb
28
+ - lib/chronic/handlers.rb
29
+ - lib/chronic/ordinal.rb
30
+ - lib/chronic/pointer.rb
31
+ - lib/chronic/repeater.rb
32
+ - lib/chronic/repeaters
33
+ - lib/chronic/repeaters/repeater_day.rb
34
+ - lib/chronic/repeaters/repeater_day_name.rb
35
+ - lib/chronic/repeaters/repeater_day_portion.rb
36
+ - lib/chronic/repeaters/repeater_fortnight.rb
37
+ - lib/chronic/repeaters/repeater_hour.rb
38
+ - lib/chronic/repeaters/repeater_minute.rb
39
+ - lib/chronic/repeaters/repeater_month.rb
40
+ - lib/chronic/repeaters/repeater_month_name.rb
41
+ - lib/chronic/repeaters/repeater_season.rb
42
+ - lib/chronic/repeaters/repeater_season_name.rb
43
+ - lib/chronic/repeaters/repeater_second.rb
44
+ - lib/chronic/repeaters/repeater_time.rb
45
+ - lib/chronic/repeaters/repeater_week.rb
46
+ - lib/chronic/repeaters/repeater_weekday.rb
47
+ - lib/chronic/repeaters/repeater_weekend.rb
48
+ - lib/chronic/repeaters/repeater_year.rb
49
+ - lib/chronic/scalar.rb
50
+ - lib/chronic/separator.rb
51
+ - lib/chronic/time_zone.rb
52
+ - lib/chronic.rb
53
+ - lib/numerizer
54
+ - lib/numerizer/numerizer.rb
55
+ - test/suite.rb
56
+ - test/test_Chronic.rb
57
+ - test/test_Handler.rb
58
+ - test/test_Numerizer.rb
59
+ - test/test_parsing.rb
60
+ - test/test_RepeaterDayName.rb
61
+ - test/test_RepeaterFortnight.rb
62
+ - test/test_RepeaterHour.rb
63
+ - test/test_RepeaterMonth.rb
64
+ - test/test_RepeaterMonthName.rb
65
+ - test/test_RepeaterTime.rb
66
+ - test/test_RepeaterWeek.rb
67
+ - test/test_RepeaterWeekday.rb
68
+ - test/test_RepeaterWeekend.rb
69
+ - test/test_RepeaterYear.rb
70
+ - test/test_Span.rb
71
+ - test/test_Time.rb
72
+ - test/test_Token.rb
73
+ - README
74
+ has_rdoc: true
75
+ homepage: http://chronic.rubyforge.org
76
+ post_install_message:
77
+ rdoc_options:
78
+ - --main
79
+ - README
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: "0"
87
+ version:
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: "0"
93
+ version:
94
+ requirements: []
95
+
96
+ rubyforge_project:
97
+ rubygems_version: 1.2.0
98
+ signing_key:
99
+ specification_version: 2
100
+ summary: A natural language date parser with timezone support
101
+ test_files:
102
+ - test/suite.rb