carta 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45dde63c7083042b1838f16713a79bf4d92c7b08
4
- data.tar.gz: 66a564f43517c7fcee5b1b18482e4e4d97c4a35d
3
+ metadata.gz: f1b02875400b145107351eea413beb9e6e5e555b
4
+ data.tar.gz: f365ba014fbd3f6dfa4e3a2e23465d37b58c0e41
5
5
  SHA512:
6
- metadata.gz: e0de778da2ade591568fb4ea46c5726fc81b414041ec5f40efa0d7cb934e34d4d2cf311a16d8ec7f1718e1fa8838230b291ff34cfe903b1e9413e872f19fa167
7
- data.tar.gz: 4ef74bc8d82009a48efc8117f9a9d9ed9180a67350c53ef1a59fa5b36dff287b4404e2012d1bd7d5142ddcdc7e137cdd9a0820db98090babe05aa436610baae9
6
+ metadata.gz: f0defe3369cc81f6bcb79bb1fd61f52e5186337198a3b2d02fcf7f706055060af0f2fc067210d650dcfe53f175868fcc99ee4de3fc74a219350f529f5d2dc6ab
7
+ data.tar.gz: 22ca12b77d4b454c1e8f0be170ca97ff8ce37c50d3169217fda1271bb37a3a4c50fd6ee34e1c9d1783dcf07fc24c23d83f52006a8a62c5fd5391f89a8705a98d
@@ -95,8 +95,8 @@ module Carta
95
95
  .add("#{@FIGURE_DIR}/**/*.{#{@ASSET_FILES}}",
96
96
  "#{@ASSET_DIR}/**/*.{#{@ASSET_FILES}}",
97
97
  "#{@MANUSCRIPT_DIR}/cover.{#{@ASSET_FILES}}")
98
- .pathmap("%{^#{@ASSET_DIR}/,}p")
99
- .pathmap("%{^#{@FIGURE_DIR},figures}p")
98
+ .pathmap("%{^#{@ASSET_DIR}/,}p")
99
+ .pathmap("%{^#{@FIGURE_DIR},figures}p")
100
100
 
101
101
  book['manifest'] = []
102
102
 
@@ -118,11 +118,15 @@ module Carta
118
118
  "#{@ASSET_DIR}/**/*.{#{@ASSET_FILES}}",
119
119
  "#{@MANUSCRIPT_DIR}/cover.{#{@ASSET_FILES}}")
120
120
 
121
- dest = assets.pathmap("%{^#{@ASSET_DIR},#{@BUILD_DIR}/epub/EPUB}p")
122
- .pathmap("%{^#{@FIGURE_DIR},#{@BUILD_DIR}/epub/EPUB/figures}p")
121
+ epub_dest = assets.pathmap("%{^#{@ASSET_DIR},#{@BUILD_DIR}/epub/EPUB}p")
122
+ .pathmap("%{^#{@FIGURE_DIR},#{@BUILD_DIR}/epub/EPUB/figures}p")
123
+
124
+ html_dest = assets.pathmap("%{^#{@ASSET_DIR},#{@BUILD_DIR}/html}p")
125
+ .pathmap("%{^#{@FIGURE_DIR},#{@BUILD_DIR}/html/figures}p")
123
126
 
124
127
  assets.each_with_index do |file, index|
125
- thor.copy_file file, dest[index]
128
+ thor.copy_file file, epub_dest[index]
129
+ thor.copy_file file, html_dest[index]
126
130
  end
127
131
  end
128
132
 
@@ -32,8 +32,6 @@ module Carta
32
32
  @outline = renderer.outline
33
33
  @epub_toc_html = render_outline
34
34
  @html_toc_html = render_outline('toc',true)
35
-
36
-
37
35
  end
38
36
 
39
37
  def render_outline(html_class = 'toc', for_html = false)
@@ -14,7 +14,7 @@
14
14
  <section>
15
15
  <nav epub:type="toc">
16
16
  <h1><%= book['title'].gsub(/\w+/) {|word| word.capitalize} %></h1>
17
- <%= book['toc_html'] %>
17
+ <%= book['epub_toc_html'] %>
18
18
  </nav>
19
19
  </section>
20
20
  </body>
@@ -5,7 +5,7 @@
5
5
  <title><%= book['title'] %></title>
6
6
  </head>
7
7
  <body>
8
- <%= book['toc_html'] %>
8
+ <%= book['html_toc_html'] %>
9
9
  <%= book['html'] %>
10
10
  </body>
11
11
  </html>
data/lib/carta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Carta
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Wreggelsworth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler