avm-tools 0.116.1 → 0.117.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/launcher/instances/settings.rb +7 -3
- data/lib/avm/projects/stereotypes.rb +2 -2
- data/lib/avm/ruby/bundler/incompatible_parser/depends_on.rb +1 -1
- data/lib/avm/ruby/bundler/incompatible_parser/gem_conflict.rb +1 -1
- data/lib/avm/ruby/bundler/incompatible_parser/in_gemfile.rb +1 -3
- data/lib/avm/ruby/bundler/incompatible_parser/version_requirement.rb +1 -1
- data/lib/avm/ruby/bundler/incompatible_parser.rb +1 -1
- data/lib/avm/tools/runner/app_src/ruby/bundler/gemfile_lock/git.rb +1 -1
- data/lib/avm/tools/runner/app_src/test.rb +2 -2
- data/lib/avm/tools/runner/app_src/version_bump.rb +4 -9
- data/lib/avm/tools/runner/git/deploy.rb +4 -4
- data/lib/avm/tools/runner/git/dirty_files.rb +1 -1
- data/lib/avm/tools/runner/git/revisions_test.rb +1 -1
- data/lib/avm/tools/runner/ruby/rubocop.rb +2 -2
- data/lib/avm/tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +3 -3
- data/sub/avm/lib/avm/instances/base/auto_values/mailer.rb +2 -2
- data/sub/avm/lib/avm/registry/base.rb +2 -2
- data/sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb +1 -1
- data/sub/avm/lib/avm/scms/base.rb +13 -0
- data/sub/avm/lib/avm/sources/base/configuration.rb +2 -1
- data/sub/avm/lib/avm/sources/base/parent.rb +31 -0
- data/sub/avm/lib/avm/sources/base.rb +4 -6
- data/sub/avm/lib/avm/sources/configuration/{_locale.rb → locale.rb} +5 -3
- data/sub/avm/lib/avm/sources/configuration/rubocop.rb +26 -0
- data/sub/avm/lib/avm/sources/configuration/tests.rb +29 -0
- data/sub/avm/lib/avm/sources/configuration.rb +5 -1
- data/sub/avm/lib/avm/sources/tests/builder.rb +1 -1
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +1 -1
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb +35 -0
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb +4 -1
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
- data/sub/avm-eac_generic_base0/locale/en.yaml +6 -0
- data/sub/avm-eac_generic_base0/locale/pt-BR.yaml +6 -0
- data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +1 -1
- data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
- data/sub/avm-eac_rails_base1/template/avm/eac_rails_base1/systemd_unit/tasks_scheduler_command.sh +1 -1
- data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +1 -1
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/core_update.rb +3 -3
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +17 -2
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template +2 -8
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile_apache_setup +8 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +56 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +34 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +31 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +17 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +41 -0
- data/{lib/avm/ruby → sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1}/rubocop.rb +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +23 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tester.rb +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +1 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb +0 -1
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-files/avm-files.gemspec +1 -1
- data/sub/avm-files/lib/avm/files/appendable.rb +1 -1
- data/sub/avm-files/lib/avm/files/formatter/formats/ruby.rb +2 -2
- data/sub/avm-files/lib/avm/files/version.rb +1 -1
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +1 -3
- data/sub/avm-git/lib/avm/git/version.rb +1 -1
- data/sub/eac_cli/eac_cli.gemspec +2 -2
- data/sub/eac_cli/lib/eac_cli/old_configs/entry_reader.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/old_configs/read_entry_options.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/parser.rb +2 -2
- data/sub/eac_cli/lib/eac_cli/runner/after_class_methods.rb +9 -22
- data/sub/eac_cli/lib/eac_cli/runner/class_runner.rb +50 -0
- data/sub/eac_cli/lib/eac_cli/runner/instance_methods.rb +0 -9
- data/sub/eac_cli/lib/eac_cli/runner_with/help/builder.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/runner_with/help.rb +1 -1
- data/sub/eac_cli/lib/eac_cli/runner_with/subcommands.rb +4 -4
- data/sub/eac_cli/lib/eac_cli/runner_with_set.rb +2 -2
- data/sub/eac_cli/lib/eac_cli/version.rb +1 -1
- data/sub/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb +23 -17
- data/sub/eac_config/eac_config.gemspec +1 -1
- data/sub/eac_config/lib/eac_config/entry.rb +1 -1
- data/sub/eac_config/lib/eac_config/envvars_node/entry.rb +1 -1
- data/sub/eac_config/lib/eac_config/paths_hash/node.rb +1 -1
- data/sub/eac_config/lib/eac_config/version.rb +1 -1
- data/sub/eac_fs/eac_fs.gemspec +1 -1
- data/sub/eac_fs/lib/eac_fs/version.rb +1 -1
- data/sub/eac_git/eac_git.gemspec +1 -1
- data/sub/eac_git/lib/eac_git/local/remote.rb +2 -2
- data/sub/eac_git/lib/eac_git/local.rb +1 -1
- data/sub/eac_git/lib/eac_git/version.rb +1 -1
- data/sub/eac_rest/eac_rest.gemspec +1 -1
- data/sub/eac_rest/lib/eac_rest/api.rb +14 -3
- data/sub/eac_rest/lib/eac_rest/request.rb +22 -1
- data/sub/eac_rest/lib/eac_rest/response.rb +41 -1
- data/sub/eac_rest/lib/eac_rest/version.rb +1 -1
- data/sub/eac_ruby_base0/eac_ruby_base0.gemspec +3 -3
- data/sub/eac_ruby_base0/lib/eac_ruby_base0/application.rb +2 -2
- data/sub/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
- data/sub/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +1 -1
- data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +2 -2
- data/sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +2 -2
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb +1 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +16 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +12 -2
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_all_gems.rb +4 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_gem.rb +47 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/module_i18n_translate.rb +74 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales.rb +9 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/method_class.rb +35 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb +2 -25
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/method_class.rb +9 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +6 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +86 -33
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +1 -1
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/{temp_spec.rb → directory_spec.rb} +0 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb +4 -4
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb +169 -106
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb +46 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb +52 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb +5 -3
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb +20 -0
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb +5 -3
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec.rb +3 -3
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb +21 -18
- data/sub/eac_ruby_utils/spec/locales/pt-BR.yml +3 -0
- data/sub/eac_templates/eac_templates.gemspec +1 -1
- data/sub/eac_templates/lib/eac_templates/directory.rb +1 -1
- data/sub/eac_templates/lib/eac_templates/version.rb +1 -1
- metadata +45 -18
- data/lib/avm/projects/stereotypes/rails_application/update.rb +0 -14
- data/lib/avm/projects/stereotypes/ruby_gem/version_bump.rb +0 -60
- data/lib/avm/ruby/rubocop/_configured.rb +0 -29
- data/lib/avm/ruby/rubocop/_envvar.rb +0 -15
- data/lib/avm/ruby/rubocop/_gemfile.rb +0 -39
- data/sub/avm/lib/avm/sources/configuration/_rubocop.rb +0 -24
- data/sub/avm/lib/avm/sources/configuration/_tests.rb +0 -27
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches/i18n.rb +0 -7
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/patches.rb +0 -4
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.117.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -79,6 +79,9 @@ dependencies:
|
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0.5'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.5.1
|
82
85
|
type: :runtime
|
83
86
|
prerelease: false
|
84
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -86,6 +89,9 @@ dependencies:
|
|
86
89
|
- - "~>"
|
87
90
|
- !ruby/object:Gem::Version
|
88
91
|
version: '0.5'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.5.1
|
89
95
|
- !ruby/object:Gem::Dependency
|
90
96
|
name: avm-eac_ruby_base1
|
91
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,14 +194,20 @@ dependencies:
|
|
188
194
|
requirements:
|
189
195
|
- - "~>"
|
190
196
|
- !ruby/object:Gem::Version
|
191
|
-
version: '0.
|
197
|
+
version: '0.16'
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.16.3
|
192
201
|
type: :runtime
|
193
202
|
prerelease: false
|
194
203
|
version_requirements: !ruby/object:Gem::Requirement
|
195
204
|
requirements:
|
196
205
|
- - "~>"
|
197
206
|
- !ruby/object:Gem::Version
|
198
|
-
version: '0.
|
207
|
+
version: '0.16'
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 0.16.3
|
199
211
|
- !ruby/object:Gem::Dependency
|
200
212
|
name: eac_ruby_gems_utils
|
201
213
|
requirement: !ruby/object:Gem::Requirement
|
@@ -256,14 +268,14 @@ dependencies:
|
|
256
268
|
requirements:
|
257
269
|
- - "~>"
|
258
270
|
- !ruby/object:Gem::Version
|
259
|
-
version:
|
271
|
+
version: 0.5.1
|
260
272
|
type: :development
|
261
273
|
prerelease: false
|
262
274
|
version_requirements: !ruby/object:Gem::Requirement
|
263
275
|
requirements:
|
264
276
|
- - "~>"
|
265
277
|
- !ruby/object:Gem::Version
|
266
|
-
version:
|
278
|
+
version: 0.5.1
|
267
279
|
description:
|
268
280
|
email:
|
269
281
|
executables:
|
@@ -348,12 +360,10 @@ files:
|
|
348
360
|
- lib/avm/projects/stereotypes/git_subtree/warp.rb
|
349
361
|
- lib/avm/projects/stereotypes/rails_application.rb
|
350
362
|
- lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb
|
351
|
-
- lib/avm/projects/stereotypes/rails_application/update.rb
|
352
363
|
- lib/avm/projects/stereotypes/redmine_plugin.rb
|
353
364
|
- lib/avm/projects/stereotypes/ruby_gem.rb
|
354
365
|
- lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
|
355
366
|
- lib/avm/projects/stereotypes/ruby_gem/publish.rb
|
356
|
-
- lib/avm/projects/stereotypes/ruby_gem/version_bump.rb
|
357
367
|
- lib/avm/rails.rb
|
358
368
|
- lib/avm/ruby.rb
|
359
369
|
- lib/avm/ruby/bundler.rb
|
@@ -367,10 +377,6 @@ files:
|
|
367
377
|
- lib/avm/ruby/bundler/incompatible_parser/version_requirement.rb
|
368
378
|
- lib/avm/ruby/gems.rb
|
369
379
|
- lib/avm/ruby/gems/generator.rb
|
370
|
-
- lib/avm/ruby/rubocop.rb
|
371
|
-
- lib/avm/ruby/rubocop/_configured.rb
|
372
|
-
- lib/avm/ruby/rubocop/_envvar.rb
|
373
|
-
- lib/avm/ruby/rubocop/_gemfile.rb
|
374
380
|
- lib/avm/stereotypes.rb
|
375
381
|
- lib/avm/tools.rb
|
376
382
|
- lib/avm/tools/app_src.rb
|
@@ -457,8 +463,11 @@ files:
|
|
457
463
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
|
458
464
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
|
459
465
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb
|
466
|
+
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
|
460
467
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/tester.rb
|
461
468
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb
|
469
|
+
- sub/avm-eac_generic_base0/locale/en.yaml
|
470
|
+
- sub/avm-eac_generic_base0/locale/pt-BR.yaml
|
462
471
|
- sub/avm-eac_generic_base0/spec/lib/avm/eac_generic_base0/sources/base_spec.rb
|
463
472
|
- sub/avm-eac_generic_base0/spec/rubocop_spec.rb
|
464
473
|
- sub/avm-eac_generic_base0/spec/spec_helper.rb
|
@@ -531,6 +540,7 @@ files:
|
|
531
540
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/install.sh.template
|
532
541
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/deploy/config/secrets.yml
|
533
542
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
|
543
|
+
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile_apache_setup
|
534
544
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template
|
535
545
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_https_virtualhost.conf.template
|
536
546
|
- sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/install_settings.sh.template
|
@@ -538,10 +548,17 @@ files:
|
|
538
548
|
- sub/avm-eac_ruby_base1/Gemfile
|
539
549
|
- sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec
|
540
550
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb
|
541
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/
|
542
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/
|
551
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb
|
552
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb
|
553
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb
|
554
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb
|
555
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb
|
556
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
|
557
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb
|
558
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb
|
543
559
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb
|
544
560
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb
|
561
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
|
545
562
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tester.rb
|
546
563
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb
|
547
564
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb
|
@@ -755,11 +772,12 @@ files:
|
|
755
772
|
- sub/avm/lib/avm/sources/base.rb
|
756
773
|
- sub/avm/lib/avm/sources/base/configuration.rb
|
757
774
|
- sub/avm/lib/avm/sources/base/instance.rb
|
775
|
+
- sub/avm/lib/avm/sources/base/parent.rb
|
758
776
|
- sub/avm/lib/avm/sources/base/testing.rb
|
759
777
|
- sub/avm/lib/avm/sources/configuration.rb
|
760
|
-
- sub/avm/lib/avm/sources/configuration/
|
761
|
-
- sub/avm/lib/avm/sources/configuration/
|
762
|
-
- sub/avm/lib/avm/sources/configuration/
|
778
|
+
- sub/avm/lib/avm/sources/configuration/locale.rb
|
779
|
+
- sub/avm/lib/avm/sources/configuration/rubocop.rb
|
780
|
+
- sub/avm/lib/avm/sources/configuration/tests.rb
|
763
781
|
- sub/avm/lib/avm/sources/tester.rb
|
764
782
|
- sub/avm/lib/avm/sources/tests.rb
|
765
783
|
- sub/avm/lib/avm/sources/tests/builder.rb
|
@@ -814,6 +832,7 @@ files:
|
|
814
832
|
- sub/eac_cli/lib/eac_cli/rspec/setup.rb
|
815
833
|
- sub/eac_cli/lib/eac_cli/runner.rb
|
816
834
|
- sub/eac_cli/lib/eac_cli/runner/after_class_methods.rb
|
835
|
+
- sub/eac_cli/lib/eac_cli/runner/class_runner.rb
|
817
836
|
- sub/eac_cli/lib/eac_cli/runner/context.rb
|
818
837
|
- sub/eac_cli/lib/eac_cli/runner/exit.rb
|
819
838
|
- sub/eac_cli/lib/eac_cli/runner/instance_methods.rb
|
@@ -1274,6 +1293,11 @@ files:
|
|
1274
1293
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/listable/symbol_list.rb
|
1275
1294
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb
|
1276
1295
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb
|
1296
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/locales.rb
|
1297
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_all_gems.rb
|
1298
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_gem.rb
|
1299
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/locales/module_i18n_translate.rb
|
1300
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/method_class.rb
|
1277
1301
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb
|
1278
1302
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb
|
1279
1303
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb
|
@@ -1301,6 +1325,7 @@ files:
|
|
1301
1325
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb
|
1302
1326
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb
|
1303
1327
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb
|
1328
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/method_class.rb
|
1304
1329
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb
|
1305
1330
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb
|
1306
1331
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb
|
@@ -1368,11 +1393,12 @@ files:
|
|
1368
1393
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb
|
1369
1394
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb
|
1370
1395
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
|
1371
|
-
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/
|
1396
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/directory_spec.rb
|
1372
1397
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb
|
1373
1398
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb
|
1374
1399
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb
|
1375
1400
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb
|
1401
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb
|
1376
1402
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
|
1377
1403
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
|
1378
1404
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb
|
@@ -1383,6 +1409,7 @@ files:
|
|
1383
1409
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb
|
1384
1410
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/compare_by_spec.rb
|
1385
1411
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb
|
1412
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
|
1386
1413
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb
|
1387
1414
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb
|
1388
1415
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/projects/stereotypes/ruby_gem/update'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Projects
|
7
|
-
module Stereotypes
|
8
|
-
class RailsApplication
|
9
|
-
class Update < ::Avm::Projects::Stereotypes::RubyGem::Update
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/patches/i18n'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module Projects
|
8
|
-
module Stereotypes
|
9
|
-
class RubyGem
|
10
|
-
class VersionBump
|
11
|
-
enable_speaker
|
12
|
-
common_constructor :instance, :target_version
|
13
|
-
|
14
|
-
def run
|
15
|
-
git_checkout
|
16
|
-
change_version
|
17
|
-
bundle_run
|
18
|
-
git_commit
|
19
|
-
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def bundle_run
|
24
|
-
infom 'Running "bundle install"...'
|
25
|
-
instance.ruby_gem.bundle('install').execute!
|
26
|
-
end
|
27
|
-
|
28
|
-
def change_version
|
29
|
-
infom 'Setting project version...'
|
30
|
-
instance.version = target_version
|
31
|
-
end
|
32
|
-
|
33
|
-
def git_checkout
|
34
|
-
return unless instance.respond_to?(:git_repo)
|
35
|
-
|
36
|
-
infom "Checkouting #{changing_files.map(&:to_path).join(', ')}..."
|
37
|
-
instance.git_repo.command('checkout', '--',
|
38
|
-
*changing_files.map(&:to_path)).execute!
|
39
|
-
end
|
40
|
-
|
41
|
-
def git_commit
|
42
|
-
return unless instance.respond_to?(:git_repo)
|
43
|
-
|
44
|
-
infom "Commiting #{changing_files.map(&:to_path).join(', ')}..."
|
45
|
-
instance.git_repo.command('commit', '-m', git_commit_message, '--',
|
46
|
-
*changing_files.map(&:to_path)).execute!
|
47
|
-
end
|
48
|
-
|
49
|
-
def git_commit_message
|
50
|
-
i18n_translate(__method__, version: target_version, __locale: instance.locale)
|
51
|
-
end
|
52
|
-
|
53
|
-
def changing_files
|
54
|
-
[instance.ruby_gem.gemfile_lock_path, instance.ruby_gem.version_file_path]
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/sources/configuration'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Ruby
|
7
|
-
class Rubocop
|
8
|
-
def configured_rubocop_command_uncached
|
9
|
-
configured_rubocop_command_by_command || configured_rubocop_command_by_gemfile
|
10
|
-
end
|
11
|
-
|
12
|
-
def configured_rubocop_command_by_command
|
13
|
-
configuration.if_present(&:rubocop_command)
|
14
|
-
end
|
15
|
-
|
16
|
-
def configured_rubocop_command_by_gemfile
|
17
|
-
configuration.if_present(&:rubocop_gemfile).if_present do |v|
|
18
|
-
rubocop_command_by_gemfile_path(v.parent)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
private
|
23
|
-
|
24
|
-
def configuration_uncached
|
25
|
-
::Avm::Sources::Configuration.find_by_path(base_path)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Ruby
|
7
|
-
class Rubocop
|
8
|
-
RUBOCOP_COMMAND_ENVVAR_NAME = 'RUBOCOP_COMMAND'
|
9
|
-
|
10
|
-
def env_rubocop_command
|
11
|
-
ENV[RUBOCOP_COMMAND_ENVVAR_NAME].present? ? cmd(ENV[RUBOCOP_COMMAND_ENVVAR_NAME]) : nil
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/patches/eac_ruby_gems_utils/gem'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module Ruby
|
8
|
-
class Rubocop
|
9
|
-
def gemfile_rubocop_command
|
10
|
-
return nil unless rubocop_gemfile?
|
11
|
-
|
12
|
-
rubocop_command_by_gemfile_path(mygem.root)
|
13
|
-
end
|
14
|
-
|
15
|
-
def rubocop_command_by_gemfile_path(path)
|
16
|
-
::EacRubyGemsUtils::Gem.new(path).bundle('exec', 'rubocop').chdir_root
|
17
|
-
end
|
18
|
-
|
19
|
-
def rubocop_gemfile?
|
20
|
-
return false if mygem.blank?
|
21
|
-
|
22
|
-
mygem.bundle('install').execute!
|
23
|
-
mygem.gemfile_lock_gem_version('rubocop').present?
|
24
|
-
end
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
def mygem_uncached
|
29
|
-
find_gem(::Pathname.new(base_path).expand_path)
|
30
|
-
end
|
31
|
-
|
32
|
-
def find_gem(path)
|
33
|
-
r = ::EacRubyGemsUtils::Gem.new(path)
|
34
|
-
return r if r.gemfile_path.exist?
|
35
|
-
return find_gem(path.dirname) unless path.root?
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Avm
|
4
|
-
module Sources
|
5
|
-
class Configuration < ::EacConfig::OldConfigs
|
6
|
-
RUBOCOP_COMMAND_KEY = 'ruby.rubocop.command'
|
7
|
-
RUBOCOP_GEMFILE_KEY = 'ruby.rubocop.gemfile'
|
8
|
-
|
9
|
-
def rubocop_command
|
10
|
-
read_command(RUBOCOP_COMMAND_KEY)
|
11
|
-
end
|
12
|
-
|
13
|
-
def rubocop_gemfile
|
14
|
-
gemfile_path = read_entry(RUBOCOP_GEMFILE_KEY)
|
15
|
-
return nil if gemfile_path.blank?
|
16
|
-
|
17
|
-
gemfile_path = gemfile_path.to_pathname.expand_path(storage_path.parent)
|
18
|
-
return gemfile_path if gemfile_path.file?
|
19
|
-
|
20
|
-
raise "Gemfile path \"#{gemfile_path}\" does not exist or is not a file"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/patches/eac_ruby_gems_utils/gem'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module Sources
|
7
|
-
class Configuration < ::EacConfig::OldConfigs
|
8
|
-
BUNDLE_TEST_COMMAND_KEY = 'test.bundle_command'
|
9
|
-
TEST_COMMAND_KEY = 'test.command'
|
10
|
-
|
11
|
-
def any_test_command
|
12
|
-
bundle_test_command || test_command
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_command
|
16
|
-
read_command(TEST_COMMAND_KEY)
|
17
|
-
end
|
18
|
-
|
19
|
-
def bundle_test_command
|
20
|
-
read_entry(BUNDLE_TEST_COMMAND_KEY).if_present do |v|
|
21
|
-
args = v.is_a?(::Enumerable) ? v.map(&:to_s) : ::Shellwords.split(v)
|
22
|
-
::EacRubyGemsUtils::Gem.new(::File.dirname(storage_path)).bundle(*args).chdir_root
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|