Releases: rails/activeresource
Releases · rails/activeresource
v6.1.0
What's Changed
- Always return a boolean value for
ActiveResource::Base#exists?
by @stefanvermaas in #375 - Support usage of
invalid?
andvalidate!
methods fromActiveModel::Validations
by @balvig in #379 - Fix subclasses not inheriting headers set in the superclass by @meanphil in #383
- Encode ID parameter for custom methods by @igor-ladkin in #399
- [Enhancement] Allows HttpMock to ignore query params from url path if given the option by @muhammadnawzad in #395
New Contributors
- @stefanvermaas made their first contribution in #375
- @balvig made their first contribution in #379
- @amatsuda made their first contribution in #389
- @davidstosik made their first contribution in #390
- @meanphil made their first contribution in #383
- @igor-ladkin made their first contribution in #399
- @rafaelfranca made their first contribution in #400
- @muhammadnawzad made their first contribution in #395
Full Changelog: v6.0.0...v6.1.0
6.0.0
Breaking changes
- Drop support to Ruby < 2.6 and Rails < 6.0
What's Changed
- Create PreconditionFailed (412) exception by @bbraschi in #302
- Adds TooManyRequests (429) exception by @bradleypriest in #304
- Fix active job serializer railtie by @gmcgibbon in #310
- Fix Rails 6.1 compatibility by @casperisfine in #335
- Set frozen_string_literal: true in the generated code by @casperisfine in #336
- Stop using the deprecated URI.parser by @casperisfine in #338
- Fix the missed URI.parser references by @casperisfine in #339
- Fix find_every instantiating records from symbol and string without prefix_options by @ivan05almeida in #348
- Add support to set bearer token connection through Base class by @ivan05almeida in #345
- Fixed multi-threading race condition issue by @marisveide in #349
- Fixed ActiveResource::ConnectionError#to_s to return a message which … by @faultier92 in #353
- Stop requiring the useless and deprecated core_ext/uri by @casperisfine in #366
- Changing headers on base class doesn't change them in subclasses by @adrien-k in #359
New Contributors
- @bbraschi made their first contribution in #302
- @maurcarvalho made their first contribution in #307
- @bradleypriest made their first contribution in #304
- @pilaf made their first contribution in #315
- @eitoball made their first contribution in #306
- @okuramasafumi made their first contribution in #320
- @larouxn made their first contribution in #321
- @maria-kravtsova made their first contribution in #323
- @casperisfine made their first contribution in #335
- @ivan05almeida made their first contribution in #348
- @marisveide made their first contribution in #349
- @faultier92 made their first contribution in #353
- @luk4s made their first contribution in #356
- @jbampton made their first contribution in #357
- @filabreu made their first contribution in #364
- @aclemons made their first contribution in #367
- @obahareth made their first contribution in #373
- @adrien-k made their first contribution in #359
Full Changelog: v5.1.1...v6.0.0
5.1.0
-
Improve support of Active Resource objects inside fibers.
-
Add support to Active Model Serializers.
-
Fix error when trying to parse
nil
as a JSON response. -
Fix
exists?
to return the right value when the response code is between 200 and 206. -
Match the log level to the HTTP response code.
-
Add
ActiveResource::Connection.logger
accessors to configure a specific logger instance for the
connection object. -
Add
ActiveResource::Base#element_url
method. -
Add Active Job serialization support with Rails 6.
-
Support lazy setting of configuration options.
-
Use
UnnamedResource
when resource fails to create normally. -
Add support to Bearer Token Authorization header to connection.
4.1.0
Enhancements
- Adds activeresource.rb so
require: 'active_resource'
is no longer needed
in Gemfile. (#95, Pedro Nascimento) ActiveResource::Collection
delegates all instance methods forArray
.
(#101, printercu)- Railtie enables configuration and dev reloading of observers just like
ActiveRecord when using Active Resource with Rails. Active Resource also now runs Active Support
load hooks for:active_resource
. (#109, Ches Martin)
Fixes
- Improvement to thread safety of headers. (#61, niedfelj)
- A
belongs_to
child with a missing parent ID returns nil for the
association instead of making a bogus remote call. (#68, Javier Saldana) - A
has_many
association does not trigger a remote call if parent is a new
record. (#97, Sasha Shamne)