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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a7b5d9bc23890a16a15a51f8dcc3c82bb87ce07
4
- data.tar.gz: a1e6e13d4a1d39ff02cdda63736ec59790c6d707
3
+ metadata.gz: aabc2a79b3c589043e0786f8bae52e670fca6d67
4
+ data.tar.gz: 3eafa2087523961757072f083363e87dc4eebb62
5
5
  SHA512:
6
- metadata.gz: 70837e9080dd54c886c03041b99a54af627ff5d7c1891857ab44e4a40457fd645a54af8b9c86dbfb515aff738d4ac5833baf923592ccfb1d269de66bc94b5ef5
7
- data.tar.gz: fd848e663de9c0432899930655468fe8a3bf2a47e5bf02154d21df5024197ad19a6b5bed22bb795cb30669265b53ddb7800b897401c8082714a2385cd9fd3529
6
+ metadata.gz: ca1beee4936e3d56d6469a63aebc1e1e8c919d3035ae23ca9c42363b159cd0dbab7c1a15f8c87fcab178a2f996e05e884da53bd9a2efe86e18a9dbc3aee7fd66
7
+ data.tar.gz: 2808a4c374d59c78dff13f7c7886083ac90305850f79b3506e151a4fde4577e17cfa7a1de9b8faa96e0cf4488a7ead3a5586cc350d3b1f908b31347a1f804a04
data/lib/ruby-dita.rb CHANGED
@@ -1,5 +1,15 @@
1
- class RubyDITA
2
- def self.hi
3
- puts "This is a stub project for the ruby-dita. Please read the README.md file for mor information."
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