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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6784c4dd73555dd25e51d2f2bc75e547a6c6b067f5c097695d70a00c9b2cedff
4
- data.tar.gz: f8424f209e1f681fcb3ea3841b9af2f608a691fe3e929979c4f184b6fe558049
3
+ metadata.gz: 6c60448bb3a8c2cb9bad02e434eab59805129a845b13f6f95b6f062b3a61ef15
4
+ data.tar.gz: dfcb7d9a0413b8c61448af102da840e41cb3f942ec0a249c35c5ec4808c4e090
5
5
  SHA512:
6
- metadata.gz: 0c3116bf7d489212f239a8b15ec2082141eb92c749109144b49071b4cce35775c1a9753c2117975ec7406b0d6a73d5c1e8ce9f82d213c8a83bf4140d658b5965
7
- data.tar.gz: 74ec26e6b94f4417cb50187d0ec183c5b47b9fbf21119e4e814f1c7f57f729ade48440950d669b9cec9e60c355c0eb03eb9efecccdad42b8e11d4a05edb52dd3
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
@@ -20,7 +20,11 @@ module Slaw
20
20
  end
21
21
 
22
22
  rule dotted_number_2
23
- number '.' number
23
+ # 9.1
24
+ # 9.1A
25
+ # 9.1A1
26
+ # NOT: 9.A
27
+ number '.' number alphanums?
24
28
  end
25
29
 
26
30
  rule number
@@ -1,3 +1,3 @@
1
1
  module Slaw
2
- VERSION = "9.0.0"
2
+ VERSION = "9.1.0"
3
3
  end
@@ -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.0.0
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-03-17 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake