dynahash 0.3 → 0.3.1

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.
Files changed (2) hide show
  1. data/lib/dynahash.rb +1 -3
  2. metadata +1 -1
@@ -24,9 +24,7 @@ class Hash
24
24
  # caller handle it.
25
25
  name = m.to_s
26
26
  self.keys.find(name) { |key|
27
- val = key.to_s.gsub(/(@+|:+|\-+|\*+\.+)/, ' ').gsub(/(?<before>[a-z])(?<after>[A-Z])/, '\k<before>_\k<after>').scan(/\w+/).join('_')
28
- puts val
29
- val.casecmp(name) == 0
27
+ key.to_s.gsub(/(@+|:+|\-+|\*+\.+)/, ' ').gsub(/(?<before>[a-z])(?<after>[A-Z])/, '\k<before>_\k<after>').scan(/\w+/).join('_').casecmp(name) == 0
30
28
  }
31
29
  end
32
30
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynahash
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.3"
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tony Heupel