Skip to content

Commit

Permalink
Add Ruby 3.2 & Drop Ruby 2.6 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jturkel authored Jan 9, 2023
1 parent 241cbca commit 20b0cfd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
23 changes: 12 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ version: 2.1
jobs:
lint:
docker:
- image: salsify/ruby_ci:2.6.6
working_directory: ~/avromatic
- image: salsify/ruby_ci:2.7.7
working_directory: ~/avrolution
steps:
- checkout
- restore_cache:
keys:
- v2-gems-ruby-2.6.6-{{ checksum "avromatic.gemspec" }}-{{ checksum "Gemfile" }}
- v2-gems-ruby-2.6.6-
- v2-gems-ruby-2.7.7-{{ checksum "avrolution.gemspec" }}-{{ checksum "Gemfile" }}
- v2-gems-ruby-2.7.7-
- run:
name: Install Gems
command: |
Expand All @@ -18,7 +18,7 @@ jobs:
bundle clean
fi
- save_cache:
key: v2-gems-ruby-2.6.6-{{ checksum "avromatic.gemspec" }}-{{ checksum "Gemfile" }}
key: v2-gems-ruby-2.7.7-{{ checksum "avrolution.gemspec" }}-{{ checksum "Gemfile" }}
paths:
- "vendor/bundle"
- "gemfiles/vendor/bundle"
Expand All @@ -33,12 +33,12 @@ jobs:
- image: salsify/ruby_ci:<< parameters.ruby-version >>
environment:
CIRCLE_TEST_REPORTS: "test-results"
working_directory: ~/avromatic
working_directory: ~/avrolution
steps:
- checkout
- restore_cache:
keys:
- v2-gems-ruby-<< parameters.ruby-version >>-{{ checksum "avromatic.gemspec" }}-{{ checksum "Gemfile" }}
- v2-gems-ruby-<< parameters.ruby-version >>-{{ checksum "avrolution.gemspec" }}-{{ checksum "Gemfile" }}
- v2-gems-ruby-<< parameters.ruby-version >>-
- run:
name: Install Gems
Expand All @@ -48,7 +48,7 @@ jobs:
bundle clean
fi
- save_cache:
key: v2-gems-ruby-<< parameters.ruby-version >>-{{ checksum "avromatic.gemspec" }}-{{ checksum "Gemfile" }}
key: v2-gems-ruby-<< parameters.ruby-version >>-{{ checksum "avrolution.gemspec" }}-{{ checksum "Gemfile" }}
paths:
- "vendor/bundle"
- "gemfiles/vendor/bundle"
Expand All @@ -66,6 +66,7 @@ workflows:
matrix:
parameters:
ruby-version:
- "2.6.6"
- "2.7.2"
- "3.0.0"
- "2.7.7"
- "3.0.5"
- "3.1.3"
- "3.2.0"
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_gem:
salsify_rubocop: conf/rubocop.yml

AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 2.7
Exclude:
- 'vendor/**/*'
- 'gemfiles/vendor/**/*'
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# avrolution

## v0.9.0
- Add support for Ruby 3.2.
- Drop support for Ruby 2.6.
-
## v0.8.0

- Added the ability to register all schemas found under `Avrolution.root` with the task
`rake avro:register_all_schemas`.

Expand Down
6 changes: 4 additions & 2 deletions avrolution.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ 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.6'
spec.required_ruby_version = '>= 2.7'

spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'fakefs'
spec.add_development_dependency 'overcommit'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.8'
spec.add_development_dependency 'rspec', '~> 3.12'
spec.add_development_dependency 'rspec-its'
spec.add_development_dependency 'rspec_junit_formatter'
# rspec-mocks 3.12.2+ is required for Ruby 3.2.0 support
spec.add_development_dependency 'rspec-mocks', '>= 3.12.2'
spec.add_development_dependency 'salsify_rubocop', '~> 1.0.1'
spec.add_development_dependency 'simplecov'

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

module Avrolution
VERSION = '0.8.0'
VERSION = '0.9.0'
end

0 comments on commit 20b0cfd

Please sign in to comment.