openhab-scripting 5.15.0 → 5.15.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: 11409728d3f0ecb384da9099355fea4728020aa1de1d494d3085dddea518e16c
4
- data.tar.gz: d4daa321f0b779b0c9f47ccc405cdafd3a71f55666e173cb29315a7f948b2029
3
+ metadata.gz: a2150062e6b4a58f888b09bb106f39cb57c7e67749b85dfc13978a8437702e33
4
+ data.tar.gz: 22cfc6729962a702bae8ecc83d26280e4967834a8235bd7ee9ac8f3596796f50
5
5
  SHA512:
6
- metadata.gz: b8eee772f02cf086af4db419ecaa5752b21393302533f6fea628a6e9bc50d7e986b1815e03c71de7acba63a13088f46d3e73e96d416a1869a7e2b9fe627764ea
7
- data.tar.gz: 4ebdb8fb5d81c4429188163e4ced5aabf2ee8a33797b540a32e0e81024a67ac7143728b7679181ca26a4856f8e7e6ed291b5f4bb9427c1df2a744eb6fcb75dd1
6
+ metadata.gz: bfab71ec2435493bafdf61bf447a34a644e366494a9ccdf174a98d9035b1cc8fd9828ca174c5288d2c41a5798cb6ea2bad8bd78f492cb5564f0f3cbf6fcf7023
7
+ data.tar.gz: 36ff08d089054720805effeb0fa16557b767a87b8238c45d7c3c2e5d5fc12ac0dffae5b0f2f7226435e68c5ddfb03a252a8ad12e680f422695040869865716cb
@@ -144,12 +144,14 @@ module OpenHAB
144
144
  if @builder_proxy
145
145
  old_obj = @builder_proxy.__getobj__
146
146
  @builder_proxy.__setobj__(self)
147
- yield @builder_proxy
147
+ begin
148
+ yield @builder_proxy
149
+ ensure
150
+ @builder_proxy.__setobj__(old_obj)
151
+ end
148
152
  else
149
153
  instance_eval_with_dummy_items(&block)
150
154
  end
151
- ensure
152
- @builder_proxy&.__setobj__(old_obj)
153
155
  end
154
156
 
155
157
  # Adds one or more new rules for setting the label color
@@ -663,16 +665,18 @@ module OpenHAB
663
665
  # @example
664
666
  # # This creates a buttongrid to emulate a TV remote control
665
667
  # sitemaps.build do
666
- # buttongrid item: LivingRoom_TV_RCButton, buttons: [
667
- # [1, 1, "BACK", "Back", "f7:return"],
668
- # [1, 2, "HOME", "Menu", "material:apps"],
669
- # [1, 3, "YELLOW", "Search", "f7:search"],
670
- # [2, 2, "UP", "Up", "f7:arrowtriangle_up"],
671
- # [4, 2, "DOWN", "Down", "f7:arrowtriangle_down"],
672
- # [3, 1, "LEFT", "Left", "f7:arrowtriangle_left"],
673
- # [3, 3, "RIGHT", "Right", "f7:arrowtriangle_right"],
674
- # [3, 2, "ENTER", "Enter", "material:adjust"]
675
- # ]
668
+ # sitemap "remote", label: "TV Remote Control" do
669
+ # buttongrid item: LivingRoom_TV_RCButton, buttons: [
670
+ # [1, 1, "BACK", "Back", "f7:return"],
671
+ # [1, 2, "HOME", "Menu", "material:apps"],
672
+ # [1, 3, "YELLOW", "Search", "f7:search"],
673
+ # [2, 2, "UP", "Up", "f7:arrowtriangle_up"],
674
+ # [4, 2, "DOWN", "Down", "f7:arrowtriangle_down"],
675
+ # [3, 1, "LEFT", "Left", "f7:arrowtriangle_left"],
676
+ # [3, 3, "RIGHT", "Right", "f7:arrowtriangle_right"],
677
+ # [3, 2, "ENTER", "Enter", "material:adjust"]
678
+ # ]
679
+ # end
676
680
  # end
677
681
  #
678
682
  # @see https://www.openhab.org/docs/ui/sitemaps.html#element-type-buttongrid
@@ -4,6 +4,6 @@ module OpenHAB
4
4
  module DSL
5
5
  # Version of openHAB helper libraries
6
6
  # @return [String]
7
- VERSION = "5.15.0"
7
+ VERSION = "5.15.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openhab-scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.15.0
4
+ version: 5.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian O'Connell