engineyard / engineyard/core-client-rb

Parsing documentation on gem install fails

Open
#136 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
4
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Installing ey-core via `gem install ey-core -v 3.6.5` throws the following error while parsing documentation.

```
Successfully installed ey-core-3.6.5
Parsing documentation for ey-core-3.6.5
Before reporting this, could you check that the file you're documenting
has proper syntax:

/Users/user/.rbenv/versions/2.6.8/bin/ruby -c lib/ey-core/cli/deploy.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

(NoMethodError) undefined method `[]' for nil:NilClass

ERROR: While executing gem ... (NoMethodError)
undefined method `[]' for nil:NilClass
```

Upon navigating to the file in question, it looks like the problem may lie at deploy.rb:72. I'd guess `abort "Unable to locate environment #{option[:environment]} in #{operator.name}".red` should be `abort "Unable to locate environment #{**options**[:environment]} in #{operator.name}".red`, instead?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.