hybrid_platforms_conductor 33.0.2 → 33.0.3

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: 6a281c5f005c18646d519869f181257a5de5e2cb8da38634876a0e62a7c48db7
4
- data.tar.gz: 9b602696a09232acf361639ebae5764a849f3c69fa7b68c5d30fab3dc623f344
3
+ metadata.gz: eada2aa4c440c2fdfc69fc7f6ec20d2175d4d52d7405bc192ae32cf7a4850f38
4
+ data.tar.gz: a720caa3b3c584a5c354cb787a5374866bfa40f7740ecf727d14db9a271e09d5
5
5
  SHA512:
6
- metadata.gz: c55e4a9bc145c87cde919a8800eed750367de48b539340bc785ff0b7370bb0deb62c5aeea63aa4569bf3c842f9cfca74f15c1d8762803cb17d4ea22c9575fdad
7
- data.tar.gz: 24fe4e209a118a566ebef1557bcf17155ec7f94f1b3fd6293e9b1f9cf020451a514e27f303d675f5b96dc2490addb98487d14f3cc025da437bff2641c075fd2f
6
+ metadata.gz: 5369c44dd7647622a49f8db8c01722ca0ba96ff7c5e7439fb3c4b208faea076513de0ec47fe3f5a6612807680ecff7b7e2962baf3da569c67c3fd8632dfb9a20
7
+ data.tar.gz: 882ca15df05a0a209a7de8f723cc5ddda0a3ea89ce3b5655d6b5c4968e01adc9aa07437bbd17dafe6363331f373776c84fca307e150a53c69ef800926e54ee92
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v33.0.3](https://github.com/sweet-delights/hybrid-platforms-conductor/compare/v33.0.2...v33.0.3) (2021-06-17 12:42:32)
2
+
3
+ ### Patches
4
+
5
+ * [[#49] Corrected minor warnings and added tests that no warning occurs anymore in rspec](https://github.com/sweet-delights/hybrid-platforms-conductor/commit/57e9936da05431ca469a98d7f079211d9278574f)
6
+
1
7
  # [v33.0.2](https://github.com/sweet-delights/hybrid-platforms-conductor/compare/v33.0.1...v33.0.2) (2021-06-17 11:15:29)
2
8
 
3
9
  ### Patches
@@ -5,7 +5,6 @@ require 'securerandom'
5
5
  require 'time'
6
6
  require 'hybrid_platforms_conductor/actions_executor'
7
7
  require 'hybrid_platforms_conductor/cmd_runner'
8
- require 'hybrid_platforms_conductor/executable'
9
8
  require 'hybrid_platforms_conductor/logger_helpers'
10
9
  require 'hybrid_platforms_conductor/nodes_handler'
11
10
  require 'hybrid_platforms_conductor/services_handler'
@@ -221,7 +221,7 @@ module HybridPlatformsConductor
221
221
  # * *:exited*: The instance has run and is now stopped
222
222
  # * *:error*: The instance is in error
223
223
  def state
224
- if @lxc_details.nil?
224
+ if !defined?(@lxc_details) || @lxc_details.nil?
225
225
  :missing
226
226
  else
227
227
  status = nil
@@ -1,5 +1,5 @@
1
1
  module HybridPlatformsConductor
2
2
 
3
- VERSION = '33.0.2'
3
+ VERSION = '33.0.3'
4
4
 
5
5
  end
@@ -6,6 +6,7 @@ require 'hybrid_platforms_conductor/actions_executor'
6
6
  require 'hybrid_platforms_conductor/cmd_runner'
7
7
  require 'hybrid_platforms_conductor/credentials'
8
8
  require 'hybrid_platforms_conductor/deployer'
9
+ require 'hybrid_platforms_conductor/executable'
9
10
  require 'hybrid_platforms_conductor/log'
10
11
  require 'hybrid_platforms_conductor/nodes_handler'
11
12
  require 'hybrid_platforms_conductor/platform_handler'
@@ -160,6 +161,23 @@ module HybridPlatformsConductorTest
160
161
  }
161
162
  )
162
163
  end
164
+
165
+ config.around do |example|
166
+ # Make sure we activate warnings for the example to be run
167
+ org_warnings = false
168
+ RSpec.configure do |rspec_config|
169
+ org_warnings = rspec_config.warnings?
170
+ rspec_config.warnings = true
171
+ end
172
+ begin
173
+ expect { example.run }.not_to output.to_stderr
174
+ ensure
175
+ RSpec.configure do |rspec_config|
176
+ rspec_config.warnings = org_warnings
177
+ end
178
+ end
179
+ end
180
+
163
181
  end
164
182
 
165
183
  private
@@ -36,6 +36,7 @@ module HybridPlatformsConductorTest
36
36
  @accept_nodes = []
37
37
  @connected_nodes = nil
38
38
  @remote_bash_code = nil
39
+ @remote_copy_code = nil
39
40
  end
40
41
 
41
42
  # Complete an option parser with options meant to control this connector
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybrid_platforms_conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 33.0.2
4
+ version: 33.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan