miga-base 1.2.7.0 → 1.2.8.2

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: ac1ddd7bd328cd888aa6ba2fba707ad9e0a78f207734584f17639d38b5a505cc
4
- data.tar.gz: 931d56ffbbbb27e8cec80d583b44e740f499e39dd353d7178c28b44d71d962c5
3
+ metadata.gz: 6605edc35cd0b2aec6d095653ff1d9604df81d6a57e341a290cbd213bb18fee3
4
+ data.tar.gz: 2f811051db25da424bdf9f9c89390a4e0cac33fb3c6330e255b369d171e8a4b9
5
5
  SHA512:
6
- metadata.gz: 5521179a1818bf88d0647556ed75445fc7bd7ceaefd1dabf9e84b2d1a8598fcac813dee1243ae7f5381caffa37e278744009ff32a383d0b3d756dd2c63c760a1
7
- data.tar.gz: 985939d0897ccdb1318999cae4a469e20fa58f4a59eac5ee67e9486dec37980c52cad68c215622f78da007b100a9bf6918602bbb713130c31ac32a6e9d745f8e
6
+ metadata.gz: 252fe9abe5ce14ebe86c5250716b9ce541f1faf510bd36ae2d33f4f15f964f3ec735a66db9fa11503b74fb82f16d6a2a5c43d6df3a71b67dacec65462425d759
7
+ data.tar.gz: ef734003e57818b155347ce591e9683420ecfa00cd5b4398c0ed1485fc23108a74d9bd91980d6a2bb4c2481c3d1027805b9083fb9add802b5a30f140926c996d
@@ -0,0 +1,16 @@
1
+ # @package MiGA
2
+ # @license Artistic-2.0
3
+
4
+ require 'miga/cli/action'
5
+
6
+ class MiGA::Cli::Action::Touch < MiGA::Cli::Action
7
+ def parse_cli
8
+ cli.parse do |opt|
9
+ cli.opt_object(opt, [:project, :dataset_opt])
10
+ end
11
+ end
12
+
13
+ def perform
14
+ cli.load_project_or_dataset.save!
15
+ end
16
+ end
data/lib/miga/cli/base.rb CHANGED
@@ -34,6 +34,7 @@ module MiGA::Cli::Base
34
34
  # Objects (Datasets or Projects)
35
35
  edit: 'Edit the metadata of a dataset or project',
36
36
  option: 'Get or set options of a dataset or project',
37
+ touch: 'Change the "last modified" time to now without changes',
37
38
  # System
38
39
  init: 'Initialize MiGA to process new projects',
39
40
  daemon: 'Control the daemon of a MiGA project',
data/lib/miga/dataset.rb CHANGED
@@ -84,6 +84,11 @@ class MiGA::Dataset < MiGA::MiGA
84
84
  pull_hook :on_save
85
85
  end
86
86
 
87
+ ##
88
+ # Currently +save!+ is simply an alias of +save+, for compatibility with the
89
+ # +Project+ interface
90
+ alias :save! :save
91
+
87
92
  ##
88
93
  # Get the type of dataset as Symbol
89
94
  def type
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.2, 7, 0].freeze
15
+ VERSION = [1.2, 8, 2].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(2022, 6, 26)
23
+ VERSION_DATE = Date.new(2022, 8, 14)
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.2.7.0
4
+ version: 1.2.8.2
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: 2022-06-26 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons
@@ -170,6 +170,7 @@ files:
170
170
  - lib/miga/cli/action/tax_index.rb
171
171
  - lib/miga/cli/action/tax_set.rb
172
172
  - lib/miga/cli/action/tax_test.rb
173
+ - lib/miga/cli/action/touch.rb
173
174
  - lib/miga/cli/action/wf.rb
174
175
  - lib/miga/cli/base.rb
175
176
  - lib/miga/cli/objects_helper.rb