openhab-scripting 4.47.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openhab/core/actions/audio.rb +47 -0
  3. data/lib/openhab/core/actions/ephemeris.rb +39 -0
  4. data/lib/openhab/core/actions/exec.rb +51 -0
  5. data/lib/openhab/core/actions/http.rb +80 -0
  6. data/lib/openhab/core/actions/ping.rb +30 -0
  7. data/lib/openhab/core/actions/transformation.rb +32 -0
  8. data/lib/openhab/core/actions/voice.rb +36 -0
  9. data/lib/openhab/core/actions.rb +82 -0
  10. data/lib/openhab/core/dependency_tracking.rb +34 -0
  11. data/lib/openhab/core/dto/item_channel_link.rb +33 -0
  12. data/lib/openhab/core/dto/thing.rb +27 -0
  13. data/lib/openhab/core/dto.rb +11 -0
  14. data/lib/openhab/core/entity_lookup.rb +152 -70
  15. data/lib/openhab/core/events/abstract_event.rb +18 -0
  16. data/lib/openhab/core/events/abstract_item_registry_event.rb +36 -0
  17. data/lib/openhab/core/events/abstract_thing_registry_event.rb +40 -0
  18. data/lib/openhab/core/events/item_command_event.rb +78 -0
  19. data/lib/openhab/core/events/item_event.rb +22 -0
  20. data/lib/openhab/core/events/item_state_changed_event.rb +75 -0
  21. data/lib/openhab/core/events/item_state_event.rb +79 -0
  22. data/lib/openhab/core/events/thing_status_info_event.rb +55 -0
  23. data/lib/openhab/core/events.rb +10 -0
  24. data/lib/openhab/core/items/accepted_data_types.rb +29 -0
  25. data/lib/openhab/core/items/color_item.rb +52 -0
  26. data/lib/openhab/core/items/contact_item.rb +52 -0
  27. data/lib/openhab/core/items/date_time_item.rb +59 -0
  28. data/lib/openhab/core/items/dimmer_item.rb +148 -0
  29. data/lib/openhab/core/items/generic_item.rb +292 -0
  30. data/lib/openhab/core/items/group_item.rb +176 -0
  31. data/lib/openhab/{dsl → core}/items/image_item.rb +35 -29
  32. data/lib/openhab/core/items/item.rb +273 -0
  33. data/lib/openhab/core/items/location_item.rb +34 -0
  34. data/lib/openhab/core/items/metadata/hash.rb +433 -0
  35. data/lib/openhab/core/items/metadata/namespace_hash.rb +475 -0
  36. data/lib/openhab/core/items/metadata/provider.rb +48 -0
  37. data/lib/openhab/core/items/metadata.rb +11 -0
  38. data/lib/openhab/core/items/number_item.rb +62 -0
  39. data/lib/openhab/core/items/numeric_item.rb +22 -0
  40. data/lib/openhab/core/items/persistence.rb +416 -0
  41. data/lib/openhab/core/items/player_item.rb +66 -0
  42. data/lib/openhab/core/items/provider.rb +44 -0
  43. data/lib/openhab/core/items/proxy.rb +136 -0
  44. data/lib/openhab/core/items/registry.rb +86 -0
  45. data/lib/openhab/core/items/rollershutter_item.rb +68 -0
  46. data/lib/openhab/core/items/semantics/enumerable.rb +177 -0
  47. data/lib/openhab/core/items/semantics.rb +473 -0
  48. data/lib/openhab/core/items/state_storage.rb +53 -0
  49. data/lib/openhab/core/items/string_item.rb +28 -0
  50. data/lib/openhab/core/items/switch_item.rb +78 -0
  51. data/lib/openhab/core/items.rb +108 -0
  52. data/lib/openhab/{dsl → core}/lazy_array.rb +9 -3
  53. data/lib/openhab/core/profile_factory.rb +132 -0
  54. data/lib/openhab/core/provider.rb +230 -0
  55. data/lib/openhab/core/proxy.rb +130 -0
  56. data/lib/openhab/core/registry.rb +40 -0
  57. data/lib/openhab/core/rules/module.rb +26 -0
  58. data/lib/openhab/core/rules/provider.rb +25 -0
  59. data/lib/openhab/core/rules/registry.rb +76 -0
  60. data/lib/openhab/core/rules/rule.rb +150 -0
  61. data/lib/openhab/core/rules.rb +25 -0
  62. data/lib/openhab/core/script_handling.rb +78 -20
  63. data/lib/openhab/core/things/channel.rb +48 -0
  64. data/lib/openhab/core/things/channel_uid.rb +51 -0
  65. data/lib/openhab/core/things/item_channel_link.rb +33 -0
  66. data/lib/openhab/core/things/links/provider.rb +78 -0
  67. data/lib/openhab/core/things/profile_callback.rb +52 -0
  68. data/lib/openhab/core/things/provider.rb +29 -0
  69. data/lib/openhab/core/things/proxy.rb +87 -0
  70. data/lib/openhab/core/things/registry.rb +73 -0
  71. data/lib/openhab/core/things/thing.rb +194 -0
  72. data/lib/openhab/core/things.rb +22 -0
  73. data/lib/openhab/core/timer.rb +148 -0
  74. data/lib/openhab/{dsl → core}/types/comparable_type.rb +5 -3
  75. data/lib/openhab/{dsl → core}/types/date_time_type.rb +55 -127
  76. data/lib/openhab/{dsl → core}/types/decimal_type.rb +50 -48
  77. data/lib/openhab/{dsl → core}/types/hsb_type.rb +35 -83
  78. data/lib/openhab/core/types/increase_decrease_type.rb +34 -0
  79. data/lib/openhab/core/types/next_previous_type.rb +34 -0
  80. data/lib/openhab/{dsl → core}/types/numeric_type.rb +20 -7
  81. data/lib/openhab/core/types/on_off_type.rb +46 -0
  82. data/lib/openhab/core/types/open_closed_type.rb +41 -0
  83. data/lib/openhab/{dsl → core}/types/percent_type.rb +19 -20
  84. data/lib/openhab/core/types/play_pause_type.rb +38 -0
  85. data/lib/openhab/core/types/point_type.rb +117 -0
  86. data/lib/openhab/core/types/quantity_type.rb +325 -0
  87. data/lib/openhab/core/types/raw_type.rb +26 -0
  88. data/lib/openhab/core/types/refresh_type.rb +27 -0
  89. data/lib/openhab/core/types/rewind_fastforward_type.rb +38 -0
  90. data/lib/openhab/core/types/stop_move_type.rb +34 -0
  91. data/lib/openhab/{dsl → core}/types/string_type.rb +17 -28
  92. data/lib/openhab/{dsl → core}/types/type.rb +42 -40
  93. data/lib/openhab/core/types/un_def_type.rb +38 -0
  94. data/lib/openhab/core/types/up_down_type.rb +50 -0
  95. data/lib/openhab/core/types.rb +82 -0
  96. data/lib/openhab/{dsl → core}/uid.rb +4 -23
  97. data/lib/openhab/core/value_cache.rb +188 -0
  98. data/lib/openhab/core.rb +98 -0
  99. data/lib/openhab/core_ext/between.rb +32 -0
  100. data/lib/openhab/core_ext/ephemeris.rb +53 -0
  101. data/lib/openhab/core_ext/java/class.rb +34 -0
  102. data/lib/openhab/core_ext/java/duration.rb +142 -0
  103. data/lib/openhab/core_ext/java/list.rb +436 -0
  104. data/lib/openhab/core_ext/java/local_date.rb +104 -0
  105. data/lib/openhab/core_ext/java/local_time.rb +118 -0
  106. data/lib/openhab/core_ext/java/map.rb +66 -0
  107. data/lib/openhab/core_ext/java/month.rb +71 -0
  108. data/lib/openhab/core_ext/java/month_day.rb +119 -0
  109. data/lib/openhab/core_ext/java/period.rb +103 -0
  110. data/lib/openhab/core_ext/java/temporal_amount.rb +34 -0
  111. data/lib/openhab/core_ext/java/time.rb +62 -0
  112. data/lib/openhab/core_ext/java/unit.rb +15 -0
  113. data/lib/openhab/core_ext/java/zoned_date_time.rb +213 -0
  114. data/lib/openhab/core_ext/ruby/array.rb +21 -0
  115. data/lib/openhab/core_ext/ruby/date.rb +96 -0
  116. data/lib/openhab/core_ext/ruby/date_time.rb +55 -0
  117. data/lib/openhab/core_ext/ruby/module.rb +15 -0
  118. data/lib/openhab/core_ext/ruby/numeric.rb +195 -0
  119. data/lib/openhab/core_ext/ruby/range.rb +70 -0
  120. data/lib/openhab/core_ext/ruby/symbol.rb +7 -0
  121. data/lib/openhab/core_ext/ruby/time.rb +108 -0
  122. data/lib/openhab/core_ext.rb +18 -0
  123. data/lib/openhab/dsl/debouncer.rb +259 -0
  124. data/lib/openhab/dsl/events/watch_event.rb +18 -0
  125. data/lib/openhab/dsl/events.rb +9 -0
  126. data/lib/openhab/dsl/gems.rb +1 -1
  127. data/lib/openhab/dsl/items/builder.rb +578 -0
  128. data/lib/openhab/dsl/items/ensure.rb +73 -82
  129. data/lib/openhab/dsl/items/timed_command.rb +214 -159
  130. data/lib/openhab/dsl/rules/automation_rule.rb +126 -115
  131. data/lib/openhab/dsl/rules/builder.rb +1935 -0
  132. data/lib/openhab/dsl/rules/guard.rb +51 -114
  133. data/lib/openhab/dsl/rules/name_inference.rb +66 -25
  134. data/lib/openhab/dsl/rules/property.rb +48 -75
  135. data/lib/openhab/dsl/rules/rule_triggers.rb +22 -27
  136. data/lib/openhab/dsl/rules/terse.rb +58 -14
  137. data/lib/openhab/dsl/rules/triggers/changed.rb +48 -94
  138. data/lib/openhab/dsl/rules/triggers/channel.rb +9 -40
  139. data/lib/openhab/dsl/rules/triggers/command.rb +14 -63
  140. data/lib/openhab/dsl/rules/triggers/conditions/duration.rb +34 -69
  141. data/lib/openhab/dsl/rules/triggers/conditions/proc.rb +6 -14
  142. data/lib/openhab/dsl/rules/triggers/cron/cron.rb +48 -82
  143. data/lib/openhab/dsl/rules/triggers/cron/cron_handler.rb +30 -47
  144. data/lib/openhab/dsl/rules/triggers/trigger.rb +7 -28
  145. data/lib/openhab/dsl/rules/triggers/updated.rb +21 -45
  146. data/lib/openhab/dsl/rules/triggers/watch/watch_handler.rb +257 -102
  147. data/lib/openhab/dsl/rules/triggers.rb +12 -0
  148. data/lib/openhab/dsl/rules.rb +8 -0
  149. data/lib/openhab/dsl/things/builder.rb +299 -0
  150. data/lib/openhab/{core → dsl}/thread_local.rb +27 -17
  151. data/lib/openhab/dsl/timer_manager.rb +204 -0
  152. data/lib/openhab/dsl/version.rb +9 -0
  153. data/lib/openhab/dsl.rb +979 -0
  154. data/lib/openhab/log.rb +355 -0
  155. data/lib/openhab/osgi.rb +68 -0
  156. data/lib/openhab/rspec/configuration.rb +56 -0
  157. data/lib/openhab/rspec/example_group.rb +132 -0
  158. data/lib/openhab/rspec/helpers.rb +458 -0
  159. data/lib/openhab/rspec/hooks.rb +113 -0
  160. data/lib/openhab/rspec/jruby.rb +46 -0
  161. data/lib/openhab/rspec/karaf.rb +851 -0
  162. data/lib/openhab/rspec/mocks/bundle_install_support.rb +25 -0
  163. data/lib/openhab/rspec/mocks/bundle_resolver.rb +30 -0
  164. data/lib/openhab/rspec/mocks/event_admin.rb +146 -0
  165. data/lib/openhab/rspec/mocks/instance_method_stasher.rb +22 -0
  166. data/lib/openhab/rspec/mocks/persistence_service.rb +155 -0
  167. data/lib/openhab/rspec/mocks/safe_caller.rb +40 -0
  168. data/lib/openhab/rspec/mocks/space.rb +23 -0
  169. data/lib/openhab/rspec/mocks/synchronous_executor.rb +63 -0
  170. data/lib/openhab/rspec/mocks/thing_handler.rb +76 -0
  171. data/lib/openhab/rspec/mocks/timer.rb +134 -0
  172. data/lib/openhab/rspec/openhab/core/actions.rb +38 -0
  173. data/lib/openhab/rspec/openhab/core/items/proxy.rb +15 -0
  174. data/lib/openhab/rspec/openhab/core/things/proxy.rb +27 -0
  175. data/lib/openhab/rspec/shell.rb +31 -0
  176. data/lib/openhab/rspec/suspend_rules.rb +50 -0
  177. data/lib/openhab/rspec.rb +26 -0
  178. data/lib/openhab/yard/base_helper.rb +19 -0
  179. data/lib/openhab/yard/cli/stats.rb +23 -0
  180. data/lib/openhab/yard/code_objects/group_object.rb +23 -0
  181. data/lib/openhab/yard/code_objects/java/base.rb +31 -0
  182. data/lib/openhab/yard/code_objects/java/class_object.rb +11 -0
  183. data/lib/openhab/yard/code_objects/java/field_object.rb +15 -0
  184. data/lib/openhab/yard/code_objects/java/interface_object.rb +15 -0
  185. data/lib/openhab/yard/code_objects/java/package_object.rb +11 -0
  186. data/lib/openhab/yard/code_objects/java/proxy.rb +23 -0
  187. data/lib/openhab/yard/coderay.rb +17 -0
  188. data/lib/openhab/yard/handlers/jruby/base.rb +58 -0
  189. data/lib/openhab/yard/handlers/jruby/class_handler.rb +18 -0
  190. data/lib/openhab/yard/handlers/jruby/constant_handler.rb +18 -0
  191. data/lib/openhab/yard/handlers/jruby/java_import_handler.rb +30 -0
  192. data/lib/openhab/yard/handlers/jruby/mixin_handler.rb +23 -0
  193. data/lib/openhab/yard/html_helper.rb +78 -0
  194. data/lib/openhab/yard/markdown_helper.rb +148 -0
  195. data/lib/openhab/yard/tags/constant_directive.rb +20 -0
  196. data/lib/openhab/yard/tags/group_directive.rb +24 -0
  197. data/lib/openhab/yard/tags/library.rb +3 -0
  198. data/lib/openhab/yard.rb +38 -0
  199. metadata +475 -106
  200. data/lib/openhab/core/item_proxy.rb +0 -29
  201. data/lib/openhab/core/load_path.rb +0 -19
  202. data/lib/openhab/core/openhab_setup.rb +0 -29
  203. data/lib/openhab/core/osgi.rb +0 -58
  204. data/lib/openhab/core/services.rb +0 -24
  205. data/lib/openhab/dsl/actions.rb +0 -114
  206. data/lib/openhab/dsl/between.rb +0 -25
  207. data/lib/openhab/dsl/channel.rb +0 -43
  208. data/lib/openhab/dsl/dsl.rb +0 -59
  209. data/lib/openhab/dsl/group.rb +0 -54
  210. data/lib/openhab/dsl/imports.rb +0 -21
  211. data/lib/openhab/dsl/items/color_item.rb +0 -76
  212. data/lib/openhab/dsl/items/comparable_item.rb +0 -62
  213. data/lib/openhab/dsl/items/contact_item.rb +0 -41
  214. data/lib/openhab/dsl/items/date_time_item.rb +0 -65
  215. data/lib/openhab/dsl/items/dimmer_item.rb +0 -65
  216. data/lib/openhab/dsl/items/generic_item.rb +0 -229
  217. data/lib/openhab/dsl/items/group_item.rb +0 -127
  218. data/lib/openhab/dsl/items/item_equality.rb +0 -59
  219. data/lib/openhab/dsl/items/item_registry.rb +0 -54
  220. data/lib/openhab/dsl/items/items.rb +0 -109
  221. data/lib/openhab/dsl/items/location_item.rb +0 -59
  222. data/lib/openhab/dsl/items/metadata.rb +0 -326
  223. data/lib/openhab/dsl/items/number_item.rb +0 -17
  224. data/lib/openhab/dsl/items/numeric_item.rb +0 -87
  225. data/lib/openhab/dsl/items/persistence.rb +0 -307
  226. data/lib/openhab/dsl/items/player_item.rb +0 -58
  227. data/lib/openhab/dsl/items/rollershutter_item.rb +0 -51
  228. data/lib/openhab/dsl/items/semantics/enumerable.rb +0 -91
  229. data/lib/openhab/dsl/items/semantics.rb +0 -227
  230. data/lib/openhab/dsl/items/string_item.rb +0 -51
  231. data/lib/openhab/dsl/items/switch_item.rb +0 -70
  232. data/lib/openhab/dsl/monkey_patch/actions/actions.rb +0 -4
  233. data/lib/openhab/dsl/monkey_patch/actions/script_thing_actions.rb +0 -39
  234. data/lib/openhab/dsl/monkey_patch/events/events.rb +0 -7
  235. data/lib/openhab/dsl/monkey_patch/events/item_command.rb +0 -85
  236. data/lib/openhab/dsl/monkey_patch/events/item_event.rb +0 -28
  237. data/lib/openhab/dsl/monkey_patch/events/item_state.rb +0 -61
  238. data/lib/openhab/dsl/monkey_patch/events/item_state_changed.rb +0 -60
  239. data/lib/openhab/dsl/monkey_patch/events/thing_status_info.rb +0 -33
  240. data/lib/openhab/dsl/monkey_patch/java/java.rb +0 -4
  241. data/lib/openhab/dsl/monkey_patch/java/local_time.rb +0 -44
  242. data/lib/openhab/dsl/monkey_patch/java/time_extensions.rb +0 -50
  243. data/lib/openhab/dsl/monkey_patch/java/zoned_date_time.rb +0 -45
  244. data/lib/openhab/dsl/monkey_patch/ruby/number.rb +0 -104
  245. data/lib/openhab/dsl/monkey_patch/ruby/ruby.rb +0 -6
  246. data/lib/openhab/dsl/monkey_patch/ruby/string.rb +0 -47
  247. data/lib/openhab/dsl/monkey_patch/ruby/time.rb +0 -61
  248. data/lib/openhab/dsl/openhab.rb +0 -30
  249. data/lib/openhab/dsl/persistence.rb +0 -27
  250. data/lib/openhab/dsl/rules/item_event.rb +0 -19
  251. data/lib/openhab/dsl/rules/rule.rb +0 -160
  252. data/lib/openhab/dsl/rules/rule_config.rb +0 -147
  253. data/lib/openhab/dsl/rules/triggers/generic.rb +0 -31
  254. data/lib/openhab/dsl/rules/triggers/triggers.rb +0 -11
  255. data/lib/openhab/dsl/rules/triggers/watch/watch.rb +0 -81
  256. data/lib/openhab/dsl/states.rb +0 -89
  257. data/lib/openhab/dsl/things.rb +0 -147
  258. data/lib/openhab/dsl/time/month_day.rb +0 -180
  259. data/lib/openhab/dsl/time/time_of_day.rb +0 -235
  260. data/lib/openhab/dsl/timers/manager.rb +0 -119
  261. data/lib/openhab/dsl/timers/reentrant_timer.rb +0 -38
  262. data/lib/openhab/dsl/timers/timer.rb +0 -132
  263. data/lib/openhab/dsl/timers.rb +0 -77
  264. data/lib/openhab/dsl/types/increase_decrease_type.rb +0 -23
  265. data/lib/openhab/dsl/types/next_previous_type.rb +0 -23
  266. data/lib/openhab/dsl/types/on_off_type.rb +0 -28
  267. data/lib/openhab/dsl/types/open_closed_type.rb +0 -29
  268. data/lib/openhab/dsl/types/play_pause_type.rb +0 -27
  269. data/lib/openhab/dsl/types/point_type.rb +0 -180
  270. data/lib/openhab/dsl/types/quantity_type.rb +0 -265
  271. data/lib/openhab/dsl/types/refresh_type.rb +0 -18
  272. data/lib/openhab/dsl/types/rewind_fastforward_type.rb +0 -33
  273. data/lib/openhab/dsl/types/stop_move_type.rb +0 -23
  274. data/lib/openhab/dsl/types/types.rb +0 -83
  275. data/lib/openhab/dsl/types/un_def_type.rb +0 -22
  276. data/lib/openhab/dsl/types/up_down_type.rb +0 -32
  277. data/lib/openhab/dsl/units.rb +0 -45
  278. data/lib/openhab/log/configuration.rb +0 -21
  279. data/lib/openhab/log/logger.rb +0 -282
  280. data/lib/openhab/version.rb +0 -9
  281. data/lib/openhab.rb +0 -38
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openhab-scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.47.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian O'Connell
8
+ - Cody Cutrer
9
+ - Jimmy Tanagra
8
10
  autorequire:
9
- bindir: exe
11
+ bindir: bin
10
12
  cert_chain: []
11
- date: 2022-12-02 00:00:00.000000000 Z
13
+ date: 2023-03-08 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: bundler
@@ -66,81 +68,433 @@ dependencies:
66
68
  - - "~>"
67
69
  - !ruby/object:Gem::Version
68
70
  version: '0.0'
69
- description: JRuby Helper Libraries for OpenHAB Scripting
71
+ - !ruby/object:Gem::Dependency
72
+ name: cucumber
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '8.0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '8.0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: cuke_linter
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.2'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: '1.2'
99
+ - !ruby/object:Gem::Dependency
100
+ name: gem-release
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '2.2'
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '2.2'
113
+ - !ruby/object:Gem::Dependency
114
+ name: guard-rubocop
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '1.5'
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '1.5'
127
+ - !ruby/object:Gem::Dependency
128
+ name: guard-shell
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '0.7'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '0.7'
141
+ - !ruby/object:Gem::Dependency
142
+ name: guard-yard
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '2.2'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '2.2'
155
+ - !ruby/object:Gem::Dependency
156
+ name: httparty
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '0.20'
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - "~>"
167
+ - !ruby/object:Gem::Version
168
+ version: '0.20'
169
+ - !ruby/object:Gem::Dependency
170
+ name: irb
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "~>"
174
+ - !ruby/object:Gem::Version
175
+ version: '1.4'
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - "~>"
181
+ - !ruby/object:Gem::Version
182
+ version: '1.4'
183
+ - !ruby/object:Gem::Dependency
184
+ name: nokogiri
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: 1.13.9
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: 1.13.9
197
+ - !ruby/object:Gem::Dependency
198
+ name: persistent_httparty
199
+ requirement: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - "~>"
202
+ - !ruby/object:Gem::Version
203
+ version: '0.1'
204
+ type: :development
205
+ prerelease: false
206
+ version_requirements: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - "~>"
209
+ - !ruby/object:Gem::Version
210
+ version: '0.1'
211
+ - !ruby/object:Gem::Dependency
212
+ name: process_exists
213
+ requirement: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '0.2'
218
+ type: :development
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '0.2'
225
+ - !ruby/object:Gem::Dependency
226
+ name: rake
227
+ requirement: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - "~>"
230
+ - !ruby/object:Gem::Version
231
+ version: '13.0'
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - "~>"
237
+ - !ruby/object:Gem::Version
238
+ version: '13.0'
239
+ - !ruby/object:Gem::Dependency
240
+ name: rspec
241
+ requirement: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - "~>"
244
+ - !ruby/object:Gem::Version
245
+ version: '3.11'
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - "~>"
251
+ - !ruby/object:Gem::Version
252
+ version: '3.11'
253
+ - !ruby/object:Gem::Dependency
254
+ name: rubocop
255
+ requirement: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - "~>"
258
+ - !ruby/object:Gem::Version
259
+ version: '1.8'
260
+ type: :development
261
+ prerelease: false
262
+ version_requirements: !ruby/object:Gem::Requirement
263
+ requirements:
264
+ - - "~>"
265
+ - !ruby/object:Gem::Version
266
+ version: '1.8'
267
+ - !ruby/object:Gem::Dependency
268
+ name: rubocop-performance
269
+ requirement: !ruby/object:Gem::Requirement
270
+ requirements:
271
+ - - "~>"
272
+ - !ruby/object:Gem::Version
273
+ version: '1.11'
274
+ type: :development
275
+ prerelease: false
276
+ version_requirements: !ruby/object:Gem::Requirement
277
+ requirements:
278
+ - - "~>"
279
+ - !ruby/object:Gem::Version
280
+ version: '1.11'
281
+ - !ruby/object:Gem::Dependency
282
+ name: rubocop-rake
283
+ requirement: !ruby/object:Gem::Requirement
284
+ requirements:
285
+ - - "~>"
286
+ - !ruby/object:Gem::Version
287
+ version: '0.6'
288
+ type: :development
289
+ prerelease: false
290
+ version_requirements: !ruby/object:Gem::Requirement
291
+ requirements:
292
+ - - "~>"
293
+ - !ruby/object:Gem::Version
294
+ version: '0.6'
295
+ - !ruby/object:Gem::Dependency
296
+ name: rubocop-rspec
297
+ requirement: !ruby/object:Gem::Requirement
298
+ requirements:
299
+ - - "~>"
300
+ - !ruby/object:Gem::Version
301
+ version: '2.11'
302
+ type: :development
303
+ prerelease: false
304
+ version_requirements: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - "~>"
307
+ - !ruby/object:Gem::Version
308
+ version: '2.11'
309
+ - !ruby/object:Gem::Dependency
310
+ name: timecop
311
+ requirement: !ruby/object:Gem::Requirement
312
+ requirements:
313
+ - - "~>"
314
+ - !ruby/object:Gem::Version
315
+ version: '0.9'
316
+ type: :development
317
+ prerelease: false
318
+ version_requirements: !ruby/object:Gem::Requirement
319
+ requirements:
320
+ - - "~>"
321
+ - !ruby/object:Gem::Version
322
+ version: '0.9'
323
+ - !ruby/object:Gem::Dependency
324
+ name: tty-command
325
+ requirement: !ruby/object:Gem::Requirement
326
+ requirements:
327
+ - - "~>"
328
+ - !ruby/object:Gem::Version
329
+ version: '0.10'
330
+ type: :development
331
+ prerelease: false
332
+ version_requirements: !ruby/object:Gem::Requirement
333
+ requirements:
334
+ - - "~>"
335
+ - !ruby/object:Gem::Version
336
+ version: '0.10'
337
+ - !ruby/object:Gem::Dependency
338
+ name: yaml-lint
339
+ requirement: !ruby/object:Gem::Requirement
340
+ requirements:
341
+ - - "~>"
342
+ - !ruby/object:Gem::Version
343
+ version: '0.0'
344
+ type: :development
345
+ prerelease: false
346
+ version_requirements: !ruby/object:Gem::Requirement
347
+ requirements:
348
+ - - "~>"
349
+ - !ruby/object:Gem::Version
350
+ version: '0.0'
351
+ description:
70
352
  email:
71
- - broconne@gmail.com
353
+ - broconne+github@gmail.com
354
+ - cody@cutrer.us
355
+ - jcode@tanagra.id.au
72
356
  executables: []
73
357
  extensions: []
74
358
  extra_rdoc_files: []
75
359
  files:
76
- - lib/openhab.rb
360
+ - lib/openhab/core.rb
361
+ - lib/openhab/core/actions.rb
362
+ - lib/openhab/core/actions/audio.rb
363
+ - lib/openhab/core/actions/ephemeris.rb
364
+ - lib/openhab/core/actions/exec.rb
365
+ - lib/openhab/core/actions/http.rb
366
+ - lib/openhab/core/actions/ping.rb
367
+ - lib/openhab/core/actions/transformation.rb
368
+ - lib/openhab/core/actions/voice.rb
369
+ - lib/openhab/core/dependency_tracking.rb
370
+ - lib/openhab/core/dto.rb
371
+ - lib/openhab/core/dto/item_channel_link.rb
372
+ - lib/openhab/core/dto/thing.rb
77
373
  - lib/openhab/core/entity_lookup.rb
78
- - lib/openhab/core/item_proxy.rb
79
- - lib/openhab/core/load_path.rb
80
- - lib/openhab/core/openhab_setup.rb
81
- - lib/openhab/core/osgi.rb
374
+ - lib/openhab/core/events.rb
375
+ - lib/openhab/core/events/abstract_event.rb
376
+ - lib/openhab/core/events/abstract_item_registry_event.rb
377
+ - lib/openhab/core/events/abstract_thing_registry_event.rb
378
+ - lib/openhab/core/events/item_command_event.rb
379
+ - lib/openhab/core/events/item_event.rb
380
+ - lib/openhab/core/events/item_state_changed_event.rb
381
+ - lib/openhab/core/events/item_state_event.rb
382
+ - lib/openhab/core/events/thing_status_info_event.rb
383
+ - lib/openhab/core/items.rb
384
+ - lib/openhab/core/items/accepted_data_types.rb
385
+ - lib/openhab/core/items/color_item.rb
386
+ - lib/openhab/core/items/contact_item.rb
387
+ - lib/openhab/core/items/date_time_item.rb
388
+ - lib/openhab/core/items/dimmer_item.rb
389
+ - lib/openhab/core/items/generic_item.rb
390
+ - lib/openhab/core/items/group_item.rb
391
+ - lib/openhab/core/items/image_item.rb
392
+ - lib/openhab/core/items/item.rb
393
+ - lib/openhab/core/items/location_item.rb
394
+ - lib/openhab/core/items/metadata.rb
395
+ - lib/openhab/core/items/metadata/hash.rb
396
+ - lib/openhab/core/items/metadata/namespace_hash.rb
397
+ - lib/openhab/core/items/metadata/provider.rb
398
+ - lib/openhab/core/items/number_item.rb
399
+ - lib/openhab/core/items/numeric_item.rb
400
+ - lib/openhab/core/items/persistence.rb
401
+ - lib/openhab/core/items/player_item.rb
402
+ - lib/openhab/core/items/provider.rb
403
+ - lib/openhab/core/items/proxy.rb
404
+ - lib/openhab/core/items/registry.rb
405
+ - lib/openhab/core/items/rollershutter_item.rb
406
+ - lib/openhab/core/items/semantics.rb
407
+ - lib/openhab/core/items/semantics/enumerable.rb
408
+ - lib/openhab/core/items/state_storage.rb
409
+ - lib/openhab/core/items/string_item.rb
410
+ - lib/openhab/core/items/switch_item.rb
411
+ - lib/openhab/core/lazy_array.rb
412
+ - lib/openhab/core/profile_factory.rb
413
+ - lib/openhab/core/provider.rb
414
+ - lib/openhab/core/proxy.rb
415
+ - lib/openhab/core/registry.rb
416
+ - lib/openhab/core/rules.rb
417
+ - lib/openhab/core/rules/module.rb
418
+ - lib/openhab/core/rules/provider.rb
419
+ - lib/openhab/core/rules/registry.rb
420
+ - lib/openhab/core/rules/rule.rb
82
421
  - lib/openhab/core/script_handling.rb
83
- - lib/openhab/core/services.rb
84
- - lib/openhab/core/thread_local.rb
85
- - lib/openhab/dsl/actions.rb
86
- - lib/openhab/dsl/between.rb
87
- - lib/openhab/dsl/channel.rb
88
- - lib/openhab/dsl/dsl.rb
422
+ - lib/openhab/core/things.rb
423
+ - lib/openhab/core/things/channel.rb
424
+ - lib/openhab/core/things/channel_uid.rb
425
+ - lib/openhab/core/things/item_channel_link.rb
426
+ - lib/openhab/core/things/links/provider.rb
427
+ - lib/openhab/core/things/profile_callback.rb
428
+ - lib/openhab/core/things/provider.rb
429
+ - lib/openhab/core/things/proxy.rb
430
+ - lib/openhab/core/things/registry.rb
431
+ - lib/openhab/core/things/thing.rb
432
+ - lib/openhab/core/timer.rb
433
+ - lib/openhab/core/types.rb
434
+ - lib/openhab/core/types/comparable_type.rb
435
+ - lib/openhab/core/types/date_time_type.rb
436
+ - lib/openhab/core/types/decimal_type.rb
437
+ - lib/openhab/core/types/hsb_type.rb
438
+ - lib/openhab/core/types/increase_decrease_type.rb
439
+ - lib/openhab/core/types/next_previous_type.rb
440
+ - lib/openhab/core/types/numeric_type.rb
441
+ - lib/openhab/core/types/on_off_type.rb
442
+ - lib/openhab/core/types/open_closed_type.rb
443
+ - lib/openhab/core/types/percent_type.rb
444
+ - lib/openhab/core/types/play_pause_type.rb
445
+ - lib/openhab/core/types/point_type.rb
446
+ - lib/openhab/core/types/quantity_type.rb
447
+ - lib/openhab/core/types/raw_type.rb
448
+ - lib/openhab/core/types/refresh_type.rb
449
+ - lib/openhab/core/types/rewind_fastforward_type.rb
450
+ - lib/openhab/core/types/stop_move_type.rb
451
+ - lib/openhab/core/types/string_type.rb
452
+ - lib/openhab/core/types/type.rb
453
+ - lib/openhab/core/types/un_def_type.rb
454
+ - lib/openhab/core/types/up_down_type.rb
455
+ - lib/openhab/core/uid.rb
456
+ - lib/openhab/core/value_cache.rb
457
+ - lib/openhab/core_ext.rb
458
+ - lib/openhab/core_ext/between.rb
459
+ - lib/openhab/core_ext/ephemeris.rb
460
+ - lib/openhab/core_ext/java/class.rb
461
+ - lib/openhab/core_ext/java/duration.rb
462
+ - lib/openhab/core_ext/java/list.rb
463
+ - lib/openhab/core_ext/java/local_date.rb
464
+ - lib/openhab/core_ext/java/local_time.rb
465
+ - lib/openhab/core_ext/java/map.rb
466
+ - lib/openhab/core_ext/java/month.rb
467
+ - lib/openhab/core_ext/java/month_day.rb
468
+ - lib/openhab/core_ext/java/period.rb
469
+ - lib/openhab/core_ext/java/temporal_amount.rb
470
+ - lib/openhab/core_ext/java/time.rb
471
+ - lib/openhab/core_ext/java/unit.rb
472
+ - lib/openhab/core_ext/java/zoned_date_time.rb
473
+ - lib/openhab/core_ext/ruby/array.rb
474
+ - lib/openhab/core_ext/ruby/date.rb
475
+ - lib/openhab/core_ext/ruby/date_time.rb
476
+ - lib/openhab/core_ext/ruby/module.rb
477
+ - lib/openhab/core_ext/ruby/numeric.rb
478
+ - lib/openhab/core_ext/ruby/range.rb
479
+ - lib/openhab/core_ext/ruby/symbol.rb
480
+ - lib/openhab/core_ext/ruby/time.rb
481
+ - lib/openhab/dsl.rb
482
+ - lib/openhab/dsl/debouncer.rb
483
+ - lib/openhab/dsl/events.rb
484
+ - lib/openhab/dsl/events/watch_event.rb
89
485
  - lib/openhab/dsl/gems.rb
90
- - lib/openhab/dsl/group.rb
91
- - lib/openhab/dsl/imports.rb
92
- - lib/openhab/dsl/items/color_item.rb
93
- - lib/openhab/dsl/items/comparable_item.rb
94
- - lib/openhab/dsl/items/contact_item.rb
95
- - lib/openhab/dsl/items/date_time_item.rb
96
- - lib/openhab/dsl/items/dimmer_item.rb
486
+ - lib/openhab/dsl/items/builder.rb
97
487
  - lib/openhab/dsl/items/ensure.rb
98
- - lib/openhab/dsl/items/generic_item.rb
99
- - lib/openhab/dsl/items/group_item.rb
100
- - lib/openhab/dsl/items/image_item.rb
101
- - lib/openhab/dsl/items/item_equality.rb
102
- - lib/openhab/dsl/items/item_registry.rb
103
- - lib/openhab/dsl/items/items.rb
104
- - lib/openhab/dsl/items/location_item.rb
105
- - lib/openhab/dsl/items/metadata.rb
106
- - lib/openhab/dsl/items/number_item.rb
107
- - lib/openhab/dsl/items/numeric_item.rb
108
- - lib/openhab/dsl/items/persistence.rb
109
- - lib/openhab/dsl/items/player_item.rb
110
- - lib/openhab/dsl/items/rollershutter_item.rb
111
- - lib/openhab/dsl/items/semantics.rb
112
- - lib/openhab/dsl/items/semantics/enumerable.rb
113
- - lib/openhab/dsl/items/string_item.rb
114
- - lib/openhab/dsl/items/switch_item.rb
115
488
  - lib/openhab/dsl/items/timed_command.rb
116
- - lib/openhab/dsl/lazy_array.rb
117
- - lib/openhab/dsl/monkey_patch/actions/actions.rb
118
- - lib/openhab/dsl/monkey_patch/actions/script_thing_actions.rb
119
- - lib/openhab/dsl/monkey_patch/events/events.rb
120
- - lib/openhab/dsl/monkey_patch/events/item_command.rb
121
- - lib/openhab/dsl/monkey_patch/events/item_event.rb
122
- - lib/openhab/dsl/monkey_patch/events/item_state.rb
123
- - lib/openhab/dsl/monkey_patch/events/item_state_changed.rb
124
- - lib/openhab/dsl/monkey_patch/events/thing_status_info.rb
125
- - lib/openhab/dsl/monkey_patch/java/java.rb
126
- - lib/openhab/dsl/monkey_patch/java/local_time.rb
127
- - lib/openhab/dsl/monkey_patch/java/time_extensions.rb
128
- - lib/openhab/dsl/monkey_patch/java/zoned_date_time.rb
129
- - lib/openhab/dsl/monkey_patch/ruby/number.rb
130
- - lib/openhab/dsl/monkey_patch/ruby/ruby.rb
131
- - lib/openhab/dsl/monkey_patch/ruby/string.rb
132
- - lib/openhab/dsl/monkey_patch/ruby/time.rb
133
- - lib/openhab/dsl/openhab.rb
134
- - lib/openhab/dsl/persistence.rb
489
+ - lib/openhab/dsl/rules.rb
135
490
  - lib/openhab/dsl/rules/automation_rule.rb
491
+ - lib/openhab/dsl/rules/builder.rb
136
492
  - lib/openhab/dsl/rules/guard.rb
137
- - lib/openhab/dsl/rules/item_event.rb
138
493
  - lib/openhab/dsl/rules/name_inference.rb
139
494
  - lib/openhab/dsl/rules/property.rb
140
- - lib/openhab/dsl/rules/rule.rb
141
- - lib/openhab/dsl/rules/rule_config.rb
142
495
  - lib/openhab/dsl/rules/rule_triggers.rb
143
496
  - lib/openhab/dsl/rules/terse.rb
497
+ - lib/openhab/dsl/rules/triggers.rb
144
498
  - lib/openhab/dsl/rules/triggers/changed.rb
145
499
  - lib/openhab/dsl/rules/triggers/channel.rb
146
500
  - lib/openhab/dsl/rules/triggers/command.rb
@@ -148,52 +502,67 @@ files:
148
502
  - lib/openhab/dsl/rules/triggers/conditions/proc.rb
149
503
  - lib/openhab/dsl/rules/triggers/cron/cron.rb
150
504
  - lib/openhab/dsl/rules/triggers/cron/cron_handler.rb
151
- - lib/openhab/dsl/rules/triggers/generic.rb
152
505
  - lib/openhab/dsl/rules/triggers/trigger.rb
153
- - lib/openhab/dsl/rules/triggers/triggers.rb
154
506
  - lib/openhab/dsl/rules/triggers/updated.rb
155
- - lib/openhab/dsl/rules/triggers/watch/watch.rb
156
507
  - lib/openhab/dsl/rules/triggers/watch/watch_handler.rb
157
- - lib/openhab/dsl/states.rb
158
- - lib/openhab/dsl/things.rb
159
- - lib/openhab/dsl/time/month_day.rb
160
- - lib/openhab/dsl/time/time_of_day.rb
161
- - lib/openhab/dsl/timers.rb
162
- - lib/openhab/dsl/timers/manager.rb
163
- - lib/openhab/dsl/timers/reentrant_timer.rb
164
- - lib/openhab/dsl/timers/timer.rb
165
- - lib/openhab/dsl/types/comparable_type.rb
166
- - lib/openhab/dsl/types/date_time_type.rb
167
- - lib/openhab/dsl/types/decimal_type.rb
168
- - lib/openhab/dsl/types/hsb_type.rb
169
- - lib/openhab/dsl/types/increase_decrease_type.rb
170
- - lib/openhab/dsl/types/next_previous_type.rb
171
- - lib/openhab/dsl/types/numeric_type.rb
172
- - lib/openhab/dsl/types/on_off_type.rb
173
- - lib/openhab/dsl/types/open_closed_type.rb
174
- - lib/openhab/dsl/types/percent_type.rb
175
- - lib/openhab/dsl/types/play_pause_type.rb
176
- - lib/openhab/dsl/types/point_type.rb
177
- - lib/openhab/dsl/types/quantity_type.rb
178
- - lib/openhab/dsl/types/refresh_type.rb
179
- - lib/openhab/dsl/types/rewind_fastforward_type.rb
180
- - lib/openhab/dsl/types/stop_move_type.rb
181
- - lib/openhab/dsl/types/string_type.rb
182
- - lib/openhab/dsl/types/type.rb
183
- - lib/openhab/dsl/types/types.rb
184
- - lib/openhab/dsl/types/un_def_type.rb
185
- - lib/openhab/dsl/types/up_down_type.rb
186
- - lib/openhab/dsl/uid.rb
187
- - lib/openhab/dsl/units.rb
188
- - lib/openhab/log/configuration.rb
189
- - lib/openhab/log/logger.rb
190
- - lib/openhab/version.rb
191
- homepage: https://boc-tothefuture.github.io/openhab-jruby/
192
- licenses: []
508
+ - lib/openhab/dsl/things/builder.rb
509
+ - lib/openhab/dsl/thread_local.rb
510
+ - lib/openhab/dsl/timer_manager.rb
511
+ - lib/openhab/dsl/version.rb
512
+ - lib/openhab/log.rb
513
+ - lib/openhab/osgi.rb
514
+ - lib/openhab/rspec.rb
515
+ - lib/openhab/rspec/configuration.rb
516
+ - lib/openhab/rspec/example_group.rb
517
+ - lib/openhab/rspec/helpers.rb
518
+ - lib/openhab/rspec/hooks.rb
519
+ - lib/openhab/rspec/jruby.rb
520
+ - lib/openhab/rspec/karaf.rb
521
+ - lib/openhab/rspec/mocks/bundle_install_support.rb
522
+ - lib/openhab/rspec/mocks/bundle_resolver.rb
523
+ - lib/openhab/rspec/mocks/event_admin.rb
524
+ - lib/openhab/rspec/mocks/instance_method_stasher.rb
525
+ - lib/openhab/rspec/mocks/persistence_service.rb
526
+ - lib/openhab/rspec/mocks/safe_caller.rb
527
+ - lib/openhab/rspec/mocks/space.rb
528
+ - lib/openhab/rspec/mocks/synchronous_executor.rb
529
+ - lib/openhab/rspec/mocks/thing_handler.rb
530
+ - lib/openhab/rspec/mocks/timer.rb
531
+ - lib/openhab/rspec/openhab/core/actions.rb
532
+ - lib/openhab/rspec/openhab/core/items/proxy.rb
533
+ - lib/openhab/rspec/openhab/core/things/proxy.rb
534
+ - lib/openhab/rspec/shell.rb
535
+ - lib/openhab/rspec/suspend_rules.rb
536
+ - lib/openhab/yard.rb
537
+ - lib/openhab/yard/base_helper.rb
538
+ - lib/openhab/yard/cli/stats.rb
539
+ - lib/openhab/yard/code_objects/group_object.rb
540
+ - lib/openhab/yard/code_objects/java/base.rb
541
+ - lib/openhab/yard/code_objects/java/class_object.rb
542
+ - lib/openhab/yard/code_objects/java/field_object.rb
543
+ - lib/openhab/yard/code_objects/java/interface_object.rb
544
+ - lib/openhab/yard/code_objects/java/package_object.rb
545
+ - lib/openhab/yard/code_objects/java/proxy.rb
546
+ - lib/openhab/yard/coderay.rb
547
+ - lib/openhab/yard/handlers/jruby/base.rb
548
+ - lib/openhab/yard/handlers/jruby/class_handler.rb
549
+ - lib/openhab/yard/handlers/jruby/constant_handler.rb
550
+ - lib/openhab/yard/handlers/jruby/java_import_handler.rb
551
+ - lib/openhab/yard/handlers/jruby/mixin_handler.rb
552
+ - lib/openhab/yard/html_helper.rb
553
+ - lib/openhab/yard/markdown_helper.rb
554
+ - lib/openhab/yard/tags/constant_directive.rb
555
+ - lib/openhab/yard/tags/group_directive.rb
556
+ - lib/openhab/yard/tags/library.rb
557
+ homepage: https://openhab.github.io/openhab-jruby/
558
+ licenses:
559
+ - EPL-2.0
193
560
  metadata:
194
- homepage_uri: https://boc-tothefuture.github.io/openhab-jruby/
195
- source_code_uri: https://github.com/boc-tothefuture/openhab-jruby
196
- changelog_uri: https://github.com/boc-tothefuture/openhab-jruby/blob/main/CHANGELOG.md
561
+ homepage_uri: https://openhab.github.io/openhab-jruby/
562
+ source_code_uri: https://github.com/openhab/openhab-jruby
563
+ documentation_uri: https://openhab.github.io/openhab-jruby/
564
+ changelog_uri: https://openhab.github.io/openhab-jruby/file.CHANGELOG.html
565
+ rubygems_mfa_required: 'true'
197
566
  post_install_message:
198
567
  rdoc_options: []
199
568
  require_paths:
@@ -209,8 +578,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
578
  - !ruby/object:Gem::Version
210
579
  version: '0'
211
580
  requirements: []
212
- rubygems_version: 3.0.3.1
581
+ rubygems_version: 3.3.26
213
582
  signing_key:
214
583
  specification_version: 4
215
- summary: JRuby Helper Libraries for OpenHAB Scripting
584
+ summary: JRuby Helper Libraries for openHAB Scripting
216
585
  test_files: []
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'delegate'
4
- require 'forwardable'
5
-
6
- module OpenHAB
7
- module Core
8
- # Class is a proxy to underlying item
9
- class ItemProxy < Delegator
10
- extend Forwardable
11
- def_delegators :__getobj__, :class, :is_a?, :kind_of?, :instance_of?
12
-
13
- #
14
- # Set the proxy item (called by super)
15
- #
16
- def __setobj__(item)
17
- # Convert name to java version for faster lookups
18
- @item_name = item.name.to_java
19
- end
20
-
21
- #
22
- # Lookup item from item registry
23
- #
24
- def __getobj__
25
- $ir.get(@item_name)
26
- end
27
- end
28
- end
29
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OpenHAB
4
- #
5
- # Core support for OpenHAB JRuby Library
6
- #
7
- module Core
8
- #
9
- # JRuby isn't respecting $RUBYLIB when run embedded inside of OpenHAB, so do it manually
10
- #
11
- def self.add_rubylib_to_load_path
12
- ENV['RUBYLIB']&.split(File::PATH_SEPARATOR)&.each do |path|
13
- next if path.empty?
14
-
15
- $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
16
- end
17
- end
18
- end
19
- end