Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@

source 'https://rubygems.org'

# concurrent-ruby >= 1.3.5 no longer requires "logger" itself, but
# activesupport 6.1 still references ::Logger at load time. Requiring
# it here in the Gemfile ensures it is loaded by bundler/setup before
# any gem loads active_support.
require "logger"

# Specify your gem's dependencies in active_remote-cached.gemspec
gemspec
6 changes: 5 additions & 1 deletion active_remote-cached.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
gem.email = ['brandonsdewitt@gmail.com', 'devexperience@mx.com']
gem.description = ' Provides "cached" finders and a DSL to enumerate which finders should have cached versions '
gem.summary = ' Provides a configuration for caching mechanisms and finders on ActiveRemote models'
gem.homepage = ''
gem.homepage = 'https://github.com/mxenabled/active_remote-cached'

gem.required_ruby_version = '>= 2.6'
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
Expand All @@ -30,4 +30,8 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rspec', '>= 3.0'
gem.add_development_dependency 'rubocop'
gem.add_development_dependency 'base64'
gem.add_development_dependency 'bigdecimal'
gem.add_development_dependency 'mutex_m'
gem.add_development_dependency 'ostruct'
end
6 changes: 3 additions & 3 deletions lib/active_remote/cached.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _define_cached_find_method(method_name, *method_arguments, cached_finder_opt
sorted_method_args = method_arguments.sort.join(',')
cached_methods << method_name

expanded_search_args = ''
expanded_search_args = String.new
method_arguments.each do |method_argument|
expanded_search_args << ":#{method_argument} => #{method_argument},"
end
Expand Down Expand Up @@ -336,7 +336,7 @@ def _define_cached_search_method(method_name, *method_arguments, cached_finder_o
sorted_method_args = method_arguments.sort.join(',')
cached_methods << method_name

expanded_search_args = ''
expanded_search_args = String.new
method_arguments.each do |method_argument|
expanded_search_args << ":#{method_argument} => #{method_argument},"
end
Expand Down Expand Up @@ -385,7 +385,7 @@ def _define_cached_search_bang_method(method_name, *method_arguments, cached_fin
sorted_method_args = method_arguments.sort.join(',')
cached_methods << method_name

expanded_search_args = ''
expanded_search_args = String.new
method_arguments.each do |method_argument|
expanded_search_args << ":#{method_argument} => #{method_argument},"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/active_remote/cached/argument_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ArgumentKeys
def initialize(*arguments, options)
@options = options
@arguments = arguments.flatten.compact
@argument_string = ''
@argument_string = String.new

@arguments.each do |argument|
@argument_string << argument.to_s
Expand Down
2 changes: 1 addition & 1 deletion lib/active_remote/cached/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module ActiveRemote
module Cached
VERSION = '1.1.1'
VERSION = '1.1.2'
end
end