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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3e08291229b6ba16bf670b83a5da8c2b9ad232fe0a172f93f638fb58c29333e
|
4
|
+
data.tar.gz: 2a0dc65c3af431891d3dd510b1c4b564166c1bdd5646d835fe9ab260547c27b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
12
|
-
|
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
|
data/lib/rspec/openhab/hooks.rb
CHANGED
@@ -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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|