From f2d01bdd777a3ec24211dcafabd5d1532f81de75 Mon Sep 17 00:00:00 2001 From: Rick Liu <84006250+rick-bl@users.noreply.github.com> Date: Wed, 19 Jan 2022 10:53:18 +0100 Subject: [PATCH] Support airbrake 13 & airbrake-ruby 6 (#16) --- .circleci/config.yml | 10 +++++----- .ruby-version | 2 +- blinkist-airbrake-scrubber.gemspec | 4 ++-- lib/blinkist-airbrake-scrubber/version.rb | 2 +- spec/specs/version_spec.rb | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 84b8c52..834a9cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,16 +10,16 @@ jobs: steps: - gem/setup-and-test: gemspec: blinkist-airbrake-scrubber.gemspec - bundler-version: 2.2.19 - test-with-ruby-2-3-8: + bundler-version: 2.3.5 + test-with-ruby-2-7: working_directory: ~/repo executor: name: gem/default - tag: 2.3.8 + tag: 2.7.5 steps: - gem/setup-and-test: gemspec: blinkist-airbrake-scrubber.gemspec - bundler-version: 1.17.3 + bundler-version: 2.3.5 build-and-release: working_directory: ~/repo executor: gem/default @@ -34,7 +34,7 @@ workflows: test: jobs: - test-with-ruby-latest - - test-with-ruby-2-3-8 + - test-with-ruby-2-7 - build-and-release: requires: - test-with-ruby-latest diff --git a/.ruby-version b/.ruby-version index 2c9b4ef..fd2a018 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.3 +3.1.0 diff --git a/blinkist-airbrake-scrubber.gemspec b/blinkist-airbrake-scrubber.gemspec index 85b737a..d3bbc01 100644 --- a/blinkist-airbrake-scrubber.gemspec +++ b/blinkist-airbrake-scrubber.gemspec @@ -14,8 +14,8 @@ Gem::Specification.new do |gem| gem.homepage = "https://github.com/blinkist/airbrake-scrubber" gem.license = "MIT" - # Airbrake - gem.add_dependency "airbrake", ">= 9", "< 12" + # https://github.com/airbrake/airbrake + gem.add_dependency "airbrake", ">= 9", "< 14" gem.files = Dir["{lib,spec}/**/*", "README.md", "Rakefile", "Gemfile", "*.gemspec"] gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) } diff --git a/lib/blinkist-airbrake-scrubber/version.rb b/lib/blinkist-airbrake-scrubber/version.rb index 4d72253..7f89cba 100644 --- a/lib/blinkist-airbrake-scrubber/version.rb +++ b/lib/blinkist-airbrake-scrubber/version.rb @@ -3,7 +3,7 @@ module Blinkist module AirbrakeScrubber - VERSION = "4.4.0" + VERSION = "5.0.0" end end diff --git a/spec/specs/version_spec.rb b/spec/specs/version_spec.rb index 4e58590..0326f60 100644 --- a/spec/specs/version_spec.rb +++ b/spec/specs/version_spec.rb @@ -7,11 +7,11 @@ it 'provides the current version' do version = Blinkist::AirbrakeScrubber::VERSION expect(version).to_not be nil - expect(version.instance_of?(String)).to be true + expect(version).to be_a String end - it 'equals 4.4.0 for auto-check purposes' do + it 'equals 5.0.0 for auto-check purposes' do version = Blinkist::AirbrakeScrubber::VERSION - expect(version).to eq '4.4.0' + expect(version).to eq '5.0.0' end end