undefined method `[]' for nil:NilClass
Hi. I have a problem...
[root@vm-gitlab-stat influxdb-management]# bundle exec rake
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/root/influxdb-management/Rakefile:24:in `block in <top (required)>'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/cli/exec.rb:74:in `load'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/cli/exec.rb:27:in `run'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/cli.rb:332:in `exec'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/cli.rb:20:in `dispatch'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/cli.rb:11:in `start'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/exe/bundle:34:in `block in <top (required)>'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/opt/rh/rh-ruby23/root/usr/local/share/gems/gems/bundler-1.13.1/exe/bundle:26:in `<top (required)>'
/opt/rh/rh-ruby23/root/usr/local/bin/bundle:23:in `load'
/opt/rh/rh-ruby23/root/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => default => policies
(See full trace by running task with --trace)
I used ruby 2.0.0 and 2.3.0 - the same... Which version of ruby I should use? Thanks.