slaw 9.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/slaw/grammars/terminals.treetop +5 -1
- data/lib/slaw/version.rb +1 -1
- data/spec/za/act_block_spec.rb +22 -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: 6c60448bb3a8c2cb9bad02e434eab59805129a845b13f6f95b6f062b3a61ef15
|
4
|
+
data.tar.gz: dfcb7d9a0413b8c61448af102da840e41cb3f942ec0a249c35c5ec4808c4e090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9930cf182f41f54ab0fc377a9f3d6a48d3cd8f466124ad9d3b404bd0739036a7e9615bdc1b715a16b94458b1215ed8bf77a1ab0a4d40092044faf1ecb2559caf
|
7
|
+
data.tar.gz: 8db5857b43d42ccbacb24c48b2649ae49c431830a5e22a1ceeb121a16e6b8cc10f3a5757bbd6c64393e24c0e34d59486cd11e3a227badf32bfb92ebcfb08f8ce
|
data/README.md
CHANGED
@@ -79,8 +79,17 @@ You can create your own grammar by creating a gem that provides these files and
|
|
79
79
|
7. Push to the branch: `git push origin my-new-feature`
|
80
80
|
8. Create a new Pull Request
|
81
81
|
|
82
|
+
## Releasing
|
83
|
+
|
84
|
+
1. Update `lib/slaw/version.rb`
|
85
|
+
2. Run `rake release`
|
86
|
+
|
82
87
|
## Changelog
|
83
88
|
|
89
|
+
### 9.1.0 (15 April 2020)
|
90
|
+
|
91
|
+
* Subsections can have numbers such as 1.1A and 1.1bis
|
92
|
+
|
84
93
|
### 9.0.0 (17 Mar 2020)
|
85
94
|
|
86
95
|
* Support SUBPART
|
data/lib/slaw/version.rb
CHANGED
data/spec/za/act_block_spec.rb
CHANGED
@@ -1038,6 +1038,28 @@ EOS
|
|
1038
1038
|
9.9. foo
|
1039
1039
|
EOS
|
1040
1040
|
node.num.should == "9.9"
|
1041
|
+
|
1042
|
+
node = parse :subsection, <<EOS
|
1043
|
+
9.9 foo
|
1044
|
+
EOS
|
1045
|
+
node.num.should == "9.9"
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
it 'should handle dotted number and letter subsection numbers' do
|
1049
|
+
node = parse :subsection, <<EOS
|
1050
|
+
9.9A. foo
|
1051
|
+
EOS
|
1052
|
+
node.num.should == "9.9A"
|
1053
|
+
|
1054
|
+
node = parse :subsection, <<EOS
|
1055
|
+
9.9bis foo
|
1056
|
+
EOS
|
1057
|
+
node.num.should == "9.9bis"
|
1058
|
+
|
1059
|
+
node = parse :subsection, <<EOS
|
1060
|
+
9.9A foo
|
1061
|
+
EOS
|
1062
|
+
node.num.should == "9.9A"
|
1041
1063
|
end
|
1042
1064
|
|
1043
1065
|
it 'should handle dotted number sublists' do
|
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: 9.
|
4
|
+
version: 9.1.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: 2020-
|
11
|
+
date: 2020-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|