miga-base 1.2.15.3 → 1.2.15.4

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: c8e93dacf22109315db1d728842aae389effaa22308f25542a212ce20f0771d9
4
- data.tar.gz: ceed6c3f232a7c7667961d0f523cb01f0bc1b9ce0cd219b3913137906b88324c
3
+ metadata.gz: 8ee87db325ab9759e42953f999099553c0921eca9fc6739db3b132f624b93177
4
+ data.tar.gz: e423b05412fba8256e0b3d9a6b8411c70b1f45d6addfe01129e842319d24baf9
5
5
  SHA512:
6
- metadata.gz: cfbcc90311328262b30dec39ce7da62e0a094bde25cdc1f1b5cda422f3f6af789b226f15376947730ebeb6b2202c4408da98d46951f1e94204661deeac87f75c
7
- data.tar.gz: 5cd5507efbb8f6feed3b158b229ac1aa325ac403096efa4636f972622e32393ecac7b9ffff9299d173aa7dfd2c78fad4787a3e7ef3b738ceb61f97d9160ff54c
6
+ metadata.gz: 8e473e720985fc09ac49e26f13c2734150fbbaf72422185de7982502e042ae1629e824ae0a2c50fe5cd2f0bfc642ceb6f79dc55cfb13d44be1ca828a639bb16d
7
+ data.tar.gz: 7692908ef9e69de7526955956a9c6c4d74d3939d69509ac1bfb1a4981248fab6fc2b54091ea56a380f80c913ceddb6179b09f4f1fef37a10cfe1b50bd7e8e74b
data/lib/miga/daemon.rb CHANGED
@@ -128,7 +128,10 @@ class MiGA::Daemon < MiGA::MiGA
128
128
  say(*msg) if verbosity >= level
129
129
  end
130
130
 
131
- alias miga_say say
131
+ ##
132
+ # Rename the orginal MiGA::MiGA.say as +miga_say+, allowing
133
+ # external reporting since MiGA::Daemon overwrites +say+
134
+ alias_method :miga_say, :say
132
135
 
133
136
  ##
134
137
  # Same as +l_say+ with +level = 1+
data/lib/miga/lair.rb CHANGED
@@ -143,14 +143,16 @@ class MiGA::Lair < MiGA::MiGA
143
143
  end
144
144
 
145
145
  ##
146
- # Launch daemon for the MiGA::Project +project+
146
+ # Launch daemon for the MiGA::Project +project+ and returns the corresponding
147
+ # MiGA::Daemon object
147
148
  def launch_daemon(project)
148
149
  say "Launching daemon: #{project.path}"
149
- d = MiGA::Daemon.new(project, options[:json])
150
- d.runopts(:shutdown_when_done, true) unless options[:keep_inactive]
150
+ daemon = MiGA::Daemon.new(project, options[:json])
151
+ daemon.runopts(:shutdown_when_done, true) unless options[:keep_inactive]
151
152
  unless options[:dry]
152
- d.start
153
+ daemon.start
153
154
  sleep(1) # <- to make sure the daemon started up (it takes about 0.1 secs)
154
155
  end
156
+ daemon
155
157
  end
156
158
  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.2, 15, 3].freeze
15
+ VERSION = [1.2, 15, 4].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.15.3
4
+ version: 1.2.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R