coconductor 0.5.2 → 0.5.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
  SHA256:
3
- metadata.gz: bc33614c4cf488f210ba9d708de92c06bb63df664d7b428319f8243262f6c99a
4
- data.tar.gz: 40e02ee3e59104b5dd930d770ca16f98cd1ec464e758f5a2e74cd87bbffb13fe
3
+ metadata.gz: 109784fec96a46c4142cc97c511d5326f5f0cf0bfe00103e376a5ce18497be11
4
+ data.tar.gz: 88668fdf710a9dae51283c2a86f691af2599482959e129d771e251ad5c0280ce
5
5
  SHA512:
6
- metadata.gz: 35525eb6802487b38dead731554bb261cb2de293741801399760d432667163c875b1428c075b8d96ed2ae3ad812883418e9f5acdc91234c1901316d6141561cf
7
- data.tar.gz: c06174866d417735359136e007289dbc9d2ca684ed7684ad68ad1c0bcb3bd1e6f621006ae4927f01207767e4edc77d6c2de055976f1e6dfb1636559aa0d50646
6
+ metadata.gz: ff085367dcd8409f4191fa9ac1fc2ba22edd6b77357a90753d70d6063f4216495ba11ac3db0106ae2bfe42c72e923e771a4be250bebf5e2e369fe48064636649
7
+ data.tar.gz: 0daade940209bb84c5738854161ab2826814735b62bf869cfb6edf79820bee3d00e41a13058bea9165b025cb783d509918e8419bd7b5d4644c7316b9a3a4fc6d
@@ -101,7 +101,8 @@ module Coconductor
101
101
  def content
102
102
  # See https://github.com/stumpsyn/policies/pull/21
103
103
  @content ||= if citizen_code_of_conduct?
104
- parts.last.gsub(' COMMUNITY_NAME ', ' [COMMUNITY_NAME] ')
104
+ fields = %w[COMMUNITY_NAME GOVERNING_BODY]
105
+ parts.last.gsub(/ #{Regexp.union(fields)} /, ' [$1] ')
105
106
  else
106
107
  parts.last
107
108
  end
@@ -1,3 +1,3 @@
1
1
  module Coconductor
2
- VERSION = '0.5.2'.freeze
2
+ VERSION = '0.5.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coconductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-02 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee