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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ea2056a91192443d6414aed82f3cfc295cb7e8ba664433e9ca35205c1f533fc
4
- data.tar.gz: 1fe690a94e69f3294e8feb97791b5d028910077a72b2a21623133f1bac60cdec
3
+ metadata.gz: 29a36c9b522a4c3653b02b76a9756446bb85a89f15c098604cfbce84d5b5a08a
4
+ data.tar.gz: 374ca6b4e64e6dc7764cbad82eefe02a7f2db918f967d66c4365fd9d6b516812
5
5
  SHA512:
6
- metadata.gz: abeddeaa345743cfc735a7cf533af86ac5bea1d062ca89b632e798e437e48fd00043fb198c99f61a5877672e92d08083029413dc2ef51ae504c0e7d39bcfd4cf
7
- data.tar.gz: 13f1db4e9669980f2a69dbea415ceb4c237a91e1683df46ba4bcc7d3da67f2301d21d87894779ffbaa59221582f51ef39b673609b99fc56efd56c9b4f4cbbc24
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)} #{docnum}"
338
+ "#{mandate_suffix(prefix, mandate)}#{initslash ? "" : " "}#{docnum}"
338
339
  end
339
340
  dn += "—#{docyear}" if dn && docyear
340
341
  dn
@@ -1,4 +1,4 @@
1
1
  module GbAgencies
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gb-agencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.