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 +4 -4
- data/lib/miga/cli/action/db.rb +8 -6
- data/lib/miga/version.rb +2 -2
- 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: 51d2b93599ee94cbf863b737016a37c32d63bc80c8ef80a8b5dbb52257e6f8b5
|
|
4
|
+
data.tar.gz: 7dced09173180bd58d8ba0feef1a90ecf00d3fc55154ebae4c34d861b0e1e566
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bbaf2de062ecbb74a9d9636e2fb1478e56edfc5c23f6c3733a183114af86f5efc6cc678d71b1437e5825edeeb57efe932a00172610edac07172555ff5ef568d
|
|
7
|
+
data.tar.gz: 610f728fd400987765779a6df88869af8611ea928cbc2853fac673a897cb3fbd09ec3eac2e1dc0d827257ce046cd67ab674a41892536520dd38bb93d9ebb66b7
|
data/lib/miga/cli/action/db.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
260
|
+
reg[:databases][cli[:database]].merge! db
|
|
259
261
|
reg[:databases][cli[:database]][:local_version] = ver
|
|
260
|
-
MiGA::Json.generate(reg,
|
|
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,
|
|
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,
|
|
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.
|
|
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-
|
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: daemons
|