rakali 0.0.13 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rakali/converter.rb +4 -8
- data/lib/rakali/logger.rb +1 -1
- data/lib/rakali/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cecffbfec2462ddcd3859923599fa16680ea7331
|
4
|
+
data.tar.gz: c09b0a2add3793a8f02b3ec88a7413613c9bbdf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1768d9530d2a2de035237548852399c4b4bc1c1ceb12d0f01ec94ab43ec08096449306199f5ecd2d794053d07c790ac31bdf5f2e45769b4dc07d2930efed0b88
|
7
|
+
data.tar.gz: bee23522cb306f598561cfd96ffb5a5c14027d3d42c0483df75d29d93210498069fa76a37c2c6fa6e56f916034cd368d4ce8960ae27c361f363bde0cbcb24307
|
data/lib/rakali/converter.rb
CHANGED
@@ -8,12 +8,7 @@ module Rakali
|
|
8
8
|
'from' => { 'format' => 'md' },
|
9
9
|
'to' => { 'folder' => nil, 'format' => 'html' },
|
10
10
|
'schema' => 'schemata/default.json',
|
11
|
-
'strict' => false
|
12
|
-
'templates' => 'rakali/templates',
|
13
|
-
'csl' => 'rakali/csl',
|
14
|
-
'bibliography' => 'rakali/bibliography',
|
15
|
-
'filters' => 'rakali/filters',
|
16
|
-
'writers' => 'rakali/writers'
|
11
|
+
'strict' => false
|
17
12
|
}
|
18
13
|
|
19
14
|
attr_accessor :config, :documents, :errors
|
@@ -26,7 +21,7 @@ module Rakali
|
|
26
21
|
@config = Utils.deep_merge_hashes(DEFAULTS, config)
|
27
22
|
|
28
23
|
# print configuration
|
29
|
-
Rakali.logger.info "
|
24
|
+
Rakali.logger.info "Configuration:", to_yaml
|
30
25
|
|
31
26
|
from_folder = @config.fetch('from').fetch('folder')
|
32
27
|
from_format = @config.fetch('from').fetch('format')
|
@@ -57,7 +52,8 @@ module Rakali
|
|
57
52
|
end
|
58
53
|
|
59
54
|
def to_yaml
|
60
|
-
config.to_yaml
|
55
|
+
yaml = config.to_yaml.gsub(/---\n/, '').split("\n")
|
56
|
+
yaml.join("\n ")
|
61
57
|
end
|
62
58
|
end
|
63
59
|
end
|
data/lib/rakali/logger.rb
CHANGED
data/lib/rakali/version.rb
CHANGED