cheepub 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75b8c7a957e9f1f53e5653d64344e40046be2d05f5ecbb355c347fc2e06fbb18
4
- data.tar.gz: 123a9671b806b764905c321936cfdfde96264626d2491139b6bf56b208a87186
3
+ metadata.gz: 5896ab876df9d1ce90842551a1a6ee2e9d54b042502202964849adba3d6b61aa
4
+ data.tar.gz: ad9547dd2a07beed2a58a74204e7c7f0995dbd0cb4c79c306e559e0127392bb6
5
5
  SHA512:
6
- metadata.gz: 01743eb4edcc4cec188b5d9dae029a50dd4fbd7c3c950f41072c641e28d5671a2b20c0c1b9eeb97d07cf1e6ad09d93c2fedb24a16c47c0c4d9be839d03e6cd89
7
- data.tar.gz: fdd015f3e9fcf5f7055f6018f97c2ddc29910a90606fe42e9a198aa4b99804158cf80a680428ab5266b0845f2013a84d3aea537d51a43691b709bff9c27890a4
6
+ metadata.gz: 5cad978d175629b2f3486763daabfb81337c71259a1b6a915df6f4ba2468774645e242419a71e2517f79215cf3f033ff53abce5e1a27b47ef2a1de27681f09d3
7
+ data.tar.gz: ec0f58cdf050555a2274c2dc27a8b38910ac0bfa609e71da81bde66711d60d1264db064477ffe4ba74967663431a7c04691a22727a1771bfc81d34700125a59e
data/README.md CHANGED
@@ -86,6 +86,10 @@ In a little district west of Washington Square the streets have run crazy and br
86
86
 
87
87
  ## History
88
88
 
89
+ ### 0.5.1
90
+
91
+ - fix to generate valid epub file
92
+
89
93
  ### 0.5.0
90
94
 
91
95
  - support titlepage
@@ -57,7 +57,7 @@ module Cheepub
57
57
  parse_creator(params[:creator])
58
58
  @book.language = params[:language] || 'ja'
59
59
  @book.version = '3.0'
60
- @book.publisher = params[:publisher]
60
+ @book.publisher = params[:publisher] if params[:publisher]
61
61
  ## book.date= params[:date] || Time.now
62
62
  @book.add_date(params[:date] || Time.now, nil)
63
63
  @book.lastmodified = params[:lastModified] || Time.now
@@ -58,6 +58,8 @@ module Cheepub
58
58
  end
59
59
  if id && content.length > 0
60
60
  buf << " #{indent}<a href=\"#{filename}\##{id}\">#{content}</a>\n"
61
+ elsif level > 0
62
+ buf << " #{indent}<span>&#160;</span>\n"
61
63
  end
62
64
  if !children.empty?
63
65
  buf << " #{indent}<ol>\n" +
@@ -1,3 +1,3 @@
1
1
  module Cheepub
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheepub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahashim