ykxutils 0.1.6 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.rubocop_todo.yml +125 -51
  4. data/Gemfile +13 -9
  5. data/Gemfile.lock +18 -6
  6. data/Rakefile +25 -8
  7. data/lib/ykxutils/erubyx.rb +52 -0
  8. data/lib/ykxutils/gridlist.rb +49 -0
  9. data/lib/ykxutils/nginxconfig.rb +40 -0
  10. data/lib/ykxutils/nginxconfigfiles.rb +33 -0
  11. data/lib/ykxutils/pstorex.rb +1 -1
  12. data/lib/ykxutils/version.rb +1 -1
  13. data/lib/ykxutils/yamlx.rb +31 -34
  14. data/lib/ykxutils.rb +4 -0
  15. data/test_data/4servers.erb +7 -0
  16. data/test_data/v103-3-189-127/4servers.erb +0 -0
  17. data/test_data/v103-3-189-127/a.northern-cross.net/base.yml +28 -0
  18. data/test_data/v103-3-189-127/a.northern-cross.net/value_host.yml +1 -0
  19. data/test_data/v103-3-189-127/b.northern-cross.net/base.yml +28 -0
  20. data/test_data/v103-3-189-127/b.northern-cross.net/value_host.yml +1 -0
  21. data/test_data/v103-3-189-127/c.northern-cross.net/base.yml +28 -0
  22. data/test_data/v103-3-189-127/c.northern-cross.net/value_host.yml +1 -0
  23. data/test_data/v103-3-189-127/d.northern-cross.info/base.yml +28 -0
  24. data/test_data/v103-3-189-127/d.northern-cross.info/value_host.yml +1 -0
  25. data/test_data/v103-3-189-127/d.northern-cross.net/base.yml +28 -0
  26. data/test_data/v103-3-189-127/d.northern-cross.net/value_host.yml +1 -0
  27. data/test_data/v103-3-189-127/e.northern-cross.info/base.yml +28 -0
  28. data/test_data/v103-3-189-127/e.northern-cross.info/value_host.yml +1 -0
  29. data/test_data/v103-3-189-127/e.northern-cross.net/base.yml +28 -0
  30. data/test_data/v103-3-189-127/e.northern-cross.net/value_host.yml +1 -0
  31. data/test_data/v103-3-189-127/f.northern-cross.info/base.yml +28 -0
  32. data/test_data/v103-3-189-127/f.northern-cross.info/value_host.yml +1 -0
  33. data/test_data/v103-3-189-127/f.northern-cross.net/base.yml +28 -0
  34. data/test_data/v103-3-189-127/f.northern-cross.net/value_host.yml +1 -0
  35. data/test_data/v103-3-189-127/t_server_1.erb +7 -0
  36. data/test_data/v103-3-189-127/template.erb +21 -0
  37. data/test_data/v103-3-189-127/template_ssl.erb +22 -0
  38. data/test_data/v103-3-189-127/template_ssl_www.erb +12 -0
  39. data/test_data/v103-3-189-127/template_www.erb +24 -0
  40. data/test_data/v103-3-189-127/value.yml +3 -0
  41. data/test_data/v103-3-189-127/value_ssl.yml +5 -0
  42. data/ykxutils.gemspec +33 -26
  43. metadata +86 -17
  44. data/.github/workflows/main.yml +0 -16
  45. data/.gitignore +0 -14
  46. data/bin/console +0 -15
  47. data/bin/setup +0 -8
@@ -1,16 +0,0 @@
1
- name: Ruby
2
-
3
- on: [push,pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: 3.0.0
14
- bundler-cache: true
15
- - name: Run the default task
16
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
- /vendor/
13
- *.code-workspace
14
- /output/
data/bin/console DELETED
@@ -1,15 +0,0 @@
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/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here