Skip to content

Commit

Permalink
Merge pull request #861 from realm/jp-fix-860
Browse files Browse the repository at this point in the history
fix #860
  • Loading branch information
jpsim authored Jul 25, 2017
2 parents 5148536 + 49bc138 commit e61c82a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

##### Bug Fixes

* None.
* Fix crash when specifying `swift_version` as a floating point value in
`.jazzy.yaml` rather than a string.
[JP Simard](https://github.com/jpsim)
[#860](https://github.com/realm/jazzy/issues/860)

## 0.8.3

Expand Down
2 changes: 1 addition & 1 deletion lib/jazzy/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def expand_path(path)
command_line: '--swift-version VERSION',
default: nil,
parse: ->(v) do
return nil if v.empty?
return nil if v.to_s.empty?
raise 'jazzy only supports Swift 2.0 or later.' if v.to_f < 2
v
end
Expand Down

0 comments on commit e61c82a

Please sign in to comment.