rsubhak 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.
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsubhak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-03 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
|
-
description: Rsubhak can be used to sanitize a params hash. For instance, remove
|
15
|
-
symbols and commas from decimal fields (e.g. price, cost, quantity)
|
16
|
-
to '1500.00'.
|
14
|
+
description: ! 'Rsubhak can be used to sanitize a params hash. For instance, remove
|
15
|
+
currency symbols and/or commas from decimal fields (e.g. price, cost, quantity),
|
16
|
+
thereby converting ''$1,500.00'' to ''1500.00''. But really, it''s quite generic:
|
17
|
+
Recursively traverse a hash or array (ha), searching for all occurrences of hash
|
18
|
+
key (k), and substituting (within their values) all occurrences of pattern (p) for
|
19
|
+
replacement (r).'
|
17
20
|
email:
|
18
21
|
- alexbatko@gmail.com
|
19
22
|
executables: []
|
@@ -46,9 +49,9 @@ rubyforge_project:
|
|
46
49
|
rubygems_version: 1.8.10
|
47
50
|
signing_key:
|
48
51
|
specification_version: 3
|
49
|
-
summary: Recursively
|
50
|
-
key (k), and substituting (within their values) all occurrences of pattern
|
51
|
-
replacement (r).
|
52
|
+
summary: Recursively traverse a hash or array (ha), searching for all occurrences
|
53
|
+
of hash key (k), and substituting (within their values) all occurrences of pattern
|
54
|
+
(p) for replacement (r).
|
52
55
|
test_files:
|
53
56
|
- test/test_helper.rb
|
54
57
|
- test/test_rsubhak.rb
|