transproc 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87334e10cb8bf6cccb2f48272486e54ad024260f
4
- data.tar.gz: 58910ac82cf4b9b73567e8fe548a016777ad63ea
3
+ metadata.gz: 8e48e0386ec7eb3b18878b0a49f7aa292eceaf95
4
+ data.tar.gz: 8add522072d758b21a1bdcdacd038e074e276656
5
5
  SHA512:
6
- metadata.gz: 79eb35957035d51c30b9f2afce0b364bec99d5276c2f2526f6e2d3ded5d31603a21815b52e128a97090cbbc58e010cf2692afe95e8d3ba7cd4c8865a87ee6797
7
- data.tar.gz: 23e555e0d4e2fc4dd338f74faf1eec966db459d91ce56be2203e2149609ed1003dbae437cfe220971d72b313bd57ea73d2d0487f4b16a8e4801f631772e2df27
6
+ metadata.gz: ec69053a3c644da6e9681ff45e7f61c19a843ca2d7d3bca3678ee6afbca25685c9c503852e634bdcefadffb3fc67b61311785fe95ca2e3b0b10e6a335616779d
7
+ data.tar.gz: 1d379f5fa10fc373a2f3d56d5ffc2392189c93fc184f09c9fcb992b912418655e3cc11f2da223b5463b328dfea878981b439409d32a1ffe9498630668044006e
@@ -1,3 +1,11 @@
1
+ ## v0.1.2 2015-03-14
2
+
3
+ ### Changed
4
+
5
+ * `:nest` creates an empty hash even when keys are not present
6
+
7
+ [Compare v0.1.1...v0.1.2](https://github.com/solnic/transproc/compare/v0.1.1...v0.1.2)
8
+
1
9
  ## v0.1.1 2015-03-13
2
10
 
3
11
  ### Changed
@@ -36,7 +36,7 @@ module Transproc
36
36
  child = Hash[nest_keys.zip(nest_keys.map { |key| hash.delete(key) })]
37
37
  hash.update(root => child)
38
38
  else
39
- hash.update(root => nil)
39
+ hash.update(root => {})
40
40
  end
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module Transproc
2
- VERSION = "0.1.1".freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
@@ -50,11 +50,11 @@ describe 'Hash mapping with Transproc' do
50
50
  expect(input).to eql(output)
51
51
  end
52
52
 
53
- it 'returns new hash with nil nested under a new key when nest-keys are missing' do
53
+ it 'returns new hash with an empty hash under a new key when nest-keys are missing' do
54
54
  nest = Transproc(:nest!, :baz, ['foo'])
55
55
 
56
56
  input = { 'bar' => 'foo' }
57
- output = { 'bar' => 'foo', baz: nil }
57
+ output = { 'bar' => 'foo', baz: {} }
58
58
 
59
59
  nest[input]
60
60
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transproc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler