[Pkg-puppet-devel] [facter] 09/352: Maint: Only try to install json gem for ruby 1.8
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit 65c7b4e0772c6e38f54730f04a55f24e43b7c78e
Author: Josh Cooper <josh at puppetlabs.com>
Date: Fri Sep 6 10:38:22 2013 -0700
Maint: Only try to install json gem for ruby 1.8
The json gem contains native code, so a compiler must be present in
order to install the gem (bundle install). On Windows, we intentionally
do not install the devkit, mainly for security reasons.
However, the json gem is only required when running ruby 1.8, so we
confine the Gemfile accordingly. This resolves the issue on Windows,
because we only support ruby 1.9 on that platform.
---
Gemfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Gemfile b/Gemfile
index 51e3614..5f7178e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -17,7 +17,7 @@ group :development, :test do
gem 'facter', ">= 1.0.0", :path => File.expand_path("..", __FILE__)
gem 'rspec', "~> 2.11.0"
gem 'mocha', "~> 0.10.5"
- gem 'json', "~> 1.7"
+ gem 'json', "~> 1.7", :platforms => :ruby_18
gem 'puppetlabs_spec_helper'
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list