openhab-scripting 2.24.0 → 2.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/dsl/group.rb +5 -4
- data/lib/openhab/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6a3905160edfd4bf027cb1afbac0af180f0e79641b4558a875d0f89cc275f8
|
4
|
+
data.tar.gz: 97bc0f35a27b2ccd0fdcac64bfa0e5228b89a68085d5bf8213514e38f33a2add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39c074134bcd470a537c57256c57203ad1b750daa7137feea17a18dbc457c990dea3b2a985d271a9d6f5d4f7ae9c215c2444cdd4745ca6ae51aee4eebba8ae0f
|
7
|
+
data.tar.gz: a8d60e555d4dc743bfdcda7e222281cb40e5fcd4bbea970e0d5473791e1f5e4d2cc590fa8256ba7d60a88a0c661ec7fb13ddc458d923e91166f3228333669926
|
data/lib/openhab/dsl/group.rb
CHANGED
@@ -47,7 +47,7 @@ module OpenHAB
|
|
47
47
|
class Group < SimpleDelegator
|
48
48
|
extend Forwardable
|
49
49
|
|
50
|
-
java_import
|
50
|
+
java_import Java::OrgOpenhabCoreItems::GroupItem
|
51
51
|
|
52
52
|
# @return [org.openhab.core.items.GroupItem] OpenHAB Java Group Item
|
53
53
|
attr_accessor :group
|
@@ -56,8 +56,9 @@ module OpenHAB
|
|
56
56
|
# @!method $2
|
57
57
|
# Forwards to org.openhab.core.items.GroupItem
|
58
58
|
# @see org::openhab::core::items::GroupItem
|
59
|
-
|
60
|
-
|
59
|
+
%i[name label << command].each do |method|
|
60
|
+
def_delegator :@group, method
|
61
|
+
end
|
61
62
|
|
62
63
|
#
|
63
64
|
# Gets members of this group that are themselves a group
|
@@ -65,7 +66,7 @@ module OpenHAB
|
|
65
66
|
# @return [Set] Set of members that are of type group
|
66
67
|
#
|
67
68
|
def groups
|
68
|
-
group.members.grep(
|
69
|
+
group.members.grep(GroupItem)
|
69
70
|
end
|
70
71
|
|
71
72
|
#
|
data/lib/openhab/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openhab-scripting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian O'Connell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|