epub-parser-io 0.1.6a → 0.1.6b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module EPUB
2
2
  class Parser
3
- VERSION = "0.1.6a"
3
+ VERSION = "0.1.6b"
4
4
  end
5
5
  end
data/lib/epub/parser.rb CHANGED
@@ -45,7 +45,7 @@ module EPUB
45
45
 
46
46
  def initialize(datasource, options = {})
47
47
  if options[:io]
48
- raise "IO source not readable" unless datasource.respond_to?(:read)
48
+ raise "IO source not readable" unless datasource.respond_to?(:to_s)
49
49
 
50
50
  @io_stream = datasource
51
51
  @book = create_book options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub-parser-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6a
4
+ version: 0.1.6b
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors: