plissken 1.3.1 → 1.4.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: 8bfd740a7fadcba2ef0a332bc0fe6fc9a82866eab3ba57b5559cc6cc8aa2cb84
4
- data.tar.gz: c6c54bd32eb7e9b252c10bbfc3f50660f534b8a14aa4e9074adfb00943f86f5a
3
+ metadata.gz: c5ff63e09b861a02ccc0734c23999234daba77310ebd638bca81c2da112f1c8f
4
+ data.tar.gz: 2cdd62542f8db520346e20102c807b6bb88fbb0e3608d8d82874bb96d8910d62
5
5
  SHA512:
6
- metadata.gz: 5834ce29b90a2add96770638415e413241aa7bc8b888ef7574a0890da307bfc2a4decf025d3059f1f6cbbdca505bb95926f026058a7ae454dc658d40b8c8d9f2
7
- data.tar.gz: db9051e14e1c4a905044f4c5b8b1165b64d0abf7734bc05a916b4e77d88eca67e7a1f448a6f24b8613a7c0d017a0126e7883fa1d2164913a3bc24c76f653352b
6
+ metadata.gz: cdedabe47563eb7a6dfe59f7be9ed67dc77dbc33e987dc72d7c66343634d62425e46505066b4e187f37d71a635987573916d58c6b86d0f4078561562f67e4bc1
7
+ data.tar.gz: 610ae89854d9d880de23971acd0b199f38b59f31a4718f12555b202de7ad41b8c2c272639ed38f4b4f207ec3a377b68984d5b91a5bb5fbf519ec25a21a989201
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020 Dave Hrycyszyn
1
+ Copyright (c) 2021 Technical Panda Ltd
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Have you ever needed to automatically convert JSON-style `camelBack` or `CamelCase` hash keys into more Rubyish `snake_case`?
6
6
 
7
- Plissken to the rescue.
7
+ Plissken to the rescue!
8
8
 
9
9
  This gem recursively converts all camelBack or CamelCase keys in either a Hash structure, or an Array of Hashes, to snake_case.
10
10
 
@@ -52,16 +52,14 @@ Plissken works on either string keys or symbolized keys. It has no dependencies,
52
52
  If you've already got `snake_case` and need to `CamelCase` it, you are encouraged to try
53
53
  the [Awrence](http://github.com/futurechimp/awrence) gem.
54
54
 
55
- ## Contributing to plissken
55
+ ## Contributing
56
56
 
57
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
58
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
59
- * Fork the project.
60
- * Start a feature/bugfix branch.
61
- * Commit and push until you are happy with your contribution.
62
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
63
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
57
+ Bug reports and pull requests are welcome on GitHub at https://github.com/technicalpanda/plissken. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
64
58
 
65
- ## Copyright
59
+ ## License
66
60
 
67
- Copyright (c) 2017 Dave Hrycyszyn. See LICENSE.txt for further details.
61
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
62
+
63
+ ## Code of Conduct
64
+
65
+ Everyone interacting with this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/technicalpanda/plissken/blob/main/CODE_OF_CONDUCT.md).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.4.0
@@ -24,9 +24,10 @@ module Plissken
24
24
  end
25
25
 
26
26
  def underscore_key(key)
27
- if key.is_a? Symbol
27
+ case key
28
+ when Symbol
28
29
  underscore(key.to_s).to_sym
29
- elsif key.is_a? String
30
+ when String
30
31
  underscore(key)
31
32
  else
32
33
  key # Plissken can't snakify anything except strings and symbols
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plissken
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Hrycyszyn
8
- - Michael Chrisco
9
8
  - Stuart Chinery
10
- autorequire:
9
+ autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2020-02-01 00:00:00.000000000 Z
12
+ date: 2021-02-01 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: byebug
@@ -102,14 +101,42 @@ dependencies:
102
101
  requirements:
103
102
  - - "~>"
104
103
  - !ruby/object:Gem::Version
105
- version: '0.79'
104
+ version: '1.7'
106
105
  type: :development
107
106
  prerelease: false
108
107
  version_requirements: !ruby/object:Gem::Requirement
109
108
  requirements:
110
109
  - - "~>"
111
110
  - !ruby/object:Gem::Version
112
- version: '0.79'
111
+ version: '1.7'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rubocop-minitest
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '0.10'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '0.10'
126
+ - !ruby/object:Gem::Dependency
127
+ name: rubocop-rake
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '0.5'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '0.5'
113
140
  description: |-
114
141
  Have you ever needed to automatically convert JSON-style camelBack or CamelCase hash keys into more Rubyish snake_case?
115
142
 
@@ -118,7 +145,7 @@ description: |-
118
145
  This gem recursively converts all camelBack or CamelCase keys in a hash structure to snake_case.
119
146
  email:
120
147
  - dave@constructiveproof.com
121
- - stuart.chinery@gmail.com
148
+ - code@technicalpanda.co.uk
122
149
  executables: []
123
150
  extensions: []
124
151
  extra_rdoc_files: []
@@ -132,11 +159,11 @@ files:
132
159
  - lib/plissken/ext/hash/to_snake_keys.rb
133
160
  - lib/plissken/methods.rb
134
161
  - lib/plissken/version.rb
135
- homepage: https://github.com/futurechimp/plissken
162
+ homepage: https://github.com/technicalpanda/plissken
136
163
  licenses:
137
164
  - MIT
138
165
  metadata: {}
139
- post_install_message:
166
+ post_install_message:
140
167
  rdoc_options: []
141
168
  require_paths:
142
169
  - lib
@@ -144,15 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
171
  requirements:
145
172
  - - ">="
146
173
  - !ruby/object:Gem::Version
147
- version: '0'
174
+ version: '2.5'
148
175
  required_rubygems_version: !ruby/object:Gem::Requirement
149
176
  requirements:
150
177
  - - ">="
151
178
  - !ruby/object:Gem::Version
152
179
  version: '0'
153
180
  requirements: []
154
- rubygems_version: 3.1.2
155
- signing_key:
181
+ rubygems_version: 3.1.4
182
+ signing_key:
156
183
  specification_version: 4
157
184
  summary: Snakify your camel keys when working with JSON APIs
158
185
  test_files: []