chronic 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +119 -0
- data/lib/chronic.rb +30 -0
- data/lib/chronic/chronic.rb +242 -0
- data/lib/chronic/grabber.rb +26 -0
- data/lib/chronic/handlers.rb +405 -0
- data/lib/chronic/ordinal.rb +40 -0
- data/lib/chronic/pointer.rb +27 -0
- data/lib/chronic/repeater.rb +114 -0
- data/lib/chronic/repeaters/repeater_day.rb +40 -0
- data/lib/chronic/repeaters/repeater_day_name.rb +41 -0
- data/lib/chronic/repeaters/repeater_day_portion.rb +93 -0
- data/lib/chronic/repeaters/repeater_fortnight.rb +64 -0
- data/lib/chronic/repeaters/repeater_hour.rb +52 -0
- data/lib/chronic/repeaters/repeater_minute.rb +21 -0
- data/lib/chronic/repeaters/repeater_month.rb +54 -0
- data/lib/chronic/repeaters/repeater_month_name.rb +82 -0
- data/lib/chronic/repeaters/repeater_season.rb +23 -0
- data/lib/chronic/repeaters/repeater_season_name.rb +24 -0
- data/lib/chronic/repeaters/repeater_second.rb +34 -0
- data/lib/chronic/repeaters/repeater_time.rb +106 -0
- data/lib/chronic/repeaters/repeater_week.rb +62 -0
- data/lib/chronic/repeaters/repeater_weekend.rb +11 -0
- data/lib/chronic/repeaters/repeater_year.rb +55 -0
- data/lib/chronic/scalar.rb +74 -0
- data/lib/chronic/separator.rb +76 -0
- data/test/parse_numbers.rb +50 -0
- data/test/suite.rb +9 -0
- data/test/test_Chronic.rb +50 -0
- data/test/test_Handler.rb +110 -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_RepeaterYear.rb +63 -0
- data/test/test_Span.rb +24 -0
- data/test/test_Token.rb +26 -0
- data/test/test_parsing.rb +472 -0
- metadata +87 -0
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: chronic
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.0
|
7
|
+
date: 2006-09-06 00:00:00 -07:00
|
8
|
+
summary: A natural language date parser
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: tom@rubyisawesome.com
|
12
|
+
homepage: http://chronic.rubyforge.org
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire: chronic
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Tom Werner
|
30
|
+
files:
|
31
|
+
- lib/chronic
|
32
|
+
- lib/chronic.rb
|
33
|
+
- lib/chronic/chronic.rb
|
34
|
+
- lib/chronic/grabber.rb
|
35
|
+
- lib/chronic/handlers.rb
|
36
|
+
- lib/chronic/ordinal.rb
|
37
|
+
- lib/chronic/pointer.rb
|
38
|
+
- lib/chronic/repeater.rb
|
39
|
+
- lib/chronic/repeaters
|
40
|
+
- lib/chronic/scalar.rb
|
41
|
+
- lib/chronic/separator.rb
|
42
|
+
- lib/chronic/repeaters/repeater_day.rb
|
43
|
+
- lib/chronic/repeaters/repeater_day_name.rb
|
44
|
+
- lib/chronic/repeaters/repeater_day_portion.rb
|
45
|
+
- lib/chronic/repeaters/repeater_fortnight.rb
|
46
|
+
- lib/chronic/repeaters/repeater_hour.rb
|
47
|
+
- lib/chronic/repeaters/repeater_minute.rb
|
48
|
+
- lib/chronic/repeaters/repeater_month.rb
|
49
|
+
- lib/chronic/repeaters/repeater_month_name.rb
|
50
|
+
- lib/chronic/repeaters/repeater_season.rb
|
51
|
+
- lib/chronic/repeaters/repeater_season_name.rb
|
52
|
+
- lib/chronic/repeaters/repeater_second.rb
|
53
|
+
- lib/chronic/repeaters/repeater_time.rb
|
54
|
+
- lib/chronic/repeaters/repeater_week.rb
|
55
|
+
- lib/chronic/repeaters/repeater_weekend.rb
|
56
|
+
- lib/chronic/repeaters/repeater_year.rb
|
57
|
+
- test/parse_numbers.rb
|
58
|
+
- test/suite.rb
|
59
|
+
- test/test_Chronic.rb
|
60
|
+
- test/test_Handler.rb
|
61
|
+
- test/test_parsing.rb
|
62
|
+
- test/test_RepeaterDayName.rb
|
63
|
+
- test/test_RepeaterFortnight.rb
|
64
|
+
- test/test_RepeaterHour.rb
|
65
|
+
- test/test_RepeaterMonth.rb
|
66
|
+
- test/test_RepeaterMonthName.rb
|
67
|
+
- test/test_RepeaterTime.rb
|
68
|
+
- test/test_RepeaterWeek.rb
|
69
|
+
- test/test_RepeaterYear.rb
|
70
|
+
- test/test_Span.rb
|
71
|
+
- test/test_Token.rb
|
72
|
+
- README
|
73
|
+
test_files:
|
74
|
+
- test/suite.rb
|
75
|
+
rdoc_options:
|
76
|
+
- --main
|
77
|
+
- README
|
78
|
+
extra_rdoc_files:
|
79
|
+
- README
|
80
|
+
executables: []
|
81
|
+
|
82
|
+
extensions: []
|
83
|
+
|
84
|
+
requirements: []
|
85
|
+
|
86
|
+
dependencies: []
|
87
|
+
|