Skip to content

Release v3.0.0

Choose a tag to compare

@nijikon nijikon released this 18 Oct 12:12
· 331 commits to main since this release

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