planner_template 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/planner_template.rb +1 -14
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11547040b01531927e88d7976d968cb208c9d203
|
4
|
+
data.tar.gz: bd9e6f1784eeaf8991389b9b8965dff4a9af4928
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b09c71b6cb38dd03110bee86963f6c114cd93a817747066443ceb1a0edddbb301c24ba5d5da33e0d227745e2789db066c623df62095dafb131340bf371b5480
|
7
|
+
data.tar.gz: 4c26f6ec86e3d6b7f506b42eef09163b1b901b619d69a875b7dd4057d11c18e1c9cf16eeafaf588f20ca04ca2f661d6498fedc5252ccd031648624dc67d04a36
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/planner_template.rb
CHANGED
@@ -5,20 +5,7 @@
|
|
5
5
|
require 'nokorexi'
|
6
6
|
|
7
7
|
module LIBRARY
|
8
|
-
|
9
|
-
def fetch_filepath(filename)
|
10
|
-
|
11
|
-
lib = File.dirname(__FILE__)
|
12
|
-
File.join(lib, '..', 'template', filename)
|
13
|
-
end
|
14
8
|
|
15
|
-
def fetch_file(filename)
|
16
|
-
|
17
|
-
filepath = fetch_filepath filename
|
18
|
-
read filepath
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
9
|
def generate_webpage(xml, xsl)
|
23
10
|
|
24
11
|
# transform the xml to html
|
@@ -27,7 +14,7 @@ module LIBRARY
|
|
27
14
|
xslt.transform(doc).to_s
|
28
15
|
end
|
29
16
|
|
30
|
-
def
|
17
|
+
def fetch_file(s)
|
31
18
|
RXFHelper.read(s).first
|
32
19
|
end
|
33
20
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|