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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7da8baf95ed5db98cd67e6d9ad5ceb98911bd1549a3508eb00522523a520aa9f
4
- data.tar.gz: 8adc12f0490f1e3fbbc65e8c47746c183b028f4a8cc326f3fbadec4988e3e32f
3
+ metadata.gz: 6e6f493b80f7e3db6e7ef62af37c153849e924bc8bdb297fc112758f9d41147e
4
+ data.tar.gz: 6b45dfb8ec00157c8e098fb6e9b227206d1aa6804d0b8408afa6c03d983cc853
5
5
  SHA512:
6
- metadata.gz: 02dc22181e2875b26713d9a7227a4168d8ebd9d03e44cbdc7a6fd525a3f3f7b9322b7e4d4738bddad3245d2574b8ad3329fd57c0d45f3c0075fadc084dec27e5
7
- data.tar.gz: 84b5aed31fc5628cbf16aa92799de771768fa8bcef8585d789d4e6c00967a833913204fd033dd58fd13dd03bc20752d37aaf5fc86b1db970f28397e065551126
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
@@ -1,6 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  gemspec
4
6
 
5
7
  gem "rake", "~> 12.0"
6
8
  gem "rspec", "~> 3.0"
9
+ gem "rubocop"
10
+ gem "rubocop-rake"
11
+ gem "rubocop-rspec"
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ # MIT License
2
2
 
3
- Copyright (c) 2020 naoigcat
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
- all copies or substantial portions of the Software.
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
- THE SOFTWARE.
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
- # Keycase
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
- ## Installation
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
- $ bundle install
16
+ $ bundle install
17
17
 
18
18
  Or install it yourself as:
19
19
 
20
- $ gem install keycase
20
+ $ gem install keycase
21
21
 
22
- ## Usage
22
+ ## Usage
23
23
 
24
24
  ```sh
25
- $ irb --context-mode=1
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
- ## Development
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
- ## Contributing
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
- ## License
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
@@ -1,6 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rspec/core/rake_task"
5
+ require "rubocop/rake_task"
3
6
 
4
7
  RSpec::Core::RakeTask.new(:spec)
8
+ RuboCop::RakeTask.new
5
9
 
6
- task :default => :spec
10
+ task default: :spec
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "keycase"
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Keycase
2
4
  module CamelCase
3
5
  refine Object do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Keycase
2
4
  module KebabCase
3
5
  refine Object do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Keycase
2
4
  module PascalCase
3
5
  refine Object do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Keycase
2
4
  module SnakeCase
3
5
  refine Object do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Keycase
2
- VERSION = "1.0.0".freeze
4
+ VERSION = "1.0.2"
3
5
  end
data/lib/keycase.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "keycase/version"
2
4
  require "keycase/camel_case"
3
5
  require "keycase/kebab_case"
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.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: 2020-07-07 00:00:00.000000000 Z
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
- - ".travis.yml"
24
+ - ".rubocop.yml"
25
25
  - Gemfile
26
- - LICENSE.txt
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.1.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.
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.5
6
- before_install: gem install bundler -v 2.1.4