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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d154fe92a61aa8299e7275cb82e22e659becbae
4
- data.tar.gz: 572aff6816d0aaf364482f0543c6a68a30a5a981
3
+ metadata.gz: c17af78afd9307b68d06babe18dad864243b49cc
4
+ data.tar.gz: 9a5308abf16ccbce6be3d4990299f0e98912fdd0
5
5
  SHA512:
6
- metadata.gz: ef4277e6893c6cc03226c982821c98079eb8154562f59405d7f0493b5a719dc1c105e8765791afa6f0e3c3bb881f399c5101003e09e200162341ad8b6f0d4ef0
7
- data.tar.gz: 5b6bb2f4d14ade307209de3a83e2e97f45ab4cfd3c9f904388f100ffcdde2d8b5d7f85fa8a25fe216321d0971495db0451225d599b72fdc6828e91ef1c307a47
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 [MIT License](http://opensource.org/licenses/MIT).
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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Opto
2
- VERSION = "1.8.3"
2
+ VERSION = "1.8.4"
3
3
  end
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.3
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-02-07 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler