gb-agencies 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gb_agencies/gb_agencies.rb +3 -2
- data/lib/gb_agencies/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a36c9b522a4c3653b02b76a9756446bb85a89f15c098604cfbce84d5b5a08a
|
4
|
+
data.tar.gz: 374ca6b4e64e6dc7764cbad82eefe02a7f2db918f967d66c4365fd9d6b516812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67930a602ed51392b2e9688e4bc9603033e30b4f72c57b7c4ac877c2854ec3be2349acab6fc8b01739f3970afec489418bec51a05cecbf79f461ff27051b562
|
7
|
+
data.tar.gz: 07c994da1d4dad5d57a8c3c1143b56ff7ad86287cf0d8c9e9d7c3e2d3208dec8a83e31ca362a46332a290d30d1730d514acd75e3342706f4455c669f387439ab
|
@@ -324,6 +324,7 @@ module GbAgencies
|
|
324
324
|
}.freeze
|
325
325
|
|
326
326
|
def docidentifier(scope, prefix, mandate, docyear, docnum)
|
327
|
+
initslash = %r{^/}.match(docnum)
|
327
328
|
dn = case scope
|
328
329
|
when nil
|
329
330
|
docnum
|
@@ -332,9 +333,9 @@ module GbAgencies
|
|
332
333
|
"#{docnum}".gsub(%r{/([TZ])/}, "/\\1 ")
|
333
334
|
when "social-group", "enterprise"
|
334
335
|
"#{mandate_suffix(SCOPEPFX[scope.to_sym], mandate)}/"\
|
335
|
-
"#{prefix} #{docnum}"
|
336
|
+
"#{prefix}#{initslash ? "" : " "}#{docnum}"
|
336
337
|
else
|
337
|
-
"#{mandate_suffix(prefix, mandate)} 
|
338
|
+
"#{mandate_suffix(prefix, mandate)}#{initslash ? "" : " "}#{docnum}"
|
338
339
|
end
|
339
340
|
dn += "—#{docyear}" if dn && docyear
|
340
341
|
dn
|
data/lib/gb_agencies/version.rb
CHANGED