Skip to content

Commit

Permalink
Merge pull request #919 from puppetlabs/cat_643
Browse files Browse the repository at this point in the history
(CAT-643) - Add puppet_forge to pdk-runtime
  • Loading branch information
joshcooper authored Oct 14, 2024
2 parents 9c408c4 + db0d848 commit 903be86
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 6 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-net_http.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
component 'rubygem-faraday-net_http' do |pkg, settings, platform|
pkg.version '1.0.2'
pkg.md5sum 'b8e560b8cd7c008a7fd1686143428337'
version = settings[:rubygem_faraday_net_http_version] || '1.0.2'

case version
when '1.0.2'
pkg.version '1.0.2'
pkg.md5sum 'b8e560b8cd7c008a7fd1686143428337'
when '3.3.0'
pkg.version '3.3.0'
pkg.md5sum '7e6378aaa271587dd4109795c0a05769'
else
raise "rubygem-faraday-net_http version #{version} is not supported"
end

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
15 changes: 13 additions & 2 deletions configs/components/rubygem-puppet_forge.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
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'
else
raise "rubygem-puppet_forge version #{version} is not supported"
end

instance_eval File.read('configs/components/_base-rubygem.rb')
end
5 changes: 5 additions & 0 deletions configs/projects/_pdk-components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
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'
proj.component 'rubygem-faraday-net_http'

# Bundler
proj.component 'rubygem-bundler'
Expand Down Expand Up @@ -99,5 +103,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?
3 changes: 3 additions & 0 deletions configs/projects/pdk-runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +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')
proj.setting(:rubygem_faraday_net_http_version, '3.3.0')

platform = proj.get_platform

Expand Down

0 comments on commit 903be86

Please sign in to comment.