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 +4 -4
- data/lib/prospectus/helpers/regex.rb +3 -2
- data/lib/prospectus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 983c9c3fe3a15f3b41a79b95c6c4d46d0176e24523ef5844d8e310e3f6562fd2
|
4
|
+
data.tar.gz: a9b1be09fe2fc29c3296a179e1baa6771d4e34b213e3d2e69e59466d404f71b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
9
|
-
|
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
|
data/lib/prospectus/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logcabin
|