rspec-openhab-scripting 1.1.0 → 1.1.1

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: 5e3e336c4b70557c83f8116331678ecc50f0ec67326049b70302893903d48f18
4
- data.tar.gz: 7d10a10b19aeacbc89eba86b0c40875c7c6f43a0b1529fc9af7ec06ab569d0bc
3
+ metadata.gz: b3e08291229b6ba16bf670b83a5da8c2b9ad232fe0a172f93f638fb58c29333e
4
+ data.tar.gz: 2a0dc65c3af431891d3dd510b1c4b564166c1bdd5646d835fe9ab260547c27b4
5
5
  SHA512:
6
- metadata.gz: 6f6eaf2489819f42da8e95f5a8095ead7314c62a6f338d4d605bb6e924848cafd318abe97fbd0503bf48ae43dc747f6663c917b3c597e5c6ec99515dd088a7c7
7
- data.tar.gz: c3a04761c79f529c49b11597ae63bfd409ab2a117f24af666a2638d541690d908c4258efdaaec5f01921c7680f8c643f8bcfe5f99abc8c0d67b285c40df27a96
6
+ metadata.gz: 9beb9af4cd20df2bf8266eb9964e0489215a8dacd9bc4f577c98fd6cf68314eb4c5c79f49e88ba7408b67c5c7be2b2aa21e39539d17e781abeae340e477f63a8
7
+ data.tar.gz: edcc13533f1e4f90aa6d2e218d0283125e797213956b0a0772e67aa29d577eabffe6ac3a3dcf53fcb930514caf01e8480a8bce6f94117bb1a467304695eb4943
@@ -8,8 +8,10 @@ module RSpec
8
8
  module Mocks
9
9
  class CallbacksMap < java.util.HashMap
10
10
  def put(_rule_uid, trigger_handler)
11
- trigger_handler.executor.shutdown_now
12
- trigger_handler.executor = SynchronousExecutor.instance
11
+ if trigger_handler.executor
12
+ trigger_handler.executor.shutdown_now
13
+ trigger_handler.executor = SynchronousExecutor.instance
14
+ end
13
15
  super
14
16
  end
15
17
  end
@@ -46,7 +46,7 @@ module RSpec
46
46
  config.after do
47
47
  # remove rules created during the spec
48
48
  (::OpenHAB::Core.rule_registry.all.map(&:uid) - @known_rules).each do |uid|
49
- ::OpenHAB::Core.rule_registry.remove(uid)
49
+ remove_rule(uid) if defined?(remove_rule)
50
50
  end
51
51
  $ir.remove_provider(@item_provider) if instance_variable_defined?(:@item_provider) && @item_provider
52
52
  ::OpenHAB::Core::ItemProxy.reset_cache
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module OpenHAB
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-openhab-scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday