Skip to content

Commit

Permalink
(CAT-643) - Add puppet_forge
Browse files Browse the repository at this point in the history
  • Loading branch information
danadoherty639 committed Oct 8, 2024
1 parent dd4b02c commit 39fd3b3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
6 changes: 6 additions & 0 deletions configs/components/rubygem-faraday-follow_redirects.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
component 'rubygem-faraday-follow_redirects' do |pkg, settings, platform|
pkg.version '0.3.0'
pkg.md5sum '75fa678fa40b54a94e51efc1600a6461'

instance_eval File.read('configs/components/_base-rubygem.rb')
end
14 changes: 12 additions & 2 deletions configs/components/rubygem-faraday.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
component 'rubygem-faraday' do |pkg, settings, platform|
pkg.version '1.10.3'
pkg.md5sum 'c7b56130721c0b055c071bec593e2446'
version = settings[:rubygem_faraday_version] || '1.10.3'

case version
when '1.10.3'
pkg.version '1.10.3'
pkg.md5sum 'c7b56130721c0b055c071bec593e2446'
when '2.12.0'
pkg.version '2.12.0'
pkg.md5sum 'c0248b00a32c46b64cd2a172c96409ec'
else
raise "rubygem-faraday version #{version} is not supported"
end

instance_eval File.read('configs/components/_base-rubygem.rb')
end
18 changes: 16 additions & 2 deletions configs/components/rubygem-puppet_forge.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
component 'rubygem-puppet_forge' do |pkg, settings, platform|
pkg.version '3.2.0'
pkg.md5sum '501d5f9f742007504d0d60ce6cf0c27f'
version = settings[:rubygem_puppet_forge_version] || '3.2.0'
pkg.version version

case version
when '3.2.0'
pkg.version '3.2.0'
pkg.md5sum '501d5f9f742007504d0d60ce6cf0c27f'
when '5.0.4'
pkg.version '5.0.4'
pkg.md5sum '04a2ca2f027ed41d9142ced587b71bd7'
when '6.0.0'
pkg.version '6.0.0'
pkg.md5sum '9913aa456a1c852e851b10ecee60d61d'
else
raise "rubygem-puppet_forge version #{version} is not supported"
end

instance_eval File.read('configs/components/_base-rubygem.rb')
end
4 changes: 4 additions & 0 deletions configs/projects/_pdk-components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
proj.component 'rubygem-fast_gettext'
proj.component 'rubygem-gettext-setup'
proj.component 'rubygem-minitar'
proj.component 'rubygem-faraday'
proj.component 'rubygem-faraday-follow_redirects'
proj.component 'rubygem-semantic_puppet'

# Bundler
proj.component 'rubygem-bundler'
Expand Down Expand Up @@ -99,5 +102,6 @@
proj.component 'rubygem-json_pure'
proj.component 'rubygem-diff-lcs'
proj.component 'rubygem-pathspec'
proj.component 'rubygem-puppet_forge'

proj.component 'ansicon' if platform.is_windows?
4 changes: 3 additions & 1 deletion configs/projects/pdk-runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
proj.setting(:rubygem_fast_gettext_version, '1.1.2')
proj.setting(:rubygem_gettext_version, '3.2.2')
proj.setting(:rubygem_gettext_setup_version, '0.34')

proj.setting(:rubygem_puppet_forge_version, '5.0.4')
proj.setting(:rubygem_faraday_version, '2.12.0')

platform = proj.get_platform

proj.version_from_git
Expand Down

0 comments on commit 39fd3b3

Please sign in to comment.