Skip to content

Releases: castle/castle-ruby

Release v3.5.0

18 Apr 10:54
c2be444
Compare
Choose a tag to compare

BREAKING CHANGES:

  • #119 usage of traits key is deprecated, use user_traits instead

Enhancements:

  • #122 X-Castle-Client-Id takes precedence over cid from cookies
  • #121 raise Castle::ImpersonationFailed when impersonation request failed

Release v3.4.2

26 Feb 09:47
Compare
Choose a tag to compare

Features:

#115 added reset option to impersonate

Release v3.4.1

21 Feb 19:20
Compare
Choose a tag to compare

#113 ruby >= 2.2.6 is required

Enhancements:

#108 move context and command validation to their own scope and classes, code cleanup

Release v3.4.0

27 Jan 22:00
91357fa
Compare
Choose a tag to compare

#103 added 'impersonate` method with user_id, impersonator and context options

Release v3.3.1

22 Jan 22:48
Compare
Choose a tag to compare

Enhancements:

#100 use request.remote_ip and CF connecting IP in favour of request.ip if present
#100 added X-Forwarded-For and CF_CONNECTING_IP to whitelisted headers

Release v3.3.0

12 Jan 21:14
9e58061
Compare
Choose a tag to compare

BREAKING CHANGES:

#97 when data is sent in batches you may want to wrap data options with to_options method before you send it to the worker (see README) to include proper timestamp in the query
Features:

#97 Castle::Client has additional option timestamp, timestamp and sent_at time values are automatically added to the requests, added Castle::Client.to_options method which adds properly formatted timestamp param to the options

Release v3.2.0

15 Dec 09:46
b3ad8d9
Compare
Choose a tag to compare

BREAKING CHANGES:

  • #91 symbolize keys for failover strategy

Release v3.1.0

12 Dec 07:03
Compare
Choose a tag to compare

Enhancements:

  • #90 added ability to extract context object and initialize client with that object

BREAKING CHANGES:

  • Castle::Client.new does not not build context object anymore
  • to use previous functionality use Castle::Client.from_request

Features:

  • added Castle::Client.to_context method which allows to generate context object from the request

Release v3.0.1

20 Nov 10:07
f92038b
Compare
Choose a tag to compare

Bug fixes:

  • #84 allow to use symbols for headers data

Release v3.0.0

18 Oct 12:12
Compare
Choose a tag to compare

Enhancements:

  • #35 dropped unused cookie store class, more informative Castle:Client constructor params
  • #30 change request timeout to 500ms
  • #31 remove auto-integration with Rails, Padrino, Sinatra (see BREAKING CHANGES, README)

BREAKING CHANGES:

  • add require 'castle/support/rails' to have Castle client instance available as castle in your Rails controllers
  • add require 'castle/support/padrino' to have Castle client instance available as castle in your Padrino helpers
  • add require 'castle/support/sinatra' to have Castle client instance available as castle in your Sinatra helpers
  • request timeout uses milliseconds unit from now on
  • renamed track! to enable_tracking
  • renamed do_no_track! to disable_tracking
  • renamed don_no_track? to tracked? with opposite behaviour
  • Castle::Client now takes options as a second argument
  • drop support for ruby 2.1
  • replaced config.api_endpoint with config.host and config.port
  • renamed fetch_review to Castle::Review.retrieve

Features:

  • #32 added helper for generating signature
  • #27 added whitelisted and blacklisted to configuration (with defaults)
  • #41 added Hanami helpers
  • #42 added possibility to set do_not_track flag in Castle::Client options
  • #48 added failover strategies for authenticate method