ykxutils 0.1.3 → 0.1.4

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: d22fc7981cccfd35ad44ec562ea9ec2775c45becb73165b85163b552733e6d05
4
- data.tar.gz: 06e6f4b69633c3c02b6be1f62c7d59b353bea43a6a25524e76aea8cf9baf65f2
3
+ metadata.gz: 7e5c9c3bed78aa884b754dead58bf57ff0673100380b8d24881c6fca2c765fd6
4
+ data.tar.gz: ab9fc2befae4c7e53df63ae7d5d9dc6f2cb2b9964d5721f87e512392bcfe3573
5
5
  SHA512:
6
- metadata.gz: a61623d958984bc3a73a0f7295234a9ede65dbc572e39f7bc5702dfd05eac823d0b8bc6f8dd4a0bb30e39d41bdfcd6ad14c25bd71ab1a941fb8f0a0b7a22dc2f
7
- data.tar.gz: b334748905b7b82cfd78f32dcb445476710e81fbcee0577bd03c6b97a6906912f37351896190fa36b8ad4ac555c8b92ab58e800a35692d981bded1d1cfe1aa41
6
+ metadata.gz: d5dc8f18b24e6cc75ebc0f42ed72d6af2df91a936c162234f6900665af86c8134661f59e8838d2f1c47bc4b8eb87965a9ce2aa7d6e924586663091fe31e82377
7
+ data.tar.gz: 75183d0298ca403931c633f0d1eff51c8269c374d290532a5534cb8e626b3a0b660aad2c46e5fe6d6855c6758c0dedfd62be9642674925f7cb771e1f7feba017
data/.rubocop.yml CHANGED
@@ -6,6 +6,7 @@ inherit_from: .rubocop_todo.yml
6
6
 
7
7
  AllCops:
8
8
  TargetRubyVersion: 2.6
9
+ NewCops: enable
9
10
 
10
11
  Style/StringLiterals:
11
12
  Enabled: true
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-09-07 10:21:48 UTC using RuboCop version 1.35.0.
3
+ # on 2022-09-13 03:51:05 UTC using RuboCop version 1.36.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -11,7 +11,14 @@
11
11
  # Include: **/*.gemspec
12
12
  Gemspec/RequiredRubyVersion:
13
13
  Exclude:
14
- - 'ykxutils.gemspec'
14
+ #- 'ykxutils.gemspec'
15
+
16
+ # Offense count: 1
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
19
+ Layout/ExtraSpacing:
20
+ Exclude:
21
+ #- 'spec/ykxutils_spec.rb'
15
22
 
16
23
  # Offense count: 3
17
24
  # This cop supports safe autocorrection (--autocorrect).
@@ -19,7 +26,7 @@ Gemspec/RequiredRubyVersion:
19
26
  # SupportedStyles: normal, indented_internal_methods
20
27
  Layout/IndentationConsistency:
21
28
  Exclude:
22
- - 'lib/ykxutils/yamlx.rb'
29
+ #- 'lib/ykxutils/yamlx.rb'
23
30
 
24
31
  # Offense count: 2
25
32
  # This cop supports safe autocorrection (--autocorrect).
@@ -27,28 +34,57 @@ Layout/IndentationConsistency:
27
34
  # SupportedStyles: spaces, tabs
28
35
  Layout/IndentationStyle:
29
36
  Exclude:
30
- - 'lib/ykxutils/yamlx.rb'
37
+ #- 'lib/ykxutils/yamlx.rb'
31
38
 
32
39
  # Offense count: 1
33
40
  # This cop supports safe autocorrection (--autocorrect).
34
41
  # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
35
42
  Layout/IndentationWidth:
36
43
  Exclude:
37
- - 'lib/ykxutils/yamlx.rb'
44
+ #- 'lib/ykxutils/yamlx.rb'
38
45
 
39
46
  # Offense count: 21
40
47
  # This cop supports safe autocorrection (--autocorrect).
41
48
  # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
42
49
  Layout/LeadingCommentSpace:
43
50
  Exclude:
44
- - 'lib/ykxutils/yamlx.rb'
51
+ #- 'lib/ykxutils/yamlx.rb'
52
+
53
+ # Offense count: 2
54
+ # This cop supports safe autocorrection (--autocorrect).
55
+ Layout/SpaceAfterComma:
56
+ Exclude:
57
+ #- 'spec/ykxutils_spec.rb'
45
58
 
46
59
  # Offense count: 1
47
60
  # This cop supports safe autocorrection (--autocorrect).
61
+ # Configuration parameters: .
62
+ # SupportedStyles: space, no_space
63
+ Layout/SpaceAroundEqualsInParameterDefault:
64
+ EnforcedStyle: no_space
65
+
66
+ # Offense count: 2
67
+ # This cop supports safe autocorrection (--autocorrect).
68
+ Layout/SpaceBeforeComma:
69
+ Exclude:
70
+ #- 'spec/ykxutils_spec.rb'
71
+
72
+ # Offense count: 4
73
+ # This cop supports safe autocorrection (--autocorrect).
74
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
75
+ # SupportedStyles: space, no_space
76
+ # SupportedStylesForEmptyBraces: space, no_space
77
+ Layout/SpaceInsideBlockBraces:
78
+ Exclude:
79
+ #- 'spec/ykxutils_spec.rb'
80
+
81
+ # Offense count: 3
82
+ # This cop supports safe autocorrection (--autocorrect).
48
83
  # Configuration parameters: AllowInHeredoc.
49
84
  Layout/TrailingWhitespace:
50
85
  Exclude:
51
- - 'lib/ykxutils/yamlx.rb'
86
+ #- 'lib/ykxutils/yamlx.rb'
87
+ #- 'spec/ykxutils_spec.rb'
52
88
 
53
89
  # Offense count: 1
54
90
  # This cop supports safe autocorrection (--autocorrect).
@@ -71,4 +107,18 @@ Metrics/MethodLength:
71
107
  # Configuration parameters: PreferredName.
72
108
  Naming/RescuedExceptionsVariableName:
73
109
  Exclude:
74
- - 'lib/ykxutils/yamlx.rb'
110
+ #- 'lib/ykxutils/yamlx.rb'
111
+
112
+ # Offense count: 2
113
+ # This cop supports safe autocorrection (--autocorrect).
114
+ RSpec/EmptyLineAfterFinalLet:
115
+ Exclude:
116
+ #- 'spec/ykxutils_spec.rb'
117
+
118
+ # Offense count: 1
119
+ # This cop supports safe autocorrection (--autocorrect).
120
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
121
+ # SupportedStyles: single_quotes, double_quotes
122
+ Style/StringLiterals:
123
+ Exclude:
124
+ #- 'spec/ykxutils_spec.rb'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ykxutils (0.1.3)
4
+ ykxutils (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -28,7 +28,7 @@ GEM
28
28
  rspec-mocks (3.11.1)
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
30
  rspec-support (~> 3.11.0)
31
- rspec-support (3.11.0)
31
+ rspec-support (3.11.1)
32
32
  rubocop (1.36.0)
33
33
  json (~> 2.3)
34
34
  parallel (~> 1.10)
@@ -43,7 +43,7 @@ GEM
43
43
  parser (>= 3.1.1.0)
44
44
  rubocop-rake (0.6.0)
45
45
  rubocop (~> 1.0)
46
- rubocop-rspec (2.13.0)
46
+ rubocop-rspec (2.13.1)
47
47
  rubocop (~> 1.33)
48
48
  ruby-progressbar (1.11.0)
49
49
  unicode-display_width (2.2.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ykxutils
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -4,43 +4,43 @@ module Ykxutils
4
4
  module_function
5
5
 
6
6
  def yaml_load_file_compati(yaml_file_path)
7
- setting = {}
8
- valid = false
7
+ setting = {}
8
+ valid = false
9
9
  begin
10
10
  setting = YAML.load_file(yaml_file_path, aliases: true)
11
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
12
+ rescue ArgumentError => e
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 => e
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
25
  end
26
-
26
+
27
27
  if valid != true
28
28
  begin
29
29
  setting = YAML.load_file(yaml_file_path)
30
30
  valid = true
31
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
32
+ # p "yaml_load_file_compat 2"
33
+ # p ex.class
34
+ # p ex.inspect
35
+ # p ex.message
36
+ # p ex.backtrace
37
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
38
+ rescue StandardError => e
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
44
  end
45
45
  end
46
46
  setting
data/ykxutils.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "New version of utilty function created by yk."
13
13
  spec.homepage = "https://ykominami.github.io/ykxutils"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.8")
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.6")
16
16
 
17
17
  # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
18
 
@@ -43,4 +43,5 @@ Gem::Specification.new do |spec|
43
43
 
44
44
  # For more information and examples about making a new gem, checkout our
45
45
  # guide at: https://bundler.io/guides/creating_gem.html
46
+ spec.metadata["rubygems_mfa_required"] = "true"
46
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ykxutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ykominami
@@ -141,6 +141,7 @@ licenses:
141
141
  metadata:
142
142
  homepage_uri: https://ykominami.github.io/ykxutils
143
143
  source_code_uri: https://github.com/ykominami/ykxutils
144
+ rubygems_mfa_required: 'true'
144
145
  post_install_message:
145
146
  rdoc_options: []
146
147
  require_paths:
@@ -149,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
150
  requirements:
150
151
  - - ">="
151
152
  - !ruby/object:Gem::Version
152
- version: 2.5.8
153
+ version: '2.6'
153
154
  required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  requirements:
155
156
  - - ">="