relaton-iso 1.0.2 → 1.0.3

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: 726ca28930d18170b319b15d5409f51e7954951c8a527ec22643ebab2e484002
4
- data.tar.gz: d063fdc6390a3ace1f03569bb97b85c9e56d7b1ee8d992e809a154ddaa847939
3
+ metadata.gz: b085bd68fb134686bce61bdbb540360ebd52c6f3d7382db66a38b8b05f2e60b8
4
+ data.tar.gz: 9c4c0858b18d5da5b45ee552b0489f881adcb7c944fc6817d2c6a378d0de371f
5
5
  SHA512:
6
- metadata.gz: cf93495c08d8f32b1d08e8c87b6bc8cf7175be8f2ce153862e930e48635f6e238471bd84fda2aa0877351755e973d6bb96e5f01023d23602e6b125fa1dfd333e
7
- data.tar.gz: f007ab7035dbaaf3ff603afba1ac944a3b2f22eff1da682078db5f3272248202f4df9668c237e9e2f97b69bd49ee64a281a7a8335cbfe2d1823b5df62ad9c7d4
6
+ metadata.gz: 3c6aac2f294c40fc3d8d946d9462e75e6784f593a9734ce6f8f2378a404fe07acbd4bc148d87db1d7e51fb3b460deb1a944d3894cd97ef1e58a0b6850dde6272
7
+ data.tar.gz: efdc6acaaaa21d6c1b1354d8c7ff36fc327618edb47f58071e36a277f814f077c414da74c0c7c744bd564f75404fbc65f1d3367342a7cd098f7a5d3e1d4cf4c7
@@ -25,6 +25,16 @@ module RelatonIso
25
25
  "Guide" => "guide",
26
26
  }.freeze
27
27
 
28
+ STGABBR = {
29
+ "00" => "NWIP",
30
+ "10" => "AWI",
31
+ "20" => "WD",
32
+ "30" => "CD",
33
+ "40" => "DIS",
34
+ "50" => "FDIS",
35
+ "60" => { "00" => "PRF", "60" => "FINAL" },
36
+ }
37
+
28
38
  class << self
29
39
  # Parse page.
30
40
  # @param hit_data [Hash]
@@ -176,10 +186,17 @@ module RelatonIso
176
186
  # @param status [String]
177
187
  # @return [Hash]
178
188
  def fetch_status(doc)
179
- stage, substage = doc.css("li.dropdown.active span.stage-code > strong").text.split "."
180
- RelatonBib::DocumentStatus.new(stage: stage, substage: substage)
189
+ stg, substg = doc.css(
190
+ "li.dropdown.active span.stage-code > strong",
191
+ ).text.split "."
192
+ RelatonBib::DocumentStatus.new(stage: stg, substage: substg)
181
193
  end
182
194
 
195
+ # def stage(stg, substg)
196
+ # abbr = STGABBR[stg].is_a?(Hash) ? STGABBR[stg][substg] : STGABBR[stg]
197
+ # RelatonBib::DocumentStatus::Stage.new value: stg, abbreviation: abbr
198
+ # end
199
+
183
200
  # Fetch workgroup.
184
201
  # @param doc [Nokogiri::HTML::Document]
185
202
  # @return [Hash]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIso
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
data/relaton_iso.gemspec CHANGED
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "vcr"
38
38
  spec.add_development_dependency "webmock"
39
39
 
40
- spec.add_dependency "relaton-iec", "~> 1.0.0"
41
- spec.add_dependency "relaton-iso-bib", "~> 1.0.0"
40
+ spec.add_dependency "relaton-iec", ">= 1.0.1"
41
+ spec.add_dependency "relaton-iso-bib", ">= 1.0.1"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-14 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -154,30 +154,30 @@ dependencies:
154
154
  name: relaton-iec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 1.0.0
159
+ version: 1.0.1
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 1.0.0
166
+ version: 1.0.1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: relaton-iso-bib
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 1.0.0
173
+ version: 1.0.1
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 1.0.0
180
+ version: 1.0.1
181
181
  description: 'RelatonIso: retrieve ISO Standards for bibliographic use using the IsoBibliographicItem
182
182
  model'
183
183
  email: