From c4b5ce869b68c99c54ba95188b3ce054e6d02bc9 Mon Sep 17 00:00:00 2001 From: Morgan Brown Date: Tue, 9 Jul 2024 18:25:29 +0200 Subject: [PATCH] Remove comments --- lib/cached_resource/cached_resource.rb | 12 ------------ spec/cached_resource/caching_spec.rb | 4 ---- 2 files changed, 16 deletions(-) diff --git a/lib/cached_resource/cached_resource.rb b/lib/cached_resource/cached_resource.rb index 22c7bee..9c840a0 100644 --- a/lib/cached_resource/cached_resource.rb +++ b/lib/cached_resource/cached_resource.rb @@ -18,18 +18,6 @@ def cached_resource(options={}) # and establishing the necessary methods. def setup_cached_resource!(options) @cached_resource = CachedResource::Configuration.new(options) - # puts "OK WE ARE SET UP!" - # if @cached_resource.concurrent_write - # @cached_resource.require_concurrent_ruby - # # begin - # # send :require, 'concurrent/promise' - # # rescue LoadError - # # @cached_resource.logger.error( - # # "`concurrent_write` option is enabled, but `concurrent-ruby` is not an installed dependency" - # # ) - # # raise - # # end - # end send :include, CachedResource::Caching @cached_resource end diff --git a/spec/cached_resource/caching_spec.rb b/spec/cached_resource/caching_spec.rb index 070025a..cc63f1a 100644 --- a/spec/cached_resource/caching_spec.rb +++ b/spec/cached_resource/caching_spec.rb @@ -111,11 +111,7 @@ class NotTheThing < ActiveResource::Base original_method.call(*args, &block) end result = Thing.find(5) - # sleep 1 - # expect(Concurrent::Promise).to receive(:execute) - # Concurrent::Promise.execute - # read_from_cache("thing/5").should == nil loops = 0 begin Timeout.timeout(5) do