Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error on when clausules ⚠️ #17

Open
Victorcorcos opened this issue Jun 20, 2021 · 0 comments
Open

Syntax error on when clausules ⚠️ #17

Victorcorcos opened this issue Jun 20, 2021 · 0 comments

Comments

@Victorcorcos
Copy link

Victorcorcos commented Jun 20, 2021

Steps to reproduce 🦮

  1. Add gem 'yahoo_stock' to Gemfile
  2. bundle install
  3. rails c

The result 🪲

/Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:324:in `require': /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/yahoo_stock-1.0.2/lib/yahoo_stock/interface/history.rb:86: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
...                when :daily   : 'd'
...                              ^
/Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/yahoo_stock-1.0.2/lib/yahoo_stock/interface/history.rb:87: syntax error, unexpected keyword_when, expecting keyword_end
                    when :weekly  : 'w'
                    ^~~~
/Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/yahoo_stock-1.0.2/lib/yahoo_stock/interface/history.rb:88: syntax error, unexpected keyword_when, expecting keyword_end
                    when :monthly : 'm'
                    ^~~~
/Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/yahoo_stock-1.0.2/lib/yahoo_stock/interface/history.rb:186: syntax error, unexpected keyword_end, expecting end-of-input (SyntaxError)
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:324:in `block in require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:291:in `load_dependency'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:324:in `require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/yahoo_stock-1.0.2/lib/yahoo_stock.rb:11:in `<top (required)>'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
	from /Users/victorcosta/Desktop/repositories/factor-investing/config/application.rb:16:in `<top (required)>'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application.rb:92:in `require'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application.rb:92:in `preload'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application.rb:157:in `serve'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application.rb:139:in `run'
	from /Users/victorcosta/.rvm/gems/ruby-2.5.5/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>'
	from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant