fe_core_ext 0.27.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b2edebd6960c44f5de6228de9682e38dbc1d6a658b61baf95e251f07db72260
4
- data.tar.gz: 0c207c390e5af9e6e744e293e6157928cdd33a67a07ec2d8a4c8ba7795136a80
3
+ metadata.gz: a4c2bd081b4c23f5b77cadf7f367b306718ec447ce255b36c1784c2e7ad57664
4
+ data.tar.gz: 8f5c065793e9ab678ae277927ce3c7b43960c1e3d98154767b4c4278e370bcae
5
5
  SHA512:
6
- metadata.gz: a1396d80d727d6720063348505085bcc74ec21c26b1fa2ad3bc484a83c2be53c2d4874881c15b803b39826a08667110be30519215930c4b7e64836a5c16f82b8
7
- data.tar.gz: f086416a4ecfa3247886c6da78d6cc458ddbdde87a8b4e62a2c7618de84d6279d603eb2dc1ac11043553cd43dd0d1450b6d2535333bae884d7f175391c54d2d7
6
+ metadata.gz: 9547f388be92d324e5d7056e2d6ea80ba84899de21237602da1a6c7508dd74bab638e83dccfe653fc629669a9d4e27e0d4fdd3ad98abc1fd3a6e4392f825bca5
7
+ data.tar.gz: 72e843ceec85b37a0d85f4f6ed58faf9d534914e56fa5e1fbafd343399ee72e192683a8c4e52495e545d7e9b656a9d650588d79807efed02425d0c1d9acdf4a2
@@ -10,6 +10,11 @@ module FeCoreExt::CoreExt::Hash
10
10
  def snake_symbolize_keys
11
11
  transform_keys { |key| key.to_s.snakecase.to_sym }
12
12
  end
13
+
14
+ def rename_key(original_key, new_key)
15
+ self[new_key] = delete(original_key) if key?(original_key)
16
+ self
17
+ end
13
18
  end
14
19
 
15
20
  class Hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FeCoreExt
4
- VERSION = '0.27.0'
4
+ VERSION = '0.28.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fe_core_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu