-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Yard not working on Ruby 1.9.3 #1089
Comments
0_0 Somebody still uses 1.9.3 in production?.. |
The contrib guide specifies "Ruby versions (1.8+)" |
Yes, I understand your concern (I am not a contributor, unforturnately, just interested spectator). Of course, all explictily specified Ruby versions should be supported. I am just wondering whether there are still real cases for 1.9 support except for abandoned gems docs. |
This is easy enough to fix. |
You can go ahead and close Pull Request #1090 since you fixed it. |
YARD's policy on 1.8 was defined in v0.9.6, by the way:
|
Steps to reproduce
yard -v
on Ruby 1.9.3Actual Output
jbowes@jbowes-mac ~/projects/nai-utils$ yard doc --no-private --debug
'/Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/globals.rb:21:in
log': /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/logging.rb:13: invalid multibyte char (US-ASCII) (SyntaxError) /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/logging.rb:13: invalid multibyte char (US-ASCII) /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/logging.rb:13: syntax error, unexpected $end, expecting keyword_end PROGRESS_INDICATORS = %w(⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽ ⣾) ^ from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/cli/command_parser.rb:57:in
initialize'from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/cli/command_parser.rb:54:in
new' from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/lib/yard/cli/command_parser.rb:54:in
run'from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/gems/yard-0.9.9/bin/yard:13:in
<top (required)>' from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/bin/yard:23:in
load'from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/bin/yard:23:in
<main>' from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/bin/ruby_executable_hooks:15:in
eval'from /Users/jbowes/.rvm/gems/ruby-1.9.3-p551@nai-utils/bin/ruby_executable_hooks:15:in `
Expected Output
Expect yard to work
Environment details:
ruby -v
): ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin16.0.0]yard -v
): 0.9.9Fix
In lib/yard/logging.rb, the encoding line must be the first line
The text was updated successfully, but these errors were encountered: