plissken 1.0.0 → 1.1.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
  SHA1:
3
- metadata.gz: 0c822d80cd3724459bbf8a259f3850be1f920ba1
4
- data.tar.gz: 8e03901e74f47d5743e5b785670d2d7b6eea6505
3
+ metadata.gz: dc8dc84bae62ac54ed8ca19d28bca8b46dad43c4
4
+ data.tar.gz: efb039d1600782ecb37a7d7eda31c0dd75e686de
5
5
  SHA512:
6
- metadata.gz: 4d2b4516e6263c6c677aeeef01e1cab7cc1ebaee0ef61bd20268c7eeebbc394b17faef58edab4c7731fd138f8e1805946f95d6797f507bf19f0e2efa5ff82f98
7
- data.tar.gz: 98a25014463f7946e5aa3eb33f92bf18d93fa625ff2084ba331563fff00b2eb27b3806eda40d87bcbd7875b2e660029d1df2358ed5a254189cc84a5eed4ac1e7
6
+ metadata.gz: 6579a63993f583ede7257a0db1b00f6604801b8b670187e50780a51cd815d941377a01a8c6ad5f8bdc6dfde64c119a3408c532cae56cf4d06deb10f6fdd9b7f0
7
+ data.tar.gz: 6967a9db31766dbef6de72376d95b60317fb25c71a99d90cb87cb32c77678e54f454944411052c7fcf0274195a8d51e07d598771a31c89a3acd1c718c22fc69e
data/README.md CHANGED
@@ -52,5 +52,5 @@ the [Awrence](http://github.com/futurechimp/awrence) gem.
52
52
 
53
53
  ## Copyright
54
54
 
55
- Copyright (c) 2013 Dave Hrycyszyn. See LICENSE.txt for
55
+ Copyright (c) 2017 Dave Hrycyszyn. See LICENSE.txt for
56
56
  further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Hash.to_snake_keys
2
4
  class Hash
3
5
  # Recursively converts CamelCase and camelBack JSON-style hash keys to
@@ -35,7 +37,7 @@ class Hash
35
37
  @__memoize_underscore ||= {}
36
38
  return @__memoize_underscore[string] if @__memoize_underscore[string]
37
39
  @__memoize_underscore[string] =
38
- string.gsub(/::/, '/')
40
+ string.tr('::', '/')
39
41
  .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
40
42
  .gsub(/([a-z\d])([A-Z])/, '\1_\2')
41
43
  .tr('-', '_')
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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Hrycyszyn