wisper-activerecord
wisper-activerecord copied to clipboard
Transparently publish all model changes to subscribers
Addresses issue reported in #29
The Whisper::ActiveRecord is causing regular rails migrations to fail when using Rails 6.0.3.1 branch ``` wrong constant name primary /lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:282:in `const_get' /lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:282:in `block in constantize' /lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:280:in `each' /lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:280:in `inject' /lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:280:in...
Update tests to validate working. Update ruby version to 2.5.1
Looks like the JDBC Ruby driver does not work with ActiveRecord 5.2 yet. https://travis-ci.org/krisleech/wisper-activerecord/jobs/391327767 https://github.com/jruby/activerecord-jdbc-adapter/issues/899 https://github.com/jruby/activerecord-jdbc-adapter/issues/700 Also add JRuby to ActiveRecord 5.0, it is currently excluded.
When using wisper listeners in async mode, the model no longer has what attributes have changed which is useful for only firing certain events if a particular attribute has changed....
Add configuration option which will means `self.id` is broadcast instead of `self`.
- Updated gemspec to require Ruby >= 3.1.0 (oldest supported version) - bumped activerecord to >= 5.2.0 (oldest supported version of rails) - bumped wisper to ~> 3.0