historical_dating 1.6.0 → 1.7.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/historical_dating/parser.rb +5 -7
- data/lib/historical_dating/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5626f5c1b07674a6546b19aa32011ecbd3b78699c9c2b86533708fc83f20d80d
|
|
4
|
+
data.tar.gz: 946a0c51e02776a04847d35a7671226af38134fa2c55c14031a4b942912e77d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1446b31cb59adf40e9ebac90a3479131dc8dccbac9e8b38442399cba282e6773b290f7a41c5f15b2b349278fb8deff4256cb341ce59f5c4b4d01637a940445f
|
|
7
|
+
data.tar.gz: e3f755f48886b00c478934e2f66307c71f3b8fb1011d98d4f7e47f562f51e11d9ff9977f97eff84547278f10cb50c14b7c317b7ab0d60509456243bad055ffda
|
data/Gemfile.lock
CHANGED
|
@@ -102,12 +102,12 @@ class HistoricalDating::Parser < Parslet::Parser
|
|
|
102
102
|
}
|
|
103
103
|
rule(:century_part){ part.as(:part) >> space >> positive_number.as(:num) >> str('.') >> space >> century_string.as(:cs) >> (space >> acbc).maybe.as(:acbc) }
|
|
104
104
|
rule(:european_date){
|
|
105
|
-
(day.as(:day) >> (str('.') | str('-')) >>
|
|
105
|
+
(day.as(:day) >> (str('.') | str('-') | str('/')) >>
|
|
106
106
|
month.as(:month) >>
|
|
107
|
-
(str('.') | str('-')) >>
|
|
107
|
+
(str('.') | str('-') | str('/')) >>
|
|
108
108
|
whole_number.as(:yearnum)) |
|
|
109
109
|
(month.as(:month) >>
|
|
110
|
-
(str('.') | str('-')) >>
|
|
110
|
+
(str('.') | str('-') | str('/')) >>
|
|
111
111
|
whole_number.as(:yearnum))
|
|
112
112
|
}
|
|
113
113
|
rule(:machine_date){ whole_number.as(:yearnum) >> (str('.') | str('-')) >> month.as(:month) >> ((str('.') | str('-')) >> day.as(:day)).maybe }
|
|
@@ -124,10 +124,8 @@ class HistoricalDating::Parser < Parslet::Parser
|
|
|
124
124
|
rule(:year_interval){
|
|
125
125
|
prefix.maybe >>
|
|
126
126
|
(year | unknown).as(:from) >>
|
|
127
|
-
((to >>
|
|
128
|
-
(
|
|
129
|
-
(to_two_digit_year >>
|
|
130
|
-
two_digit_year.as(:to)))
|
|
127
|
+
((to >> (more_than_two_digit_year | unknown).as(:to)) |
|
|
128
|
+
(to_two_digit_year >> two_digit_year.as(:to)))
|
|
131
129
|
}
|
|
132
130
|
rule(:before_century){ before >> century.as(:century) }
|
|
133
131
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: historical_dating
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Moritz Schepp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parslet
|