Skip to content

Commit

Permalink
Update dependencies, remove Ruby <2.3 support
Browse files Browse the repository at this point in the history
- Version bump to 6.0.0 due to Ruby support change
- Updated 'addressable' and 'rake' gems

Squashed commit of the following:

commit 95e4873
Author: Mark Percival <m@mdp.im>
Date:   Thu Apr 23 15:35:15 2020 +0000

    Update Changelog about travis ruby addition

commit f252777
Author: Mark Percival <m@mdp.im>
Date:   Wed Apr 22 17:47:03 2020 +0000

    Major bump

commit 191ef03
Author: Mark Percival <m@mdp.im>
Date:   Wed Apr 22 17:35:50 2020 +0000

    Add back in 2.3

    2.3 has been EOL'd, but it still compatible with this gems dependencies

commit bafe8bf
Author: Mark Percival <m@mdp.im>
Date:   Wed Apr 22 17:12:59 2020 +0000

    Remove Travis ruby test for 2.0

commit 0919196
Author: Mark Percival <m@mdp.im>
Date:   Wed Apr 22 17:08:45 2020 +0000

    Frozen string fix, updated deps, ruby deprecation

    - Fix issue when using --enable-frozen-string-literal Ruby option #95
      (jeremyevans)
    - Update gems (rake, addressable)
      - Updated gems removes support for Ruby <2.5. Seeing as 2.3 is now
        longer getting security patches, this seems like a non-issue
  • Loading branch information
mdp committed Apr 23, 2020
1 parent 5ec60df commit dd1e55b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,8 +1,9 @@
language: ruby
before_install: gem install bundler -v '<2'
rvm:
- 2.7
- 2.6
- 2.5
- 2.0
- 2.3
script:
- bundle exec rspec
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
### Changelog

### 6.0.0

- Dropping support for Ruby <2.3 (Major version bump)
- Fix issue when using --enable-frozen-string-literal Ruby option #95 (jeremyevans)
- Update gems (rake, addressable)
- Update Travis tests to include Ruby 2.7

### 5.1.0

- Create `random_base32` to perform `random` to avoid breaking changes
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile-2.3
@@ -0,0 +1,10 @@
FROM ruby:2.3

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

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

CMD ["bundle", "exec", "rspec"]
2 changes: 1 addition & 1 deletion Dockerfile-2.0 → Dockerfile-2.7
@@ -1,4 +1,4 @@
FROM ruby:2.0
FROM ruby:2.7

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
Expand Down
2 changes: 1 addition & 1 deletion lib/rotp/version.rb
@@ -1,3 +1,3 @@
module ROTP
VERSION = '5.1.0'.freeze
VERSION = '6.0.0'.freeze
end
5 changes: 3 additions & 2 deletions rotp.gemspec
Expand Up @@ -4,6 +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.license = 'MIT'
s.authors = ['Mark Percival']
s.email = ['mark@markpercival.us']
Expand All @@ -16,9 +17,9 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ['lib']

s.add_runtime_dependency 'addressable', '~> 2.5'
s.add_runtime_dependency 'addressable', '~> 2.7'

s.add_development_dependency 'rake', '~> 10.5'
s.add_development_dependency "rake", "~> 13.0"
s.add_development_dependency 'rspec', '~> 3.5'
s.add_development_dependency 'simplecov', '~> 0.12'
s.add_development_dependency 'timecop', '~> 0.8'
Expand Down

0 comments on commit dd1e55b

Please sign in to comment.