Skip to content

Commit 0f6f545

Browse files
committed
bypass version constraints for runtime openhab version gems
Cucumber was failing to install gems that depend on our "dummy" openhab version gem created dynamically at runtime. Because these gems do not exist during CLI call, the dependency check fails. This PR adds the `--force` flag to the `gem install` command Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
1 parent 9aa9635 commit 0f6f545

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rakelib/openhab.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ namespace :openhab do
336336
task deploy: %i[download build] do |_task|
337337
mkdir_p gem_home
338338
gem_file = File.join(PACKAGE_DIR, "openhab-scripting-#{OpenHAB::DSL::VERSION}.gem")
339-
fail_on_error("gem install #{gem_file} -i #{gem_home} --no-document")
339+
fail_on_error("gem install #{gem_file} -i #{gem_home} --no-document --force")
340340
end
341341

342342
desc "Clean up local gems"

rakelib/test.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ require "cucumber/rake/task"
55
desc "Run Cucumber Features"
66
task :features, [:feature] => ["openhab:warmup", "openhab:deploy"] do |_, args|
77
Cucumber::Rake::Task.new(:features) do |t|
8-
t.cucumber_opts = "--format pretty #{args[:feature]}"
8+
t.cucumber_opts = ["--format", "pretty", args[:feature]].compact
99
end
1010
end

0 commit comments

Comments
 (0)