zenml-book 1.0.1 → 1.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
  SHA256:
3
- metadata.gz: 680c870647b4bef399467f124e18250ba0162ebeffd350ca5819c33d31ae80c1
4
- data.tar.gz: e683b2b49dc18bf85f879017c3e093ab00a30744b8a8c1d564d32d029a585a62
3
+ metadata.gz: f97a4057a8a6bd434e767c43672be45e77d8337389c78833ef0198b7724c9313
4
+ data.tar.gz: c9a3d02376e27c4dc790250b6b4bab7da74c975972bd61caedb79a741a2b1f02
5
5
  SHA512:
6
- metadata.gz: ce62d75c839bfc2e1881a75e19797d8d59e3927825897dbeb67349b81f29b29f8584a395b93acd288ae87d273d6e09670dbca39a19034baa075e4bfb5371f48b
7
- data.tar.gz: 449ebd24faeb20abc94f6bebc801827d15803831994eb70548fbe977117f26a8feedaee0b9a8e770a559ef8e8aede279a83aa64106d9f30189b5ae60ffecdf07
6
+ metadata.gz: c0a3d4cd7d59328e7766a0394578c7eb615ba0b6f162ce1a04be9d7562414603bcac4c4dd0ab6b39249635527ac42c060b6ceb2c6501dae958c9a52558c88583
7
+ data.tar.gz: 761c7368bbefb80caea6db406ca89e8a5363756074ada4f0ec27148bfbb23b58c4bdc207655c2e46a6347b487410c647cfb3754659e928ffcfcab1dde71e2c80
data/source/zenml/book.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Zenithal::Book
5
5
 
6
- VERSION = "1.0.1"
6
+ VERSION = "1.1.0"
7
7
  VERSION_ARRAY = VERSION.split(/\./).map(&:to_i)
8
8
 
9
9
  end
@@ -25,14 +25,14 @@ class Zenithal::Book::WholeBookConverter
25
25
  end
26
26
 
27
27
  def execute
28
- path = File.join(@dirs[:document], "main.zml")
28
+ path = File.join(@dirs[:document], "manuscript", "main.zml")
29
29
  convert_normal(path)
30
30
  convert_typeset(path) if @typeset
31
31
  convert_open(path) if @open_type
32
32
  end
33
33
 
34
34
  def convert_normal(path)
35
- output_path = path.gsub(@dirs[:document], @dirs[:output]).gsub(".zml", ".fo")
35
+ output_path = path.gsub(File.join(@dirs[:document], "manuscript"), @dirs[:output]).gsub(".zml", ".fo")
36
36
  parser = create_parser.tap{|s| s.update(File.read(path))}
37
37
  converter = create_converter.tap{|s| s.update(parser.run)}
38
38
  formatter = create_formatter
@@ -86,7 +86,7 @@ class Zenithal::Book::WholeBookConverter
86
86
  parser.register_macro("import") do |attributes, _|
87
87
  import_path = attributes["src"]
88
88
  import_parser = create_parser(false)
89
- import_parser.update(File.read(File.join(@dirs[:document], import_path)))
89
+ import_parser.update(File.read(File.join(@dirs[:document], "manuscript", import_path)))
90
90
  document = import_parser.run
91
91
  import_nodes = (attributes["expand"]) ? document.root.children : [document.root]
92
92
  next import_nodes
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenml-book
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziphil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-15 00:00:00.000000000 Z
11
+ date: 2021-02-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'To be written.
14
14
 
15
- '
15
+ '
16
16
  email:
17
17
  - ziphil.shaleiras@gmail.com
18
18
  executables: []
@@ -25,7 +25,7 @@ homepage: https://github.com/Ziphil/ZenithalBook
25
25
  licenses:
26
26
  - MIT
27
27
  metadata: {}
28
- post_install_message:
28
+ post_install_message:
29
29
  rdoc_options: []
30
30
  require_paths:
31
31
  - source
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubygems_version: 3.0.3
44
- signing_key:
44
+ signing_key:
45
45
  specification_version: 4
46
46
  summary: Summary
47
47
  test_files: []