-
Notifications
You must be signed in to change notification settings - Fork 46
Description
I cannot get this gem to even precompile. There is an ArgumentError in active_support's configurable.rb file in the 'send' method within the "config_accessor" method.
send("#{name}=", block_given? ? yield : default)
It gives "ArgumentError: wrong number of arguments (given 2, expected 0)".
The call originate's form the config.rb file (line 17):
config_accessor :names, :url, :send, :layout, :show_faces, :title, :alt, :target, :app_id,
:width, :action, :font, :colorscheme, :ref, :annotation, :align, :expand_to, :callback, :color,
:onstartinteraction, :onendinteraction, :pin_config, :pin_do, :pin_shape, :pin_height, :pin_color, :media,
:bordercolor, :btnsrc, :via, :text, :related, :count, :lang, :counturl, :hashtags, :size, :dnt,
:type, :styled, :newwindow, :description, :counter, :onsuccess, :onerror, :showzero,
:recommendations, :points, :badge_layout, :background, :share, :kid_directed_site,
:button_only, :static_link, :turbolinks
I can't understand what is giving this ArgumentError, and would appreciate help understanding how to resolve it. I've tried this on an existing app and also on a freshly created one. Both using Rails 7 and Ruby 3.0.0.
Here's the error trace:
ArgumentError: wrong number of arguments (given 2, expected 0)
/home/me/.rvm/gems/ruby-3.0.0/gems/activesupport-7.0.2.3/lib/active_support/configurable.rb:113:in send' /home/me/.rvm/gems/ruby-3.0.0/gems/activesupport-7.0.2.3/lib/active_support/configurable.rb:124:in block in config_accessor'
/home/me/.rvm/gems/ruby-3.0.0/gems/activesupport-7.0.2.3/lib/active_support/configurable.rb:110:in each' /home/me/.rvm/gems/ruby-3.0.0/gems/activesupport-7.0.2.3/lib/active_support/configurable.rb:110:in config_accessor'
/home/me/.rvm/gems/ruby-3.0.0/gems/shareable-1.1.4/lib/shareable/config.rb:17:in <class:Configuration>' /home/me/.rvm/gems/ruby-3.0.0/gems/shareable-1.1.4/lib/shareable/config.rb:15:in module:Shareable'
/home/me/.rvm/gems/ruby-3.0.0/gems/shareable-1.1.4/lib/shareable/config.rb:3:in <main>' /home/me/.rvm/gems/ruby-3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
/home/me/.rvm/gems/ruby-3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' /home/me/.rvm/gems/ruby-3.0.0/gems/shareable-1.1.4/lib/shareable.rb:20:in
/home/me/.rvm/gems/ruby-3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in
require' /home/me/.rvm/gems/ruby-3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'/home/me/.rvm/gems/ruby-3.0.0/gems/bundler-2.3.8/lib/bundler/runtime.rb:60:in
block (2 levels) in require' /home/me/.rvm/gems/ruby-3.0.0/gems/bundler-2.3.8/lib/bundler/runtime.rb:55:in each'/home/me/.rvm/gems/ruby-3.0.0/gems/bundler-2.3.8/lib/bundler/runtime.rb:55:in
block in require' /home/me/.rvm/gems/ruby-3.0.0/gems/bundler-2.3.8/lib/bundler/runtime.rb:44:in each'/home/me/.rvm/gems/ruby-3.0.0/gems/bundler-2.3.8/lib/bundler/runtime.rb:44:in
require' /home/me/.rvm/gems/ruby-3.0.0/gems/bundler-2.3.8/lib/bundler.rb:176:in require'/home/me/Documents/RailsApps/AstroBlurb/config/application.rb:9:in
<top (required)>' /home/me/Documents/RailsApps/AstroBlurb/Rakefile:4:in require_relative'/home/me/Documents/RailsApps/AstroBlurb/Rakefile:4:in
<top (required)>' /home/me/.rvm/gems/ruby-3.0.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>'
Gemfile is standard for fresh install and with gem "shareable" added.
Please assist.