Skip to content

Commit

Permalink
Merge pull request #44 from gocardless/v4.0.0
Browse files Browse the repository at this point in the history
Prepare for 4.0.0 release
  • Loading branch information
ameykusurkar authored Aug 23, 2022
2 parents 62411c0 + f9c720e commit c6c5265
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 20 deletions.
21 changes: 8 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ references:

- run: bundle exec rubocop
jobs:
build-ruby24:
docker:
- image: ruby:2.4
steps: *steps
build-ruby25:
docker:
- image: ruby:2.5
steps: *steps
build-ruby26:
docker:
- image: ruby:2.6
Expand All @@ -49,17 +41,20 @@ jobs:
docker:
- image: ruby:2.7
steps: *steps
build-jruby91:
build-ruby3:
docker:
- image: ruby:3
steps: *steps
build-jruby93:
docker:
- image: jruby:9.1
- image: jruby:9.3
steps: *steps

workflows:
version: 2
tests:
jobs:
- build-ruby24
- build-ruby25
- build-ruby26
- build-ruby27
- build-jruby91
- build-ruby3
- build-jruby93
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AllCops:
Exclude:
- prius.gemspec
- vendor/**/*
TargetRubyVersion: 2.2
TargetRubyVersion: 2.6

# Limit lines to 80 characters.
LineLength:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 4.0.0

* Add support for Ruby 3.0
* Enforce Ruby 2.6 as minimum required version
* Drop support for Ruby 2.2, 2.3, 2.4, 2.5
* Drop support for JRuby versions < 9.3.x (implicity enforced by C Ruby version 2.6 as minimum)

# 3.0.0

* Enforce Ruby 2.2 as minimum required version
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Environmentally-friendly application config for Ruby.

[![Gem Version](https://badge.fury.io/rb/prius.svg)](http://badge.fury.io/rb/prius)
[![Build Status](https://travis-ci.org/gocardless/prius.svg?branch=master)](https://travis-ci.org/gocardless/prius)
[![Build Status](https://circleci.com/gh/gocardless/prius.svg?style=svg)](https://app.circleci.com/pipelines/github/gocardless/prius)

Prius helps you guarantee that your environment variables are:

Expand Down
2 changes: 2 additions & 0 deletions lib/prius.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "prius/registry"
require "prius/railtie" if defined?(Rails)

Expand Down
2 changes: 2 additions & 0 deletions lib/prius/errors.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Prius
class MissingValueError < StandardError; end
class TypeMismatchError < StandardError; end
Expand Down
2 changes: 2 additions & 0 deletions lib/prius/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Prius
class Railtie < Rails::Railtie
config.before_configuration do
Expand Down
2 changes: 2 additions & 0 deletions lib/prius/registry.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "prius/errors"

module Prius
Expand Down
4 changes: 3 additions & 1 deletion lib/prius/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Prius
VERSION = "3.0.0".freeze
VERSION = "4.0.0"
end
9 changes: 5 additions & 4 deletions prius.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'prius/version'
Gem::Specification.new do |spec|
spec.name = "prius"
spec.version = Prius::VERSION
spec.authors = ["Harry Marr"]
spec.authors = ["GoCardless Engineering"]
spec.email = ["[email protected]"]
spec.description = %q{Environmentally-friendly config}
spec.summary = spec.description
Expand All @@ -18,9 +18,10 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.2"
spec.required_ruby_version = ">= 2.6"

spec.add_development_dependency "rspec", "~> 3.1"
spec.add_development_dependency "rubocop", "~> 0.68.1"
spec.add_development_dependency "rspec_junit_formatter", "~> 0.4.0"
spec.add_development_dependency "rubocop", "~> 1.24"
spec.add_development_dependency "rspec_junit_formatter", "~> 0.5.1"
spec.add_development_dependency "rubocop-performance", "~> 1.13"
end
2 changes: 2 additions & 0 deletions spec/prius/registry_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "prius/registry"

describe Prius::Registry do
Expand Down

0 comments on commit c6c5265

Please sign in to comment.