relaton-bipm 1.16.2 → 1.16.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: ced155bf740bb8a1bb34fffc1c58bb864b753236abeb8a406aef9a2a509835c2
4
- data.tar.gz: 7111b47d1617da91a47919336d2bc665de041e3ae109d06e0182ea9ad01ff140
3
+ metadata.gz: 3d8e6a865105cdcf8855183ef3e9a643f7b5927a45e7fb323933b35e6c785c5b
4
+ data.tar.gz: 7d0e021593a5b8e0da95ff90aaf7f62a769d2d96bff362779025b01cfc6f950a
5
5
  SHA512:
6
- metadata.gz: d48462fd26483e16041580591fd0b3b5e0f58bdea4058dab03210606e1f49f6ddaddfe0b69a9e4c1e930496b56580315f2ad14644a1fb04abae4d991009c0004
7
- data.tar.gz: 2e8ac7afb0fda2c8f8f1acf1beb00c3870ab8941250f124e718e3b6f251d67dfc69442251c4ec6965c4e5a895d90d7da8e5354976152a87691e11980e832da0a
6
+ metadata.gz: 87020ee215e5bdd22faef4628a2dee2745e18a946da0fed498e374d1acc80bede9a4e3ea21afee2fd9375a0ef29ece739f5466cd45a32e73d991eead21272232
7
+ data.tar.gz: 0a009e46923cbfb67361f2edb48198a1a1f82022c4925fa3780bb5d6137ca3585fcf5de376aca5f743db11855db034a68acdc56b72f921351a9d2ebe7a4ce03c
data/README.adoc CHANGED
@@ -33,14 +33,6 @@ Or install it yourself as:
33
33
 
34
34
  === Search for a standard using keywords
35
35
 
36
- The Metrologia website employs anti-DDoS protection, which may cause the search to fail. If this happens, open provided link in a browser and solve the captcha.
37
-
38
- ----
39
- [relaton-bipm] ("BIPM Metrologia 50 4 385") fetching...
40
- [relaton-bipm] This source employs anti-DDoS measures that unfortunately affect automated requests.
41
- [relaton-bipm] Please visit this link in your browser to resolve the CAPTCHA, then retry: https://iopscience.iop.org/article/10.1088/0026-1394/50/4/385
42
- ----
43
-
44
36
  ==== References for Si-Brochure documents
45
37
 
46
38
  `BIPM {DOCUMENT_NAME}`
@@ -207,67 +199,67 @@ end
207
199
  ----
208
200
  # get BIPM brochure
209
201
  item = RelatonBipm::BipmBibliography.get "BIPM SI Brochure"
210
- [relaton-bipm] (BIPM SI Brochure) fetching...
211
- [relaton-bipm] (BIPM SI Brochure) found `BIPM SI Brochure`
202
+ [relaton-bipm] (BIPM SI Brochure) Fetching from Relaton repository ...
203
+ [relaton-bipm] (BIPM SI Brochure) Found: `BIPM SI Brochure`
212
204
  => #<RelatonBipm::BipmBibliographicItem:0x007ffb83982fe8
213
205
  ...
214
206
 
215
207
  # get BIPM Metrologia page
216
208
  bib = RelatonBipm::BipmBibliography.get "BIPM Metrologia 29 6 001"
217
- [relaton-bipm] (BIPM Metrologia 29 6 001) fetching...
218
- [relaton-bipm] (BIPM Metrologia 29 6 001) found `Metrologia 29 6 001`
209
+ [relaton-bipm] (BIPM Metrologia 29 6 001) Fetching from Relaton repository ...
210
+ [relaton-bipm] (BIPM Metrologia 29 6 001) Found: `Metrologia 29 6 001`
219
211
  => #<RelatonBipm::BipmBibliographicItem:0x007f8857f94d40
220
212
  ...
221
213
 
222
214
  # get CGPM meetings
223
215
  RelatonBipm::BipmBibliography.get "CGPM 1st Meeting (1889)"
224
- [relaton-bipm] (CGPM 1st Meeting (1889)) fetching...
225
- [relaton-bipm] (CGPM 1st Meeting (1889)) found `CGPM 1th meeting (1889)`
216
+ [relaton-bipm] (CGPM 1st Meeting (1889)) Fetching from Relaton repository ...
217
+ [relaton-bipm] (CGPM 1st Meeting (1889)) Found: `CGPM 1th meeting (1889)`
226
218
  => #<RelatonBipm::BipmBibliographicItem:0x00007f7fd02aba28
227
219
  ...
228
220
 
229
221
  # get CGPM resolutions
230
222
  RelatonBipm::BipmBibliography.get "CGPM RES (1889, E)"
231
- [relaton-bipm] (CGPM RES (1889, E)) fetching...
232
- [relaton-bipm] (CGPM RES (1889, E)) found `CGPM RES (1889)`
223
+ [relaton-bipm] (CGPM RES (1889, E)) Fetching from Relaton repository ...
224
+ [relaton-bipm] (CGPM RES (1889, E)) Found: `CGPM RES (1889)`
233
225
  => #<RelatonBipm::BipmBibliographicItem:0x00007f80421f93d8
234
226
  ...
235
227
 
236
228
  RelatonBipm::BipmBibliography.get "CGPM Resolution (1889)"
237
- [relaton-bipm] (CGPM Resolution (1889)) fetching...
238
- [relaton-bipm] (CGPM Resolution (1889)) found `CGPM RES (1889)`
229
+ [relaton-bipm] (CGPM Resolution (1889)) Fetching from Relaton repository ...
230
+ [relaton-bipm] (CGPM Resolution (1889)) Found: `CGPM RES (1889)`
239
231
  => #<RelatonBipm::BipmBibliographicItem:0x00007f8017f60c18
240
232
  ...
241
233
 
242
234
  RelatonBipm::BipmBibliography.get "CGPM Résolution (1889)"
243
- [relaton-bipm] (CGPM Résolution (1889)) fetching...
244
- [relaton-bipm] (CGPM Résolution (1889)) found `CGPM RES (1889)`
235
+ [relaton-bipm] (CGPM Résolution (1889)) Fetching from Relaton repository ...
236
+ [relaton-bipm] (CGPM Résolution (1889)) Found: `CGPM RES (1889)`
245
237
  => #<RelatonBipm::BipmBibliographicItem:0x00007f8017f492e8
246
238
  ...
247
239
 
248
240
  # get CIPM decision by year and decision number
249
241
  RelatonBipm::BipmBibliography.get "BIPM Decision CIPM/101-1 (2012)"
250
- [relaton-bipm] (BIPM Decision CIPM/101-1 (2012)) fetching...
251
- [relaton-bipm] (BIPM Decision CIPM/101-1 (2012)) found `CIPM DECN 101-1 (2012)`
242
+ [relaton-bipm] (BIPM Decision CIPM/101-1 (2012)) Fetching from Relaton repository ...
243
+ [relaton-bipm] (BIPM Decision CIPM/101-1 (2012)) Found: `CIPM DECN 101-1 (2012)`
252
244
  => #<RelatonBipm::BipmBibliographicItem:0x00007f8017f2bd88
253
245
  ...
254
246
 
255
247
  RelatonBipm::BipmBibliography.get "BIPM DECN CIPM/101-1 (2012, E)"
256
- [relaton-bipm] (BIPM DECN CIPM/101-1 (2012, E)) fetching...
257
- [relaton-bipm] (BIPM DECN CIPM/101-1 (2012, E)) found `CIPM DECN 101-1 (2012)`
248
+ [relaton-bipm] (BIPM DECN CIPM/101-1 (2012, E)) Fetching from Relaton repository ...
249
+ [relaton-bipm] (BIPM DECN CIPM/101-1 (2012, E)) Found: `CIPM DECN 101-1 (2012)`
258
250
  => #<RelatonBipm::BipmBibliographicItem:0x00007f8017f39438
259
251
  ...
260
252
 
261
253
  # get CIPM recommendation
262
254
  RelatonBipm::BipmBibliography.get "CIPM Recommendation 1 (2005)"
263
- [relaton-bipm] (CIPM Recommendation 1 (2005)) fetching...
264
- [relaton-bipm] (CIPM Recommendation 1 (2005)) found `CIPM REC 1 (2005)`
255
+ [relaton-bipm] (CIPM Recommendation 1 (2005)) Fetching from Relaton repository ...
256
+ [relaton-bipm] (CIPM Recommendation 1 (2005)) Found: `CIPM REC 1 (2005)`
265
257
  => #<RelatonBipm::BipmBibliographicItem:0x00007f8017f31da0
266
258
  ...
267
259
 
268
260
  RelatonBipm::BipmBibliography.get "CIPM REC 1 (2005, FR)"
269
- [relaton-bipm] (CIPM REC 1 (2005, FR)) fetching...
270
- [relaton-bipm] (CIPM REC 1 (2005, FR)) found `CIPM REC 1 (2005)`
261
+ [relaton-bipm] (CIPM REC 1 (2005, FR)) Fetching from Relaton repository ...
262
+ [relaton-bipm] (CIPM REC 1 (2005, FR)) Found: `CIPM REC 1 (2005)`
271
263
  => #<RelatonBipm::BipmBibliographicItem:0x00007f80422100d8
272
264
  ...
273
265
  ----
@@ -27,12 +27,12 @@ module RelatonBipm
27
27
  # @param structuredidentifier [RelatonBipm::StructuredIdentifier]
28
28
  def initialize(**args) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
29
29
  if args[:docstatus] && !STATUSES.include?(args[:docstatus].stage.value)
30
- Util.warn "WARNING: invalid docstatus: `#{args[:docstatus].stage.value}`. " \
30
+ Util.warn "WARNING: Invalid docstatus: `#{args[:docstatus].stage.value}`. " \
31
31
  "It should be one of: `#{STATUSES.join('`, `')}`"
32
32
  end
33
33
 
34
34
  if args[:si_aspect] && !SI_ASPECTS.include?(args[:si_aspect])
35
- Util.warn "WARNING: invalid si_aspect: `#{args[:si_aspect]}``. " \
35
+ Util.warn "WARNING: Invalid si_aspect: `#{args[:si_aspect]}``. " \
36
36
  "It should be one of: `#{SI_ASPECTS.join('`, `')}`"
37
37
  end
38
38
 
@@ -9,15 +9,15 @@ module RelatonBipm
9
9
  # @param text [String]
10
10
  # @return [RelatonBipm::BipmBibliographicItem]
11
11
  def search(text, _year = nil, _opts = {}) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
12
- Util.warn "(#{text}) fetching from Relaton repository ..."
12
+ Util.warn "(#{text}) Fetching from Relaton repository ..."
13
13
  ref = text.sub(/^BIPM\s/, "")
14
14
  item = get_bipm ref
15
15
  unless item
16
- Util.warn "(#{text}) not found."
16
+ Util.warn "(#{text}) Not found."
17
17
  return
18
18
  end
19
19
 
20
- Util.warn("(#{text}) found `#{item.docidentifier[0].id}`")
20
+ Util.warn("(#{text}) Found: `#{item.docidentifier[0].id}`")
21
21
  item
22
22
  rescue Mechanize::ResponseCodeError => e
23
23
  raise RelatonBib::RequestError, e.message unless e.response_code == "404"
@@ -11,7 +11,7 @@ module RelatonBipm
11
11
  def initialize(acronym:, content: nil)
12
12
  acronyms = YAML.load_file File.join(__dir__, "acronyms.yaml")
13
13
  unless acronyms[acronym]
14
- Util.warn "WARNING: invalid acronym: `#{acronym}`. Allowed " \
14
+ Util.warn "WARNING: Invalid acronym: `#{acronym}`. Allowed " \
15
15
  "values: `#{acronyms.map { |k, _v| k }.join '`, `'}`"
16
16
  end
17
17
 
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.16.2".freeze
2
+ VERSION = "1.16.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.16.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: 2023-10-06 00:00:00.000000000 Z
11
+ date: 2023-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday