historical_dating 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5626f5c1b07674a6546b19aa32011ecbd3b78699c9c2b86533708fc83f20d80d
4
- data.tar.gz: 946a0c51e02776a04847d35a7671226af38134fa2c55c14031a4b942912e77d0
3
+ metadata.gz: 6a00cb6bc3975511c1024df18f2aeaefe6fd0b11f6f850f78b4e61aac88b8c2b
4
+ data.tar.gz: a5fc6b15f83541d095d8a41f43a948f16425ea93c0e1d699ad31bbd0d3193667
5
5
  SHA512:
6
- metadata.gz: c1446b31cb59adf40e9ebac90a3479131dc8dccbac9e8b38442399cba282e6773b290f7a41c5f15b2b349278fb8deff4256cb341ce59f5c4b4d01637a940445f
7
- data.tar.gz: e3f755f48886b00c478934e2f66307c71f3b8fb1011d98d4f7e47f562f51e11d9ff9977f97eff84547278f10cb50c14b7c317b7ab0d60509456243bad055ffda
6
+ metadata.gz: e17156f25a2517c1fe3a4cb28476697a0ed327bdce8411ce995c7b5f2695b32596041f649a1071991e2fa88531cb0b2429e69ce0707039c5a515d787813f89b4
7
+ data.tar.gz: 0e08c630c58bb7bee22172548b6137040c073bf8f3d2e1f619b4aa11fbe86a65bd5a7593a1b05ec9ed80f64f243e4cc6ba48610103cee48f640734f4f5778831
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- historical_dating (1.7.0)
4
+ historical_dating (1.8.0)
5
5
  activesupport (>= 3.0.0)
6
6
  parslet (~> 2.0.0)
7
7
 
@@ -15,9 +15,9 @@ GEM
15
15
  tzinfo (~> 1.1)
16
16
  zeitwerk (~> 2.2, >= 2.2.2)
17
17
  coderay (1.1.3)
18
- concurrent-ruby (1.1.7)
18
+ concurrent-ruby (1.1.8)
19
19
  diff-lcs (1.4.4)
20
- i18n (1.8.5)
20
+ i18n (1.8.9)
21
21
  concurrent-ruby (~> 1.0)
22
22
  method_source (1.0.0)
23
23
  minitest (5.14.1)
@@ -40,7 +40,7 @@ GEM
40
40
  rspec-support (~> 3.9.0)
41
41
  rspec-support (3.9.3)
42
42
  thread_safe (0.3.6)
43
- tzinfo (1.2.8)
43
+ tzinfo (1.2.9)
44
44
  thread_safe (~> 0.1)
45
45
  zeitwerk (2.4.1)
46
46
 
@@ -55,4 +55,4 @@ DEPENDENCIES
55
55
  rspec (~> 3.9.0)
56
56
 
57
57
  BUNDLED WITH
58
- 2.1.4
58
+ 2.2.8
@@ -52,16 +52,16 @@ class HistoricalDating::Parser < Parslet::Parser
52
52
  rule(:approx){ str('ca.') | str('Ca.') | str('ca') | str('um') | str('Um') | str('circa') }
53
53
  rule(:unknown){ str('?') | str('unbekannt') | str('onbekend') }
54
54
  rule(:to_characters){
55
- str('bis') | str('-') | str('/') | str('und')
55
+ str('bis') | str('-') | str('–') | str('/') | str('und')
56
56
  }
57
57
  rule(:to_two_digit_year){
58
58
  (space >> to_characters >> space) |
59
59
  (to_characters >> space) |
60
60
  (space >> to_characters) |
61
- str('/')
61
+ str('/') | str('-')
62
62
  }
63
63
  rule(:to){
64
- to_two_digit_year | str('-')
64
+ to_two_digit_year | str('-') | str('–')
65
65
  }
66
66
  rule(:before){ (str('vor') | str('Vor') | str('before')) >> space }
67
67
  rule(:after){ (str('Nach') | str('nach') | str('ab') | str('after')) >> space }
@@ -91,7 +91,7 @@ class HistoricalDating::Parser < Parslet::Parser
91
91
  rule(:century){
92
92
  (approx >> space).maybe.as(:approx) >>
93
93
  natural_number.as(:num) >>
94
- ((str('.').as(:cd) >> (space >> century_string.as(:cs) >> (space >> acbc).maybe.as(:acbc)).maybe) |
94
+ ((str('.').as(:cd) >> space.maybe >> century_string.as(:cs).maybe >> space.maybe >> acbc.maybe.as(:acbc)) |
95
95
  (space >> century_string.as(:cs) >> (space >> acbc).maybe.as(:acbc)))
96
96
  }
97
97
  rule(:century_number){
@@ -110,7 +110,7 @@ class HistoricalDating::Parser < Parslet::Parser
110
110
  (str('.') | str('-') | str('/')) >>
111
111
  whole_number.as(:yearnum))
112
112
  }
113
- rule(:machine_date){ whole_number.as(:yearnum) >> (str('.') | str('-')) >> month.as(:month) >> ((str('.') | str('-')) >> day.as(:day)).maybe }
113
+ rule(:machine_date){ whole_number.as(:yearnum) >> (str('.') | str('-') | str('–')) >> month.as(:month) >> (str('.') | str('-')) >> day.as(:day) }
114
114
  rule(:date){ european_date | machine_date }
115
115
  rule(:date_interval){ date.as(:from) >> to >> date.as(:to) }
116
116
  rule(:century_interval){
@@ -1,3 +1,3 @@
1
1
  module HistoricalDating
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
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.7.0
4
+ version: 1.8.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: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet