relaton-bipm 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +2 -2
- data/lib/relaton_bipm/data_fetcher.rb +2 -2
- data/lib/relaton_bipm/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: f72be2cca386ea571c29f89147975799b222b4963cef7376c91580dcf23de4a5
|
4
|
+
data.tar.gz: d0f69061787446919b32ea8321b6fed58ff0b7e6eae56908c4db4fe0b4ed3945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73896190ba9fb138c91761f6c86e1bcee098f5d229010312962af6d833a51775f29ea1d735bb4413f7150219ee6f2002e7fa87a00808c805964f2b469a34678c
|
7
|
+
data.tar.gz: 4aa4515fd3de4a677c16721dab8bb0111c07e8773bc1a8e8b0982e4b968ad9bfa0122379b72c30f17a666406d6d09a1a93b5e791c2adb39e3efac08e44ae1200
|
data/README.adoc
CHANGED
@@ -263,7 +263,7 @@ RelatonBipm::BipmBibliographicItem.from_hash hash
|
|
263
263
|
|
264
264
|
This gem uses following datasets as data sources:
|
265
265
|
- `bipm-data-outcomes` - looking for local directory with the repository https://github.com/metanorma/bipm-data-outcomes
|
266
|
-
- `si-brochute` - looking for local directory with the repository https://github.com/metanorma/bipm-si-brochure
|
266
|
+
- `bipm-si-brochute` - looking for local directory with the repository https://github.com/metanorma/bipm-si-brochure
|
267
267
|
|
268
268
|
The method `RelatonBipm::DataFetcher.fetch(sourece, output: "data", format: "yaml")` fetches all the documents from the datast and save them to the `./data` folder in YAML format.
|
269
269
|
Arguments:
|
@@ -280,7 +280,7 @@ Stopped at: 2022-06-23 09:36:58 +0200
|
|
280
280
|
Done in: 2 sec.
|
281
281
|
=> nil
|
282
282
|
|
283
|
-
RelatonBipm::DataFetcher.fetch "si-brochure"
|
283
|
+
RelatonBipm::DataFetcher.fetch "bipm-si-brochure"
|
284
284
|
Started at: 2022-06-23 09:37:12 +0200
|
285
285
|
Stopped at: 2022-06-23 09:37:12 +0200
|
286
286
|
Done in: 0 sec.
|
@@ -25,7 +25,7 @@ module RelatonBipm
|
|
25
25
|
def self.fetch(source, output: "data", format: "yaml")
|
26
26
|
t1 = Time.now
|
27
27
|
puts "Started at: #{t1}"
|
28
|
-
FileUtils.mkdir_p output
|
28
|
+
FileUtils.mkdir_p output
|
29
29
|
new(output, format).fetch(source)
|
30
30
|
t2 = Time.now
|
31
31
|
puts "Stopped at: #{t2}"
|
@@ -40,7 +40,7 @@ module RelatonBipm
|
|
40
40
|
def fetch(source)
|
41
41
|
case source
|
42
42
|
when "bipm-data-outcomes" then parse_bipm_data_outcomes
|
43
|
-
when "si-brochure" then parse_si_brochure
|
43
|
+
when "bipm-si-brochure" then parse_si_brochure
|
44
44
|
end
|
45
45
|
File.write @index_path, @index.to_yaml, encoding: "UTF-8"
|
46
46
|
end
|
data/lib/relaton_bipm/version.rb
CHANGED
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.12.
|
4
|
+
version: 1.12.2
|
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-
|
11
|
+
date: 2022-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|