epubinfo 0.4.2 → 0.4.3

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.
Files changed (3) hide show
  1. data/README.md +4 -0
  2. data/lib/epubinfo/models/cover.rb +3 -3
  3. metadata +3 -3
data/README.md CHANGED
@@ -12,6 +12,10 @@ Which returns a `EPUBInfo::Models::Book` instance, please refer to the [API docu
12
12
 
13
13
  ## Changelog
14
14
 
15
+ **0.4.3** *September 12, 2013*
16
+
17
+ * Made cover detection more robust by escaping the CSS selectors (by [versapub](https://github.com/versapub))
18
+
15
19
  **0.4.2** *August 16, 2013*
16
20
 
17
21
  * Improved cover detection for EPUB3 (by [takahashim](https://github.com/takahashim))
@@ -79,9 +79,9 @@ 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 [properties = #{cover_id}]").first rescue nil) ||
84
- (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
85
  (manifest.css("item [id = img-bookcover-jpeg]").first rescue nil)
86
86
  end
87
87
  end
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.2
4
+ version: 0.4.3
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-08-16 00:00:00.000000000 Z
12
+ date: 2013-09-12 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: 1568915018360201529
255
+ hash: -1199515003805454672
256
256
  required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements: