ruby-dita 0.0.0 → 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 +4 -4
- data/lib/ruby-dita.rb +13 -3
- data/xml/dita_grammar.xml +2133 -0
- metadata +9 -311
- data/config/version.rb +0 -8
- data/lib/tasks/gem.rake +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aabc2a79b3c589043e0786f8bae52e670fca6d67
|
4
|
+
data.tar.gz: 3eafa2087523961757072f083363e87dc4eebb62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca1beee4936e3d56d6469a63aebc1e1e8c919d3035ae23ca9c42363b159cd0dbab7c1a15f8c87fcab178a2f996e05e884da53bd9a2efe86e18a9dbc3aee7fd66
|
7
|
+
data.tar.gz: 2808a4c374d59c78dff13f7c7886083ac90305850f79b3506e151a4fde4577e17cfa7a1de9b8faa96e0cf4488a7ead3a5586cc350d3b1f908b31347a1f804a04
|
data/lib/ruby-dita.rb
CHANGED
@@ -1,5 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# Copyright (c) 2016 Freescale Semiconductor Inc.
|
2
|
+
|
3
|
+
require 'duxml'
|
4
|
+
|
5
|
+
|
6
|
+
module Dita
|
7
|
+
GRAMMAR_PATH = File.expand_path(File.dirname(__FILE__) + '/../xml/dita_grammar.xml')
|
8
|
+
include Duxml
|
9
|
+
|
10
|
+
# @param path_or_doc [String] path of Dita file or new Doc
|
11
|
+
# @return [Doc] XML document
|
12
|
+
def load(path_or_doc)
|
13
|
+
super(path_or_doc, GRAMMAR_PATH)
|
4
14
|
end
|
5
15
|
end
|