Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.0.0 Update #97

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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/base32.rb
Expand Up @@ -28,7 +28,7 @@ def decode(str)

def encode(b)
data = b.unpack('c*')
out = ''
out = String.new
buffer = data[0]
idx = 1
bits_left = 8
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