ykxutils 0.1.1 → 0.1.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 +28 -28
- data/.rubocop_todo.yml +74 -67
- data/Gemfile +18 -15
- data/Gemfile.lock +2 -1
- data/Rakefile +12 -12
- data/bin/console +15 -15
- data/lib/ykxutils/version.rb +5 -5
- data/lib/ykxutils/yamlx.rb +48 -14
- data/lib/ykxutils.rb +9 -9
- data/test_data/test.yaml +26 -26
- data/ykxutils.gemspec +37 -37
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c80eb9e85b3441203320049d784663253c665d2a1220d88e0b7fddb26e24190
|
|
4
|
+
data.tar.gz: dbef95c791e50759a57e7815147e5cbb9784598737532de9597bc7a9e80732c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b475bcd7df940e53ab43f5db69f2185c97f9dbb10c3b0db79a26c219e3ce8e1e41db7fc3f6d54f8d5c0621a8d0ef0279e5e6bb9c4313c49c086f225f75d6b40
|
|
7
|
+
data.tar.gz: d1fc83418f134d299beae4801746cc86f8068a890403a728e3e006bafcb2ac9b1308d569681448ebaaf4252bd2dbc834f8a5201379649d6a9c590d73db9765f8
|
data/.rubocop.yml
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
require:
|
|
2
|
-
- rubocop-rake
|
|
3
|
-
- rubocop-rspec
|
|
4
|
-
|
|
5
|
-
inherit_from: .rubocop_todo.yml
|
|
6
|
-
|
|
7
|
-
AllCops:
|
|
8
|
-
TargetRubyVersion: 2.6
|
|
9
|
-
|
|
10
|
-
Style/StringLiterals:
|
|
11
|
-
Enabled: true
|
|
12
|
-
EnforcedStyle: double_quotes
|
|
13
|
-
|
|
14
|
-
Style/StringLiteralsInInterpolation:
|
|
15
|
-
Enabled: true
|
|
16
|
-
EnforcedStyle: double_quotes
|
|
17
|
-
|
|
18
|
-
Style/FrozenStringLiteralComment:
|
|
19
|
-
Enabled: false
|
|
20
|
-
|
|
21
|
-
Style/RedundantBegin:
|
|
22
|
-
Enabled: false
|
|
23
|
-
|
|
24
|
-
Layout/LineLength:
|
|
25
|
-
Max: 120
|
|
26
|
-
|
|
27
|
-
Style/Documentation:
|
|
28
|
-
Enabled: false
|
|
1
|
+
require:
|
|
2
|
+
- rubocop-rake
|
|
3
|
+
- rubocop-rspec
|
|
4
|
+
|
|
5
|
+
inherit_from: .rubocop_todo.yml
|
|
6
|
+
|
|
7
|
+
AllCops:
|
|
8
|
+
TargetRubyVersion: 2.6
|
|
9
|
+
|
|
10
|
+
Style/StringLiterals:
|
|
11
|
+
Enabled: true
|
|
12
|
+
EnforcedStyle: double_quotes
|
|
13
|
+
|
|
14
|
+
Style/StringLiteralsInInterpolation:
|
|
15
|
+
Enabled: true
|
|
16
|
+
EnforcedStyle: double_quotes
|
|
17
|
+
|
|
18
|
+
Style/FrozenStringLiteralComment:
|
|
19
|
+
Enabled: false
|
|
20
|
+
|
|
21
|
+
Style/RedundantBegin:
|
|
22
|
+
Enabled: false
|
|
23
|
+
|
|
24
|
+
Layout/LineLength:
|
|
25
|
+
Max: 120
|
|
26
|
+
|
|
27
|
+
Style/Documentation:
|
|
28
|
+
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,67 +1,74 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2022-
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Offense count:
|
|
10
|
-
# Configuration parameters:
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
Exclude:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
Layout/
|
|
36
|
-
Exclude:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Offense count:
|
|
40
|
-
#
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
#
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2022-09-07 10:21:48 UTC using RuboCop version 1.35.0.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# Configuration parameters: Include.
|
|
11
|
+
# Include: **/*.gemspec
|
|
12
|
+
Gemspec/RequiredRubyVersion:
|
|
13
|
+
Exclude:
|
|
14
|
+
- 'ykxutils.gemspec'
|
|
15
|
+
|
|
16
|
+
# Offense count: 3
|
|
17
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
18
|
+
# Configuration parameters: EnforcedStyle.
|
|
19
|
+
# SupportedStyles: normal, indented_internal_methods
|
|
20
|
+
Layout/IndentationConsistency:
|
|
21
|
+
Exclude:
|
|
22
|
+
- 'lib/ykxutils/yamlx.rb'
|
|
23
|
+
|
|
24
|
+
# Offense count: 2
|
|
25
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
26
|
+
# Configuration parameters: IndentationWidth, EnforcedStyle.
|
|
27
|
+
# SupportedStyles: spaces, tabs
|
|
28
|
+
Layout/IndentationStyle:
|
|
29
|
+
Exclude:
|
|
30
|
+
- 'lib/ykxutils/yamlx.rb'
|
|
31
|
+
|
|
32
|
+
# Offense count: 1
|
|
33
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
34
|
+
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
|
|
35
|
+
Layout/IndentationWidth:
|
|
36
|
+
Exclude:
|
|
37
|
+
- 'lib/ykxutils/yamlx.rb'
|
|
38
|
+
|
|
39
|
+
# Offense count: 21
|
|
40
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
41
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
|
42
|
+
Layout/LeadingCommentSpace:
|
|
43
|
+
Exclude:
|
|
44
|
+
- 'lib/ykxutils/yamlx.rb'
|
|
45
|
+
|
|
46
|
+
# Offense count: 1
|
|
47
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
48
|
+
# Configuration parameters: AllowInHeredoc.
|
|
49
|
+
Layout/TrailingWhitespace:
|
|
50
|
+
Exclude:
|
|
51
|
+
- 'lib/ykxutils/yamlx.rb'
|
|
52
|
+
|
|
53
|
+
# Offense count: 1
|
|
54
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
55
|
+
Lint/ScriptPermission:
|
|
56
|
+
Exclude:
|
|
57
|
+
- 'bin/console'
|
|
58
|
+
|
|
59
|
+
# Offense count: 4
|
|
60
|
+
Lint/UselessAssignment:
|
|
61
|
+
Exclude:
|
|
62
|
+
- 'lib/ykxutils/yamlx.rb'
|
|
63
|
+
|
|
64
|
+
# Offense count: 1
|
|
65
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
|
66
|
+
Metrics/MethodLength:
|
|
67
|
+
Max: 17
|
|
68
|
+
|
|
69
|
+
# Offense count: 3
|
|
70
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
71
|
+
# Configuration parameters: PreferredName.
|
|
72
|
+
Naming/RescuedExceptionsVariableName:
|
|
73
|
+
Exclude:
|
|
74
|
+
- 'lib/ykxutils/yamlx.rb'
|
data/Gemfile
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
source "https://rubygems.org"
|
|
4
|
-
|
|
5
|
-
# Specify your gem's dependencies in ykxutils.gemspec
|
|
6
|
-
gemspec
|
|
7
|
-
|
|
8
|
-
gem "rake", "~> 13.0"
|
|
9
|
-
|
|
10
|
-
gem "rspec", "~> 3.0"
|
|
11
|
-
|
|
12
|
-
gem "rubocop", "~> 1.7"
|
|
13
|
-
gem "rubocop-rake", require: false
|
|
14
|
-
gem "rubocop-rspec", require: false
|
|
15
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
# Specify your gem's dependencies in ykxutils.gemspec
|
|
6
|
+
gemspec
|
|
7
|
+
|
|
8
|
+
gem "rake", "~> 13.0"
|
|
9
|
+
|
|
10
|
+
gem "rspec", "~> 3.0"
|
|
11
|
+
|
|
12
|
+
gem "rubocop", "~> 1.7"
|
|
13
|
+
gem "rubocop-rake", require: false
|
|
14
|
+
gem "rubocop-rspec", require: false
|
|
15
|
+
|
|
16
|
+
group :development do
|
|
17
|
+
gem "yard"
|
|
18
|
+
end
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "bundler/gem_tasks"
|
|
4
|
-
require "rspec/core/rake_task"
|
|
5
|
-
|
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
7
|
-
|
|
8
|
-
require "rubocop/rake_task"
|
|
9
|
-
|
|
10
|
-
RuboCop::RakeTask.new
|
|
11
|
-
|
|
12
|
-
task default: %i[spec rubocop]
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "bundler/gem_tasks"
|
|
4
|
+
require "rspec/core/rake_task"
|
|
5
|
+
|
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
7
|
+
|
|
8
|
+
require "rubocop/rake_task"
|
|
9
|
+
|
|
10
|
+
RuboCop::RakeTask.new
|
|
11
|
+
|
|
12
|
+
task default: %i[spec rubocop]
|
data/bin/console
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require "bundler/setup"
|
|
5
|
-
require "ykxutils"
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
-
# require "pry"
|
|
12
|
-
# Pry.start
|
|
13
|
-
|
|
14
|
-
require "irb"
|
|
15
|
-
IRB.start(__FILE__)
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
require "ykxutils"
|
|
6
|
+
|
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
+
|
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
+
# require "pry"
|
|
12
|
+
# Pry.start
|
|
13
|
+
|
|
14
|
+
require "irb"
|
|
15
|
+
IRB.start(__FILE__)
|
data/lib/ykxutils/version.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ykxutils
|
|
4
|
-
VERSION = "0.1.
|
|
5
|
-
end
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ykxutils
|
|
4
|
+
VERSION = "0.1.2"
|
|
5
|
+
end
|
data/lib/ykxutils/yamlx.rb
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
require "yaml"
|
|
2
|
-
|
|
3
|
-
module Ykxutils
|
|
4
|
-
module_function
|
|
5
|
-
|
|
6
|
-
def yaml_load_file_compati(yaml_file_path)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
setting = YAML.load_file(yaml_file_path)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
require "yaml"
|
|
2
|
+
|
|
3
|
+
module Ykxutils
|
|
4
|
+
module_function
|
|
5
|
+
|
|
6
|
+
def yaml_load_file_compati(yaml_file_path)
|
|
7
|
+
setting = {}
|
|
8
|
+
valid = false
|
|
9
|
+
begin
|
|
10
|
+
setting = YAML.load_file(yaml_file_path, aliases: true)
|
|
11
|
+
valid = true
|
|
12
|
+
rescue ArgumentError => ex
|
|
13
|
+
#p "yaml_load_file_compat 1"
|
|
14
|
+
#p ex.class
|
|
15
|
+
#p ex.inspect
|
|
16
|
+
#p ex.message
|
|
17
|
+
#p ex.backtrace
|
|
18
|
+
#exit#
|
|
19
|
+
rescue StandardError => ex
|
|
20
|
+
#p "yaml_load_file_compat 1-2"
|
|
21
|
+
#p ex.class
|
|
22
|
+
#p ex.inspect
|
|
23
|
+
#p ex.message
|
|
24
|
+
#p ex.backtrace
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
if valid != true
|
|
28
|
+
begin
|
|
29
|
+
setting = YAML.load_file(yaml_file_path)
|
|
30
|
+
valid = true
|
|
31
|
+
rescue ArgumentError
|
|
32
|
+
#p "yaml_load_file_compat 2"
|
|
33
|
+
#p ex.class
|
|
34
|
+
#p ex.inspect
|
|
35
|
+
#p ex.message
|
|
36
|
+
#p ex.backtrace
|
|
37
|
+
#
|
|
38
|
+
rescue StandardError => ex
|
|
39
|
+
#p "yaml_load_file_compat 2-2"
|
|
40
|
+
#p ex.class
|
|
41
|
+
#p ex.inspect
|
|
42
|
+
#p ex.message
|
|
43
|
+
#p ex.backtrace
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
setting
|
|
47
|
+
end
|
|
48
|
+
end
|
data/lib/ykxutils.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "ykxutils/version"
|
|
4
|
-
require_relative "ykxutils/yamlx"
|
|
5
|
-
|
|
6
|
-
module Ykxutils
|
|
7
|
-
class Error < StandardError; end
|
|
8
|
-
# Your code goes here...
|
|
9
|
-
end
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "ykxutils/version"
|
|
4
|
+
require_relative "ykxutils/yamlx"
|
|
5
|
+
|
|
6
|
+
module Ykxutils
|
|
7
|
+
class Error < StandardError; end
|
|
8
|
+
# Your code goes here...
|
|
9
|
+
end
|
data/test_data/test.yaml
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# SQLite version 3.x
|
|
2
|
-
# gem install sqlite3
|
|
3
|
-
#
|
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
-
# gem 'sqlite3'
|
|
6
|
-
#
|
|
7
|
-
default: &default
|
|
8
|
-
adapter: sqlite3
|
|
9
|
-
pool: 5
|
|
10
|
-
timeout: 5000
|
|
11
|
-
database: db/sqlite3.db
|
|
12
|
-
|
|
13
|
-
development:
|
|
14
|
-
<<: *default
|
|
15
|
-
database: db/development.sqlite3
|
|
16
|
-
|
|
17
|
-
# Warning: The database defined as "test" will be erased and
|
|
18
|
-
# re-generated from your development database when you run "rake".
|
|
19
|
-
# Do not set this db to the same as development or production.
|
|
20
|
-
test:
|
|
21
|
-
<<: *default
|
|
22
|
-
database: db/test.sqlite3
|
|
23
|
-
|
|
24
|
-
production:
|
|
25
|
-
<<: *default
|
|
26
|
-
database: db/production.sqlite3
|
|
1
|
+
# SQLite version 3.x
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem 'sqlite3'
|
|
6
|
+
#
|
|
7
|
+
default: &default
|
|
8
|
+
adapter: sqlite3
|
|
9
|
+
pool: 5
|
|
10
|
+
timeout: 5000
|
|
11
|
+
database: db/sqlite3.db
|
|
12
|
+
|
|
13
|
+
development:
|
|
14
|
+
<<: *default
|
|
15
|
+
database: db/development.sqlite3
|
|
16
|
+
|
|
17
|
+
# Warning: The database defined as "test" will be erased and
|
|
18
|
+
# re-generated from your development database when you run "rake".
|
|
19
|
+
# Do not set this db to the same as development or production.
|
|
20
|
+
test:
|
|
21
|
+
<<: *default
|
|
22
|
+
database: db/test.sqlite3
|
|
23
|
+
|
|
24
|
+
production:
|
|
25
|
+
<<: *default
|
|
26
|
+
database: db/production.sqlite3
|
data/ykxutils.gemspec
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "lib/ykxutils/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "ykxutils"
|
|
7
|
-
spec.version = Ykxutils::VERSION
|
|
8
|
-
spec.authors = ["ykominami"]
|
|
9
|
-
spec.email = ["ykominami@gmail.com"]
|
|
10
|
-
|
|
11
|
-
spec.summary = "New version of utilty function created by yk."
|
|
12
|
-
spec.description = "New version of utilty function created by yk."
|
|
13
|
-
spec.homepage = "https://ykominami.github.io/ykxutils"
|
|
14
|
-
spec.license = "MIT"
|
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.8")
|
|
16
|
-
|
|
17
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
|
18
|
-
|
|
19
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
|
-
spec.metadata["source_code_uri"] = "https://github.com/ykominami/ykxutils"
|
|
21
|
-
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
|
22
|
-
|
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
25
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
26
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
|
27
|
-
end
|
|
28
|
-
spec.bindir = "exe"
|
|
29
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
30
|
-
spec.require_paths = ["lib"]
|
|
31
|
-
|
|
32
|
-
# Uncomment to register a new dependency of your gem
|
|
33
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
|
34
|
-
|
|
35
|
-
# For more information and examples about making a new gem, checkout our
|
|
36
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
|
37
|
-
end
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/ykxutils/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "ykxutils"
|
|
7
|
+
spec.version = Ykxutils::VERSION
|
|
8
|
+
spec.authors = ["ykominami"]
|
|
9
|
+
spec.email = ["ykominami@gmail.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "New version of utilty function created by yk."
|
|
12
|
+
spec.description = "New version of utilty function created by yk."
|
|
13
|
+
spec.homepage = "https://ykominami.github.io/ykxutils"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.8")
|
|
16
|
+
|
|
17
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
|
18
|
+
|
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/ykominami/ykxutils"
|
|
21
|
+
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
|
22
|
+
|
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
25
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
26
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
|
27
|
+
end
|
|
28
|
+
spec.bindir = "exe"
|
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
30
|
+
spec.require_paths = ["lib"]
|
|
31
|
+
|
|
32
|
+
# Uncomment to register a new dependency of your gem
|
|
33
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
|
34
|
+
|
|
35
|
+
# For more information and examples about making a new gem, checkout our
|
|
36
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
|
37
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ykxutils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ykominami
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-09-
|
|
11
|
+
date: 2022-09-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: New version of utilty function created by yk.
|
|
14
14
|
email:
|
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
58
|
version: '0'
|
|
59
59
|
requirements: []
|
|
60
|
-
rubygems_version: 3.
|
|
60
|
+
rubygems_version: 3.3.7
|
|
61
61
|
signing_key:
|
|
62
62
|
specification_version: 4
|
|
63
63
|
summary: New version of utilty function created by yk.
|