opto 1.8.3 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/opto/types/string.rb +4 -0
- data/lib/opto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c17af78afd9307b68d06babe18dad864243b49cc
|
4
|
+
data.tar.gz: 9a5308abf16ccbce6be3d4990299f0e98912fdd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f501e625f4623dcfc6d5df42a970d94de78ea4a2940ac61460595d4cff84524083eb0ffbbfebeb70ec0ed16bd8f5ea53321604661a7aab99f745006c6a9ab445
|
7
|
+
data.tar.gz: eabe54c4414169478697f0b35bcb18c5adc0bf7e856a4e51ac54dc75cd41f8027d9e6aed70631c71a169cded64b149394b921a80d23d9d823c16ace82c3ee0de
|
data/README.md
CHANGED
@@ -582,5 +582,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/konten
|
|
582
582
|
|
583
583
|
## License
|
584
584
|
|
585
|
-
The gem is available as open source under the terms of the
|
586
|
-
|
585
|
+
The gem is available as open source under the terms of the Apache License, Version 2.0. See [LICENSE](LICENSE.txt) for full license text.
|
data/lib/opto/types/string.rb
CHANGED
@@ -37,6 +37,10 @@ module Opto
|
|
37
37
|
!value.nil? && !value.strip.empty? && value != 'false'
|
38
38
|
end
|
39
39
|
|
40
|
+
sanitizer :to_s do |value|
|
41
|
+
value.nil? ? nil : value.to_s
|
42
|
+
end
|
43
|
+
|
40
44
|
sanitizer :encode_64 do |value|
|
41
45
|
(options[:encode_64] && value) ? Base64.encode64(value) : value
|
42
46
|
end
|
data/lib/opto/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kimmo Lehto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|