ykutils 0.1.4 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -1
  3. data/.rubocop.yml +2 -1
  4. data/.rubocop_todo.yml +181 -85
  5. data/Gemfile +11 -11
  6. data/Gemfile.lock +17 -12
  7. data/bin/erubix +1 -1
  8. data/bin/makegrid +4 -4
  9. data/lib/ykutils/debugutils.rb +44 -32
  10. data/lib/ykutils/erubyx.rb +30 -19
  11. data/lib/ykutils/fileoputils.rb +2 -2
  12. data/lib/ykutils/gridlist.rb +49 -49
  13. data/lib/ykutils/lines.rb +143 -143
  14. data/lib/ykutils/lsutils.rb +71 -71
  15. data/lib/ykutils/nginxconfig.rb +40 -41
  16. data/lib/ykutils/nginxconfigfiles.rb +31 -31
  17. data/lib/ykutils/nkfutil.rb +148 -147
  18. data/lib/ykutils/nkfutil19.rb +9 -11
  19. data/lib/ykutils/osutil.rb +16 -16
  20. data/lib/ykutils/retcodex.rb +1 -3
  21. data/lib/ykutils/stext.rb +427 -425
  22. data/lib/ykutils/stextx.rb +32 -32
  23. data/lib/ykutils/stringutils.rb +111 -111
  24. data/lib/ykutils/treemanager.rb +33 -33
  25. data/lib/ykutils/treemanagera.rb +21 -21
  26. data/lib/ykutils/version.rb +1 -1
  27. data/lib/ykutils/xlines.rb +8 -8
  28. data/lib/ykutils/yamlop.rb +227 -227
  29. data/lib/ykutils/yamlxop.rb +35 -35
  30. data/test_data/4servers.erb +7 -7
  31. data/test_data/a.bat +5 -5
  32. data/test_data/a_ncn.bat +12 -12
  33. data/test_data/v103-3-189-127/a.northern-cross.net/base.yml +28 -28
  34. data/test_data/v103-3-189-127/a.northern-cross.net/value_host.yml +1 -1
  35. data/test_data/v103-3-189-127/b.northern-cross.net/base.yml +28 -28
  36. data/test_data/v103-3-189-127/b.northern-cross.net/value_host.yml +1 -1
  37. data/test_data/v103-3-189-127/c.northern-cross.net/base.yml +28 -28
  38. data/test_data/v103-3-189-127/c.northern-cross.net/value_host.yml +1 -1
  39. data/test_data/v103-3-189-127/d.northern-cross.info/base.yml +28 -28
  40. data/test_data/v103-3-189-127/d.northern-cross.info/value_host.yml +1 -1
  41. data/test_data/v103-3-189-127/d.northern-cross.net/base.yml +28 -28
  42. data/test_data/v103-3-189-127/d.northern-cross.net/value_host.yml +1 -1
  43. data/test_data/v103-3-189-127/e.northern-cross.info/base.yml +28 -28
  44. data/test_data/v103-3-189-127/e.northern-cross.info/value_host.yml +1 -1
  45. data/test_data/v103-3-189-127/e.northern-cross.net/base.yml +28 -28
  46. data/test_data/v103-3-189-127/e.northern-cross.net/value_host.yml +1 -1
  47. data/test_data/v103-3-189-127/f.northern-cross.info/base.yml +28 -28
  48. data/test_data/v103-3-189-127/f.northern-cross.info/value_host.yml +1 -1
  49. data/test_data/v103-3-189-127/f.northern-cross.net/base.yml +28 -28
  50. data/test_data/v103-3-189-127/f.northern-cross.net/value_host.yml +1 -1
  51. data/test_data/v103-3-189-127/t_server_1.erb +7 -7
  52. data/test_data/v103-3-189-127/template.erb +21 -21
  53. data/test_data/v103-3-189-127/template_ssl.erb +22 -22
  54. data/test_data/v103-3-189-127/template_ssl_www.erb +12 -12
  55. data/test_data/v103-3-189-127/template_www.erb +24 -24
  56. data/test_data/v103-3-189-127/value.yml +3 -3
  57. data/test_data/v103-3-189-127/value_ssl.yml +5 -5
  58. data/ykutils.gemspec +45 -43
  59. metadata +8 -9
  60. data/_config.yml +0 -1
@@ -1,3 +1,3 @@
1
- error_log: error_log
2
- access_log: access_log
3
- port: 80
1
+ error_log: error_log
2
+ access_log: access_log
3
+ port: 80
@@ -1,5 +1,5 @@
1
- error_log: ssl_error_log
2
- access_log: ssl_access_log
3
- ssl_port: 443 ssl
4
- ssl_certificate: /etc/letsencrypt/live/v103-3-189-127.myvps.jp/fullchain.pem
5
- ssl_certificate_key: /etc/letsencrypt/live/v103-3-189-127.myvps.jp/privkey.pem
1
+ error_log: ssl_error_log
2
+ access_log: ssl_access_log
3
+ ssl_port: 443 ssl
4
+ ssl_certificate: /etc/letsencrypt/live/v103-3-189-127.myvps.jp/fullchain.pem
5
+ ssl_certificate_key: /etc/letsencrypt/live/v103-3-189-127.myvps.jp/privkey.pem
data/ykutils.gemspec CHANGED
@@ -1,43 +1,45 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path("lib", __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
- require_relative "lib/ykutils/version"
7
-
8
- Gem::Specification.new do |spec|
9
- spec.name = "ykutils"
10
- spec.version = Ykutils::VERSION
11
- spec.authors = ["yasuo kominami"]
12
- spec.email = ["ykominami@gmail.com"]
13
-
14
- spec.summary = "utilty function created by yk."
15
- spec.description = "utilty function created by yk."
16
- spec.homepage = "https://ykominami.github.io/ykutils/"
17
- spec.license = "MIT"
18
- spec.required_ruby_version = ">= 2.6.0"
19
-
20
- #spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
21
-
22
- spec.metadata["homepage_uri"] = spec.homepage
23
- spec.metadata["source_code_uri"] = "https://github.com/ykominami/ykutils"
24
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
25
-
26
- # Specify which files should be added to the gem when it is released.
27
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
-
29
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ["lib"]
33
-
34
- # Uncomment to register a new dependency of your gem
35
- # spec.add_dependency "example-gem", "~> 1.0"
36
- spec.add_dependency "filex"
37
- spec.add_development_dependency "rubocop-rake"
38
- spec.add_development_dependency "rubocop-rspec"
39
-
40
- # For more information and examples about making a new gem, check out our
41
- # guide at: https://bundler.io/guides/creating_gem.html
42
- spec.metadata["rubygems_mfa_required"] = "true"
43
- end
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require_relative "lib/ykutils/version"
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = "ykutils"
10
+ spec.version = Ykutils::VERSION
11
+ spec.authors = ["yasuo kominami"]
12
+ spec.email = ["ykominami@gmail.com"]
13
+
14
+ spec.summary = "utilty function created by yk."
15
+ spec.description = "utilty function created by yk."
16
+ spec.homepage = "https://ykominami.github.io/ykutils/"
17
+ spec.license = "MIT"
18
+ spec.required_ruby_version = ">= 2.6.0"
19
+
20
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/ykominami/ykutils"
24
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
25
+
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
+
29
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ # spec.add_dependency "example-gem", "~> 1.0"
36
+ spec.add_dependency "erubi"
37
+ spec.add_dependency "filex"
38
+ spec.add_dependency "tilt"
39
+ # spec.add_development_dependency "rubocop-rake"
40
+ # spec.add_development_dependency "rubocop-rspec"
41
+
42
+ # For more information and examples about making a new gem, check out our
43
+ # guide at: https://bundler.io/guides/creating_gem.html
44
+ spec.metadata["rubygems_mfa_required"] = "true"
45
+ end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ykutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - yasuo kominami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: filex
14
+ name: erubi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,13 +25,13 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rubocop-rake
28
+ name: filex
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,13 +39,13 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop-rspec
42
+ name: tilt
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- type: :development
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -71,7 +71,6 @@ files:
71
71
  - LICENSE.txt
72
72
  - README.md
73
73
  - Rakefile
74
- - _config.yml
75
74
  - bin/console
76
75
  - bin/erubix
77
76
  - bin/erubix2
@@ -158,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
157
  - !ruby/object:Gem::Version
159
158
  version: '0'
160
159
  requirements: []
161
- rubygems_version: 3.0.3.1
160
+ rubygems_version: 3.3.7
162
161
  signing_key:
163
162
  specification_version: 4
164
163
  summary: utilty function created by yk.
data/_config.yml DELETED
@@ -1 +0,0 @@
1
- theme: jekyll-theme-cayman