cnab240santander 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,10 +83,14 @@ module Cnab240santander
83
83
  end
84
84
 
85
85
  def add_to_hash(my_hash, combined_hash)
86
- my_hash.inject(combined_hash) do |new_hash, (key, value)|
87
- (new_hash[key] ||= []) << value
88
- new_hash
86
+ my_hash.each_key do |key|
87
+ if ( combined_hash.has_key?(key) )
88
+ combined_hash[ "#{key}-dup" ] = my_hash[key]
89
+ else
90
+ combined_hash[key]=my_hash[key]
91
+ end
89
92
  end
93
+ combined_hash
90
94
  end
91
95
  end
92
96
  end
@@ -2,7 +2,7 @@ module Cnab240santander
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnab240santander
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lairton Borges