carta 0.0.9 → 0.1.0
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1b02875400b145107351eea413beb9e6e5e555b
|
|
4
|
+
data.tar.gz: f365ba014fbd3f6dfa4e3a2e23465d37b58c0e41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0defe3369cc81f6bcb79bb1fd61f52e5186337198a3b2d02fcf7f706055060af0f2fc067210d650dcfe53f175868fcc99ee4de3fc74a219350f529f5d2dc6ab
|
|
7
|
+
data.tar.gz: 22ca12b77d4b454c1e8f0be170ca97ff8ce37c50d3169217fda1271bb37a3a4c50fd6ee34e1c9d1783dcf07fc24c23d83f52006a8a62c5fd5391f89a8705a98d
|
data/lib/carta/cli/compile.rb
CHANGED
|
@@ -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
|
-
|
|
99
|
-
|
|
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
|
-
|
|
122
|
-
|
|
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,
|
|
128
|
+
thor.copy_file file, epub_dest[index]
|
|
129
|
+
thor.copy_file file, html_dest[index]
|
|
126
130
|
end
|
|
127
131
|
end
|
|
128
132
|
|
data/lib/carta/version.rb
CHANGED
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
|
|
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-
|
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|