slaw 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/slaw/grammars/za/act.treetop +1 -1
- data/lib/slaw/version.rb +1 -1
- data/spec/za/act_block_spec.rb +25 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 872b9abcfdb880f255e429e07a51f465a86b1ce640639146066220f954baed9d
|
4
|
+
data.tar.gz: 5cc6f53df26d3893959d056dca4df32fa2328820975b0d3d1f5b02259b7e2bf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac9b7e1c43cfcabff3035c510f102cf7e0b43148234527ff0f6f093efaf43ef197197d3be07fb492449f96f95629b104ec5bfd33f2b1437302531f81ad8f77cb
|
7
|
+
data.tar.gz: 0ddb2245be02b53d08fc03bca1be7616a1cd100518686aa555c2a2fdc341408fdb0f59208685b07d15520c01461a116aefadbdc39ef52d3ab152a41288e3815a
|
data/README.md
CHANGED
data/lib/slaw/version.rb
CHANGED
data/spec/za/act_block_spec.rb
CHANGED
@@ -169,6 +169,31 @@ EOS
|
|
169
169
|
</section>
|
170
170
|
</body>'
|
171
171
|
end
|
172
|
+
|
173
|
+
it 'should handle no body and a schedule' do
|
174
|
+
node = parse :act, <<EOS
|
175
|
+
this is in the preface
|
176
|
+
|
177
|
+
SCHEDULE
|
178
|
+
|
179
|
+
some stuff
|
180
|
+
EOS
|
181
|
+
|
182
|
+
b = ::Nokogiri::XML::Builder.new
|
183
|
+
b.root do |b|
|
184
|
+
node.to_xml(b)
|
185
|
+
end
|
186
|
+
xml = b.to_xml(encoding: 'UTF-8')
|
187
|
+
|
188
|
+
xml.should include('<body/>')
|
189
|
+
end
|
190
|
+
|
191
|
+
it 'should handle an empty body' do
|
192
|
+
node = parse :body, <<EOS
|
193
|
+
EOS
|
194
|
+
|
195
|
+
to_xml(node).should == '<body/>'
|
196
|
+
end
|
172
197
|
end
|
173
198
|
|
174
199
|
#-------------------------------------------------------------------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Kempe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|