anatomy 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anatomy/processor.ay +10 -5
- data/lib/anatomy/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: c7237a3a89826363048622c9a011c1fc00c43bb6
|
4
|
+
data.tar.gz: 879ddd5bf27b68f1d49c6321a3d6fdf4c0d3c7a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02499c99a5bc224de47e7888c709656268915d11fc9c57ac29c4a4d531cf8f2bed986c73765a4d5a59308140c579d8709a5e995bca3e6115a3de3eb94c065b9d
|
7
|
+
data.tar.gz: c36259aff23f11d2c0968ba82dfb16bc8f7e40702c6c3d8d80f3aa4fac2304068fae8b13e25765a7a4d8b59515adfd31adef24254f21ae7fe761562fae71fb7f
|
data/lib/anatomy/processor.ay
CHANGED
@@ -11,10 +11,7 @@ collect = require("anatomy/stages/collect")
|
|
11
11
|
resolve = require("anatomy/stages/resolve")
|
12
12
|
html = require("anatomy/renderers/html")
|
13
13
|
|
14
|
-
def(
|
15
|
-
input = File expand-path(input)
|
16
|
-
output = File expand-path(output)
|
17
|
-
|
14
|
+
def(load(input)):
|
18
15
|
mod = Atomy CodeLoader require(input)
|
19
16
|
|
20
17
|
part = mod doc
|
@@ -22,6 +19,14 @@ def(process(input, renderer, output = ".")):
|
|
22
19
|
collected = collect over(traversed)
|
23
20
|
resolved = resolve over(collected)
|
24
21
|
|
22
|
+
resolved
|
23
|
+
|
24
|
+
def(process(input, renderer, output = ".")):
|
25
|
+
input = File expand-path(input)
|
26
|
+
output = File expand-path(output)
|
27
|
+
|
28
|
+
part = load(input)
|
29
|
+
|
25
30
|
unless(Dir exists?(output)):
|
26
31
|
Dir mkdir(output)
|
27
32
|
|
@@ -32,4 +37,4 @@ def(process(input, renderer, output = ".")):
|
|
32
37
|
File expand-path("../../../public", __FILE__) + "/."
|
33
38
|
output + "/public")
|
34
39
|
|
35
|
-
renderer render(
|
40
|
+
renderer render(part, output)
|
data/lib/anatomy/version.rb
CHANGED