eac_tools 0.110.0 → 0.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +51 -53
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +2 -2
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
- data/sub/eac_ruby_gem_support/eac_ruby_gem_support.gemspec +25 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/helpers/filesystem.rb +73 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/helpers/utils.rb +22 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/setup.rb +51 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/shared_examples/source_target_fixtures.rb +73 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/shared_examples/spec_paths.rb +11 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb +29 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/spec_paths_controller.rb +27 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/specs/rubocop.rb +33 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/source_target_fixtures/source_target_file.rb +17 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/source_target_fixtures.rb +72 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/version.rb +5 -0
- data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support.rb +14 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/rspec/helpers/filesystem_spec.rb +30 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/rspec/shared_examples/source_target_fixtures_spec.rb +11 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/rspec/shared_examples/source_target_fixtures_spec_files/one.source.yaml +2 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/rspec/shared_examples/source_target_fixtures_spec_files/one.target.yaml +2 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/rspec/shared_examples/spec_paths_spec.rb +17 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/source_target_fixtures_spec.rb +25 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/source_target_fixtures_spec_files/stub1.target.html +1 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/source_target_fixtures_spec_files/stub2.source.html +1 -0
- data/sub/eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/source_target_fixtures_spec_files/stub3.target.yaml +1 -0
- data/sub/{avm-eac_postgresql_base0 → eac_ruby_gem_support}/spec/spec_helper.rb +1 -1
- metadata +34 -101
- data/sub/avm-eac_postgresql_base0/avm-eac_postgresql_base0.gemspec +0 -20
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/assert.rb +0 -75
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/commands.rb +0 -70
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance/data_unit.rb +0 -63
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance.rb +0 -46
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/instance_with.rb +0 -22
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0/version.rb +0 -7
- data/sub/avm-eac_postgresql_base0/lib/avm/eac_postgresql_base0.rb +0 -11
- data/sub/avm-eac_rails_base0/Gemfile +0 -8
- data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +0 -20
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/apache_host.rb +0 -10
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/apache_path.rb +0 -10
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/base.rb +0 -21
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/deploy.rb +0 -51
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/source_generators/base.rb +0 -10
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb +0 -37
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +0 -7
- data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0.rb +0 -11
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb +0 -19
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec_files/apache_host_spec_no_ssl_content.conf +0 -11
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_path_spec.rb +0 -20
- data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_path_spec_files/stub-app_0_apache_path.conf +0 -12
- data/sub/avm-eac_rails_base0/spec/meta/rubocop_spec.rb +0 -3
- data/sub/avm-eac_rails_base0/spec/spec_helper.rb +0 -6
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/instances/deploy/config/database.yml.template +0 -21
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/instances/deploy/config/envvars.d/email.yml.template +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/Gemfile +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/Rakefile +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/assets/config/manifest.js +0 -3
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/assets/javascripts/application.js +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/assets/stylesheets/application.scss +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/controllers/application_controller.rb +0 -4
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/controllers/welcome_controller.rb +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/app/views/welcome/index.html.erb +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/bundle +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/rails +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/rake +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/bin/yarn +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/application.rb +0 -11
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/boot.rb +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/cable.yml +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/credentials.yml.enc +0 -1
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/environment.rb +0 -7
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/puma.rb +0 -39
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/routes.rb +0 -5
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/spring.rb +0 -8
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config.ru +0 -7
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/lib/ability.rb +0 -20
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/lib/ability_mapping.rb +0 -10
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/public/favicon.ico +0 -0
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/code/rubocop_spec.rb +0 -3
- data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/spec/spec_helper.rb +0 -8
- data/sub/avm-eac_rails_base1/Gemfile +0 -8
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +0 -22
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_base.rb +0 -14
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_host.rb +0 -15
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb +0 -17
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +0 -42
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb +0 -20
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb +0 -36
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb +0 -24
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/bundle.rb +0 -26
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb +0 -25
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/log.rb +0 -43
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs/clear.rb +0 -25
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/logs.rb +0 -16
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/rails_server.rb +0 -31
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +0 -45
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler.rb +0 -15
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/service.rb +0 -70
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.rb +0 -29
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/systemd_unit.rb +0 -56
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/bundle.rb +0 -23
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +0 -42
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/sources/base.rb +0 -40
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +0 -7
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1.rb +0 -12
- data/sub/avm-eac_rails_base1/spec/meta/rubocop_spec.rb +0 -3
- data/sub/avm-eac_rails_base1/spec/spec_helper.rb +0 -6
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/apache_path/extra_content.conf +0 -5
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service +0 -12
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh +0 -6
- data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/data/load.rb +0 -57
- /data/sub/{avm-eac_postgresql_base0 → eac_ruby_gem_support}/Gemfile +0 -0
- /data/sub/{avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/db/schema.rb → eac_ruby_gem_support/spec/lib/eac_ruby_gem_support/source_target_fixtures_spec_files/stub1.source.txt} +0 -0
- /data/sub/{avm-eac_postgresql_base0/spec/meta/rubocop_spec.rb → eac_ruby_gem_support/spec/meta/rubocop_check_spec.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11243ccf7d6a5f5071ebc0ee0c1b5f295cf60d6b18e6d0a0364efc5d58701420
|
|
4
|
+
data.tar.gz: 9a76b306a2685a88031c5bfc285024f9ac3eca232962abdb9763292f14b80f75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f2dc485a589bf95c8a096965a54109ef998e1c455790c0664d2c4778304813a2945c612473225e13f584cad54fc2b7849b4e32b9be4ae5249ded8d02ddf1677
|
|
7
|
+
data.tar.gz: 96f7b282b03016c0e5db29354fa75b9f3a14d25b1faf85343bd5a3870498cd60af18fb68467a7e4ab0f3ed78da81ae18efd56ece5d7a1fba04594256da46a900
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eac_tools (0.110.
|
|
4
|
+
eac_tools (0.110.1)
|
|
5
5
|
avm (~> 0.98, >= 0.98.4)
|
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.26, >= 0.26.1)
|
|
7
7
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.2)
|
|
@@ -17,46 +17,34 @@ PATH
|
|
|
17
17
|
avm-eac_redmine_plugin_base0 (~> 0.5)
|
|
18
18
|
avm-eac_ruby_base0 (~> 0.1)
|
|
19
19
|
avm-eac_ruby_base1 (~> 0.39)
|
|
20
|
-
avm-eac_webapp_base0 (~> 0.21, >= 0.21.
|
|
20
|
+
avm-eac_webapp_base0 (~> 0.21, >= 0.21.5)
|
|
21
21
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.2)
|
|
22
22
|
avm-git (~> 0.21, >= 0.21.2)
|
|
23
23
|
avm-tools (~> 0.163, >= 0.163.6)
|
|
24
|
-
eac_ruby_utils (~> 0.
|
|
25
|
-
|
|
26
|
-
PATH
|
|
27
|
-
remote: sub/avm-eac_postgresql_base0
|
|
28
|
-
specs:
|
|
29
|
-
avm-eac_postgresql_base0 (0.6.0)
|
|
30
|
-
avm (~> 0.98, >= 0.98.4)
|
|
31
|
-
eac_ruby_utils (~> 0.129, >= 0.129.1)
|
|
32
|
-
|
|
33
|
-
PATH
|
|
34
|
-
remote: sub/avm-eac_rails_base0
|
|
35
|
-
specs:
|
|
36
|
-
avm-eac_rails_base0 (0.11.2)
|
|
37
|
-
avm-eac_rails_base1 (~> 0.11, >= 0.11.2)
|
|
38
|
-
eac_ruby_utils (~> 0.129, >= 0.129.1)
|
|
39
|
-
|
|
40
|
-
PATH
|
|
41
|
-
remote: sub/avm-eac_rails_base1
|
|
42
|
-
specs:
|
|
43
|
-
avm-eac_rails_base1 (0.11.2)
|
|
44
|
-
avm (~> 0.98, >= 0.98.4)
|
|
45
|
-
avm-eac_ruby_base1 (~> 0.39)
|
|
46
|
-
avm-eac_webapp_base0 (~> 0.21, >= 0.21.4)
|
|
47
|
-
eac_ruby_utils (~> 0.129, >= 0.129.1)
|
|
24
|
+
eac_ruby_utils (~> 0.130)
|
|
48
25
|
|
|
49
26
|
PATH
|
|
50
27
|
remote: sub/avm-eac_webapp_base0
|
|
51
28
|
specs:
|
|
52
|
-
avm-eac_webapp_base0 (0.21.
|
|
29
|
+
avm-eac_webapp_base0 (0.21.5)
|
|
53
30
|
avm (~> 0.98, >= 0.98.4)
|
|
54
31
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.2)
|
|
55
32
|
avm-eac_postgresql_base0 (~> 0.6)
|
|
56
33
|
avm-eac_ubuntu_base0 (~> 0.7)
|
|
57
|
-
eac_ruby_utils (~> 0.
|
|
34
|
+
eac_ruby_utils (~> 0.130)
|
|
58
35
|
htmlbeautifier (~> 1.4, >= 1.4.3)
|
|
59
36
|
|
|
37
|
+
PATH
|
|
38
|
+
remote: sub/eac_ruby_gem_support
|
|
39
|
+
specs:
|
|
40
|
+
eac_ruby_gem_support (0.12.2)
|
|
41
|
+
eac_ruby_utils (~> 0.130)
|
|
42
|
+
rspec (~> 3.13, >= 3.13.2)
|
|
43
|
+
rubocop (~> 1.85, >= 1.85.1)
|
|
44
|
+
rubocop-rails (~> 2.34, >= 2.34.3)
|
|
45
|
+
rubocop-rspec (~> 3.9)
|
|
46
|
+
super_diff (~> 0.18)
|
|
47
|
+
|
|
60
48
|
GEM
|
|
61
49
|
remote: https://rubygems.org/
|
|
62
50
|
specs:
|
|
@@ -66,17 +54,17 @@ GEM
|
|
|
66
54
|
minitest (>= 5.1)
|
|
67
55
|
tzinfo (~> 2.0)
|
|
68
56
|
zeitwerk (~> 2.3)
|
|
69
|
-
addressable (2.8.
|
|
57
|
+
addressable (2.8.9)
|
|
70
58
|
public_suffix (>= 2.0.2, < 8.0)
|
|
71
59
|
aranha (0.20.0)
|
|
72
60
|
eac_ruby_utils (~> 0.128)
|
|
73
|
-
aranha-parsers (0.26.
|
|
61
|
+
aranha-parsers (0.26.3)
|
|
74
62
|
activesupport (>= 4.0.0)
|
|
75
|
-
addressable (~> 2.8, >= 2.8.
|
|
63
|
+
addressable (~> 2.8, >= 2.8.9)
|
|
76
64
|
aranha (~> 0.20)
|
|
77
65
|
eac_envs-http (~> 0.7, >= 0.7.1)
|
|
78
|
-
eac_ruby_utils (~> 0.
|
|
79
|
-
nokogiri (~> 1.19)
|
|
66
|
+
eac_ruby_utils (~> 0.130)
|
|
67
|
+
nokogiri (~> 1.19, >= 1.19.1)
|
|
80
68
|
ofx-parser (~> 1.1)
|
|
81
69
|
asciidoctor (2.0.26)
|
|
82
70
|
ast (2.4.3)
|
|
@@ -115,9 +103,20 @@ GEM
|
|
|
115
103
|
avm-eac_generic_base0 (~> 0.13)
|
|
116
104
|
avm-eac_webapp_base0 (~> 0.20)
|
|
117
105
|
eac_ruby_utils (~> 0.122)
|
|
106
|
+
avm-eac_postgresql_base0 (0.6.0)
|
|
107
|
+
avm (~> 0.98, >= 0.98.4)
|
|
108
|
+
eac_ruby_utils (~> 0.129, >= 0.129.1)
|
|
118
109
|
avm-eac_python_base0 (0.2.2)
|
|
119
110
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
|
120
111
|
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
|
112
|
+
avm-eac_rails_base0 (0.11.2)
|
|
113
|
+
avm-eac_rails_base1 (~> 0.11, >= 0.11.2)
|
|
114
|
+
eac_ruby_utils (~> 0.129, >= 0.129.1)
|
|
115
|
+
avm-eac_rails_base1 (0.11.2)
|
|
116
|
+
avm (~> 0.98, >= 0.98.4)
|
|
117
|
+
avm-eac_ruby_base1 (~> 0.39)
|
|
118
|
+
avm-eac_webapp_base0 (~> 0.21, >= 0.21.4)
|
|
119
|
+
eac_ruby_utils (~> 0.129, >= 0.129.1)
|
|
121
120
|
avm-eac_redmine_base0 (0.24.1)
|
|
122
121
|
avm (~> 0.98, >= 0.98.4)
|
|
123
122
|
avm-eac_generic_base0 (~> 0.15, >= 0.15.2)
|
|
@@ -155,12 +154,14 @@ GEM
|
|
|
155
154
|
avm-tools (0.163.6)
|
|
156
155
|
avm (~> 0.98, >= 0.98.4)
|
|
157
156
|
eac_ruby_base0 (~> 0.19, >= 0.19.3)
|
|
157
|
+
bigdecimal (4.0.1)
|
|
158
158
|
clipboard (2.0.0)
|
|
159
159
|
colorize (0.8.1)
|
|
160
160
|
concurrent-ruby (1.3.6)
|
|
161
161
|
content-type (0.0.2)
|
|
162
162
|
parslet (~> 2.0)
|
|
163
163
|
diff-lcs (1.6.2)
|
|
164
|
+
drb (2.2.3)
|
|
164
165
|
eac_cli (0.45.0)
|
|
165
166
|
clipboard (~> 2.0)
|
|
166
167
|
colorize (~> 0.8, >= 0.8.1)
|
|
@@ -199,14 +200,7 @@ GEM
|
|
|
199
200
|
eac_cli (~> 0.45)
|
|
200
201
|
eac_fs (~> 0.20)
|
|
201
202
|
eac_ruby_utils (~> 0.129)
|
|
202
|
-
|
|
203
|
-
eac_ruby_utils (~> 0.129)
|
|
204
|
-
rspec (~> 3.13, >= 3.13.2)
|
|
205
|
-
rubocop (~> 1.84, >= 1.84.1)
|
|
206
|
-
rubocop-rails (~> 2.34, >= 2.34.3)
|
|
207
|
-
rubocop-rspec (~> 3.9)
|
|
208
|
-
super_diff (~> 0.18)
|
|
209
|
-
eac_ruby_utils (0.129.1)
|
|
203
|
+
eac_ruby_utils (0.130.0)
|
|
210
204
|
activesupport (>= 4, < 7)
|
|
211
205
|
addressable (~> 2.8, >= 2.8.8)
|
|
212
206
|
bundler
|
|
@@ -238,18 +232,24 @@ GEM
|
|
|
238
232
|
htmlbeautifier (1.4.3)
|
|
239
233
|
i18n (1.14.8)
|
|
240
234
|
concurrent-ruby (~> 1.0)
|
|
241
|
-
json (2.
|
|
235
|
+
json (2.19.1)
|
|
236
|
+
json-schema (6.2.0)
|
|
237
|
+
addressable (~> 2.8)
|
|
238
|
+
bigdecimal (>= 3.1, < 5)
|
|
242
239
|
language_server-protocol (3.17.0.5)
|
|
243
240
|
lint_roller (1.1.0)
|
|
244
241
|
logger (1.7.0)
|
|
242
|
+
mcp (0.8.0)
|
|
243
|
+
json-schema (>= 4.1)
|
|
245
244
|
minitar (0.12.1)
|
|
246
|
-
minitest (6.0.
|
|
245
|
+
minitest (6.0.2)
|
|
246
|
+
drb (~> 2.0)
|
|
247
247
|
prism (~> 1.5)
|
|
248
248
|
multipart-post (2.4.1)
|
|
249
249
|
net-http (0.9.1)
|
|
250
250
|
uri (>= 0.11.1)
|
|
251
251
|
net-ssh (4.2.0)
|
|
252
|
-
nokogiri (1.19.
|
|
252
|
+
nokogiri (1.19.1-x86_64-linux-gnu)
|
|
253
253
|
racc (~> 1.4)
|
|
254
254
|
ofx-parser (1.1.0)
|
|
255
255
|
hpricot (>= 0.6)
|
|
@@ -257,7 +257,7 @@ GEM
|
|
|
257
257
|
os (1.1.4)
|
|
258
258
|
parallel (1.27.0)
|
|
259
259
|
parseconfig (1.1.2)
|
|
260
|
-
parser (3.3.10.
|
|
260
|
+
parser (3.3.10.2)
|
|
261
261
|
ast (~> 2.4.1)
|
|
262
262
|
racc
|
|
263
263
|
parslet (2.0.0)
|
|
@@ -266,7 +266,7 @@ GEM
|
|
|
266
266
|
patience_diff (1.2.0)
|
|
267
267
|
optimist (~> 3.0)
|
|
268
268
|
prism (1.9.0)
|
|
269
|
-
public_suffix (7.0.
|
|
269
|
+
public_suffix (7.0.5)
|
|
270
270
|
racc (1.8.1)
|
|
271
271
|
rack (3.2.5)
|
|
272
272
|
rainbow (3.1.1)
|
|
@@ -284,14 +284,15 @@ GEM
|
|
|
284
284
|
rspec-expectations (3.13.5)
|
|
285
285
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
286
286
|
rspec-support (~> 3.13.0)
|
|
287
|
-
rspec-mocks (3.13.
|
|
287
|
+
rspec-mocks (3.13.8)
|
|
288
288
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
289
289
|
rspec-support (~> 3.13.0)
|
|
290
290
|
rspec-support (3.13.7)
|
|
291
|
-
rubocop (1.
|
|
291
|
+
rubocop (1.85.1)
|
|
292
292
|
json (~> 2.3)
|
|
293
293
|
language_server-protocol (~> 3.17.0.2)
|
|
294
294
|
lint_roller (~> 1.1.0)
|
|
295
|
+
mcp (~> 0.6)
|
|
295
296
|
parallel (~> 1.10)
|
|
296
297
|
parser (>= 3.3.0.2)
|
|
297
298
|
rainbow (>= 2.2.2, < 4.0)
|
|
@@ -335,18 +336,15 @@ GEM
|
|
|
335
336
|
unicode_utils (1.4.0)
|
|
336
337
|
uri (1.1.1)
|
|
337
338
|
webrick (1.9.2)
|
|
338
|
-
zeitwerk (2.7.
|
|
339
|
+
zeitwerk (2.7.5)
|
|
339
340
|
zlib (2.1.1)
|
|
340
341
|
|
|
341
342
|
PLATFORMS
|
|
342
343
|
x86_64-linux-gnu
|
|
343
344
|
|
|
344
345
|
DEPENDENCIES
|
|
345
|
-
avm-eac_postgresql_base0!
|
|
346
|
-
avm-eac_rails_base0!
|
|
347
|
-
avm-eac_rails_base1!
|
|
348
346
|
avm-eac_webapp_base0!
|
|
349
|
-
eac_ruby_gem_support (~> 0.12, >= 0.12.
|
|
347
|
+
eac_ruby_gem_support (~> 0.12, >= 0.12.2, >= 0)!
|
|
350
348
|
eac_tools!
|
|
351
349
|
|
|
352
350
|
BUNDLED WITH
|
data/lib/eac_tools/version.rb
CHANGED
|
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
s.add_dependency 'avm-eac_generic_base0', '~> 0.15', '>= 0.15.2'
|
|
18
18
|
s.add_dependency 'avm-eac_postgresql_base0', '~> 0.6'
|
|
19
19
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.7'
|
|
20
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.
|
|
20
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.130'
|
|
21
21
|
s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.3'
|
|
22
22
|
|
|
23
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.12', '>= 0.12.
|
|
23
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.12', '>= 0.12.2'
|
|
24
24
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
|
4
|
+
|
|
5
|
+
require 'eac_ruby_gem_support/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |s|
|
|
8
|
+
s.name = 'eac_ruby_gem_support'
|
|
9
|
+
s.version = EacRubyGemSupport::VERSION
|
|
10
|
+
s.authors = ['Esquilo Azul Company']
|
|
11
|
+
s.summary = 'Development support for Ruby\' Gem.'
|
|
12
|
+
s.homepage = 'https://github.com/esquilo-azul/eac_ruby_gem_support'
|
|
13
|
+
s.metadata = { 'source_code_uri' => 'https://github.com/esquilo-azul/eac_ruby_gem_support' }
|
|
14
|
+
|
|
15
|
+
s.files = Dir['{lib}/**/*', '.rubocop.yml']
|
|
16
|
+
|
|
17
|
+
s.required_ruby_version = '>= 2.7.0'
|
|
18
|
+
|
|
19
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.130'
|
|
20
|
+
s.add_dependency 'rspec', '~> 3.13', '>= 3.13.2'
|
|
21
|
+
s.add_dependency 'rubocop', '~> 1.85', '>= 1.85.1'
|
|
22
|
+
s.add_dependency 'rubocop-rails', '~> 2.34', '>= 2.34.3'
|
|
23
|
+
s.add_dependency 'rubocop-rspec', '~> 3.9'
|
|
24
|
+
s.add_dependency 'super_diff', '~> 0.18'
|
|
25
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
require 'tmpdir'
|
|
5
|
+
require 'tempfile'
|
|
6
|
+
|
|
7
|
+
module EacRubyGemSupport
|
|
8
|
+
module Rspec
|
|
9
|
+
module Helpers
|
|
10
|
+
module Filesystem
|
|
11
|
+
def purge_temp_files
|
|
12
|
+
::FileUtils.rm_rf(temp_set.pop) while temp_set.any?
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @return [Pathname]
|
|
16
|
+
def temp_copy(source_path)
|
|
17
|
+
source_path = to_pathname(source_path)
|
|
18
|
+
if source_path.file?
|
|
19
|
+
temp_file_copy(source_path)
|
|
20
|
+
elsif source_path.directory?
|
|
21
|
+
temp_dir_copy(source_path)
|
|
22
|
+
else
|
|
23
|
+
raise "Source path \"#{source_path}\" is not a file or directory"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# @return [Pathname]
|
|
28
|
+
def temp_dir(*mktmpdir_args)
|
|
29
|
+
add_to_temp_set(::Dir.mktmpdir(*mktmpdir_args))
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @return [Pathname]
|
|
33
|
+
def temp_dir_copy(source_path)
|
|
34
|
+
r = temp_dir
|
|
35
|
+
::FileUtils.cp_r("#{source_path}/.", r.to_path)
|
|
36
|
+
r
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# @return [Pathname]
|
|
40
|
+
def temp_file(*tempfile_args)
|
|
41
|
+
file = ::Tempfile.new(*tempfile_args)
|
|
42
|
+
path = file.path
|
|
43
|
+
file.close
|
|
44
|
+
add_to_temp_set(path)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# @return [Pathname]
|
|
48
|
+
def temp_file_copy(source_path)
|
|
49
|
+
r = temp_file
|
|
50
|
+
::FileUtils.cp(to_pathname(source_path).to_path, r.to_path)
|
|
51
|
+
r
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# @return [Pathname]
|
|
55
|
+
def to_pathname(path)
|
|
56
|
+
path.is_a?(::Pathname) ? path : ::Pathname.new(path.to_s)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
private
|
|
60
|
+
|
|
61
|
+
def add_to_temp_set(path)
|
|
62
|
+
r = to_pathname(path)
|
|
63
|
+
temp_set << r
|
|
64
|
+
r
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def temp_set
|
|
68
|
+
@temp_set ||= []
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
require 'tmpdir'
|
|
5
|
+
require 'tempfile'
|
|
6
|
+
|
|
7
|
+
module EacRubyGemSupport
|
|
8
|
+
module Rspec
|
|
9
|
+
module Helpers
|
|
10
|
+
module Utils
|
|
11
|
+
# @return [StandardError, nil] If block raises an error, return this error. If not, return
|
|
12
|
+
# +nil+.
|
|
13
|
+
def capture_error
|
|
14
|
+
yield
|
|
15
|
+
nil
|
|
16
|
+
rescue ::StandardError => e
|
|
17
|
+
e
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'tmpdir'
|
|
4
|
+
|
|
5
|
+
module EacRubyGemSupport
|
|
6
|
+
module Rspec
|
|
7
|
+
module Setup
|
|
8
|
+
extend ::ActiveSupport::Concern
|
|
9
|
+
include ::EacRubyGemSupport::Rspec::Specs::Rubocop
|
|
10
|
+
|
|
11
|
+
SETUPS = %w[load_path example_persistence filesystem_helper shared_examples].freeze
|
|
12
|
+
|
|
13
|
+
def self.extended(setup_obj)
|
|
14
|
+
SETUPS.each { |s| setup_obj.send("setup_#{s}") }
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def setup_filesystem_helper
|
|
18
|
+
rspec_config.include ::EacRubyGemSupport::Rspec::Helpers::Filesystem
|
|
19
|
+
rspec_config.include ::EacRubyGemSupport::Rspec::Helpers::Utils
|
|
20
|
+
rspec_config.after(:each) { purge_temp_files }
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def setup_load_path
|
|
24
|
+
$LOAD_PATH.push app_root_path.join('lib').to_path
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def setup_example_persistence
|
|
28
|
+
rspec_config.example_status_persistence_file_path = example_persistence_path.to_path
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def setup_shared_examples
|
|
32
|
+
require 'eac_ruby_gem_support/rspec/shared_examples/spec_paths'
|
|
33
|
+
require 'eac_ruby_gem_support/rspec/shared_examples/source_target_fixtures'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @return [Pathname]
|
|
37
|
+
def example_persistence_path
|
|
38
|
+
root_tmp.join('example_status_persistence')
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# The root directory for temporary files.
|
|
42
|
+
# @return [Pathname]
|
|
43
|
+
def root_tmp
|
|
44
|
+
r = ::Pathname.new(::Dir.tmpdir)
|
|
45
|
+
.join("#{app_root_path.expand_path.to_path.variableize}_specs_tmp")
|
|
46
|
+
r.mkpath unless r.exist?
|
|
47
|
+
r
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'yaml'
|
|
4
|
+
|
|
5
|
+
RSpec.shared_examples 'source_target_fixtures' do |spec_file| # rubocop:disable Metrics/BlockLength
|
|
6
|
+
include_examples 'spec_paths', spec_file
|
|
7
|
+
fixtures_controller = EacRubyGemSupport::Rspec::SourceTargetFixturesController
|
|
8
|
+
.new(spec_paths_controller)
|
|
9
|
+
|
|
10
|
+
let(:fixtures_controller) { fixtures_controller }
|
|
11
|
+
let(:spec_file) { spec_file }
|
|
12
|
+
|
|
13
|
+
it 'fixtures directory should exist' do
|
|
14
|
+
expect(File.directory?(fixtures_controller.fixtures_dir)).to be true
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
context 'with fixtures directory' do
|
|
18
|
+
it 'has at least one file' do
|
|
19
|
+
expect(source_target_fixtures.source_target_files.count).to be > 0 # rubocop:disable Style/NumericPredicate
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
fixtures_controller.source_target_fixtures.source_target_files.each do |st|
|
|
23
|
+
context "when source file is \"#{File.basename(st.source)}\"" do
|
|
24
|
+
if fixtures_controller.write_target_fixtures?
|
|
25
|
+
it 'writes target data' do
|
|
26
|
+
sd = sort_results(source_data(st.source))
|
|
27
|
+
basename = EacRubyGemSupport::SourceTargetFixtures.source_target_basename(st.source)
|
|
28
|
+
target_file = File.expand_path("../#{basename}.target#{target_file_extname}", st.source)
|
|
29
|
+
File.write(target_file, target_content(sd))
|
|
30
|
+
end
|
|
31
|
+
else
|
|
32
|
+
it 'parses data' do
|
|
33
|
+
assert_source_target_complete(st)
|
|
34
|
+
sd = source_data(st.source)
|
|
35
|
+
td = target_data(st.target)
|
|
36
|
+
expect(sort_results(sd)).to eq(sort_results(td))
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
delegate :source_target_fixtures, to: :fixtures_controller
|
|
44
|
+
|
|
45
|
+
def assert_source_target_complete(source_target)
|
|
46
|
+
expect(source_target.source).to(be_truthy, "Source not found (Target: #{source_target.target})")
|
|
47
|
+
expect(source_target.target).to(be_truthy, "Target not found (Source: #{source_target.source})")
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def source_data(source_file)
|
|
51
|
+
instance = described_class.new(source_file)
|
|
52
|
+
return instance.data if instance.respond_to?(:data)
|
|
53
|
+
|
|
54
|
+
raise "#{instance} has no \"data\" method. You need to implement \"#{instance}.data\" or " \
|
|
55
|
+
"\"#{self}.source_data(source_file)\""
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def sort_results(results)
|
|
59
|
+
results
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def target_data(target_file)
|
|
63
|
+
YAML.unsafe_load_file(target_file)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def target_content(data)
|
|
67
|
+
data.to_yaml
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def target_file_extname
|
|
71
|
+
'.yaml'
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.shared_context 'spec_paths' do |the_spec_file|
|
|
4
|
+
cattr_accessor :spec_paths_controller
|
|
5
|
+
self.spec_paths_controller = EacRubyGemSupport::Rspec::SpecPathsController.new(self,
|
|
6
|
+
the_spec_file)
|
|
7
|
+
|
|
8
|
+
%i[fixtures_directory spec_directory spec_file].each do |m|
|
|
9
|
+
let(m) { self.class.spec_paths_controller.send(m) }
|
|
10
|
+
end
|
|
11
|
+
end
|
data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacRubyGemSupport
|
|
4
|
+
module Rspec
|
|
5
|
+
class SourceTargetFixturesController
|
|
6
|
+
enable_simple_cache
|
|
7
|
+
common_constructor :spec_paths_controller
|
|
8
|
+
delegate :example, to: :spec_paths_controller
|
|
9
|
+
|
|
10
|
+
def fixtures_dir
|
|
11
|
+
if example.respond_to?(:fixtures_dir)
|
|
12
|
+
example.fixtures_dir
|
|
13
|
+
else
|
|
14
|
+
spec_paths_controller.fixtures_directory
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def write_target_fixtures?
|
|
19
|
+
ENV['WRITE_TARGET_FIXTURES'].to_bool
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
def source_target_fixtures_uncached
|
|
25
|
+
::EacRubyGemSupport::SourceTargetFixtures.new(fixtures_dir)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacRubyGemSupport
|
|
4
|
+
module Rspec
|
|
5
|
+
class SpecPathsController
|
|
6
|
+
# @!attribute [r] spec_file
|
|
7
|
+
# @return [Pathname]
|
|
8
|
+
|
|
9
|
+
# @!method initialize(example, spec_file)
|
|
10
|
+
# @param example [RSpec::Core::ExampleGroup]
|
|
11
|
+
# @param spec_file [Pathname]
|
|
12
|
+
common_constructor :example, :spec_file do
|
|
13
|
+
self.spec_file = spec_file.to_pathname
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# @return [Pathname]
|
|
17
|
+
def fixtures_directory
|
|
18
|
+
spec_directory.join(spec_file.basename('.*')).basename_sub { |b| "#{b}_files" }
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# @return [Pathname]
|
|
22
|
+
def spec_directory
|
|
23
|
+
spec_file.parent
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'rspec'
|
|
4
|
+
require 'rubocop'
|
|
5
|
+
|
|
6
|
+
module EacRubyGemSupport
|
|
7
|
+
module Rspec
|
|
8
|
+
module Specs
|
|
9
|
+
module Rubocop
|
|
10
|
+
def describe_rubocop # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
|
11
|
+
this = self
|
|
12
|
+
::RSpec.describe ::RuboCop do
|
|
13
|
+
before do
|
|
14
|
+
::RuboCop::ConfigLoader.ignore_parent_exclusion = true
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
let(:root_path) { this.app_root_path }
|
|
18
|
+
let(:config_store) do
|
|
19
|
+
r = ::RuboCop::ConfigStore.new
|
|
20
|
+
r.for(root_path)
|
|
21
|
+
r
|
|
22
|
+
end
|
|
23
|
+
let(:runner) { ::RuboCop::Runner.new({}, config_store) }
|
|
24
|
+
|
|
25
|
+
it 'rubocop return ok' do
|
|
26
|
+
expect(::Dir.chdir(root_path) { runner.run([]) }).to eq(true)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
data/sub/eac_ruby_gem_support/lib/eac_ruby_gem_support/source_target_fixtures/source_target_file.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacRubyGemSupport
|
|
4
|
+
class SourceTargetFixtures
|
|
5
|
+
class SourceTargetFile
|
|
6
|
+
common_constructor :owner, :basename
|
|
7
|
+
|
|
8
|
+
def source
|
|
9
|
+
owner.source_file(basename)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def target
|
|
13
|
+
owner.target_file(basename)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|