keycase 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +39 -0
- data/Gemfile +5 -0
- data/{LICENSE.txt → LICENSE.md} +6 -6
- data/README.md +10 -10
- data/Rakefile +5 -1
- data/bin/console +1 -0
- data/keycase.gemspec +3 -0
- data/lib/keycase/camel_case.rb +2 -0
- data/lib/keycase/kebab_case.rb +2 -0
- data/lib/keycase/pascal_case.rb +2 -0
- data/lib/keycase/snake_case.rb +2 -0
- data/lib/keycase/version.rb +3 -1
- data/lib/keycase.rb +2 -0
- metadata +6 -5
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e6f493b80f7e3db6e7ef62af37c153849e924bc8bdb297fc112758f9d41147e
|
4
|
+
data.tar.gz: 6b45dfb8ec00157c8e098fb6e9b227206d1aa6804d0b8408afa6c03d983cc853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f3a2dd6e435edb695b3de39c0fbc13bf746ab9bcf55a2206f8e8cbdc484b862d8aae3813352107ae855a2ba3b4f1cc505daca6a7ab17eff19fc29435d9b30f
|
7
|
+
data.tar.gz: 37480590ce74499c8ccc9c3fc55611187f311b966ecb48da8de70b26ffa2fab0af89bc04ef50e27de88b60a5430b037552bdca5b3ed4e4dee68201e517781f99
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rake
|
3
|
+
- rubocop-rspec
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
TargetRubyVersion: 2.7
|
7
|
+
DisplayCopNames: true
|
8
|
+
DisplayStyleGuide: true
|
9
|
+
NewCops: enable
|
10
|
+
|
11
|
+
Gemspec/RequiredRubyVersion:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Metrics/BlockLength:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Metrics/MethodLength:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Naming/VariableNumber:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Style/Documentation:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Style/MultilineBlockChain:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Style/StringLiterals:
|
30
|
+
EnforcedStyle: double_quotes
|
31
|
+
|
32
|
+
Style/StringLiteralsInInterpolation:
|
33
|
+
EnforcedStyle: double_quotes
|
34
|
+
|
35
|
+
RSpec/ExampleLength:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
RSpec/MultipleExpectations:
|
39
|
+
Enabled: false
|
data/Gemfile
CHANGED
data/{LICENSE.txt → LICENSE.md}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
# MIT License
|
2
2
|
|
3
|
-
Copyright
|
3
|
+
Copyright © 2020 naoigcat
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
10
10
|
furnished to do so, subject to the following conditions:
|
11
11
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
14
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# Keycase
|
2
2
|
|
3
3
|
This gem converts the case of strings, symbols, and keys of hash recursively.
|
4
4
|
The convertible cases are camelCase, PascalCase, snake_case, etc.
|
5
5
|
|
6
|
-
##
|
6
|
+
## Installation
|
7
7
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
@@ -13,16 +13,16 @@ gem "keycase"
|
|
13
13
|
|
14
14
|
And then execute:
|
15
15
|
|
16
|
-
|
16
|
+
$ bundle install
|
17
17
|
|
18
18
|
Or install it yourself as:
|
19
19
|
|
20
|
-
|
20
|
+
$ gem install keycase
|
21
21
|
|
22
|
-
##
|
22
|
+
## Usage
|
23
23
|
|
24
24
|
```sh
|
25
|
-
|
25
|
+
irb --context-mode=1
|
26
26
|
```
|
27
27
|
|
28
28
|
```rb
|
@@ -64,16 +64,16 @@ $ irb --context-mode=1
|
|
64
64
|
}
|
65
65
|
```
|
66
66
|
|
67
|
-
##
|
67
|
+
## Development
|
68
68
|
|
69
69
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
70
70
|
|
71
71
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
72
72
|
|
73
|
-
##
|
73
|
+
## Contributing
|
74
74
|
|
75
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/naoigcat/ruby-keycase
|
75
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/naoigcat/ruby-keycase>.
|
76
76
|
|
77
|
-
##
|
77
|
+
## License
|
78
78
|
|
79
79
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/keycase.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative "lib/keycase/version"
|
2
4
|
|
3
5
|
Gem::Specification.new do |spec|
|
@@ -26,4 +28,5 @@ Gem::Specification.new do |spec|
|
|
26
28
|
|
27
29
|
spec.metadata["homepage_uri"] = spec.homepage
|
28
30
|
spec.metadata["source_code_uri"] = spec.homepage
|
31
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
29
32
|
end
|
data/lib/keycase/camel_case.rb
CHANGED
data/lib/keycase/kebab_case.rb
CHANGED
data/lib/keycase/pascal_case.rb
CHANGED
data/lib/keycase/snake_case.rb
CHANGED
data/lib/keycase/version.rb
CHANGED
data/lib/keycase.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keycase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- naoigcat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
This gem converts the case of strings, symbols, and keys of hash recursively.
|
@@ -21,9 +21,9 @@ extra_rdoc_files: []
|
|
21
21
|
files:
|
22
22
|
- ".gitignore"
|
23
23
|
- ".rspec"
|
24
|
-
- ".
|
24
|
+
- ".rubocop.yml"
|
25
25
|
- Gemfile
|
26
|
-
- LICENSE.
|
26
|
+
- LICENSE.md
|
27
27
|
- README.md
|
28
28
|
- Rakefile
|
29
29
|
- bin/console
|
@@ -41,6 +41,7 @@ licenses:
|
|
41
41
|
metadata:
|
42
42
|
homepage_uri: https://github.com/naoigcat/ruby-keycase
|
43
43
|
source_code_uri: https://github.com/naoigcat/ruby-keycase
|
44
|
+
rubygems_mfa_required: 'true'
|
44
45
|
post_install_message:
|
45
46
|
rdoc_options: []
|
46
47
|
require_paths:
|
@@ -56,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
57
|
- !ruby/object:Gem::Version
|
57
58
|
version: '0'
|
58
59
|
requirements: []
|
59
|
-
rubygems_version: 3.
|
60
|
+
rubygems_version: 3.3.23
|
60
61
|
signing_key:
|
61
62
|
specification_version: 4
|
62
63
|
summary: Converts the case of strings, symbols, and keys of hash.
|