epubinfo 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +7 -2
  2. data/lib/epubinfo/models/cover.rb +4 -2
  3. metadata +3 -3
data/README.md CHANGED
@@ -12,10 +12,15 @@ Which returns a `EPUBInfo::Models::Book` instance, please refer to the [API docu
12
12
 
13
13
  ## Changelog
14
14
 
15
+ **0.4.2** *August 16, 2013*
16
+
17
+ * Improved cover detection for EPUB3 (by [takahashim](https://github.com/takahashim))
18
+ * Improved cover detection for EPUB2 (by [cyrret](https://github.com/cyrret))
19
+
15
20
  **0.4.1** *February 15, 2013*
16
21
 
17
- * Added Book#version to get EPUB version of the file
18
- * Added support for modified_date in Book#dates
22
+ * Added Book#version to get EPUB version of the file (by [takahashim](https://github.com/takahashim))
23
+ * Added support for modified_date in Book#dates (by [takahashim](https://github.com/takahashim))
19
24
 
20
25
  **0.4.0** *July 31, 2012*
21
26
 
@@ -79,8 +79,10 @@ module EPUBInfo
79
79
 
80
80
  manifest = @parser.metadata_document.css('manifest')
81
81
 
82
- manifest.css("item [id = #{cover_id}]").first rescue nil ||
83
- manifest.css("item [property = #{cover_id}]").first rescue nil
82
+ (manifest.css("item [id = #{cover_id}]").first rescue nil) ||
83
+ (manifest.css("item [properties = #{cover_id}]").first rescue nil) ||
84
+ (manifest.css("item [property = #{cover_id}]").first rescue nil) ||
85
+ (manifest.css("item [id = img-bookcover-jpeg]").first rescue nil)
84
86
  end
85
87
  end
86
88
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epubinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-15 00:00:00.000000000 Z
12
+ date: 2013-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip
@@ -252,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  segments:
254
254
  - 0
255
- hash: -351582616179957298
255
+ hash: 1568915018360201529
256
256
  required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements: