anatomy 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anatomy/data.ay +20 -0
- data/lib/anatomy/stages/meta.ay +4 -8
- data/lib/anatomy/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ab27593faedf44d492a7a29b7f9dcf120fc71f
|
4
|
+
data.tar.gz: deefe51764331e088cd4be26c45de3083f9c6c82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f32050f17751b3499de58cb455a786e8322ba6974fee8b857bc312da981225f2c96be138bc93c003f33e60c1276fac8092eb67100e6a74613f144fff16b7ff61
|
7
|
+
data.tar.gz: b2a446a5fc5bfd316a14b812b235f8c81175b1710eaf37cc45898b2bf73174c8f0e55b22b7943ee2cc717df09ceb0acb0bede9a268667edd7b9d47637c58febe
|
data/lib/anatomy/data.ay
CHANGED
@@ -13,6 +13,26 @@ data(Block(@content, @style = nil)):
|
|
13
13
|
List(@elements):
|
14
14
|
OrderedList(@elements)
|
15
15
|
|
16
|
+
fn(style-contains-prose?(style)):
|
17
|
+
style match:
|
18
|
+
.tt:
|
19
|
+
false
|
20
|
+
|
21
|
+
.verbatim:
|
22
|
+
false
|
23
|
+
|
24
|
+
.header(_):
|
25
|
+
false
|
26
|
+
|
27
|
+
.classed(sub, *classes):
|
28
|
+
style-contains-prose?(sub)
|
29
|
+
|
30
|
+
_:
|
31
|
+
true
|
32
|
+
|
33
|
+
def(Block prose-content?):
|
34
|
+
style-contains-prose?(@style)
|
35
|
+
|
16
36
|
data(Element(@content, @style = nil)):
|
17
37
|
Target(@name)
|
18
38
|
TOC(@content)
|
data/lib/anatomy/stages/meta.ay
CHANGED
@@ -77,17 +77,13 @@ def(pass(l & data List, part, body = part body)):
|
|
77
77
|
def(pass(b & data Block, part, body = part body)):
|
78
78
|
unless(body frozen?):
|
79
79
|
body <<
|
80
|
-
b
|
81
|
-
|
82
|
-
|
83
|
-
.verbatim: b
|
84
|
-
|
85
|
-
.header(_): b
|
86
|
-
|
87
|
-
_:
|
80
|
+
if(b prose-content?)
|
81
|
+
then:
|
88
82
|
b dup tap [x]:
|
89
83
|
x content = []
|
90
84
|
pass(b content, part, x content)
|
85
|
+
else:
|
86
|
+
b
|
91
87
|
|
92
88
|
def(pass(x, part, body = part body)):
|
93
89
|
condition:
|
data/lib/anatomy/version.rb
CHANGED
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anatomy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Suraci
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: atomy
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: 0.6.3
|
19
|
-
|
20
|
+
type: :runtime
|
20
21
|
prerelease: false
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
22
23
|
requirements:
|
23
24
|
- - "~>"
|
24
25
|
- !ruby/object:Gem::Version
|
25
26
|
version: 0.6.3
|
26
|
-
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: broomhlda
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 0.2.0
|
33
|
-
|
34
|
+
type: :runtime
|
34
35
|
prerelease: false
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
36
37
|
requirements:
|
37
38
|
- - "~>"
|
38
39
|
- !ruby/object:Gem::Version
|
39
40
|
version: 0.2.0
|
40
|
-
type: :runtime
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: json_pure
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '1.8'
|
47
|
-
|
48
|
+
type: :runtime
|
48
49
|
prerelease: false
|
49
50
|
version_requirements: !ruby/object:Gem::Requirement
|
50
51
|
requirements:
|
51
52
|
- - "~>"
|
52
53
|
- !ruby/object:Gem::Version
|
53
54
|
version: '1.8'
|
54
|
-
type: :runtime
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - "~>"
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '10.4'
|
61
|
-
|
62
|
+
type: :development
|
62
63
|
prerelease: false
|
63
64
|
version_requirements: !ruby/object:Gem::Requirement
|
64
65
|
requirements:
|
65
66
|
- - "~>"
|
66
67
|
- !ruby/object:Gem::Version
|
67
68
|
version: '10.4'
|
68
|
-
type: :development
|
69
69
|
description: "\n A document authoring system inspired by Scribble.\n "
|
70
70
|
email:
|
71
71
|
- suraci.alex@gmail.com
|