mojombo-chronic 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +167 -0
- data/lib/chronic.rb +127 -0
- data/lib/chronic/chronic.rb +248 -0
- data/lib/chronic/grabber.rb +26 -0
- data/lib/chronic/handlers.rb +524 -0
- data/lib/chronic/ordinal.rb +40 -0
- data/lib/chronic/pointer.rb +27 -0
- data/lib/chronic/repeater.rb +129 -0
- data/lib/chronic/repeaters/repeater_day.rb +52 -0
- data/lib/chronic/repeaters/repeater_day_name.rb +51 -0
- data/lib/chronic/repeaters/repeater_day_portion.rb +94 -0
- data/lib/chronic/repeaters/repeater_fortnight.rb +70 -0
- data/lib/chronic/repeaters/repeater_hour.rb +57 -0
- data/lib/chronic/repeaters/repeater_minute.rb +57 -0
- data/lib/chronic/repeaters/repeater_month.rb +66 -0
- data/lib/chronic/repeaters/repeater_month_name.rb +98 -0
- data/lib/chronic/repeaters/repeater_season.rb +150 -0
- data/lib/chronic/repeaters/repeater_season_name.rb +45 -0
- data/lib/chronic/repeaters/repeater_second.rb +41 -0
- data/lib/chronic/repeaters/repeater_time.rb +120 -0
- data/lib/chronic/repeaters/repeater_week.rb +73 -0
- data/lib/chronic/repeaters/repeater_weekday.rb +77 -0
- data/lib/chronic/repeaters/repeater_weekend.rb +65 -0
- data/lib/chronic/repeaters/repeater_year.rb +64 -0
- data/lib/chronic/scalar.rb +76 -0
- data/lib/chronic/separator.rb +91 -0
- data/lib/chronic/time_zone.rb +23 -0
- data/lib/numerizer/numerizer.rb +97 -0
- data/test/suite.rb +9 -0
- data/test/test_Chronic.rb +50 -0
- data/test/test_Handler.rb +110 -0
- data/test/test_Numerizer.rb +52 -0
- data/test/test_RepeaterDayName.rb +52 -0
- data/test/test_RepeaterFortnight.rb +63 -0
- data/test/test_RepeaterHour.rb +65 -0
- data/test/test_RepeaterMonth.rb +47 -0
- data/test/test_RepeaterMonthName.rb +57 -0
- data/test/test_RepeaterTime.rb +72 -0
- data/test/test_RepeaterWeek.rb +63 -0
- data/test/test_RepeaterWeekday.rb +56 -0
- data/test/test_RepeaterWeekend.rb +75 -0
- data/test/test_RepeaterYear.rb +63 -0
- data/test/test_Span.rb +24 -0
- data/test/test_Time.rb +50 -0
- data/test/test_Token.rb +26 -0
- data/test/test_parsing.rb +706 -0
- 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
|