Closed fladson closed 3 years ago
I followed the installation steps on a ruby project.
The gem loads with no issues.
I am getting some SyntaxError exceptions.
SyntaxError
/Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway_config.rb:16:in `require': /Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway/config.rb:113: syntax error, unexpected instance variable (SyntaxError) end => @defaults ^~~~~~~~~ /Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway/config.rb:123: syntax error, unexpected instance variable ... end => @config_attributes ... ^~~~~~~~~~~~~~~~~~ /Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway/config.rb:141: syntax error, unexpected instance variable ... end => @required_attributes ... ^~~~~~~~~~~~~~~~~~~~ /Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway/config.rb:161: syntax error, unexpected instance variable end => @load_callbacks ^~~~~~~~~~~~~~~ /Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway/config.rb:192: syntax error, unexpected instance variable end => @env_prefix ^~~~~~~~~~~ /Users/fladson/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/anyway_config-2.0.6/lib/anyway/config.rb:220: syntax error, unexpected instance variable ... end => @accessors_module ... ^~~~~~~~~~~~~~~~~
# app/lib/foo_bar/config.rb require "anyway_config" module FooBar class Config < Anyway::Config attr_config :host end end # app/lib/foo_bar.rb require_relative "foo_bar/config" module FooBar def self.config @config ||= Config.new end end
app/config/foo_bar.yml
test: host: localhost development: host: localhost staging: host: staging production: host: production
macOS Big Sur
Ruby Version: 3.0.0
3.0.0
Framework Version (Rails, whatever): N/A
N/A
Anyway Config Version: 2.0.6
2.0.6
Ruby 3.0 compatibility has been released in 2.1.0
What did you do?
I followed the installation steps on a ruby project.
What did you expect to happen?
The gem loads with no issues.
What actually happened?
I am getting some
SyntaxError
exceptions.Additional context
app/config/foo_bar.yml
Environment
macOS Big Sur
Ruby Version:
3.0.0
Framework Version (Rails, whatever):
N/A
Anyway Config Version:
2.0.6