Skip to content

Commit

Permalink
fix: format changelog, require logger, update ruby-next configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jan 29, 2025
1 parent 62b3bc8 commit ced2396
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .rbnextrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
nextify: |
./lib
--min-version=2.6
--min-version=2.7
--edge
--proposed
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

## master


- Let authorize! return the policy record ([@sedubois][])

- Enable `allowance_to` as a helper method by default ([@stephannv][])
Expand Down Expand Up @@ -544,3 +543,5 @@ This value is now stored in a cache (if any) instead of just the call result (`t
[@matsales28]: https://github.com/matsales28
[@killondark]: https://github.com/killondark
[@Spone]: https://github.com/Spone
[@stephannv]: https://github.com/stephannv
[@sedubois]: https://github.com/sedubois
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ gem "debug", platform: :mri unless ENV["CI"] == "true"
gem "method_source"
gem "prism"

gem 'sqlite3', "~> 2.0", platform: :mri
gem 'activerecord-jdbcsqlite3-adapter', '~> 50.0', platform: :jruby
gem 'jdbc-sqlite3', platform: :jruby

Expand All @@ -20,6 +19,7 @@ local_gemfile = File.join(__dir__, "Gemfile.local")
if File.exist?(local_gemfile)
eval(File.read(local_gemfile)) # rubocop:disable Security/Eval
else
gem "sqlite3", "~> 2.0"
gem "rails", "~> 8.0"
end

Expand Down
3 changes: 2 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@

ENV["RUBY_NEXT_TRANSPILE_MODE"] = "rewrite"
ENV["RUBY_NEXT_EDGE"] = "1"
ENV["RUBY_NEXT_PROPOSED"] = "1"
require "ruby-next/language/runtime" unless ENV["CI"]

require "logger"

require "action_policy"
begin
require "pry-byebug"
Expand Down
3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

ENV["RUBY_NEXT_TRANSPILE_MODE"] = "rewrite"
ENV["RUBY_NEXT_EDGE"] = "1"
ENV["RUBY_NEXT_PROPOSED"] = "1"
require "ruby-next/language/runtime" unless ENV["CI"]

require "logger"

require "action_policy"

ActionPolicy::PrettyPrint.ignore_expressions << /\bjard\b/
Expand Down

0 comments on commit ced2396

Please sign in to comment.