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

Undefined method `empty?' for 3.1:Float (NoMethodError) #860

Closed
nvzqz opened this issue Jul 25, 2017 · 3 comments
Closed

Undefined method `empty?' for 3.1:Float (NoMethodError) #860

nvzqz opened this issue Jul 25, 2017 · 3 comments
Labels

Comments

@nvzqz
Copy link

nvzqz commented Jul 25, 2017

I'm trying to generate docs for RandomKit and I get this error:

$ jazzy --source-directory ../RandomKit --config .jazzy.yaml

Using config file /Users/nvzqz/dev/projects/swift/RandomKit.gh-pages/.jazzy.yaml
/usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:165:in `block in <class:Config>': undefined method `empty?' for 3.1:Float (NoMethodError)
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:36:in `instance_exec'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:36:in `set'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:45:in `set_if_unconfigured'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:421:in `block in parse_config_file'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:409:in `each'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:409:in `parse_config_file'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/lib/jazzy/config.rb:351:in `parse!'
	from /usr/local/lib/ruby/gems/2.3.0/gems/jazzy-0.8.3/bin/jazzy:15:in `<top (required)>'
	from /usr/local/bin/jazzy:23:in `load'
	from /usr/local/bin/jazzy:23:in `<main>'

Here's my Ruby version:

$ ruby --version

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]

Thanks!

@johnfairh johnfairh added the bug label Jul 25, 2017
@johnfairh
Copy link
Collaborator

Looks like setting swift_version in the config file does not work any more, whether or not the version has a dot in it. Not a ruby version issue.

It does works from the command-line (--swift-version) so I hope that will do for a workaround.

@segiddins
Copy link
Collaborator

I think it needs to be a string rather than a number, try quoting it?

@nvzqz
Copy link
Author

nvzqz commented Jul 25, 2017

@segiddins quoting it worked. It worked for me previously without quoting it. Something might've changed since then. The last time I generated the docs was June 1st.

jpsim added a commit that referenced this issue Jul 25, 2017
@jpsim jpsim closed this as completed in 49bc138 Jul 25, 2017
jpsim added a commit that referenced this issue Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants