Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ ruby2_keywords :delegating_method
Bug reports and pull requests are welcome on [GitHub] or
[Ruby Issue Tracking System].

## Development

After checking out the repo, run `bundle install` to install dependencies.
Then, run `bundle exec rake test` to run the tests.

To test on older Ruby versions, you can use docker. E.g. to test on Ruby 2.0,
use `docker-compose run ruby-2.0`.

## License

The gem is available as open source under the terms of the
Expand Down
57 changes: 57 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: '3.0'

services:
ruby-2.0:
image: ruby:2.0
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.1:
image: ruby:2.1
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.2:
image: ruby:2.2
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.3:
image: ruby:2.3
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.4:
image: ruby:2.4
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.5:
image: ruby:2.5
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.6:
image: ruby:2.6
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-2.7:
image: ruby:2.7
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
ruby-3.0:
image: ruby:3.0
volumes:
- .:/app
command:
bash -c 'cd /app && bundle install && bundle exec rake test'
1 change: 1 addition & 0 deletions ruby2_keywords.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |s|
s.files = [
"lib/ruby2_keywords.rb",
]
s.required_ruby_version = '>= 2.0.0'
s.add_development_dependency 'test-unit', '>= 2.2'
s.add_development_dependency 'rake'
end