epub-parser-io 0.1.6b → 0.1.6
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.
- data/lib/epub/parser.rb +2 -2
- data/lib/epub/parser/version.rb +1 -1
- metadata +4 -4
data/lib/epub/parser.rb
CHANGED
|
@@ -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)).
|
|
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?(:
|
|
48
|
+
raise "IO source not readable" unless datasource.respond_to?(:read)
|
|
49
49
|
|
|
50
50
|
@io_stream = datasource
|
|
51
51
|
@book = create_book options
|
data/lib/epub/parser/version.rb
CHANGED
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.
|
|
5
|
-
prerelease:
|
|
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:
|
|
423
|
+
version: '0'
|
|
424
424
|
requirements: []
|
|
425
425
|
rubyforge_project:
|
|
426
426
|
rubygems_version: 1.8.24
|