fe_core_ext 0.26.1 → 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: 90cc42e64a3355c2a471e3232cc907a8abbdb7e7a9fe74b62368e264ae680b55
4
- data.tar.gz: dbf52bd2f8489954b26a523de1664a5143a84622d1eba120773e9f718845da6e
3
+ metadata.gz: a4c2bd081b4c23f5b77cadf7f367b306718ec447ce255b36c1784c2e7ad57664
4
+ data.tar.gz: 8f5c065793e9ab678ae277927ce3c7b43960c1e3d98154767b4c4278e370bcae
5
5
  SHA512:
6
- metadata.gz: a33053eca4efeef215fa437ec6e938c24d09f62c0761423b6fee751380cb542644781c5fc0ec9e4c13b05a4c7d0a708486088fb25bab115dae7e2da74a25f908
7
- data.tar.gz: f1de27fdbeb76b3ae768dc19681595ac152088cf40d34443bbd2b4815964492152d278a67a86d010cb8969f8658be80ed4b629dcf227b25c960a559dab3c58ce
6
+ metadata.gz: 9547f388be92d324e5d7056e2d6ea80ba84899de21237602da1a6c7508dd74bab638e83dccfe653fc629669a9d4e27e0d4fdd3ad98abc1fd3a6e4392f825bca5
7
+ data.tar.gz: 72e843ceec85b37a0d85f4f6ed58faf9d534914e56fa5e1fbafd343399ee72e192683a8c4e52495e545d7e9b656a9d650588d79807efed02425d0c1d9acdf4a2
@@ -7,8 +7,13 @@ module FeCoreExt::CoreExt
7
7
  end
8
8
 
9
9
  module FeCoreExt::CoreExt::Hash
10
- def symbolize_keys
11
- transform_keys { |key| key.to_s.underscore.to_sym }
10
+ def snake_symbolize_keys
11
+ transform_keys { |key| key.to_s.snakecase.to_sym }
12
+ end
13
+
14
+ def rename_key(original_key, new_key)
15
+ self[new_key] = delete(original_key) if key?(original_key)
16
+ self
12
17
  end
13
18
  end
14
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FeCoreExt
4
- VERSION = '0.26.1'
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.26.1
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu