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

Commit

Permalink
Drop End-Of-Life ruby versions (#181)
Browse files Browse the repository at this point in the history
Drop support for rubies older than 2.4.
  • Loading branch information
agrare authored Jul 31, 2020
1 parent da5ca21 commit 0b0f0c9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
language: ruby
rvm:
- 1.9.3
- 2.2.10
- 2.3.8
- 2.4.5
- 2.5.3
- jruby-9.1.17.0
- jruby-9.2.5.0
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.1
- jruby-9.2.12.0
- ruby-head
- jruby-head
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@
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.')
gem 'test-unit', '~> 2.5' if RUBY_VERSION.start_with?('1.8.')
2 changes: 1 addition & 1 deletion rbvmomi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency('yard', '~> 0.9.5')
spec.add_development_dependency('test-unit', '>= 2.5')

spec.required_ruby_version = '>= 1.8.7'
spec.required_ruby_version = '>= 2.4.1'
end
6 changes: 2 additions & 4 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT

unless /^1.8/ =~ RUBY_VERSION
require 'simplecov'
SimpleCov.start { add_filter '/test/' }
end
require 'simplecov'
SimpleCov.start { add_filter '/test/' }

require 'rbvmomi'
VIM = RbVmomi::VIM
Expand Down
2 changes: 1 addition & 1 deletion test/test_serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_keyvalue
EOS

obj = { 'a' => 'b', :c => 'd' }
check <<-EOS, obj, 'KeyValue', true unless RUBY_VERSION =~ /^1.8/
check <<-EOS, obj, 'KeyValue', true
<root>
<key>a</key>
<value>b</value>
Expand Down

0 comments on commit 0b0f0c9

Please sign in to comment.