epubinfo_with_toc 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzU5NzFlNjU0MGZmMTczMjhiNTg4ZDMwZGMyZTUwYmYzZWQ3NDg3NA==
4
+ YmQyMmEzZTVlNmQ1OTNkZTVjZjY3YTUyOWM2NWZlOGE2YmI4ZTExNw==
5
5
  data.tar.gz: !binary |-
6
- YWYwZjdiYzMzMDhiYTJmNDVmOGQxYzUzZWZhYTQyZDllNWMyNzQyNQ==
6
+ ZjQ5ZjBmYWIxY2EyNjIyOGVmYWI3MGRiYzYzN2I3YWY0M2ZkYmI4YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDE3OTBjYzEzZTc1MzVmNTk1YjQyYTFhN2JiZGQ3MjUxMjVkZDM1OGIwNTc1
10
- ZTQyN2RmNjc2MTA5NjNiMTdjYTE5ZTVlMmUxODIzYzMzNzllZjZhYzE3ZDQx
11
- NWFlNjQ4NWIxZWQwYTg1N2ZiMDZmMzJjZDI0MWMyMTkxYTNjYjA=
9
+ Y2Y2MWY5MTE1NmNkZDk3NDU3NTQ3Mjc3NjY4NzJlZDkwMjFmZjg5ZGFmMDE0
10
+ MjNjNmQ5ZmJlNjQ0YjBhYWE3ZTdmMjc4ZTAzN2ZmZTA5NDFhZGE1ZTY5ZDI5
11
+ NDdiYjcwZjJlNDI1MDhkNzljNzk5NmFkODBmZTVlYTk3MjM2NDA=
12
12
  data.tar.gz: !binary |-
13
- NDEzNDFhMTdiZjA1OWEwYjU4MTNiNTdkZTIwYTcyOWNkMTcwY2Q4OTdlMzVi
14
- YmZiNGM5NGExNjNkNzQ5MjFiYWUxOWJhMTc0NGQ1YzkyM2M4ZTJhNDVjM2Y4
15
- MWFmMjNmNmZjYmRkZmEyOTc2NzFmMGFiNGI1ZGQxZWIxMjNjYTM=
13
+ NTEwZDAzNWUxYTMyYWU4ZTczMWQ5NzE3MWEzOWI0ZDg4NDA3MzMzNjg2NjMx
14
+ MzAzMzBhOTMxOGQ2NzdhMGM1MjRiZGJlOGRhYWU1YmQ2NjZiMWYwZTBjNDk3
15
+ ODI5ZTdlM2FhM2Q5NTg4MjEzNWFhZGY5NjhjN2JiNDliZDdhMjA=
@@ -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
@@ -24,7 +24,7 @@ module EPUBInfo
24
24
  # @return [Hash]
25
25
  def to_hash
26
26
  {
27
- :time => @time,
27
+ :time => @date_str,
28
28
  :event => @event
29
29
  }
30
30
  end
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
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-19 00:00:00.000000000 Z
12
+ date: 2014-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip