From 22addfb09ee0e242878275edec5404b4f37df594 Mon Sep 17 00:00:00 2001 From: Ken Collins Date: Tue, 2 Aug 2022 18:52:50 -0400 Subject: [PATCH] Rails 5.1 oddities for class attribute default not set. --- CHANGELOG.md | 6 ++++++ Gemfile.lock | 2 +- lib/lambdakiq/client.rb | 4 ++-- lib/lambdakiq/version.rb | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee71b59..5e4f9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ See this http://keepachangelog.com link for information on how we want this documented formatted. +## v2.0.2 + +#### Fixed + +- Rails 5.1 oddities for class attribute default not set. + ## v2.0.1 #### Fixed diff --git a/Gemfile.lock b/Gemfile.lock index 7da7784..e24bfb7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - lambdakiq (2.0.1) + lambdakiq (2.0.2) activejob aws-sdk-sqs concurrent-ruby diff --git a/lib/lambdakiq/client.rb b/lib/lambdakiq/client.rb index d11d411..7c59b44 100644 --- a/lib/lambdakiq/client.rb +++ b/lib/lambdakiq/client.rb @@ -3,8 +3,8 @@ class Client class_attribute :default_options, instance_writer: false, - instance_predicate: false, - default: Hash.new + instance_predicate: false + self.default_options = Hash.new attr_reader :queues diff --git a/lib/lambdakiq/version.rb b/lib/lambdakiq/version.rb index 61603b4..533fd00 100644 --- a/lib/lambdakiq/version.rb +++ b/lib/lambdakiq/version.rb @@ -1,3 +1,3 @@ module Lambdakiq - VERSION = '2.0.1' + VERSION = '2.0.2' end