Comments (4)
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.
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.
v1.1.3
from image_size.
Just tested it: it is fixed.
Great! Thanks for the quick bugfix
from image_size.
Related Issues (15)
- Severe: lib/image_size.rb has (root only) rwx------ rights LoadError HOT 1
- Correct licence HOT 2
- Not working in ruby 2.3.0 HOT 5
- undefined method `unpack' for nil:NilClass while fetching TIFF image size from partial data HOT 3
- JPEG2000 support HOT 2
- Please include actual license text HOT 8
- spec testsuite fails on IBM s390x system for pcx file format HOT 1
- Collaboration with FastImage HOT 2
- Make URI interface public?
- Support heic/heif/avif
- Nil error in detect_format HOT 3
- Can't work with ruby2.0.0-p0 HOT 1
- Timeout::Error when using this inside rails application HOT 2
- PSD size is inversed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image_size.