rspec-openhab-scripting 0.0.5-java → 0.0.6-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rspec/openhab/version.rb +1 -1
- data/lib/rspec-openhab-scripting.rb +7 -1
- metadata +1 -2
- data/lib/rspec/bundler/inline.rb +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 36b9bb280e4fd6893f93a5ca0197dd4a7a08c286b4cc6835c44f81c487e497fe
|
|
4
|
+
data.tar.gz: 6390495a9d8ff5a522f86f4e1d50155bf93d45a14a59b9ba3b9147c49cd27548
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c571aa03ed3fc7521be9e65924b274204a7ab4382101467af88847350632a7cc159795cbb238765af6fd6b0abb41b2934b656037571de5a3936972905784255e
|
|
7
|
+
data.tar.gz: 757a9bcfbbe1d5361500413b5e6cd74b6a1eda00df2483abb22e200f4d1ae3845fa6bfafcb4501b3b1060f91710a721e1727db3a695447a90aa7f91ef3b8643a
|
|
@@ -79,10 +79,16 @@ require "rspec/openhab/items"
|
|
|
79
79
|
|
|
80
80
|
RSpec::OpenHAB::Items.populate_items_from_api(api)
|
|
81
81
|
|
|
82
|
+
# make bundler/inline _not_ destroy the already existing load path
|
|
83
|
+
module Bundler
|
|
84
|
+
module SharedHelpers
|
|
85
|
+
def clean_load_path; end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
82
89
|
# load rules files
|
|
83
90
|
OPENHAB_AUTOMATION_PATH = "#{org.openhab.core.OpenHAB.config_folder}/automation/jsr223/ruby/personal"
|
|
84
91
|
|
|
85
|
-
# set up some environment the rules files expect
|
|
86
92
|
Dir["#{OPENHAB_AUTOMATION_PATH}/*.rb"].each do |f|
|
|
87
93
|
load f
|
|
88
94
|
rescue Exception => e # rubocop:disable Lint/RescueException
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-openhab-scripting
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Cody Cutrer
|
|
@@ -172,7 +172,6 @@ extra_rdoc_files: []
|
|
|
172
172
|
files:
|
|
173
173
|
- lib/rspec-openhab-scripting.rb
|
|
174
174
|
- lib/rspec-openhab-scripting_jars.rb
|
|
175
|
-
- lib/rspec/bundler/inline.rb
|
|
176
175
|
- lib/rspec/openhab/api.rb
|
|
177
176
|
- lib/rspec/openhab/core/cron_scheduler.rb
|
|
178
177
|
- lib/rspec/openhab/core/load_path.rb
|
data/lib/rspec/bundler/inline.rb
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Bundler
|
|
4
|
-
class DummyDsl
|
|
5
|
-
def source(*); end
|
|
6
|
-
end
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def gemfile(*, &block)
|
|
10
|
-
# needs to be a no-op, since we're already running in the context of bundler
|
|
11
|
-
Bundler::DummyDsl.new.instance_eval(&block)
|
|
12
|
-
end
|