This repository was archived by the owner on Aug 25, 2024. It is now read-only.
Logux::Rack integration #75
8000
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This patch replicates my logux_rails update with some post-merge fixes. It reduces gem responsibility scope to Rails-specific features after core Logux back-end server functionality was moved to
logux-rack
.Project updates
logux-rack
.logux-rack
is aded to thelogux_rails
dependencies.Logux::Model::UpdatesDeprecator
is coupled withLogux::ActionCaller
(fromlogux-rack
gem) via Logux configuration.Further improvements
It makes sense to rename the gem to
logux-rails
and useLogux::Rails
as the primary namespace to follow RubyGems naming convention and avoid potential definition collisions. At the momentlogux_rails
andlogux-rack
both has constant definitions in the commonLogux
module.I'm not aware if supporting alternative ORMs is relevant, but for now
Logux::Model
is kept withinlogux_rails
(since it is designed forActiveRecord
). To make Logux framework ORM-agnostic, it is possible to extract model abstraction intologux-model
gem, and then introduce a set of adapters to the Logux gems family (logux-model-active_record
,logux-model-sequel
, etc). This worth a separate PR, though.References
logux-rack
gem: https://github.com/dreikanter/logux-rack/pull/2