Skip to content

Commit

Permalink
Merge pull request #111 from gocardless/drop-24
Browse files Browse the repository at this point in the history
Drop support for Ruby 2.4 now that it's EOL
  • Loading branch information
James Turley authored May 19, 2021
2 parents a9831bf + c10c634 commit fe62c17
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
5 changes: 0 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
docker:
- image: 'ruby:2.5'
steps: *steps
ruby24:
docker:
- image: 'ruby:2.4'
steps: *steps

workflows:
version: 2
Expand All @@ -42,4 +38,3 @@ workflows:
- ruby27
- ruby26
- ruby25
- ruby24
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:

AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5
Exclude:
- .*/**/*
- bin/**/*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Friendly Postgres migrations for people who don't want to take down their databa

## Supported

- Ruby 2.4 or above
- Ruby 2.5 or above
- Rails 5.2 or above
- Postgres 11 or above

Expand Down
2 changes: 1 addition & 1 deletion lib/nandi/lockfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def persist!
# worse merge conflict problems (e.g. if we randomised the order on
# writing the file, the whole thing would conflict pretty much every time
# it was regenerated).
content = Hash[lockfile.to_h.deep_stringify_keys.sort_by do |k,_|
content = Hash[lockfile.to_h.deep_stringify_keys.sort_by do |k, _|
Digest::SHA256.hexdigest(k)
end].to_yaml

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

module Nandi
VERSION = "0.10.0"
VERSION = "0.11.0"
end
9 changes: 3 additions & 6 deletions spec/nandi/formatting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@

# rubocop:disable Security/Eval
it "evaluates to the same value" do
# Not redundant in Ruby 2.4
begin
expect(eval(result)).to eq(input)
rescue SyntaxError
raise StandardError, "not valid ruby: #{result}"
end
expect(eval(result)).to eq(input)
rescue SyntaxError
raise StandardError, "not valid ruby: #{result}"
end
# rubocop:enable Security/Eval
end
Expand Down

0 comments on commit fe62c17

Please sign in to comment.