Skip to content

Commit

Permalink
Allow for Ruby 3.0 (#105)
Browse files Browse the repository at this point in the history
Update to allow for Ruby 3

- Closes #104
- Update gemspec to allow Ruby 3
- Add docker file for 3.0rc
- Update docker-compose to include the new Dockerfile
- Bump to 6.2.0
mdp authored Sep 30, 2020
1 parent f1ee66a commit 62874be
Showing 5 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
### Changelog

### 6.2.0

- Update to expand compatibility with Ruby 3. This was only a change to the
gemspec, no code changes were necessary.

### 6.1.0

- Fixing URI encoding issues again, breaking out into it's own module
12 changes: 12 additions & 0 deletions Dockerfile-3.0-rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ruby:3.0-rc

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/
COPY . /usr/src/app
RUN gem install bundler
RUN bundle install

CMD ["bundle", "exec", "rspec"]

7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -28,3 +28,10 @@ services:
volumes:
- "./lib:/usr/src/app/lib"
- "./spec:/usr/src/app/spec"
ruby_3_0_rc:
build:
context: .
dockerfile: Dockerfile-3.0-rc
volumes:
- "./lib:/usr/src/app/lib"
- "./spec:/usr/src/app/spec"
2 changes: 1 addition & 1 deletion lib/rotp/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ROTP
VERSION = '6.1.0'.freeze
VERSION = '6.2.0'.freeze
end
2 changes: 1 addition & 1 deletion rotp.gemspec
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
s.name = 'rotp'
s.version = ROTP::VERSION
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '~> 2.3'
s.required_ruby_version = '>= 2.3'
s.license = 'MIT'
s.authors = ['Mark Percival']
s.email = ['mark@markpercival.us']

0 comments on commit 62874be

Please sign in to comment.