From 0c6addc59fa04a0d6bd9a75be9d7f1eaafd9170c Mon Sep 17 00:00:00 2001 From: Fabien Garcia Date: Thu, 6 Oct 2016 15:41:46 +0200 Subject: [PATCH 1/2] Bump version --- leantesting.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leantesting.gemspec b/leantesting.gemspec index 4058aac..fe09520 100644 --- a/leantesting.gemspec +++ b/leantesting.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'leantesting' - s.version = '1.2.0' + s.version = '1.2.1' s.date = '2016-04-12' s.platform = Gem::Platform::RUBY s.summary = 'Lean Testing Ruby SDK' From d9fdf2af959d97b3ee8039396a3def3ea48a6803 Mon Sep 17 00:00:00 2001 From: Stephen Margheim Date: Fri, 1 Mar 2019 10:52:09 +0100 Subject: [PATCH 2/2] Use Integer instead of Fixnum in EntityHandler.rb To avoid the ruby 2.4.0+ deprecation warning: `warning: constant ::Fixnum is deprecated` --- lib/BaseClass/EntityHandler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/BaseClass/EntityHandler.rb b/lib/BaseClass/EntityHandler.rb index 1d2e013..912a228 100644 --- a/lib/BaseClass/EntityHandler.rb +++ b/lib/BaseClass/EntityHandler.rb @@ -76,8 +76,8 @@ def all(filters = nil) # SDKInvalidArgException if provided id param is not an integer. # def find(id) - if !id.is_a? Fixnum - raise SDKInvalidArgException, '`id` must be of type Fixnum' + if !id.is_a? Integer + raise SDKInvalidArgException, '`id` must be of type Integer' end end @@ -182,4 +182,4 @@ def enforce(obj, supports) end end -end \ No newline at end of file +end