epubinfo_with_toc 0.5.4 → 0.5.5
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.
- checksums.yaml +8 -8
- data/lib/epubinfo/models/book.rb +9 -1
- data/lib/epubinfo/models/date.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmQyMmEzZTVlNmQ1OTNkZTVjZjY3YTUyOWM2NWZlOGE2YmI4ZTExNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjQ5ZjBmYWIxY2EyNjIyOGVmYWI3MGRiYzYzN2I3YWY0M2ZkYmI4YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2Y2MWY5MTE1NmNkZDk3NDU3NTQ3Mjc3NjY4NzJlZDkwMjFmZjg5ZGFmMDE0
|
10
|
+
MjNjNmQ5ZmJlNjQ0YjBhYWE3ZTdmMjc4ZTAzN2ZmZTA5NDFhZGE1ZTY5ZDI5
|
11
|
+
NDdiYjcwZjJlNDI1MDhkNzljNzk5NmFkODBmZTVlYTk3MjM2NDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTEwZDAzNWUxYTMyYWU4ZTczMWQ5NzE3MWEzOWI0ZDg4NDA3MzMzNjg2NjMx
|
14
|
+
MzAzMzBhOTMxOGQ2NzdhMGM1MjRiZGJlOGRhYWU1YmQ2NjZiMWYwZTBjNDk3
|
15
|
+
ODI5ZTdlM2FhM2Q5NTg4MjEzNWFhZGY5NjhjN2JiNDliZDdhMjA=
|
data/lib/epubinfo/models/book.rb
CHANGED
@@ -70,6 +70,12 @@ module EPUBInfo
|
|
70
70
|
# @return [String]
|
71
71
|
attr_accessor :version
|
72
72
|
|
73
|
+
|
74
|
+
#Type
|
75
|
+
#The type element is used to indicate that the given Publication is of a specialized type
|
76
|
+
# @return [Type]
|
77
|
+
attr_accessor :type
|
78
|
+
|
73
79
|
# Should never be called directly, go through EPUBInfo.get
|
74
80
|
def initialize(parser)
|
75
81
|
document = parser.metadata_document
|
@@ -97,6 +103,7 @@ module EPUBInfo
|
|
97
103
|
self.drm_protected = parser.drm_protected?
|
98
104
|
self.cover = EPUBInfo::Models::Cover.new(parser)
|
99
105
|
self.table_of_contents = EPUBInfo::Models::TableOfContents.new(parser)
|
106
|
+
self.type = metadata.xpath('.//type').first.content rescue ''
|
100
107
|
end
|
101
108
|
|
102
109
|
|
@@ -117,7 +124,8 @@ module EPUBInfo
|
|
117
124
|
:rights => @rights,
|
118
125
|
:drm_protected => @drm_protected,
|
119
126
|
:cover => @cover,
|
120
|
-
:table_of_contents => @table_of_contents
|
127
|
+
:table_of_contents => @table_of_contents,
|
128
|
+
:type => @type
|
121
129
|
}
|
122
130
|
end
|
123
131
|
end
|
data/lib/epubinfo/models/date.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epubinfo_with_toc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christof Dorner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|