pubid-iso 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 583ae9e428707932e9c3bc08eb9b726ea3e1f90dbf8c9fdba05e7b12e98302a2
4
- data.tar.gz: 2fc723a9027e6bd49c6643b07618dcb68d38295846488c2f34513260f145ca57
3
+ metadata.gz: b09b867ebc673153defa32f6987a1f6337895789069e76388d8791cb9c8f2545
4
+ data.tar.gz: caa42c15191fca2b22905524f8ffa8765e137b4fb8fa96b693eec8626e3d46f2
5
5
  SHA512:
6
- metadata.gz: f623fd9c0dadc20861cfed1c9a8ed788f5a5122d50835913689c69df5e67b1671141f7ad09af16e1bfccc186bc7c6144104f44c911561c910dea7d9c5b6d715e
7
- data.tar.gz: e48de733a3ade64447d41ddd29b170eb13c1c60281b4f1d5cc27882f64a710706e9df87c001a827fd0ccc082843b882b7c78c69b5ff9a57649c1234a5f3af66f
6
+ metadata.gz: 251a4b42ce806cc3a55dc31923b07ea8c2202bacd563041d1fd4dd6bc8a4de0572fd8ff219b9f39bc58fba4e6edc713a33a86041b961d849567ac7cdbf7128bb
7
+ data.tar.gz: 45493ee2cc7deaade4a97ba422d87c9c76b0d9db9745ce1573a903be5669591897d9606a3cdd5dff03638d71aeb4c2ea94ed6ed59e92e6200741fceb28e35550
@@ -3,7 +3,8 @@ module Pubid::Iso
3
3
  rule(:stage) do
4
4
  Renderer::Russian::STAGE.values.reduce(
5
5
  # other stages
6
- str("NP") | str("WD") | str("CD") | str("DIS") | str("FDIS") | str("PRF") |
6
+ str("NP") | str("NWIP") |
7
+ str("WD") | str("CD") | str("DIS") | str("FDIS") | str("PRF") |
7
8
  str("IS") | str("AWI") | str("PWI") |
8
9
  # AMD and COR stages
9
10
  str("FPD") | str("pD") | str("PD") | str("FD") | str("D")) do |acc, stage|
@@ -70,7 +71,8 @@ module Pubid::Iso
70
71
  ((str("/") >> stage.as(:stage)).maybe >>
71
72
  (str("/") | space).maybe >>
72
73
  (str("Amd") | str("AMD") | str("AM")) >>
73
- (space | str(".")) >>
74
+ str(".").maybe >>
75
+ space.maybe >>
74
76
  digits.as(:version) >>
75
77
  (str(":") >> digits.as(:number)).maybe).as(:amendments)
76
78
  end
@@ -79,7 +81,8 @@ module Pubid::Iso
79
81
  ((str("/") >> stage.as(:stage)).maybe >>
80
82
  (str("/") | space).maybe >>
81
83
  (str("Cor") | str("COR")) >>
82
- (space | str(".")) >>
84
+ str(".").maybe >>
85
+ space.maybe >>
83
86
  digits.as(:version) >>
84
87
  (str(":") >> digits.as(:number)).maybe).as(:corrigendums)
85
88
  end
@@ -92,6 +92,8 @@ module Pubid::Iso
92
92
  return russian_code.to_s if russian_code
93
93
 
94
94
  case code
95
+ when "NWIP"
96
+ "NP"
95
97
  when "D"
96
98
  "DIS"
97
99
  when "FD"
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Iso
3
- VERSION = "0.1.8".freeze
3
+ VERSION = "0.1.9".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake