All Versions
23
Latest Version
Avg Release Cycle
87 days
Latest Release
121 days ago

Changelog History
Page 2

  • v1.1.2 Changes

    March 21, 2017

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Check if a reflection has a parent reflection before comparing them. This fixes #56.

    โ™ป๏ธ Refactored

    • The logic encapsulated in #method_missing and #respond_to_missing? was difficult to follow, because it was falling back to super, sometimes going up the inheritance tree multiple levels. The addition of BabySqueel::Resolver now handles this a little more gracefully.
  • v1.1.1 Changes

    February 14, 2017

    ๐Ÿ›  Fixed

    • There is a bug in Active Record where the AliasTracker initializes Arel::Tables use the wrong type_caster. To address this, BabySqueel must re-initialize the Arel::Table with the correct type_caster (#54).
  • v1.1.0 Changes

    February 10, 2017

    โฌ†๏ธ > This version drops support for Active Record 4.1. If you're stil on 4.1, you should seriously consider upgrading to at least 4.2.

    โž• Added

    • DSLs for ActiveRecord::Relation::Calculations. You can now use plucking, counting, summing, averaging, minimizing, and maximizing.
  • v1.0.3 Changes

    February 09, 2017

    โž• Added

    • ๐Ÿ‘Œ Support for pluck.
    • ๐Ÿ‘Œ Support for not_in.
  • v1.0.2 Changes

    February 07, 2017

    โž• Added

    • ๐Ÿš… BabySqueel::Association now has #== and #!=. This is only supported for Rails 5+. Example: Post.where { author: Author.last }.

    ๐Ÿ›  Fixed

    • Incorrect alias detection caused by not tracking the full path to a join (#37).
  • v1.0.1 Changes

    November 07, 2016

    โž• Added

    • โž• Add DSL#_ for wrapping expressions in Arel::Node::Grouping. Thanks to [@odedniv].

    ๐Ÿ›  Fixed

    • ๐Ÿš… Use strings for attribute names like Rails does. Symbols were preventing things like unscope from working. Thanks to [@chewi].
    • where.has {} will now accept nil.
    • Arel::Nodes::Function did not previously include Arel::Math, so now you can do math operations on the result of SQL functions.
    • Arel::Nodes::Binary did not previously include Arel::AliasPredication. Binary nodes can now be aliased using as.
  • v1.0.0 Changes

    September 09, 2016

    โž• Added

    • Polyamorous. Unfortunately, this does monkey-patch Active Record internals, but there just isn't any other reliable way to generate outer joins. Baby Squeel, itself, will still keep monkey patching to an absolute minimum.
    • Within DSL blocks, you can use exists and not_exists with Active Record relations. For example: Post.where.has { exists Post.where(title: 'Fun') }.`
    • ๐Ÿ‘Œ Support for polymorphic associations.

    ๐Ÿ—„ Deprecations

    • โœ‚ Removed support for Active Record 4.0.x

    ๐Ÿ”„ Changed

    • BabySqueel::JoinDependency is no longer a class responsible for creating Arel joins. It is now a namespace for utilities used when working with the ActiveRecord::Association::JoinDependency class.
    • BabySqueel::Nodes::Generic is now BabySqueel::Nodes::Node.
    • Arel nodes are only extended with the behaviors they need. Previously, all Arel nodes were being extended with Arel::AliasPredication, Arel::OrderPredications, and Arel::Math.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed deprecation warnings on Active Record 5 when initializing an Arel::Table without a type caster.
    • ๐Ÿ‘ท No more duplicate joins. Previously, Baby Squeel did a very poor job of ensuring that you didn't join an association twice.
    • Alias detection should now actually work. The previous implementation was naive.
  • v0.3.1 Changes

    August 02, 2016

    โž• Added

    • Ported backticks and #my from Squeel

    ๐Ÿ”„ Changed

    • DSL#sql now returns a node wrapped in a BabySqueel proxy.
  • v0.3.0 Changes

    June 26, 2016

    โž• Added

    • โž• Added Squeel compatibility mode that allows select, order, joins, group, where, and having to accept DSL blocks.
    • โž• Added the ability to query tables that aren't backed by Active Record models.
    • โž• Added BabySqueel::[], which provides a BabySqueel::Relation for models, or a BabySqueel::Table for symbols/strings.

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ Renamed BabySqueel::Association::AliasingError to BabySqueel::AssociationAliasingError.
  • v0.2.2 Changes

    March 30, 2016

    โž• Added

    • ๐Ÿ‘Œ Support for group (grouping) and having (when_having).
    • ๐Ÿ‘Œ Support for sifters.
    • โž• Added quoted and sql helpers for quoting strings and SQL literals.
    • More descriptive error messages when a column or association is not found.

    ๐Ÿ›  Fixed

    • Arel::Nodes::Grouping does not include Arel::Math, so operations like (id + 5) + 3 would fail unexpectedly.
    • ๐Ÿ›  Fix missing bind values When joining through associations with default scope.
    • โœ‚ Removed ActiveRecord::VERSION specific handling of the WhereChain.