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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9d2449063e9b5703f02ea1991ff710b46078ec1
4
- data.tar.gz: 0d946555133ba928b636cc201a3a4e64aa26579b
3
+ metadata.gz: 06ab27593faedf44d492a7a29b7f9dcf120fc71f
4
+ data.tar.gz: deefe51764331e088cd4be26c45de3083f9c6c82
5
5
  SHA512:
6
- metadata.gz: 9bcf56a1938b02611dcc6dc3ec1975ae951d7c3229e94523894c1a275426196bf154fea730459360afa1cb3d7e4a7a84065b1b2270d9a4f61223c46f95223048
7
- data.tar.gz: 3be8d5171f9fc7567d344c434d5b7429b66c02105a97ee11818d9d9fe79cd2495ab42092a1ff44d9980b7fdf1be5c9d2b904e68e5ae347e211b82cda8c70f31f
6
+ metadata.gz: f32050f17751b3499de58cb455a786e8322ba6974fee8b857bc312da981225f2c96be138bc93c003f33e60c1276fac8092eb67100e6a74613f144fff16b7ff61
7
+ data.tar.gz: b2a446a5fc5bfd316a14b812b235f8c81175b1710eaf37cc45898b2bf73174c8f0e55b22b7943ee2cc717df09ceb0acb0bede9a268667edd7b9d47637c58febe
@@ -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)
@@ -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 style match:
81
- .tt: b
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:
@@ -1,3 +1,3 @@
1
1
  module Anatomy
2
- VERSION = "0.2.13"
2
+ VERSION = "0.2.14"
3
3
  end
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.13
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-22 00:00:00.000000000 Z
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
- name: atomy
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
- name: broomhlda
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
- name: json_pure
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
- name: rake
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