ykxutils 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +28 -28
- data/.rubocop_todo.yml +74 -67
- data/Gemfile +18 -15
- data/Gemfile.lock +8 -7
- data/Rakefile +12 -12
- data/bin/console +15 -15
- data/lib/ykxutils/pstorex.rb +25 -0
- data/lib/ykxutils/version.rb +5 -5
- data/lib/ykxutils/yamlx.rb +48 -14
- data/lib/ykxutils.rb +10 -9
- data/test_data/test.yaml +26 -26
- data/ykxutils.gemspec +46 -37
- metadata +104 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d22fc7981cccfd35ad44ec562ea9ec2775c45becb73165b85163b552733e6d05
|
4
|
+
data.tar.gz: 06e6f4b69633c3c02b6be1f62c7d59b353bea43a6a25524e76aea8cf9baf65f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a61623d958984bc3a73a0f7295234a9ede65dbc572e39f7bc5702dfd05eac823d0b8bc6f8dd4a0bb30e39d41bdfcd6ad14c25bd71ab1a941fb8f0a0b7a22dc2f
|
7
|
+
data.tar.gz: b334748905b7b82cfd78f32dcb445476710e81fbcee0577bd03c6b97a6906912f37351896190fa36b8ad4ac555c8b92ab58e800a35692d981bded1d1cfe1aa41
|
data/.gitignore
CHANGED
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
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ykxutils (0.1.
|
4
|
+
ykxutils (0.1.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -22,14 +22,14 @@ GEM
|
|
22
22
|
rspec-mocks (~> 3.11.0)
|
23
23
|
rspec-core (3.11.0)
|
24
24
|
rspec-support (~> 3.11.0)
|
25
|
-
rspec-expectations (3.11.
|
25
|
+
rspec-expectations (3.11.1)
|
26
26
|
diff-lcs (>= 1.2.0, < 2.0)
|
27
27
|
rspec-support (~> 3.11.0)
|
28
28
|
rspec-mocks (3.11.1)
|
29
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
30
|
rspec-support (~> 3.11.0)
|
31
31
|
rspec-support (3.11.0)
|
32
|
-
rubocop (1.
|
32
|
+
rubocop (1.36.0)
|
33
33
|
json (~> 2.3)
|
34
34
|
parallel (~> 1.10)
|
35
35
|
parser (>= 3.1.2.1)
|
@@ -43,8 +43,8 @@ GEM
|
|
43
43
|
parser (>= 3.1.1.0)
|
44
44
|
rubocop-rake (0.6.0)
|
45
45
|
rubocop (~> 1.0)
|
46
|
-
rubocop-rspec (2.
|
47
|
-
rubocop (~> 1.
|
46
|
+
rubocop-rspec (2.13.0)
|
47
|
+
rubocop (~> 1.33)
|
48
48
|
ruby-progressbar (1.11.0)
|
49
49
|
unicode-display_width (2.2.0)
|
50
50
|
webrick (1.7.0)
|
@@ -52,9 +52,10 @@ GEM
|
|
52
52
|
webrick (~> 1.7.0)
|
53
53
|
|
54
54
|
PLATFORMS
|
55
|
-
|
55
|
+
x86_64-linux
|
56
56
|
|
57
57
|
DEPENDENCIES
|
58
|
+
bundler
|
58
59
|
rake (~> 13.0)
|
59
60
|
rspec (~> 3.0)
|
60
61
|
rubocop (~> 1.7)
|
@@ -64,4 +65,4 @@ DEPENDENCIES
|
|
64
65
|
ykxutils!
|
65
66
|
|
66
67
|
BUNDLED WITH
|
67
|
-
2.
|
68
|
+
2.3.17
|
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__)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require "pstore"
|
2
|
+
require "fileutils"
|
3
|
+
|
4
|
+
module Ykxutils
|
5
|
+
class Pstorex
|
6
|
+
def initialize(store_dir, dump_file="pstore.dump")
|
7
|
+
FileUtils.mkdir_p(store_dir)
|
8
|
+
@store_db = PStore.new(Pathname.new(store_dir).join(dump_file))
|
9
|
+
end
|
10
|
+
|
11
|
+
def fetch(key, default_value)
|
12
|
+
value = default_value
|
13
|
+
@store_db.transaction do
|
14
|
+
value = @store_db.fetch(key, default_value)
|
15
|
+
end
|
16
|
+
value
|
17
|
+
end
|
18
|
+
|
19
|
+
def store(key, value)
|
20
|
+
@store_db.transaction do
|
21
|
+
@store_db[key] = value
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
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.3"
|
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,10 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "ykxutils/version"
|
4
|
-
require_relative "ykxutils/yamlx"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "ykxutils/version"
|
4
|
+
require_relative "ykxutils/yamlx"
|
5
|
+
require_relative "ykxutils/pstorex"
|
6
|
+
|
7
|
+
module Ykxutils
|
8
|
+
class Error < StandardError; end
|
9
|
+
# Your code goes here...
|
10
|
+
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,46 @@
|
|
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.
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
+
spec.add_development_dependency "bundler"
|
33
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
35
|
+
|
36
|
+
spec.add_development_dependency "rubocop", "~> 1.7"
|
37
|
+
spec.add_development_dependency "rubocop-rake"
|
38
|
+
spec.add_development_dependency "rubocop-rspec"
|
39
|
+
|
40
|
+
spec.add_development_dependency "yard"
|
41
|
+
# Uncomment to register a new dependency of your gem
|
42
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
43
|
+
|
44
|
+
# For more information and examples about making a new gem, checkout our
|
45
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
46
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,113 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ykominami
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
12
|
-
dependencies:
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '13.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '13.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
13
111
|
description: New version of utilty function created by yk.
|
14
112
|
email:
|
15
113
|
- ykominami@gmail.com
|
@@ -32,6 +130,7 @@ files:
|
|
32
130
|
- bin/console
|
33
131
|
- bin/setup
|
34
132
|
- lib/ykxutils.rb
|
133
|
+
- lib/ykxutils/pstorex.rb
|
35
134
|
- lib/ykxutils/version.rb
|
36
135
|
- lib/ykxutils/yamlx.rb
|
37
136
|
- test_data/test.yaml
|
@@ -50,14 +149,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
149
|
requirements:
|
51
150
|
- - ">="
|
52
151
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.
|
152
|
+
version: 2.5.8
|
54
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
154
|
requirements:
|
56
155
|
- - ">="
|
57
156
|
- !ruby/object:Gem::Version
|
58
157
|
version: '0'
|
59
158
|
requirements: []
|
60
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.3.7
|
61
160
|
signing_key:
|
62
161
|
specification_version: 4
|
63
162
|
summary: New version of utilty function created by yk.
|