footing 0.2.2 → 0.2.3

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: 7c76890f0f2f0545405b7a5d7ced6e4a3ec6884b
4
- data.tar.gz: 19a934fa51c8e21720ab32703aa448729d7472b7
3
+ metadata.gz: 9704809712f905ca795e12e2ecdc99c63f40f0a9
4
+ data.tar.gz: 0ca04637a2af12dfc8d8979ec3538316365b035a
5
5
  SHA512:
6
- metadata.gz: f54a575e2b70aa1d99901d360a32c2114af9c3624f28c376d15469f676ad0f927e29595172c720ed5397b9473fd6e136b46ad4566630538c707e7292c129cc66
7
- data.tar.gz: 26a3a914d26bc801119d94fb02197f9d7adc1e5b9f6669b7c06a4d727b6a50b8b1492f43092595387b7934a004b057efbf083683db265f86c7b8caf743204443
6
+ metadata.gz: 00259519d93f047459b4179638e4866349449f1c3e50b361c4a0404942bd7b8b2e1a2cd8838c975cae59e0baaecff8c965ae07054c3d0e1e2e3d13334360e810
7
+ data.tar.gz: 10aa46ede8bcd8752fdf71f5f76e164e28e862ede5a3966d3aa95105c364e07c3271dae131d6aa29a2ddee12bebb1bd3ce4092cae4b8aad17592800bc359283b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- footing (0.2.1)
4
+ footing (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -97,11 +97,11 @@ module Footing
97
97
 
98
98
  each do |key, value|
99
99
  if value.respond_to?(:filter!)
100
- value.filter!(*keys)
100
+ value.filter!(keys, replacement)
101
101
  elsif value.is_a?(Enumerable)
102
102
  value.each do |val|
103
103
  next unless val.respond_to?(:filter!)
104
- val.filter!(*keys)
104
+ val.filter!(keys, replacement)
105
105
  end
106
106
  else
107
107
  value = replacement if should_replace.call(key)
@@ -115,5 +115,9 @@ module Footing
115
115
  filter! keys, nil
116
116
  end
117
117
 
118
+ def copy
119
+ Marshal.load(Marshal.dump(self))
120
+ end
121
+
118
122
  end
119
123
  end
@@ -1,3 +1,3 @@
1
1
  module Footing
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins