slaw 1.0.0.alpha.2 → 1.0.0.alpha.3

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: 16495306529339f9897fda3092e402d15a8df8ef
4
- data.tar.gz: e3536947fd47ad3844fab512041e2b08bf615433
3
+ metadata.gz: 31ca69bdfe68c0e688320a033b63bc319dd3494e
4
+ data.tar.gz: 95abf4fbf34526c2497f87413bfb1a9bc0229e4c
5
5
  SHA512:
6
- metadata.gz: 933bfcd5b5f762769d233fe5cb9786eb5f2d5b4e7570cd563ee9d64e787b0a22ad4db60b099d6c334559b61b24d48627b9368757cfb6e3ba169d429bb1884b7a
7
- data.tar.gz: ae80c3eb1c3d2b7d9b46ec3eea15c294f24c1f58569546548133cc609977f59c0314ef4e0cc7ec8538ebc7d67d1a7b8c2cc2f9cbe8ca4ae919594a5b03a84dd1
6
+ metadata.gz: ccab43b362cd4eb771a5eeed3700b24ef7cc957f6f13144e461e79907518206f630c256fe442259224ddf76c02985743bedf1be6686a118a3ff97f909d1a4e80
7
+ data.tar.gz: 192cad74ecbc0c26335b2eda024ff7f206171f32fdfb4c6823212744f4aca463f21d97878e5f718ab2695ce9d37784bf1bdd4ec2cd494fd3a3daa0d32d2443e4
@@ -328,10 +328,10 @@ module Slaw
328
328
 
329
329
  class BlockParagraph < Treetop::Runtime::SyntaxNode
330
330
  def to_xml(b, idprefix='', i=0)
331
- id = "#{idprefix}paragraph-0"
331
+ id = "#{idprefix}subparagraph-0"
332
332
  idprefix = id + "."
333
333
 
334
- b.paragraph(id: id) { |b|
334
+ b.subparagraph(id: id) { |b|
335
335
  b.content { |b|
336
336
  elements.each_with_index { |e, i| e.to_xml(b, idprefix, i) }
337
337
  }
data/lib/slaw/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Slaw
2
- VERSION = "1.0.0.alpha.2"
2
+ VERSION = "1.0.0.alpha.3"
3
3
  end
@@ -53,11 +53,11 @@ EOS
53
53
  to_xml(node).should == '<body>
54
54
  <division id="division-I">
55
55
  <num>I</num>
56
- <paragraph id="division-I.paragraph-0">
56
+ <subparagraph id="division-I.subparagraph-0">
57
57
  <content>
58
58
  <p>Projekt ustawy</p>
59
59
  </content>
60
- </paragraph>
60
+ </subparagraph>
61
61
  <chapter id="chapter-7">
62
62
  <num>7</num>
63
63
  <heading>Oznaczanie przepisów ustawy i ich systematyzacja</heading>
@@ -378,11 +378,11 @@ EOS
378
378
  <intro>
379
379
  <p>Podstawową jednostką redakcyjną ustawy jest artykuł.</p>
380
380
  </intro>
381
- <paragraph id="section-54.paragraph-0">
381
+ <subparagraph id="section-54.subparagraph-0">
382
382
  <content>
383
383
  <p>Something here</p>
384
384
  </content>
385
- </paragraph>
385
+ </subparagraph>
386
386
  <point id="section-54.point-1">
387
387
  <num>1)</num>
388
388
  <content>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slaw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.2
4
+ version: 1.0.0.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Kempe