tainbox 0.2.8 → 0.3.0

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: 3fc20a0ada50ebd418d6bb4d319059f5689d267f
4
- data.tar.gz: 1c35da834f88c56c09fc984f1fda8a1b2c624e0c
3
+ metadata.gz: b30c8ebc0494c83dbc8606618d9284702b7d2699
4
+ data.tar.gz: 2904be5c30aa7dd7b50dcf276a08e85701783fa1
5
5
  SHA512:
6
- metadata.gz: dd4cca5f880887aa74572ecf8e1ed79d1681b8d5eea364dd481b1b3613e23ef3d04cdef5db1c473a173774660681f571a35969671a3674ec9671ce05d39e4aec
7
- data.tar.gz: 7d1db5b7e11fc1ff950d5ba1eb536ac758fc88c12413b3981c2daa711c6a8f1857b17823934451bd5658ed55dd790872b347e043ce082f9fff365b4a2b34d4d2
6
+ metadata.gz: 18dd214bf56ba0fcb1b35e4c43076a9073d95b89bec4c2d59c9cb0295207dc056107f6d3e68724adb8793d0ea8d92a5611775b3426d42b53cd9dff135c4c6882
7
+ data.tar.gz: b4993f9e45c0facd1bf9af8e763170fd9f4ff24799328e46a2070cacc949fefc91bd5feaae3796ebfaaa388135205e477f1e494081a8002e156eb4ed2afefb76
data/CHANGELOG.md CHANGED
@@ -20,3 +20,7 @@
20
20
  ## 0.2.8
21
21
 
22
22
  * Prepend internal variables with 'tainbox\_' to avoid clashes with client code
23
+
24
+ ## 0.3.0
25
+
26
+ * String converter supports `strip` option to strip values
@@ -40,7 +40,8 @@ Tainbox.define_converter(Float) do
40
40
  end
41
41
 
42
42
  Tainbox.define_converter(String) do
43
- value.to_s
43
+ strip = options.fetch(:strip, false)
44
+ value.to_s.tap { |result| result.strip! if strip }
44
45
  end
45
46
 
46
47
  Tainbox.define_converter(Symbol) do
@@ -1,3 +1,3 @@
1
1
  module Tainbox
2
- VERSION = '0.2.8'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tainbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Gubitskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.6
126
+ rubygems_version: 2.5.2
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Tainbox is a utility gem that can be used to inject attributes into ruby