Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug enabled rubygems to track down nil spec issue #439

Merged
merged 1 commit into from
Jul 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 44 additions & 32 deletions config/software/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,51 +24,63 @@
dependency "ruby"
end

unless windows?
version "1.8.29" do
source md5: "a57fec0af33e2e2e1dbb3a68f6cc7269"
end
version "1.8.29" do
source md5: "a57fec0af33e2e2e1dbb3a68f6cc7269"
end

version "1.8.24" do
source md5: "3a555b9d579f6a1a1e110628f5110c6b"
end
version "1.8.24" do
source md5: "3a555b9d579f6a1a1e110628f5110c6b"
end

# NOTE: this is the last version of rubygems before the 2.2.x change to native gem install location
#
# https://github.com/rubygems/rubygems/issues/874
#
# This is a breaking change for omnibus clients. Chef-11 needs to be pinned to 2.1.11 for eternity.
version "2.1.11" do
source md5: "b561b7aaa70d387e230688066e46e448"
end
# NOTE: this is the last version of rubygems before the 2.2.x change to native gem install location
#
# https://github.com/rubygems/rubygems/issues/874
#
# This is a breaking change for omnibus clients. Chef-11 needs to be pinned to 2.1.11 for eternity.
version "2.1.11" do
source md5: "b561b7aaa70d387e230688066e46e448"
end

version "2.2.1" do
source md5: "1f0017af0ad3d3ed52665132f80e7443"
end
version "2.2.1" do
source md5: "1f0017af0ad3d3ed52665132f80e7443"
end

version "2.4.1" do
source md5: "7e39c31806bbf9268296d03bd97ce718"
end
version "2.4.1" do
source md5: "7e39c31806bbf9268296d03bd97ce718"
end

version "2.4.4" do
source md5: "440a89ad6a3b1b7a69b034233cc4658e"
end
version "2.4.4" do
source md5: "440a89ad6a3b1b7a69b034233cc4658e"
end

version "2.4.5" do
source md5: "5918319a439c33ac75fbbad7fd60749d"
end
version "2.4.5" do
source md5: "5918319a439c33ac75fbbad7fd60749d"
end

# NOTE: overwriting source at the top level seems to be required for this to work.
source git: 'git@github.com:danielsdeleo/rubygems.git'
#source url: "http://production.cf.rubygems.org/rubygems/rubygems-#{version}.tgz"

source url: "http://production.cf.rubygems.org/rubygems/rubygems-#{version}.tgz"
version "v2.4.4_plus_debug" do
source git: 'git@github.com:danielsdeleo/rubygems.git'
end

relative_path "rubygems-#{version}"
version "2.4.4.debug.1" do
source git: 'git@github.com:danielsdeleo/rubygems.git'
end

# NOTE: this is only gonna work when pulling from github
relative_path "rubygems"

build do
env = with_embedded_path

ruby "setup.rb --no-ri --no-rdoc", env: env

if windows?
command "gem update --system #{version} --no-ri --no-rdoc", env: env
else
ruby "setup.rb --no-ri --no-rdoc", env: env
# After installing ruby, we need to rerun the command that patches devkit
# functionality into rubygems.
embedded_dir = "#{install_dir}/embedded"
ruby "dk.rb install", env: env, cwd: embedded_dir
end
end