chronic 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +38 -0
- data/Manifest.txt +45 -0
- data/{README → README.txt} +36 -7
- data/Rakefile +41 -0
- data/lib/chronic/chronic.rb +2 -5
- data/lib/chronic/handlers.rb +14 -12
- data/lib/chronic/pointer.rb +3 -3
- data/lib/chronic/repeater.rb +4 -4
- data/lib/chronic/repeaters/repeater_hour.rb +2 -2
- data/lib/chronic/repeaters/repeater_month_name.rb +12 -3
- data/lib/chronic/repeaters/repeater_time.rb +7 -2
- data/lib/chronic/repeaters/repeater_weekend.rb +49 -0
- data/lib/chronic.rb +33 -0
- data/lib/numerizer/numerizer.rb +103 -0
- data/test/{parse_numbers.rb → test_Numerizer.rb} +6 -8
- data/test/test_RepeaterWeekend.rb +75 -0
- data/test/test_parsing.rb +202 -144
- metadata +49 -24
metadata
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
|
-
rubygems_version: 0.
|
|
2
|
+
rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: chronic
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.
|
|
7
|
-
date:
|
|
6
|
+
version: 0.2.0
|
|
7
|
+
date: 2007-03-20 00:00:00 -07:00
|
|
8
8
|
summary: A natural language date parser
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
11
|
-
email:
|
|
12
|
-
homepage:
|
|
13
|
-
rubyforge_project:
|
|
14
|
-
description:
|
|
15
|
-
autorequire:
|
|
11
|
+
email: ryand-ruby@zenspider.com
|
|
12
|
+
homepage: "\thttp://chronic.rubyforge.org/"
|
|
13
|
+
rubyforge_project: chronic
|
|
14
|
+
description: Chronic is a natural language date/time parser written in pure Ruby. See below for the wide variety of formats Chronic will parse.
|
|
15
|
+
autorequire:
|
|
16
16
|
default_executable:
|
|
17
17
|
bindir: bin
|
|
18
18
|
has_rdoc: true
|
|
@@ -25,10 +25,14 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
|
25
25
|
platform: ruby
|
|
26
26
|
signing_key:
|
|
27
27
|
cert_chain:
|
|
28
|
+
post_install_message:
|
|
28
29
|
authors:
|
|
29
|
-
-
|
|
30
|
+
- Ryan Davis
|
|
30
31
|
files:
|
|
31
|
-
-
|
|
32
|
+
- History.txt
|
|
33
|
+
- Manifest.txt
|
|
34
|
+
- README.txt
|
|
35
|
+
- Rakefile
|
|
32
36
|
- lib/chronic.rb
|
|
33
37
|
- lib/chronic/chronic.rb
|
|
34
38
|
- lib/chronic/grabber.rb
|
|
@@ -36,9 +40,6 @@ files:
|
|
|
36
40
|
- lib/chronic/ordinal.rb
|
|
37
41
|
- lib/chronic/pointer.rb
|
|
38
42
|
- lib/chronic/repeater.rb
|
|
39
|
-
- lib/chronic/repeaters
|
|
40
|
-
- lib/chronic/scalar.rb
|
|
41
|
-
- lib/chronic/separator.rb
|
|
42
43
|
- lib/chronic/repeaters/repeater_day.rb
|
|
43
44
|
- lib/chronic/repeaters/repeater_day_name.rb
|
|
44
45
|
- lib/chronic/repeaters/repeater_day_portion.rb
|
|
@@ -54,11 +55,13 @@ files:
|
|
|
54
55
|
- lib/chronic/repeaters/repeater_week.rb
|
|
55
56
|
- lib/chronic/repeaters/repeater_weekend.rb
|
|
56
57
|
- lib/chronic/repeaters/repeater_year.rb
|
|
57
|
-
-
|
|
58
|
+
- lib/chronic/scalar.rb
|
|
59
|
+
- lib/chronic/separator.rb
|
|
60
|
+
- lib/numerizer/numerizer.rb
|
|
58
61
|
- test/suite.rb
|
|
59
62
|
- test/test_Chronic.rb
|
|
60
63
|
- test/test_Handler.rb
|
|
61
|
-
- test/
|
|
64
|
+
- test/test_Numerizer.rb
|
|
62
65
|
- test/test_RepeaterDayName.rb
|
|
63
66
|
- test/test_RepeaterFortnight.rb
|
|
64
67
|
- test/test_RepeaterHour.rb
|
|
@@ -66,22 +69,44 @@ files:
|
|
|
66
69
|
- test/test_RepeaterMonthName.rb
|
|
67
70
|
- test/test_RepeaterTime.rb
|
|
68
71
|
- test/test_RepeaterWeek.rb
|
|
72
|
+
- test/test_RepeaterWeekend.rb
|
|
69
73
|
- test/test_RepeaterYear.rb
|
|
70
74
|
- test/test_Span.rb
|
|
71
75
|
- test/test_Token.rb
|
|
72
|
-
-
|
|
76
|
+
- test/test_parsing.rb
|
|
73
77
|
test_files:
|
|
74
|
-
- test/
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
-
|
|
78
|
+
- test/test_Chronic.rb
|
|
79
|
+
- test/test_Handler.rb
|
|
80
|
+
- test/test_Numerizer.rb
|
|
81
|
+
- test/test_parsing.rb
|
|
82
|
+
- test/test_RepeaterDayName.rb
|
|
83
|
+
- test/test_RepeaterFortnight.rb
|
|
84
|
+
- test/test_RepeaterHour.rb
|
|
85
|
+
- test/test_RepeaterMonth.rb
|
|
86
|
+
- test/test_RepeaterMonthName.rb
|
|
87
|
+
- test/test_RepeaterTime.rb
|
|
88
|
+
- test/test_RepeaterWeek.rb
|
|
89
|
+
- test/test_RepeaterWeekend.rb
|
|
90
|
+
- test/test_RepeaterYear.rb
|
|
91
|
+
- test/test_Span.rb
|
|
92
|
+
- test/test_Token.rb
|
|
93
|
+
rdoc_options: []
|
|
94
|
+
|
|
95
|
+
extra_rdoc_files: []
|
|
96
|
+
|
|
80
97
|
executables: []
|
|
81
98
|
|
|
82
99
|
extensions: []
|
|
83
100
|
|
|
84
101
|
requirements: []
|
|
85
102
|
|
|
86
|
-
dependencies:
|
|
87
|
-
|
|
103
|
+
dependencies:
|
|
104
|
+
- !ruby/object:Gem::Dependency
|
|
105
|
+
name: hoe
|
|
106
|
+
version_requirement:
|
|
107
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
|
108
|
+
requirements:
|
|
109
|
+
- - ">="
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: 1.2.0
|
|
112
|
+
version:
|