miga-base 1.3.6.0 → 1.3.6.1

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: a9035e8f6ccd641c75bedc38b5f78d3eb1815c51956d399728b1e862c2920cbb
4
- data.tar.gz: 2ffdecb639083a3a40d2bab3a39f1df92cb22279314ede2a5a843b278c8be9ee
3
+ metadata.gz: 51d2b93599ee94cbf863b737016a37c32d63bc80c8ef80a8b5dbb52257e6f8b5
4
+ data.tar.gz: 7dced09173180bd58d8ba0feef1a90ecf00d3fc55154ebae4c34d861b0e1e566
5
5
  SHA512:
6
- metadata.gz: 42db29082a3b8097f8ec6f55839202d79e8d00496d55bab8093e4355a26f9133249506266e7f0eb64acea18fb91885abc493a0fe92c81c0eef27ec11f08d3eff
7
- data.tar.gz: 5b4ce9ae27ac4542e2af836176dde909f013461b9916f1d1f4cfc0831d6e494d5de76c57d9c7b64ebd87aefd21a2c79edf55a0192838b6e589be21e9e5a4ebb1
6
+ metadata.gz: 0bbaf2de062ecbb74a9d9636e2fb1478e56edfc5c23f6c3733a183114af86f5efc6cc678d71b1437e5825edeeb57efe932a00172610edac07172555ff5ef568d
7
+ data.tar.gz: 610f728fd400987765779a6df88869af8611ea928cbc2853fac673a897cb3fbd09ec3eac2e1dc0d827257ce046cd67ab674a41892536520dd38bb93d9ebb66b7
@@ -149,9 +149,12 @@ class MiGA::Cli::Action::Db < MiGA::Cli::Action
149
149
  MiGA::Json.parse(file)
150
150
  end
151
151
 
152
+ def local_manifest_file
153
+ File.join(cli[:local], '_local_manif.json')
154
+ end
155
+
152
156
  def local_manifest
153
- file = File.join(cli[:local], '_local_manif.json')
154
- MiGA::Json.parse(file) if File.exist?(file)
157
+ MiGA::Json.parse(local_manifest_file) if File.exist?(local_manifest_file)
155
158
  end
156
159
 
157
160
  def db_requested(manif)
@@ -249,14 +252,13 @@ class MiGA::Cli::Action::Db < MiGA::Cli::Action
249
252
 
250
253
  def register_database(manif, db, ver)
251
254
  cli.say "Registering database locally"
252
- local_manif = local_manifest || {}
253
- reg[:last_update] = Time.now.to_s
255
+ reg = local_manifest.merge(last_update: Time.now.to_s)
254
256
  reg[:databases] ||= {}
255
257
  reg[:databases][cli[:database]] ||= {}
256
258
  reg[:databases][cli[:database]][:manif_last_update] = manif[:last_update]
257
259
  reg[:databases][cli[:database]][:manif_host] = manif[:host]
258
- db.each { |k, v| reg[:databases][cli[:database]][k] = v }
260
+ reg[:databases][cli[:database]].merge! db
259
261
  reg[:databases][cli[:database]][:local_version] = ver
260
- MiGA::Json.generate(reg, local_manif)
262
+ MiGA::Json.generate(reg, local_manifest_file)
261
263
  end
262
264
  end
data/lib/miga/version.rb CHANGED
@@ -12,7 +12,7 @@ module MiGA
12
12
  # - String indicating release status:
13
13
  # - rc* release candidate, not released as gem
14
14
  # - [0-9]+ stable release, released as gem
15
- VERSION = [1.3, 6, 0].freeze
15
+ VERSION = [1.3, 6, 1].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
@@ -20,7 +20,7 @@ module MiGA
20
20
 
21
21
  ##
22
22
  # Date of the current gem relese.
23
- VERSION_DATE = Date.new(2023, 4, 25)
23
+ VERSION_DATE = Date.new(2023, 5, 1)
24
24
 
25
25
  ##
26
26
  # References of MiGA
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6.0
4
+ version: 1.3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-25 00:00:00.000000000 Z
11
+ date: 2023-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons