prospectus 0.5.7 → 0.5.8

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: b435368c70188dc3058cec7f0c0d4b31de13f8dba61296301db8985a0411533c
4
- data.tar.gz: d9a075e4868e3119bc857a88b2df63b35440fe5e7833de0a409bb1a49e530f57
3
+ metadata.gz: 983c9c3fe3a15f3b41a79b95c6c4d46d0176e24523ef5844d8e310e3f6562fd2
4
+ data.tar.gz: a9b1be09fe2fc29c3296a179e1baa6771d4e34b213e3d2e69e59466d404f71b6
5
5
  SHA512:
6
- metadata.gz: 5230bb8f87a19cc6b8c036c0e9d7a8670ac0893d1287b2e71ddfd836a84d4880a4f16a963fa6596d80ee8ac74eaf966e541ee9dc1cdc10b4a8f41f0686721cf8
7
- data.tar.gz: 4e2ec5c7de78b600f94c46b3dab47fcce95ae6a913bf584371ef99bf87636f829605dc09e044e4fdbe74ad17f297bfd120af8d5ef12007478912a113ee244852
6
+ metadata.gz: 42476708da303f5fd2e0e6bcbaa9d5cf574f9caba48424b68da0e5cf39ad37ba5bd8b391009d59d1575f645c9a403dcfa3372571fd3317fef8485e0f98680021
7
+ data.tar.gz: a19f7c792d5226561ca1e600eece6d23efc1f7699d5d554058fdd59cb4f6e139222d44bb410c3d285d65974c04b38e69a64694ef2600efc460de0d05fc94a24a
@@ -5,8 +5,9 @@ module LogCabin
5
5
  module Regex
6
6
  def regex_helper(value)
7
7
  return value unless @find
8
- raise("Value does not match regex: #{value}") unless value.match(@find)
9
- value.sub(@find, @replace)
8
+ m = value.match(@find)
9
+ raise("Value does not match regex: #{value}") unless m
10
+ m.to_s.sub(@find, @replace)
10
11
  end
11
12
 
12
13
  private
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Declare package version
5
5
  module Prospectus
6
- VERSION = '0.5.7'.freeze
6
+ VERSION = '0.5.8'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-22 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logcabin