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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 452c7efc10863231dddcf973d6bba23c40756b5e2bb4eae6a6fe05f1454a8fcc
4
- data.tar.gz: 559200bd9b5700cfa2f11f69bfa379ae4fe2da10a12a1a0395e1eeb2710cd88e
3
+ metadata.gz: f72be2cca386ea571c29f89147975799b222b4963cef7376c91580dcf23de4a5
4
+ data.tar.gz: d0f69061787446919b32ea8321b6fed58ff0b7e6eae56908c4db4fe0b4ed3945
5
5
  SHA512:
6
- metadata.gz: 07ec7af51e53a3ecd5fae8fcd4870d8debcbcd4630ad5d8936b9e884e2ed127cfe3a26a6930af742a08067d3f129a7135c1374b3f684d795f00d2b5c6fa56ced
7
- data.tar.gz: c04e0cee65e8e3ea11dff07868c7f633e8d82cd61d6962eb4788e871275e0f08639ae1947d3b4e2b29f00884e82e77ad9589ae0b2b9c672c8ee9b1289b874e5d
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 unless Dir.exist? 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
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.12.1".freeze
2
+ VERSION = "1.12.2".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.12.1
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-06-28 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug