rightresource 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,7 @@ class Hash
2
2
  def generate_attributes
3
3
  attrs = {}
4
4
  self.each_pair {|key,value| attrs[key.to_s.gsub('-', '_').to_sym] = value}
5
- if attrs
6
- self.clear
7
- self.merge!(attrs)
8
- end
5
+ self.clear.merge!(attrs) if attrs
9
6
  self
10
7
  end
11
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rightresource
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 9
10
- version: 0.2.9
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Satoshi Ohki