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

"@import url" command make CssParser::RemoteFileError: CssParser::RemoteFileError #46

Open
deemytch opened this issue Jun 21, 2013 · 0 comments

Comments

@deemytch
Copy link

strings at begin of css file

@import url(http://fonts.googleapis.com/css?family=Abel|Allura);
@import url(http://fonts.googleapis.com/css?family=Oswald:400,300);

versions:
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
css_parser (1.3.4)

irb(main):013:0> incss = CssParser::Parser.new
=> #false, :import=>true, :io_exceptions=>true}, @rules=[], @loaded_uris=[], @blocks=[], @folded_declaration_cache={}, @css_source="", @css_rules=[], @css_warnings=[]>

irb(main):014:0> incss.load_uri! '/tmp/040523868533654style.css'
CssParser::RemoteFileError: CssParser::RemoteFileError
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:470:in `rescue in read_remote_file'
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:423:in `read_remote_file'
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:354:in `load_uri!'
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:138:in `block in add_block!'
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:122:in `each'
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:122:in `add_block!'
  from /home/user/.gem/ruby/2.0.0/gems/css_parser-1.3.4/lib/css_parser/parser.rb:356:in `load_uri!'
  from (irb):14
  from /usr/bin/irb:12:in `'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant