Skip to content

Commit

Permalink
Merge pull request #24 from voxpupuli/tests
Browse files Browse the repository at this point in the history
Cleanup Gemfile, add beaker as runtime dependency
  • Loading branch information
bastelfreak authored Jan 12, 2024
2 parents bd9bc47 + c957816 commit f4104ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
20 changes: 2 additions & 18 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,7 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org"

gemspec

def location_for(place, fake_version = nil)
if place =~ /^git:([^#]*)#(.*)/
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, { :require => false }]
end
end


# We don't put beaker in as a test dependency because we
# don't want to create a transitive dependency
group :acceptance_testing do
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
end

group :release do
gem 'github_changelog_generator', :require => false
gem 'faraday-retry', require: false
gem 'github_changelog_generator', require: false
end
3 changes: 1 addition & 2 deletions beaker-openstack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ Gem::Specification.new do |s|
# Run time dependencies
s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
s.add_runtime_dependency 'fog-openstack', '~> 1.0.0'

s.add_runtime_dependency 'beaker', '~> 5.6'
end

0 comments on commit f4104ba

Please sign in to comment.