Skip to content

Commit

Permalink
Release 0.6.0 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jturkel authored May 13, 2022
1 parent 304059c commit a8f9698
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
7 changes: 2 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## Unreleased
## v0.6.0
- Drop support for Ruby < 2.7 and Rails < 6.0.
- Add support for Ruby 3.1.
- Add support for Rails 7.0.

## [v0.5.1](https://github.com/salsify/safer_rails_console/tree/v0.5.0) (2020-01-29)

Expand Down Expand Up @@ -125,7 +126,3 @@
**Merged pull requests:**

- Initial Implementation [\#2](https://github.com/salsify/safer_rails_console/pull/2) ([timothysu](https://github.com/timothysu))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
2 changes: 1 addition & 1 deletion lib/safer_rails_console/patches/sandbox/auto_rollback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def self.handle_and_reraise_exception(error)
module PostgreSQLAdapterPatch
def execute_and_clear(...)
super
rescue => e
rescue StandardError => e
SaferRailsConsole::Patches::Sandbox::AutoRollback.handle_and_reraise_exception(e)
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/safer_rails_console/rails_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def supported?
end

def six_or_above?
return @is_six_or_above if defined?(@is_six_or_above)
return @six_or_above if defined?(@six_or_above)

@is_six_or_above = SaferRailsConsole::RailsVersion::RAILS_VERSION >= ::Gem::Version.new('6.0.0')
@six_or_above = SaferRailsConsole::RailsVersion::RAILS_VERSION >= ::Gem::Version.new('6.0.0')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/safer_rails_console/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SaferRailsConsole
VERSION = '0.5.1'
VERSION = '0.6.0'
end
2 changes: 1 addition & 1 deletion spec/safer_rails_console/rails_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Reset memoized class instance variables - in practicality these should never change
described_class.instance_variables.each do |var|
described_class.instance_variable_set(var, nil)
described_class.remove_instance_variable(var)
end
end

Expand Down

0 comments on commit a8f9698

Please sign in to comment.