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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46f98aa9588f133df3cd0cc9c552ee7699533c26
4
- data.tar.gz: 18db6539cac1e920243501ed165b4da70fa5a717
3
+ metadata.gz: c7237a3a89826363048622c9a011c1fc00c43bb6
4
+ data.tar.gz: 879ddd5bf27b68f1d49c6321a3d6fdf4c0d3c7a7
5
5
  SHA512:
6
- metadata.gz: ba430a1c024f4e448761d0eceee7361b79720cb30b60ceebc6ba8824aed34983370aaa505e377a73c02a28c9db73261e3fc7f4e4a8c557f184a8f4ef46ca7285
7
- data.tar.gz: 0ad1fe02f86099fac2804d6dcdf79057b0555c027b615349bc28b400bbadafeea663a95f280fb9abb2f666f448de53ca0ee8492d5a2951c8d40edd3861a69c87
6
+ metadata.gz: 02499c99a5bc224de47e7888c709656268915d11fc9c57ac29c4a4d531cf8f2bed986c73765a4d5a59308140c579d8709a5e995bca3e6115a3de3eb94c065b9d
7
+ data.tar.gz: c36259aff23f11d2c0968ba82dfb16bc8f7e40702c6c3d8d80f3aa4fac2304068fae8b13e25765a7a4d8b59515adfd31adef24254f21ae7fe761562fae71fb7f
@@ -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(process(input, renderer, output = ".")):
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(resolved, output)
40
+ renderer render(part, output)
@@ -1,3 +1,3 @@
1
1
  module Anatomy
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anatomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Suraci