ykxutils 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +9 -0
- data/.rubocop_todo.yml +18 -125
- data/Gemfile +2 -0
- data/Gemfile.lock +16 -5
- data/lib/ykxutils/fileop.rb +51 -0
- data/lib/ykxutils/htmlparsex.rb +30 -0
- data/lib/ykxutils/version.rb +1 -1
- data/lib/ykxutils/yamlx.rb +1 -1
- data/lib/ykxutils.rb +2 -0
- data/test_data/a.txt +0 -0
- data/test_data/fileop/in.html +1 -0
- data/test_data/fileop/out.html +1 -0
- data/test_data/fileop/out_0.html +1 -0
- data/ykxutils.gemspec +10 -10
- metadata +9 -143
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0659659032f5707b2cdeade5612ba9450d0b031766aa3ae592c0ac33e598543
|
4
|
+
data.tar.gz: a101d3eb24966539154012d769913cb0be13fac416eb1de173a77034bf6576e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623fb0b29f44a21eaaf84ead317c17b104d701cd81f28345f9788d513a3690f79c644e5e12f8450b90c27d0f6dc9dbabff19db4124abbde81a61eabeb5536281
|
7
|
+
data.tar.gz: b4a226775f324625a513cc9c802ee2779ef9593b66da85abc798e998c56bc91cc9a4ee3b25f5e64030733da1da6de53ffe74858239d86f2b23ab9822addc6b07
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,156 +1,49 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2024-02-06 17:44:56 UTC using RuboCop version 1.59.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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
9
|
# Offense count: 1
|
10
|
-
#
|
11
|
-
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
12
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
12
14
|
Exclude:
|
13
|
-
# - '
|
15
|
+
# - 'Gemfile'
|
14
16
|
|
15
17
|
# Offense count: 1
|
16
|
-
#
|
18
|
+
# This cop supports safe autocorrection (--autocorrect).
|
19
|
+
# Configuration parameters: EnforcedStyle.
|
20
|
+
# SupportedStyles: final_newline, final_blank_line
|
21
|
+
Layout/TrailingEmptyLines:
|
22
|
+
Exclude:
|
23
|
+
# - 'Gemfile'
|
24
|
+
|
25
|
+
# Offense count: 1
|
26
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
17
27
|
Metrics/AbcSize:
|
18
28
|
Max: 19
|
19
29
|
|
20
30
|
# Offense count: 3
|
21
|
-
# Configuration parameters: CountComments, CountAsOne,
|
31
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
22
32
|
Metrics/MethodLength:
|
23
|
-
Max:
|
33
|
+
Max: 14
|
24
34
|
|
25
35
|
# Offense count: 1
|
26
36
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
27
37
|
Metrics/ParameterLists:
|
28
38
|
Max: 6
|
29
39
|
|
30
|
-
# Offense count: 1
|
31
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
32
|
-
# AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to
|
33
|
-
Naming/MethodParameterName:
|
34
|
-
Exclude:
|
35
|
-
# - 'lib/ykxutils/nginxconfigfiles.rb'
|
36
|
-
|
37
|
-
# Offense count: 1
|
38
|
-
# This cop supports safe autocorrection (--autocorrect).
|
39
|
-
# Configuration parameters: EnforcedStyle.
|
40
|
-
# SupportedStyles: be, be_nil
|
41
|
-
RSpec/BeNil:
|
42
|
-
Exclude:
|
43
|
-
# - 'spec/ykxutils_spec.rb'
|
44
|
-
|
45
|
-
# Offense count: 1
|
46
|
-
RSpec/BeforeAfterAll:
|
47
|
-
Exclude:
|
48
|
-
# - 'spec/spec_helper.rb'
|
49
|
-
# - 'spec/rails_helper.rb'
|
50
|
-
# - 'spec/support/**/*.rb'
|
51
|
-
# - 'spec/ykxutils_spec.rb'
|
52
|
-
|
53
40
|
# Offense count: 2
|
54
41
|
# Configuration parameters: CountAsOne.
|
55
42
|
RSpec/ExampleLength:
|
56
|
-
Max:
|
43
|
+
Max: 8
|
57
44
|
|
58
45
|
# Offense count: 1
|
59
46
|
# Configuration parameters: AssignmentOnly.
|
60
47
|
RSpec/InstanceVariable:
|
61
48
|
Exclude:
|
62
49
|
# - 'spec/ykxutils_spec.rb'
|
63
|
-
|
64
|
-
# Offense count: 1
|
65
|
-
RSpec/NoExpectationExample:
|
66
|
-
Exclude:
|
67
|
-
# - 'spec/ykxutils_spec.rb'
|
68
|
-
|
69
|
-
# Offense count: 1
|
70
|
-
# This cop supports safe autocorrection (--autocorrect).
|
71
|
-
# Configuration parameters: EnforcedStyle.
|
72
|
-
# SupportedStyles: not_to, to_not
|
73
|
-
RSpec/NotToNot:
|
74
|
-
Exclude:
|
75
|
-
# - 'spec/ykxutils_spec.rb'
|
76
|
-
|
77
|
-
# Offense count: 8
|
78
|
-
# This cop supports safe autocorrection (--autocorrect).
|
79
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
80
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
81
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
82
|
-
# FunctionalMethods: let, let!, subject, watch
|
83
|
-
# AllowedMethods: lambda, proc, it
|
84
|
-
Style/BlockDelimiters:
|
85
|
-
Exclude:
|
86
|
-
# - 'lib/ykxutils/erubyx.rb'
|
87
|
-
# - 'lib/ykxutils/gridlist.rb'
|
88
|
-
# - 'lib/ykxutils/nginxconfig.rb'
|
89
|
-
# - 'lib/ykxutils/nginxconfigfiles.rb'
|
90
|
-
# - 'spec/ykxutils_spec.rb'
|
91
|
-
|
92
|
-
# Offense count: 5
|
93
|
-
# This cop supports safe autocorrection (--autocorrect).
|
94
|
-
Style/ColonMethodCall:
|
95
|
-
Exclude:
|
96
|
-
# - 'lib/ykxutils/gridlist.rb'
|
97
|
-
# - 'lib/ykxutils/nginxconfig.rb'
|
98
|
-
# - 'spec/ykxutils_spec.rb'
|
99
|
-
|
100
|
-
# Offense count: 1
|
101
|
-
# This cop supports safe autocorrection (--autocorrect).
|
102
|
-
Style/EachWithObject:
|
103
|
-
Exclude:
|
104
|
-
# - 'spec/ykxutils_spec.rb'
|
105
|
-
|
106
|
-
# Offense count: 3
|
107
|
-
# This cop supports safe autocorrection (--autocorrect).
|
108
|
-
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
109
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
110
|
-
# SupportedShorthandSyntax: always, never, either, consistent
|
111
|
-
Style/HashSyntax:
|
112
|
-
Exclude:
|
113
|
-
# - 'lib/ykxutils/gridlist.rb'
|
114
|
-
|
115
|
-
# Offense count: 2
|
116
|
-
# This cop supports safe autocorrection (--autocorrect).
|
117
|
-
Style/IfUnlessModifier:
|
118
|
-
Exclude:
|
119
|
-
# - 'lib/ykxutils/erubyx.rb'
|
120
|
-
# - 'lib/ykxutils/gridlist.rb'
|
121
|
-
|
122
|
-
# Offense count: 1
|
123
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
124
|
-
# Configuration parameters: EnforcedStyle.
|
125
|
-
# SupportedStyles: literals, strict
|
126
|
-
Style/MutableConstant:
|
127
|
-
Exclude:
|
128
|
-
# - 'lib/ykxutils/gridlist.rb'
|
129
|
-
|
130
|
-
# Offense count: 2
|
131
|
-
# This cop supports safe autocorrection (--autocorrect).
|
132
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
133
|
-
# SupportedStyles: skip_modifier_ifs, always
|
134
|
-
Style/Next:
|
135
|
-
Exclude:
|
136
|
-
# - 'lib/ykxutils/nginxconfig.rb'
|
137
|
-
# - 'lib/ykxutils/nginxconfigfiles.rb'
|
138
|
-
|
139
|
-
# Offense count: 1
|
140
|
-
# This cop supports safe autocorrection (--autocorrect).
|
141
|
-
# Configuration parameters: PreferredDelimiters.
|
142
|
-
Style/PercentLiteralDelimiters:
|
143
|
-
Exclude:
|
144
|
-
# - 'lib/ykxutils/gridlist.rb'
|
145
|
-
|
146
|
-
# Offense count: 45
|
147
|
-
# This cop supports safe autocorrection (--autocorrect).
|
148
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
149
|
-
# SupportedStyles: single_quotes, double_quotes
|
150
|
-
Style/StringLiterals:
|
151
|
-
Exclude:
|
152
|
-
# - 'Gemfile'
|
153
|
-
# - 'lib/ykxutils/erubyx.rb'
|
154
|
-
# - 'lib/ykxutils/gridlist.rb'
|
155
|
-
# - 'lib/ykxutils/nginxconfigfiles.rb'
|
156
|
-
# - 'ykxutils.gemspec'
|
data/Gemfile
CHANGED
@@ -11,12 +11,14 @@ gem "rake", "~> 13.1"
|
|
11
11
|
gem "tilt"
|
12
12
|
|
13
13
|
group :development do
|
14
|
+
gem "debug"
|
14
15
|
gem "yard"
|
15
16
|
end
|
16
17
|
|
17
18
|
group :test do
|
18
19
|
gem "rspec", "~> 3.12"
|
19
20
|
gem "rubocop"
|
21
|
+
gem "rubocop-performance"
|
20
22
|
gem "rubocop-rake", require: false
|
21
23
|
gem "rubocop-rspec", require: false
|
22
24
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ykxutils (0.1.
|
5
|
-
bundler
|
6
|
-
erubi
|
7
|
-
rake (~> 13.0)
|
8
|
-
tilt
|
4
|
+
ykxutils (0.1.12)
|
9
5
|
|
10
6
|
GEM
|
11
7
|
remote: https://rubygems.org/
|
12
8
|
specs:
|
13
9
|
ast (2.4.2)
|
10
|
+
debug (1.9.1)
|
11
|
+
irb (~> 1.10)
|
12
|
+
reline (>= 0.3.8)
|
14
13
|
diff-lcs (1.5.0)
|
15
14
|
erubi (1.12.0)
|
15
|
+
io-console (0.7.2)
|
16
|
+
irb (1.11.1)
|
17
|
+
rdoc
|
18
|
+
reline (>= 0.4.2)
|
16
19
|
json (2.7.1)
|
17
20
|
language_server-protocol (3.17.0.3)
|
18
21
|
parallel (1.24.0)
|
19
22
|
parser (3.2.2.4)
|
20
23
|
ast (~> 2.4.1)
|
21
24
|
racc
|
25
|
+
psych (5.1.2)
|
26
|
+
stringio
|
22
27
|
racc (1.7.3)
|
23
28
|
rainbow (3.1.1)
|
24
29
|
rake (13.1.0)
|
30
|
+
rdoc (6.6.2)
|
31
|
+
psych (>= 4.0.0)
|
25
32
|
regexp_parser (2.8.3)
|
33
|
+
reline (0.4.2)
|
34
|
+
io-console (~> 0.5)
|
26
35
|
rexml (3.2.6)
|
27
36
|
rspec (3.12.0)
|
28
37
|
rspec-core (~> 3.12.0)
|
@@ -64,6 +73,7 @@ GEM
|
|
64
73
|
rubocop-capybara (~> 2.17)
|
65
74
|
rubocop-factory_bot (~> 2.22)
|
66
75
|
ruby-progressbar (1.13.0)
|
76
|
+
stringio (3.1.0)
|
67
77
|
tilt (2.3.0)
|
68
78
|
unicode-display_width (2.5.0)
|
69
79
|
yard (0.9.34)
|
@@ -73,6 +83,7 @@ PLATFORMS
|
|
73
83
|
|
74
84
|
DEPENDENCIES
|
75
85
|
bundler
|
86
|
+
debug
|
76
87
|
erubi
|
77
88
|
rake (~> 13.1)
|
78
89
|
rspec (~> 3.12)
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require "yaml"
|
2
|
+
require "pathname"
|
3
|
+
|
4
|
+
module Ykxutils
|
5
|
+
module_function
|
6
|
+
|
7
|
+
def make_output_filename(prefix, basename, postfix, extname, extname_pn)
|
8
|
+
if extname == nil
|
9
|
+
if extname_pn.size <= 1
|
10
|
+
extname = ""
|
11
|
+
else
|
12
|
+
extname = extname_pn.to_s
|
13
|
+
end
|
14
|
+
end
|
15
|
+
"#{prefix}#{basename}#{postfix}#{extname}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def make_output_file_pn(out_dir, ofname, input_pn)
|
19
|
+
case out_dir
|
20
|
+
when nil
|
21
|
+
Pathname.new(ofname)
|
22
|
+
when :SAME
|
23
|
+
parent = input_pn.parent
|
24
|
+
parent + ofname
|
25
|
+
else
|
26
|
+
out_dir_pn = Pathname.new(out_dir)
|
27
|
+
out_dir_pn + ofname
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def make_output_path( input_path:, out_dir: nil, prefix: "", postfix: "", extname: nil)
|
32
|
+
input_pn = Pathname.new(input_path)
|
33
|
+
basename = input_pn.basename(".*")
|
34
|
+
extname_pn = input_pn.extname
|
35
|
+
ofname = make_output_filename(prefix, basename, postfix, extname, extname_pn)
|
36
|
+
output_pn = make_output_file_pn(out_dir, ofname, input_pn)
|
37
|
+
if input_pn.expand_path('/') === output_pn.expand_path('/')
|
38
|
+
nil
|
39
|
+
else
|
40
|
+
output_pn.to_s
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def file_convert(infile, outfile, &block)
|
45
|
+
if block
|
46
|
+
block.call(infile, outfile)
|
47
|
+
else
|
48
|
+
false
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require "yaml"
|
2
|
+
|
3
|
+
module Ykxutils
|
4
|
+
module_function
|
5
|
+
|
6
|
+
def complemente_dt_tag(line)
|
7
|
+
if line =~ /<DT>/
|
8
|
+
# p "complemente_dt_tag T"
|
9
|
+
line + "</DT>"
|
10
|
+
elsif line =~ /<dt>/
|
11
|
+
line + "</dt>"
|
12
|
+
else
|
13
|
+
# p "complemente_dt_tag F"
|
14
|
+
line
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def reform_dt_tag(infilename, outfilename)
|
19
|
+
infile = File.open(infilename)
|
20
|
+
outfile = File.open(outfilename, 'w')
|
21
|
+
|
22
|
+
Ykxutils::file_convert(infile, outfile){ |infile, outfile|
|
23
|
+
while line = infile.gets
|
24
|
+
line.chomp!
|
25
|
+
oline = Ykxutils.complemente_dt_tag(line)
|
26
|
+
outfile.write( oline + "\n" )
|
27
|
+
end
|
28
|
+
}
|
29
|
+
end
|
30
|
+
end
|
data/lib/ykxutils/version.rb
CHANGED
data/lib/ykxutils/yamlx.rb
CHANGED
data/lib/ykxutils.rb
CHANGED
@@ -8,6 +8,8 @@ require_relative "ykxutils/gitcmd"
|
|
8
8
|
require_relative "ykxutils/nginxconfig"
|
9
9
|
require_relative "ykxutils/nginxconfigfiles"
|
10
10
|
require_relative "ykxutils/gridlist"
|
11
|
+
require_relative "ykxutils/fileop"
|
12
|
+
require_relative "ykxutils/htmlparsex"
|
11
13
|
|
12
14
|
module Ykxutils
|
13
15
|
class Error < StandardError; end
|
data/test_data/a.txt
ADDED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<dt>abc
|
@@ -0,0 +1 @@
|
|
1
|
+
<dt>abc</dt>
|
@@ -0,0 +1 @@
|
|
1
|
+
<dt>abc</dt>
|
data/ykxutils.gemspec
CHANGED
@@ -31,19 +31,19 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
|
-
spec.add_runtime_dependency "bundler"
|
34
|
+
# spec.add_runtime_dependency "bundler"
|
35
35
|
# spec.add_runtime_dependency 'debug'
|
36
|
-
spec.add_runtime_dependency "erubi"
|
37
|
-
spec.add_runtime_dependency "rake", "~> 13.0"
|
38
|
-
spec.add_runtime_dependency "tilt"
|
36
|
+
# spec.add_runtime_dependency "erubi"
|
37
|
+
# spec.add_runtime_dependency "rake", "~> 13.0"
|
38
|
+
# spec.add_runtime_dependency "tilt"
|
39
39
|
|
40
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
41
|
-
spec.add_development_dependency "rubocop"
|
42
|
-
spec.add_development_dependency "rubocop-performance"
|
43
|
-
spec.add_development_dependency "rubocop-rake"
|
44
|
-
spec.add_development_dependency "rubocop-rspec"
|
40
|
+
# spec.add_development_dependency "rspec", "~> 3.0"
|
41
|
+
# spec.add_development_dependency "rubocop"
|
42
|
+
# spec.add_development_dependency "rubocop-performance"
|
43
|
+
# spec.add_development_dependency "rubocop-rake"
|
44
|
+
# spec.add_development_dependency "rubocop-rspec"
|
45
45
|
|
46
|
-
spec.add_development_dependency "yard"
|
46
|
+
# spec.add_development_dependency "yard"
|
47
47
|
|
48
48
|
# Uncomment to register a new dependency of your gem
|
49
49
|
# spec.add_dependency "example-gem", "~> 1.0"
|
metadata
CHANGED
@@ -1,155 +1,15 @@
|
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ykominami
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
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: :runtime
|
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: erubi
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '13.0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '13.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: tilt
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop
|
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: rubocop-performance
|
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'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop-rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rubocop-rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: yard
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
11
|
+
date: 2024-03-09 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
153
13
|
description: New version of utilty function created by yk.
|
154
14
|
email:
|
155
15
|
- ykominami@gmail.com
|
@@ -171,14 +31,20 @@ files:
|
|
171
31
|
- a.northern-cross.net.conf
|
172
32
|
- lib/ykxutils.rb
|
173
33
|
- lib/ykxutils/erubyx.rb
|
34
|
+
- lib/ykxutils/fileop.rb
|
174
35
|
- lib/ykxutils/gitcmd.rb
|
175
36
|
- lib/ykxutils/gridlist.rb
|
37
|
+
- lib/ykxutils/htmlparsex.rb
|
176
38
|
- lib/ykxutils/nginxconfig.rb
|
177
39
|
- lib/ykxutils/nginxconfigfiles.rb
|
178
40
|
- lib/ykxutils/pstorex.rb
|
179
41
|
- lib/ykxutils/version.rb
|
180
42
|
- lib/ykxutils/yamlx.rb
|
181
43
|
- test_data/4servers.erb
|
44
|
+
- test_data/a.txt
|
45
|
+
- test_data/fileop/in.html
|
46
|
+
- test_data/fileop/out.html
|
47
|
+
- test_data/fileop/out_0.html
|
182
48
|
- test_data/test.yaml
|
183
49
|
- test_data/v103-3-189-127/4servers.erb
|
184
50
|
- test_data/v103-3-189-127/a.northern-cross.net/base.yml
|