beezwax/fmrest-ruby

Broken on Rails 7.1

Closed this issue · 0 comments

I'm running into a few errors after upgrading to Rails 7.1:

NoMethodError: undefined method `attribute_method_matchers' for FmRest::Spyke::Base:Class

          self.attribute_method_matchers.shift
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean?  attribute_method_patterns
               attribute_method_patterns?
               attribute_method_patterns=
               attribute_method_affix
from lib/ruby/gems/3.1.0/gems/fmrest-spyke-0.24.0/lib/fmrest/spyke/model/attributes.rb:25:in `block in <module:Attributes>'

attribute_method_matchers was changed to attribute_method_patterns here

NameError: undefined local variable or method `mapped_attributes' for Filemaker::Events:Class

            self.mapped_attributes = mapped_attributes.merge(from => to.to_s).freeze
                                     ^^^^^^^^^^^^^^^^^
from lib/ruby/gems/3.1.0/gems/fmrest-spyke-0.24.0/lib/fmrest/spyke/model/attributes.rb:107:in `_fmrest_define_attribute'

as well as a TypeError: superclass mismatch for class Foo in my classes that subclass FmRest::Layout('whatever')

I haven't had a chance to look into these other two issues yet...