Skip to content

Commit

Permalink
fix error when parsing config file
Browse files Browse the repository at this point in the history
YAML parser returns wrong number of arguments(given 4, expected 1),
this fix removes the extra parameters, while still passing in the
allowAliases flag.
  • Loading branch information
jschank committed May 18, 2021
1 parent e1d282f commit 614ad99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
## Unreleased
- Fix config file parsing error: wrong number of arguments (given 4, expected 1) (#819)

## 2.0.3
### Misc
- Add Ruby 3 to the Travis test matrix
Expand Down
2 changes: 1 addition & 1 deletion lib/tmuxinator/project.rb
Expand Up @@ -48,7 +48,7 @@ def self.load(path, options = {})
@args = args

content = Erubis::Eruby.new(raw_content).result(binding)
YAML.safe_load(content, [], [], true)
YAML.safe_load(content, aliases: true)
rescue SyntaxError, StandardError => error
raise "Failed to parse config file: #{error.message}"
end
Expand Down

0 comments on commit 614ad99

Please sign in to comment.