Skip to content

Commit

Permalink
Update Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Jan 31, 2024
1 parent ff8e095 commit 04a0ade
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
if ENV.fetch('BUNDLE_FOREMAN', '1') == '0'
source 'https://rubygems.org'
else
foreman_path = Dir['./foreman', '../foreman', '../../foreman']
foreman_path.map! { |path| File.join(path, 'Gemfile') }
foreman_gemfile = foreman_path.detect { |p| File.exist?(p) }
raise 'Foreman have not been found!' unless foreman_gemfile

foreman_gemfile = File.expand_path(foreman_gemfile)
eval_gemfile foreman_gemfile
gemspec name: 'foreman_puppet'

# remove deps, we want to redefine
temporary_deletes = %w[theforeman-rubocop]
temporary_deletes.concat(%w[foreman_puppet]).each do |dep_name|
dep = dependencies.detect { |d| d.name == dep_name }
dependencies.delete(dep) if dep
end
gem 'theforeman-rubocop', '~> 0.1.1', groups: %i[development rubocop]
end

gemspec

gem 'theforeman-rubocop', '~> 0.1.1', groups: %i[development rubocop]

0 comments on commit 04a0ade

Please sign in to comment.