hinthealth / simple_redlock

This gem implements a lock using Redis in 90 lines of code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blocking Rails upgrade to 6.1.3.1

melcher opened this issue · comments

Module attributes should be defined on the class, not in the singleton.

An error occurred while loading rails_helper.
Failure/Error: require File.expand_path('../config/environment', __dir__)

TypeError:
  module attributes should be defined directly on class, not singleton
# /usr/local/bundle/gems/activesupport-6.1.3.1/lib/active_support/core_ext/module/attribute_accessors.rb:52:in `mattr_reader'
# /usr/local/bundle/gems/activesupport-6.1.3.1/lib/active_support/core_ext/module/attribute_accessors.rb:202:in `mattr_accessor'
# /usr/local/bundle/bundler/gems/simple_redlock-661c1448f881/lib/simple_redlock.rb:7:in `singleton class'
# /usr/local/bundle/bundler/gems/simple_redlock-661c1448f881/lib/simple_redlock.rb:6:in `<module:SimpleRedlock>'
# /usr/local/bundle/bundler/gems/simple_redlock-661c1448f881/lib/simple_redlock.rb:5:in `<top (required)>'
# /usr/local/bundle/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
# /usr/local/bundle/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
# /usr/local/bundle/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
# /usr/local/bundle/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
# /usr/local/bundle/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
# ./config/application.rb:22:in `<top (required)>'
# ./config/environment.rb:2:in `require'
# ./config/environment.rb:2:in `<top (required)>'
# ./spec/rails_helper.rb:18:in `require'
# ./spec/rails_helper.rb:18:in `<top (required)>'
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}
No examples found.

Fixed in #20