Can't include this under 1.9.3
walterdavis opened this issue · comments
Walter Lee Davis commented
Trying to do a minimal test in 1.9.3, using irb. I did gem install postrank-uri, then ran irb.
1.9.3-p484 :002 > require 'postrank-uri'
SyntaxError: /Volumes/eddy/Users/waltd/.rvm/gems/ruby-1.9.3-p484/gems/postrank-uri-1.0.18/lib/postrank-uri.rb:44: invalid multibyte char (US-ASCII)
/Volumes/eddy/Users/waltd/.rvm/gems/ruby-1.9.3-p484/gems/postrank-uri-1.0.18/lib/postrank-uri.rb:44: invalid multibyte char (US-ASCII)
/Volumes/eddy/Users/waltd/.rvm/gems/ruby-1.9.3-p484/gems/postrank-uri-1.0.18/lib/postrank-uri.rb:44: syntax error, unexpected $end, expecting keyword_end
... = /(?:|\.|[^-\/"':!=A-Z0-9_@@]|^|\:)/i
... ^
from /Volumes/eddy/Users/waltd/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `require'
from /Volumes/eddy/Users/waltd/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /Volumes/eddy/Users/waltd/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in `require'
from (irb):2
from /Volumes/eddy/Users/waltd/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `<main>'
This works perfectly using 2.1.2, so I'm not sure how to fix it. My test server runs 1.9.3, and there's lots of stuff that will break if I update it.
Ilya Grigorik commented
Think that should do the trick, can you try building from master?
gem build postrank-uri.gemspec && gem install ...