epub-parser-io 0.1.6b → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,13 +39,13 @@ module EPUB
39
39
  end
40
40
 
41
41
  def parse_io(io_stream, options = {})
42
- new(io_stream, options.merge(io: true)).parse_io
42
+ new(io_stream, options.merge(io: true)).parse
43
43
  end
44
44
  end
45
45
 
46
46
  def initialize(datasource, options = {})
47
47
  if options[:io]
48
- raise "IO source not readable" unless datasource.respond_to?(:to_s)
48
+ raise "IO source not readable" unless datasource.respond_to?(:read)
49
49
 
50
50
  @io_stream = datasource
51
51
  @book = create_book options
@@ -1,5 +1,5 @@
1
1
  module EPUB
2
2
  class Parser
3
- VERSION = "0.1.6b"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub-parser-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6b
5
- prerelease: 5
4
+ version: 0.1.6
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - KITAITI Makoto, Brian Glusman
@@ -418,9 +418,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
418
418
  required_rubygems_version: !ruby/object:Gem::Requirement
419
419
  none: false
420
420
  requirements:
421
- - - ! '>'
421
+ - - ! '>='
422
422
  - !ruby/object:Gem::Version
423
- version: 1.3.1
423
+ version: '0'
424
424
  requirements: []
425
425
  rubyforge_project:
426
426
  rubygems_version: 1.8.24