Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #88 from domcleal/18-deps-gemfile
Browse files Browse the repository at this point in the history
Move Ruby 1.8/1.9 gem pinnings to Gemfile
  • Loading branch information
jrgarcia authored Aug 22, 2016
2 parents cd942ec + 13cbc2a commit 9f5abf5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
source 'https://rubygems.org'

gemspec

gem 'json', '< 2' if RUBY_VERSION.start_with?('1.')
gem 'nokogiri', '< 1.6' if RUBY_VERSION.start_with?('1.8.')
13 changes: 13 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ be used alongside the official documentation[http://pubs.vmware.com/vsphere-60/t

gem install rbvmomi

=== Support for older Ruby versions

RbVmomi supports Ruby 1.8.7 and higher, but certain dependencies may need
pinning to older versions to get a compatible set of gems.

On Ruby 1.8.7:

* use +nokogiri+ 1.5.x (Gemfile: <code>gem 'nokogiri', '< 1.6'</code>)

On both Ruby 1.9 and 1.8.7:

* use +json+ 1.x (Gemfile: <code>gem 'json', '< 2'</code>)

== Usage

A simple example of turning on a VM:
Expand Down
4 changes: 2 additions & 2 deletions rbvmomi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
spec.extensions << 'ext/mkrf_conf.rb'

spec.add_runtime_dependency('builder', '~> 3.2')
spec.add_runtime_dependency('json', '~> 1.8')
spec.add_runtime_dependency('nokogiri', '~> 1.5.11')
spec.add_runtime_dependency('json', '>= 1.8')
spec.add_runtime_dependency('nokogiri', '~> 1.5')
spec.add_runtime_dependency('trollop', '~> 2.1')

spec.add_development_dependency('rake', '~> 10.5')
Expand Down

0 comments on commit 9f5abf5

Please sign in to comment.