plissken 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/VERSION +1 -1
  4. data/lib/plissken/methods.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5ff63e09b861a02ccc0734c23999234daba77310ebd638bca81c2da112f1c8f
4
- data.tar.gz: 2cdd62542f8db520346e20102c807b6bb88fbb0e3608d8d82874bb96d8910d62
3
+ metadata.gz: 38db0a3758d33d97146f2356ad5b2ecc4727e4ebab65d15f7007d3c55bb745d9
4
+ data.tar.gz: d23380751b6ba823e77eeee5fb01dbc97bff480e5bce15f99caa76c6426f88bd
5
5
  SHA512:
6
- metadata.gz: cdedabe47563eb7a6dfe59f7be9ed67dc77dbc33e987dc72d7c66343634d62425e46505066b4e187f37d71a635987573916d58c6b86d0f4078561562f67e4bc1
7
- data.tar.gz: 610ae89854d9d880de23971acd0b199f38b59f31a4718f12555b202de7ad41b8c2c272639ed38f4b4f207ec3a377b68984d5b91a5bb5fbf519ec25a21a989201
6
+ metadata.gz: 34db145fb5be603bd44fda24914e8e52b122ba1fd255860bcd141419217dfa005927265790298619c7f38299513520a7b7ba87c000b375c744210606ce15e783
7
+ data.tar.gz: 455d38c219493f54ee54589f0031e2505f063c19fc55bdaa9d006d78077cb3a1362e1a82e025e11239a742594d5dc21776e7dddcc166854b78718ecb48498521
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Plissken
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/plissken.svg)](https://badge.fury.io/rb/plissken)
4
+ ![CI](https://github.com/technicalpanda/plissken/workflows/CI/badge.svg)
4
5
 
5
6
  Have you ever needed to automatically convert JSON-style `camelBack` or `CamelCase` hash keys into more Rubyish `snake_case`?
6
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -20,7 +20,7 @@ module Plissken
20
20
  private
21
21
 
22
22
  def snake_hash(value)
23
- Hash[value.map { |k, v| [underscore_key(k), to_snake_keys(v)] }]
23
+ value.map { |k, v| [underscore_key(k), to_snake_keys(v)] }.to_h
24
24
  end
25
25
 
26
26
  def underscore_key(key)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plissken
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Hrycyszyn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-01 00:00:00.000000000 Z
12
+ date: 2021-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: byebug