Skip to content

Commit

Permalink
Merge pull request #42 from nwise/allow-ruby-3
Browse files Browse the repository at this point in the history
Allow usage in Ruby 3 projects
  • Loading branch information
raszi authored Jan 27, 2021
2 parents 8022200 + 9eaef98 commit 77603ca
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:

strategy:
matrix:
ruby: [2.5, 2.6, 2.7]
ruby: [2.5, 2.6, 2.7, 3.0]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Update the RubyGems system software
run: gem update --system
- name: Update Bundler
run: bundle update --bundler
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Update the RubyGems system software
run: gem update --system
- name: Update Bundler
run: bundle update --bundler
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ language: ruby
rvm:
- 2.5.0
- 2.6.0
- 3.0.0
before_install:
- gem update --system
- bundle update --bundler
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cleanup_vendor (0.5.0)
cleanup_vendor (0.6.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion cleanup_vendor.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '~> 2.5'
spec.required_ruby_version = '> 2.5'

spec.add_development_dependency 'bundler', '~> 2.1'
spec.add_development_dependency 'gem-release', '~> 2.1'
Expand Down
1 change: 1 addition & 0 deletions lib/cleanup_vendor.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'fileutils'
require 'yaml'

require 'cleanup_vendor/version'
Expand Down
2 changes: 1 addition & 1 deletion lib/cleanup_vendor/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CleanupVendor
VERSION = '0.5.0'
VERSION = '0.6.0'
end

0 comments on commit 77603ca

Please sign in to comment.