trinidad 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +1 -1
- data/lib/trinidad.rb +1 -1
- data/lib/trinidad/core_ext.rb +4 -2
- metadata +3 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -75,4 +75,4 @@ You can find further information on how to write your own extension in the wiki:
|
|
75
75
|
|
76
76
|
== Copyright
|
77
77
|
|
78
|
-
Copyright (c)
|
78
|
+
Copyright (c) 2011 David Calavera<calavera@apache.org>. See LICENSE for details.
|
data/lib/trinidad.rb
CHANGED
data/lib/trinidad/core_ext.rb
CHANGED
@@ -14,12 +14,14 @@ Hash.class_eval do
|
|
14
14
|
next
|
15
15
|
end
|
16
16
|
|
17
|
-
|
17
|
+
value = hash[key]
|
18
|
+
value.strip! if value.respond_to?(:strip!)
|
19
|
+
target[key] = value
|
18
20
|
end
|
19
21
|
|
20
22
|
target
|
21
23
|
end
|
22
|
-
|
24
|
+
|
23
25
|
def deep_merge!(second)
|
24
26
|
second.each_pair do |k,v|
|
25
27
|
if self[k].is_a?(Hash) and second[k].is_a?(Hash)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 5
|
9
|
+
version: 1.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Calavera
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-14 00:00:00 +01:00
|
18
18
|
default_executable: trinidad
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|