epinfo 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/epinfo/version.rb +1 -1
  2. data/lib/epinfo.rb +4 -3
  3. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  class EPInfo
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/epinfo.rb CHANGED
@@ -46,13 +46,14 @@ class EPInfo
46
46
 
47
47
  return <<-EOB
48
48
  titles: #{book.titles.join()}
49
- creators: #{book.creators.map{|c| "#{c.name}(#{c.role})"}.join(', ')}
49
+ creators: #{book.creators.map{|c| "#{c.name}(#{c.role||'-'})"}.join(', ')}
50
50
  subjects: #{book.subjects.join(", ")}
51
51
  description: #{book.description}
52
52
  publisher: #{book.publisher}
53
- contributors: #{book.contributors.map{|c| "#{c.name}(#{c.role})"}.join(', ')}
54
- dates: #{book.dates.map{|d| "#{d.date_str}(#{d.event})"}.join(', ')}
53
+ contributors: #{book.contributors.map{|c| "#{c.name}(#{c.role||'-'})"}.join(', ')}
54
+ dates: #{book.dates.map{|d| "#{d.date_str}(#{d.event||'-'})"}.join(', ')}
55
55
  identifiers: #{book.identifiers.map(&:identifier).join(', ')}
56
+ epub_version: #{book.version}
56
57
  source: #{book.source}
57
58
  languages: #{book.languages.join(', ')}
58
59
  rights: #{book.rights}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.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-01-15 00:00:00.000000000 Z
12
+ date: 2013-02-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: command line tool to show epub information
15
15
  email: