Giter Club home page Giter Club logo

Comments (4)

leifg avatar leifg commented on August 30, 2024

Almost forgot:

Here is the stacktrace:

org/jruby/RubyRegexp.java:1520:in `=~'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/image_size-1.1.2/lib/image_size.rb:81:in `detect_format'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/image_size-1.1.2/lib/image_size.rb:52:in `initialize'
(pry):16:in `evaluate_ruby'
org/jruby/RubyBinding.java:134:in `eval'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:328:in `evaluate_ruby'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:278:in `re'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:254:in `rep'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:234:in `repl'
org/jruby/RubyKernel.java:1489:in `loop'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:232:in `repl'
org/jruby/RubyKernel.java:1254:in `catch'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:231:in `repl'
org/jruby/RubyKernel.java:1254:in `catch'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_instance.rb:230:in `repl'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/pry_class.rb:170:in `start'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/cli.rb:201:in `(root)'
org/jruby/RubyProc.java:255:in `call'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/cli.rb:70:in `parse_options'
org/jruby/RubyArray.java:1617:in `each'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/lib/pry/cli.rb:70:in `parse_options'
/Users/leif/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/pry-0.9.12.2-java/bin/pry:16:in `(root)'
org/jruby/RubyKernel.java:1073:in `load'
/Users/leif/.rbenv/versions/jruby-1.7.4/bin/pry:23:in `(root)'    

from image_size.

toy avatar toy commented on August 30, 2024

Probably jruby bug:

binary_string = 'abc'.encode('ASCII-8BIT')
binary_string << 'def'.encode('utf-8')
p binary_string.encoding

But I'll try to fix it

from image_size.

toy avatar toy commented on August 30, 2024

v1.1.3

from image_size.

leifg avatar leifg commented on August 30, 2024

Just tested it: it is fixed.

Great! Thanks for the quick bugfix

from image_size.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.