eac_tools 0.79.0 → 0.80.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +16 -16
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_rails_base0/Gemfile +2 -2
  5. data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +4 -3
  6. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/instances/deploy.rb +2 -2
  7. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
  8. data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb +3 -3
  9. data/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_path_spec.rb +4 -4
  10. data/sub/avm-eac_rails_base0/spec/rubocop_spec.rb +1 -1
  11. data/sub/avm-eac_rails_base0/spec/spec_helper.rb +2 -2
  12. data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/application.rb +1 -1
  13. data/sub/avm-eac_rails_base0/template/avm/eac_rails_base0/source_generators/base/config/puma.rb +4 -4
  14. data/sub/avm-eac_rails_base1/Gemfile +2 -2
  15. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +5 -4
  16. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +5 -0
  17. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb +23 -0
  18. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +1 -1
  19. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +2 -2
  20. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  21. data/sub/avm-eac_rails_base1/spec/rubocop_spec.rb +1 -1
  22. data/sub/avm-eac_rails_base1/spec/spec_helper.rb +1 -1
  23. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +2 -2
  24. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +2 -2
  25. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  26. data/sub/avm-eac_ruby_base1/Gemfile +2 -2
  27. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +3 -2
  28. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +2 -2
  29. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +1 -1
  30. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +2 -1
  31. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +1 -1
  32. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +3 -3
  33. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +2 -2
  34. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +9 -0
  35. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +1 -1
  36. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +3 -4
  37. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +1 -1
  38. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +2 -2
  39. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +1 -1
  40. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  41. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +1 -1
  42. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +1 -1
  43. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +0 -2
  44. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +0 -2
  45. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +9 -9
  46. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +3 -3
  47. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +2 -2
  48. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +3 -3
  49. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +1 -1
  50. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +3 -3
  51. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +9 -9
  52. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +1 -1
  53. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +1 -0
  54. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +1 -0
  55. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +8 -2
  56. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +1 -0
  57. data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +2 -2
  58. data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +1 -1
  59. data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +2 -2
  60. data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +1 -0
  61. metadata +11 -34
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90311d99a8fde34e9e085138cecf3eb3eaec19cd6db5df22b900ca73a058a568
4
- data.tar.gz: '082caa63292c671845f74e8a913054ad212894aa117ddc7d3f7cd2ff65885bdb'
3
+ metadata.gz: 4c7d9d14e62f4976d146dd5a901953270551a16e154e5d08a7d525552848b706
4
+ data.tar.gz: 7b2f94a28c65415e62cd6983b4b501dfff63a67265010c8e54e12f690073b519
5
5
  SHA512:
6
- metadata.gz: 392a2ae0e2f9688a644ae606bd2b6e8c82e06a2aa0e9f30138972866f15f29dd045533b5ebd59303b2613ce43bebdfc3903535727a5e2f2b48c410c5a6b04168
7
- data.tar.gz: 99306a1b0f26497d5bebb657c766c912acc347be451a23eea152c0e73f9f5b9e1fe31c39dc1eed32faebbeebf1df39f6cf47d86759b26c902222b217c1c5743c
6
+ metadata.gz: 747cdfc35f0f0cfb9a2b783b857c41208b80a2e5b28683336b35258a34541b1ebf1bf90b201ce3eb1b71e97a16ba61008a0f19cbc73f8650c73cbd423fb4074d
7
+ data.tar.gz: 53c4d156592347bbf7143ee2b5a0dc860d7d93aa6b5fb40cf6faec55dd4e2d7a7f529a99c1539495d1ad50cbfa659bdd4ee4218edc004e45f9a0a5d5f39e5fbc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.79.0)
4
+ eac_tools (0.80.0)
5
5
  avm (~> 0.81)
6
6
  avm-eac_asciidoctor_base0 (~> 0.19)
7
7
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
@@ -10,11 +10,11 @@ PATH
10
10
  avm-eac_php_base0 (~> 0.4, >= 0.4.2)
11
11
  avm-eac_postgresql_base0 (~> 0.5, >= 0.5.2)
12
12
  avm-eac_python_base0 (~> 0.2, >= 0.2.1)
13
- avm-eac_rails_base0 (~> 0.10, >= 0.10.3)
14
- avm-eac_rails_base1 (~> 0.9, >= 0.9.3)
15
- avm-eac_redmine_base0 (~> 0.21, >= 0.21.2)
13
+ avm-eac_rails_base0 (~> 0.11)
14
+ avm-eac_rails_base1 (~> 0.10)
15
+ avm-eac_redmine_base0 (~> 0.22)
16
16
  avm-eac_redmine_plugin_base0 (~> 0.4)
17
- avm-eac_ruby_base1 (~> 0.32, >= 0.32.1)
17
+ avm-eac_ruby_base1 (~> 0.33)
18
18
  avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
19
19
  avm-eac_wordpress_base0 (~> 0.3, >= 0.3.1)
20
20
  avm-git (~> 0.13, >= 0.13.4)
@@ -79,26 +79,26 @@ PATH
79
79
  PATH
80
80
  remote: sub/avm-eac_rails_base0
81
81
  specs:
82
- avm-eac_rails_base0 (0.10.3)
83
- avm-eac_rails_base1 (~> 0.9, >= 0.9.2)
84
- eac_ruby_utils (~> 0.119, >= 0.119.1)
82
+ avm-eac_rails_base0 (0.11.0)
83
+ avm-eac_rails_base1 (~> 0.10)
84
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
85
85
 
86
86
  PATH
87
87
  remote: sub/avm-eac_rails_base1
88
88
  specs:
89
- avm-eac_rails_base1 (0.9.3)
90
- avm (~> 0.79)
91
- avm-eac_ruby_base1 (~> 0.31, >= 0.31.1)
89
+ avm-eac_rails_base1 (0.10.0)
90
+ avm (~> 0.81)
91
+ avm-eac_ruby_base1 (~> 0.33)
92
92
  avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
93
- eac_ruby_utils (~> 0.119, >= 0.119.1)
93
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
94
94
 
95
95
  PATH
96
96
  remote: sub/avm-eac_redmine_base0
97
97
  specs:
98
- avm-eac_redmine_base0 (0.21.2)
98
+ avm-eac_redmine_base0 (0.22.0)
99
99
  avm (~> 0.81)
100
100
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
101
- avm-eac_rails_base1 (~> 0.9, >= 0.9.3)
101
+ avm-eac_rails_base1 (~> 0.10)
102
102
  avm-eac_ubuntu_base0 (~> 0.5)
103
103
  curb (~> 0.9, >= 0.9.11)
104
104
  eac_fs (~> 0.16)
@@ -115,9 +115,9 @@ PATH
115
115
  PATH
116
116
  remote: sub/avm-eac_ruby_base1
117
117
  specs:
118
- avm-eac_ruby_base1 (0.32.1)
118
+ avm-eac_ruby_base1 (0.33.0)
119
119
  aranha-parsers (~> 0.21)
120
- avm (~> 0.80)
120
+ avm (~> 0.81)
121
121
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
122
122
  eac_envs-http (~> 0.4, >= 0.4.1)
123
123
  eac_ruby_utils (~> 0.119, >= 0.119.2)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.79.0'
4
+ VERSION = '0.80.0'
5
5
  end
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
7
+ local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if File.exist?(local_gemfile)
@@ -11,9 +11,10 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
- s.add_dependency 'avm-eac_rails_base1', '~> 0.9', '>= 0.9.2'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.1'
16
+ s.add_dependency 'avm-eac_rails_base1', '~> 0.10'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
17
18
 
18
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
19
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9'
19
20
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_templates/core_ext'
4
- require 'avm/eac_webapp_base0/instances/deploy'
4
+ require 'avm/eac_rails_base1/instances/deploy'
5
5
  require 'avm/instances/entry_keys'
6
6
 
7
7
  module Avm
8
8
  module EacRailsBase0
9
9
  module Instances
10
- class Deploy < ::Avm::EacWebappBase0::Instances::Deploy
10
+ class Deploy < ::Avm::EacRailsBase1::Instances::Deploy
11
11
  set_callback :assert_instance_branch, :after do
12
12
  bundle_install
13
13
  assert_database
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase0
5
- VERSION = '0.10.3'
5
+ VERSION = '0.11.0'
6
6
  end
7
7
  end
@@ -3,11 +3,11 @@
3
3
  require 'avm/eac_rails_base0/instances/apache_host'
4
4
  require 'avm/eac_rails_base0/instances/base'
5
5
 
6
- RSpec.describe ::Avm::EacRailsBase0::Instances::ApacheHost do
6
+ RSpec.describe Avm::EacRailsBase0::Instances::ApacheHost do
7
7
  describe '#no_ssl_site_content' do
8
- let(:instance) { ::Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') }
8
+ let(:instance) { Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') }
9
9
  let(:apache_host) { described_class.new(instance) }
10
- let(:fixtures_dir) { ::Pathname.new('apache_host_spec_files').expand_path(__dir__) }
10
+ let(:fixtures_dir) { Pathname.new('apache_host_spec_files').expand_path(__dir__) }
11
11
  let(:expected_content) { fixtures_dir.join('apache_host_spec_no_ssl_content.conf').read }
12
12
 
13
13
  before do
@@ -3,16 +3,16 @@
3
3
  require 'avm/eac_rails_base0/instances/apache_path'
4
4
  require 'avm/eac_rails_base0/instances/base'
5
5
 
6
- RSpec.describe ::Avm::EacRailsBase0::Instances::ApachePath do
6
+ RSpec.describe Avm::EacRailsBase0::Instances::ApachePath do
7
7
  describe '#no_ssl_site_content' do
8
- let(:instance) { ::Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') }
8
+ let(:instance) { Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') }
9
9
  let(:apache_path) { described_class.new(instance) }
10
- let(:fixtures_dir) { ::Pathname.new('apache_path_spec_files').expand_path(__dir__) }
10
+ let(:fixtures_dir) { Pathname.new('apache_path_spec_files').expand_path(__dir__) }
11
11
  let(:expect_file) { fixtures_dir.join('stub-app_0_apache_path.conf') }
12
12
  let(:expected_content) { expect_file.read }
13
13
 
14
14
  before do
15
- instance.entry(::Avm::Instances::EntryKeys::INSTALL_PATH).write('/path/to/stub-app_0')
15
+ instance.entry(Avm::Instances::EntryKeys::INSTALL_PATH).write('/path/to/stub-app_0')
16
16
  instance.entry('web.url').write('http://stubapp.net/stub-app_0')
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyUtils::Rspec.default_setup.describe_rubocop
3
+ EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/rspec/default_setup'
4
- ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
5
- ::EacRubyUtils::Rspec.default_setup.stub_eac_config_node
4
+ EacRubyUtils::Rspec.default_setup_create(File.expand_path('..', __dir__))
5
+ EacRubyUtils::Rspec.default_setup.stub_eac_config_node
@@ -2,7 +2,7 @@
2
2
 
3
3
  APP_PATH = ::File.dirname(__dir__) unless defined?(APP_PATH)
4
4
  require File.expand_path('boot', __dir__)
5
- require 'eac_rails_base0/app_base/application.rb'
5
+ require 'eac_rails_base0/app_base/application'
6
6
 
7
7
  module EacRailsBase0App
8
8
  class Application
@@ -6,19 +6,19 @@
6
6
  # the maximum value specified for Puma. Default is set to 5 threads for minimum
7
7
  # and maximum; this matches the default thread size of Active Record.
8
8
  #
9
- threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
9
+ threads_count = ENV.fetch('RAILS_MAX_THREADS', 5)
10
10
  threads threads_count, threads_count
11
11
 
12
12
  # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
13
13
  #
14
- port ENV.fetch('PORT') { 3000 }
14
+ port ENV.fetch('PORT', 3000)
15
15
 
16
16
  # Specifies the `environment` that Puma will run in.
17
17
  #
18
- environment ENV.fetch('RAILS_ENV') { 'development' }
18
+ environment ENV.fetch('RAILS_ENV', 'development')
19
19
 
20
20
  # Specifies the `pidfile` that Puma will use.
21
- pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' }
21
+ pidfile ENV.fetch('PIDFILE', 'tmp/pids/server.pid')
22
22
 
23
23
  # Specifies the number of `workers` to boot in clustered mode.
24
24
  # Workers are forked webserver processes. If using threads and workers together
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
7
+ local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if File.exist?(local_gemfile)
@@ -11,11 +11,12 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
- s.add_dependency 'avm', '~> 0.79'
16
- s.add_dependency 'avm-eac_ruby_base1', '~> 0.31', '>= 0.31.1'
16
+ s.add_dependency 'avm', '~> 0.81'
17
+ s.add_dependency 'avm-eac_ruby_base1', '~> 0.33'
17
18
  s.add_dependency 'avm-eac_webapp_base0', '~> 0.18', '>= 0.18.2'
18
- s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.1'
19
+ s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
19
20
 
20
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
21
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9'
21
22
  end
@@ -25,6 +25,11 @@ module Avm
25
25
  super.add_unit('database', database_unit)
26
26
  end
27
27
 
28
+ # @return [Addressable::URI]
29
+ def gemfile_source
30
+ application.local_source.gemfile_source
31
+ end
32
+
28
33
  # @return [Array<Avm::Instances::Process>]
29
34
  def processes
30
35
  super + [::Avm::EacRailsBase1::Instances::Processes::TasksScheduler.new(self)]
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_envs/http/request'
4
+ require 'avm/eac_webapp_base0/instances/deploy'
5
+
6
+ module Avm
7
+ module EacRailsBase1
8
+ module Instances
9
+ class Deploy < ::Avm::EacWebappBase0::Instances::Deploy
10
+ set_callback :write_on_target, :before do
11
+ check_rubygems_access
12
+ end
13
+
14
+ # @return [void]
15
+ # @raise [EacEnvs::Http::Error]
16
+ def check_rubygems_access
17
+ infom "Checkin access to gems provider (\"#{instance.gemfile_source}\")..."
18
+ ::EacEnvs::Http::Request.new.url(instance.gemfile_source).response.body_data_or_raise
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -13,7 +13,7 @@ module Avm
13
13
 
14
14
  runner_with :help do
15
15
  desc 'Configure Systemd unit for instace\'s tasks scheduler daemon (Reference: ' \
16
- 'https://www.freedesktop.org/software/systemd/man/systemd.service.html).'
16
+ 'https://www.freedesktop.org/software/systemd/man/systemd.service.html).'
17
17
  bool_opt '-e', '--exec-run', 'Run daemon with "run" instead of "start"/"stop".'
18
18
  arg_opt '-r', '--restart', 'Value for systemd.service, Restart=.',
19
19
  default: DEFAULT_RESTART
@@ -13,8 +13,8 @@ module Avm
13
13
  include ::EacCli::Runner
14
14
 
15
15
  runner_definition do
16
- arg_opt '-e', '--environment', 'Specifies the environment for the runner to operate' \
17
- ' (test/development/production). Default: "development".'
16
+ arg_opt '-e', '--environment', 'Specifies the environment for the runner to operate ' \
17
+ '(test/development/production). Default: "development".'
18
18
  end
19
19
  end
20
20
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase1
5
- VERSION = '0.9.3'
5
+ VERSION = '0.10.0'
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyUtils::Rspec.default_setup.describe_rubocop
3
+ EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/rspec/default_setup'
4
- ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
4
+ EacRubyUtils::Rspec.default_setup_create(File.expand_path('..', __dir__))
@@ -16,12 +16,12 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency 'avm', '~> 0.81'
18
18
  s.add_dependency 'avm-eac_generic_base0', '~> 0.12', '>= 0.12.1'
19
- s.add_dependency 'avm-eac_rails_base1', '~> 0.9', '>= 0.9.3'
19
+ s.add_dependency 'avm-eac_rails_base1', '~> 0.10'
20
20
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.5'
21
21
  s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
22
22
  s.add_dependency 'eac_fs', '~> 0.16'
23
23
  s.add_dependency 'eac_rest', '~> 0.10'
24
24
  s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
25
25
 
26
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.8.0'
26
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9.0'
27
27
  end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/eac_webapp_base0/instances/deploy'
3
+ require 'avm/eac_rails_base1/instances/deploy'
4
4
  require 'eac_ruby_utils/ruby'
5
5
 
6
6
  module Avm
7
7
  module EacRedmineBase0
8
8
  module Instances
9
- class Deploy < ::Avm::EacWebappBase0::Instances::Deploy
9
+ class Deploy < ::Avm::EacRailsBase1::Instances::Deploy
10
10
  set_callback :assert_instance_branch, :after, :run_installer
11
11
 
12
12
  def run_installer
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedmineBase0
5
- VERSION = '0.21.2'
5
+ VERSION = '0.22.0'
6
6
  end
7
7
  end
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
7
+ local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if File.exist?(local_gemfile)
@@ -11,13 +11,14 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
16
  s.add_dependency 'aranha-parsers', '~> 0.21'
16
- s.add_dependency 'avm', '~> 0.80'
17
+ s.add_dependency 'avm', '~> 0.81'
17
18
  s.add_dependency 'avm-eac_generic_base0', '~> 0.12', '>= 0.12.1'
18
19
  s.add_dependency 'eac_envs-http', '~> 0.4', '>= 0.4.1'
19
20
  s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
20
21
 
21
22
  s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
22
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.6.0'
23
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9'
23
24
  end
@@ -104,8 +104,8 @@ module Avm
104
104
  end
105
105
  end
106
106
 
107
- def on_clean_ruby
108
- on_clear_envvars('BUNDLE', 'RUBY') { yield }
107
+ def on_clean_ruby(&block)
108
+ on_clear_envvars('BUNDLE', 'RUBY', &block)
109
109
  end
110
110
 
111
111
  def on_clear_envvars(*start_with_vars)
@@ -59,7 +59,7 @@ module Avm
59
59
 
60
60
  def version_unpublished_check_result
61
61
  ::Avm::Launcher::Publish::CheckResult.pending("#{gem_spec.full_name} not found " \
62
- 'in RubyGems')
62
+ 'in RubyGems')
63
63
  end
64
64
 
65
65
  def source_uncached
@@ -33,7 +33,8 @@ module Avm
33
33
  def find_gem(path)
34
34
  r = ::Avm::EacRubyBase1::Sources::Base.new(path)
35
35
  return r if r.gemfile_path.exist?
36
- return find_gem(path.dirname) unless path.root?
36
+
37
+ find_gem(path.dirname) unless path.root?
37
38
  end
38
39
  end
39
40
  end
@@ -25,7 +25,7 @@ module Avm
25
25
 
26
26
  # @return [Array<Avm::EacRubyBase1::Bundler::Gemfile::Dependency>]
27
27
  def dependencies
28
- lines.lazy.map { |line| DEPENDENCY_LINE_PARSER.parse(line) }.reject(&:blank?)
28
+ lines.lazy.map { |line| DEPENDENCY_LINE_PARSER.parse(line) }.compact_blank
29
29
  .map { |gem_name| dependency(gem_name) }.to_a
30
30
  end
31
31
 
@@ -10,11 +10,11 @@ module Avm
10
10
  module Options
11
11
  common_concern
12
12
 
13
- GEMFILE_LOCK_OPTION = 'gemfile-lock'.to_sym
13
+ GEMFILE_LOCK_OPTION = :'gemfile-lock'
14
14
 
15
15
  OPTIONS = {
16
- 'eac-ruby-utils-version'.to_sym => 'Version for "eac_ruby_utils" gem.',
17
- 'eac-ruby-gem-support-version'.to_sym => 'Version for "eac_ruby_gem_support" gem.',
16
+ :'eac-ruby-utils-version' => 'Version for "eac_ruby_utils" gem.',
17
+ :'eac-ruby-gem-support-version' => 'Version for "eac_ruby_gem_support" gem.',
18
18
  GEMFILE_LOCK_OPTION => 'Run "bundle install" at the end'
19
19
  }.freeze
20
20
 
@@ -44,7 +44,7 @@ module Avm
44
44
 
45
45
  def root_module_close
46
46
  root_module_components.count.times.map do |index|
47
- (IDENT * index) + 'end'
47
+ "#{IDENT * index}end"
48
48
  end.reverse.join("\n")
49
49
  end
50
50
 
@@ -54,7 +54,7 @@ module Avm
54
54
 
55
55
  def root_module_open
56
56
  root_module_components.each_with_index.map do |component, index|
57
- (IDENT * index) + 'module ' + component
57
+ "#{IDENT * index}module #{component}"
58
58
  end.join("\n")
59
59
  end
60
60
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'addressable'
3
4
  require 'avm/eac_generic_base0/sources/base'
4
5
  require 'avm/eac_ruby_base1/sources/base/bundle_command'
5
6
  require 'avm/eac_ruby_base1/sources/bundle_update'
@@ -12,6 +13,9 @@ module Avm
12
13
  module Bundler
13
14
  CONFIGURED_GEMFILE_PATH_ENTRY_KEY = 'ruby.gemfile_path'
14
15
  DEFAULT_GEMFILE_PATH = 'Gemfile'
16
+ GEMFILE_SOURCE_PARSER = /^\s*source\s+['"]([^'"]+)['"]$/.to_parser do |m|
17
+ ::Addressable::URI.parse(m[1])
18
+ end
15
19
 
16
20
  # @return [Avm::EacRubyBase1::Sources::Base::BundleCommand]
17
21
  def bundle(*args)
@@ -52,6 +56,11 @@ module Avm
52
56
  def gemfile_path
53
57
  path.join(configured_gemfile_path || default_gemfile_path)
54
58
  end
59
+
60
+ # @return [Addressable::URI]
61
+ def gemfile_source
62
+ GEMFILE_SOURCE_PARSER.parse!(gemfile_path.read)
63
+ end
55
64
  end
56
65
  end
57
66
  end
@@ -45,7 +45,7 @@ module Avm
45
45
  parts.each_with_index do |_part, index|
46
46
  tabc = (parts.count - 1 - index)
47
47
  tabc -= 1 if index.zero?
48
- s += (' ' * tabc) + "end\n"
48
+ s += "#{' ' * tabc}end\n"
49
49
  end
50
50
  s
51
51
  end
@@ -52,10 +52,9 @@ module Avm
52
52
  end
53
53
 
54
54
  def sibling_gemfile_local_line(sibling)
55
- ["gem '#{sibling.gem_name}'",
56
- "path: ::File.expand_path('" +
57
- sibling.path.relative_path_from(the_source.path).to_path +
58
- "', __dir__)",
55
+ ["gem '#{sibling.gem_name}'", # rubocop:disable Style/StringConcatenation
56
+ ["path: ::File.expand_path('",
57
+ sibling.path.relative_path_from(the_source.path).to_path, "', __dir__)"].join,
59
58
  'require: false'].join(', ') + "\n"
60
59
  end
61
60
 
@@ -54,7 +54,7 @@ module Avm
54
54
  end
55
55
 
56
56
  def print_requirement(req)
57
- infov ' ' + requirement_title(req), requirement_value(req)
57
+ infov " #{requirement_title(req)}", requirement_value(req)
58
58
  end
59
59
 
60
60
  def requirement_stack(req)
@@ -18,7 +18,7 @@ module Avm
18
18
 
19
19
  unless can_remove_gemfile_lock?
20
20
  raise '"bundle install" failed and the Gemfile.lock is part of gem' \
21
- '(Should be changed by developer)'
21
+ '(Should be changed by developer)'
22
22
  end
23
23
 
24
24
  prepare_with_removable_gemfile_lock
@@ -42,7 +42,7 @@ module Avm
42
42
  end
43
43
 
44
44
  def can_remove_gemfile_lock?
45
- !files.include?(gemfile_lock_path.relative_path_from(root))
45
+ files.exclude?(gemfile_lock_path.relative_path_from(root))
46
46
  end
47
47
  end
48
48
  end
@@ -29,7 +29,7 @@ module Avm
29
29
  def format_gemspec
30
30
  source.rubocop_command.ignore_parent_exclusion(true).autocorrect(true)
31
31
  .file(source.gemspec_path)
32
- .execute!(exit_outputs: RUBOCOP_OK_CODES.map { |k| [k, nil] }.to_h)
32
+ .execute!(exit_outputs: RUBOCOP_OK_CODES.index_with { |_k| nil })
33
33
  end
34
34
 
35
35
  # @return [Array<String>]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.32.1'
5
+ VERSION = '0.33.0'
6
6
  end
7
7
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/bundler/incompatible_parser'
4
4
 
5
- RSpec.describe ::Avm::EacRubyBase1::Bundler::IncompatibleParser do
5
+ RSpec.describe Avm::EacRubyBase1::Bundler::IncompatibleParser do
6
6
  include_examples 'source_target_fixtures', __FILE__
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/file_formats/base'
4
4
 
5
- ::RSpec.describe ::Avm::EacRubyBase1::FileFormats::Base do
5
+ RSpec.describe Avm::EacRubyBase1::FileFormats::Base do
6
6
  include_examples 'avm_file_formats_with_fixtures', __FILE__
7
7
  include_examples 'avm_file_format_file_resource_name', {
8
8
  'app/models/mynamespace/the_class.rb' => 'Mynamespace::TheClass',
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  source 'https://rubygems.org'
4
2
 
5
3
  gemspec
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  def abc(_arg)
4
2
  123
5
3
  end
@@ -3,7 +3,7 @@
3
3
  require 'active_support/core_ext/object'
4
4
  require 'avm/eac_ruby_base1/launcher/gem/build'
5
5
 
6
- RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Build do
6
+ RSpec.describe Avm::EacRubyBase1::Launcher::Gem::Build do
7
7
  describe '#output_file' do
8
8
  let(:gem_dir) do
9
9
  avm_eac_ruby_base1_source(target_path: temp_dir.join('ruby_gem_stub'))
@@ -11,7 +11,7 @@ RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Build do
11
11
  end
12
12
 
13
13
  it 'builds .gem file' do # rubocop:disable RSpec/ExampleLength
14
- expect(::File.directory?(gem_dir)).to eq true
14
+ expect(File.directory?(gem_dir)).to be true
15
15
  build = described_class.new(gem_dir)
16
16
 
17
17
  # Open/close
@@ -31,16 +31,16 @@ RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Build do
31
31
  private
32
32
 
33
33
  def assert_closed(build)
34
- expect(build.output_file.blank?).to eq true
35
- expect(build.builded?).to eq false
34
+ expect(build.output_file.blank?).to be true
35
+ expect(build.builded?).to be false
36
36
  end
37
37
 
38
38
  def assert_open(build) # rubocop:disable Metrics/AbcSize
39
- expect(build.output_file.present?).to eq true
40
- expect(build.builded?).to eq true
41
- expect(::File.exist?(build.output_file)).to eq true
42
- expect(::File.size(build.output_file)).to be_positive
43
- expect(::File.basename(build.output_file)).to eq('ruby_gem_stub-0.0.0.gem')
39
+ expect(build.output_file.present?).to be true
40
+ expect(build.builded?).to be true
41
+ expect(File.exist?(build.output_file)).to be true
42
+ expect(File.size(build.output_file)).to be_positive
43
+ expect(File.basename(build.output_file)).to eq('ruby_gem_stub-0.0.0.gem')
44
44
  end
45
45
  end
46
46
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/launcher/gem/specification'
4
4
 
5
- RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Specification do
5
+ RSpec.describe Avm::EacRubyBase1::Launcher::Gem::Specification do
6
6
  let(:source_version) { '1.0.0.pre.stub' }
7
7
  let(:source) do
8
8
  r = avm_eac_ruby_base1_source(target_path: temp_dir.join('ruby_gem_stub'))
@@ -16,14 +16,14 @@ RSpec.describe ::Avm::EacRubyBase1::Launcher::Gem::Specification do
16
16
  describe '#parse_version_file' do
17
17
  it 'parses valid version file' do # rubocop:disable RSpec/MultipleExpectations
18
18
  file = version_file
19
- expect(::File.exist?(file)).to eq true
19
+ expect(File.exist?(file)).to be true
20
20
  version = described_class.parse_version_file(file)
21
21
  expect(version).to eq('1.0.0.pre.stub')
22
22
  end
23
23
 
24
24
  it 'does not parse invalid version file' do # rubocop:disable RSpec/MultipleExpectations
25
25
  file = __FILE__
26
- expect(::File.exist?(file)).to eq true
26
+ expect(File.exist?(file)).to be true
27
27
  version = described_class.parse_version_file(file)
28
28
  expect(version).to be_nil
29
29
  end
@@ -4,7 +4,7 @@ require 'avm/launcher/context'
4
4
  require 'avm/launcher/instances/base'
5
5
  require 'avm/eac_ruby_base1/launcher_stereotypes/base/publish'
6
6
 
7
- RSpec.describe ::Avm::EacRubyBase1::LauncherStereotypes::Base::Publish do
7
+ RSpec.describe Avm::EacRubyBase1::LauncherStereotypes::Base::Publish do
8
8
  let(:context) do
9
9
  r = temp_launcher_context
10
10
  avm_eac_ruby_base1_source(target_path: r.root.real.to_pathname.join('ruby_gem_stub'))
@@ -16,7 +16,7 @@ RSpec.describe ::Avm::EacRubyBase1::LauncherStereotypes::Base::Publish do
16
16
 
17
17
  it 'dries run publish for Ruby Gems' do
18
18
  allow_any_instance_of(described_class).to receive(:gem_versions_uncached).and_return([]) # rubocop:disable RSpec/AnyInstance
19
- expect(instance).to be_a ::Avm::Launcher::Instances::Base
19
+ expect(instance).to be_a Avm::Launcher::Instances::Base
20
20
  context.publish_options = { confirm: false, new: true, stereotype: 'RubyGem' }
21
21
  described_class.new(instance).run
22
22
  end
@@ -2,12 +2,12 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/launcher_stereotypes/base'
4
4
 
5
- RSpec.describe ::Avm::EacRubyBase1::LauncherStereotypes::Base do
5
+ RSpec.describe Avm::EacRubyBase1::LauncherStereotypes::Base do
6
6
  describe '#load_gemspec' do
7
7
  let(:dummy_dir) { avm_eac_ruby_base1_source(target_path: temp_dir.join(gemname)).path }
8
8
  let(:gemname) { 'avm-eac_ruby_base1' }
9
- let(:self_gemspec) { ::File.join(app_root_path, "#{gemname}.gemspec") }
10
- let(:stub_gemspec) { ::File.join(dummy_dir, "#{gemname}.gemspec") }
9
+ let(:self_gemspec) { File.join(app_root_path, "#{gemname}.gemspec") }
10
+ let(:stub_gemspec) { File.join(dummy_dir, "#{gemname}.gemspec") }
11
11
  let(:stub_expected_version) { '0.0.0' }
12
12
 
13
13
  it 'does not return same version for different gemspecs with same name' do # rubocop:disable RSpec/ExampleLength, RSpec/MultipleExpectations
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/preferred_version_requirements'
4
4
 
5
- ::RSpec.describe ::Avm::EacRubyBase1::PreferredVersionRequirements do
5
+ RSpec.describe Avm::EacRubyBase1::PreferredVersionRequirements do
6
6
  describe '#to_requirements_list' do
7
7
  {
8
8
  '0.1.0' => ['~> 0.1'],
@@ -2,11 +2,11 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/rubygems/version_file'
4
4
 
5
- ::RSpec.describe ::Avm::EacRubyBase1::Rubygems::VersionFile do
6
- let(:stubs_dir) { ::Pathname.new(__dir__).join('version_file_spec_files') }
5
+ RSpec.describe Avm::EacRubyBase1::Rubygems::VersionFile do
6
+ let(:stubs_dir) { Pathname.new(__dir__).join('version_file_spec_files') }
7
7
  let(:stub_file) { stubs_dir.join('a_version_file.rb') }
8
8
  let(:instance) { described_class.new(stub_file) }
9
- let(:target_version) { ::Gem::Version.new('0.69.1') }
9
+ let(:target_version) { Gem::Version.new('0.69.1') }
10
10
 
11
11
  describe '#value' do
12
12
  it { expect(instance.value).to eq(target_version) }
@@ -3,27 +3,27 @@
3
3
  require 'avm/eac_ruby_base1/runners/base/rubocop'
4
4
  require 'avm/eac_ruby_base1/sources/base'
5
5
 
6
- ::RSpec.describe ::Avm::EacRubyBase1::Runners::Base::Rubocop do
7
- let(:fixtures_root) { ::Pathname.new(__dir__).expand_path.join('rubocop_spec_files') }
8
- let(:dir1) { fixtures_root.join('dir1') }
9
- let(:dir2) { fixtures_root.join('dir2') }
10
- let(:dir3) { dir1.join('dir3') }
11
- let(:dir4) { fixtures_root.join('dir4') }
6
+ RSpec.describe Avm::EacRubyBase1::Runners::Base::Rubocop do
7
+ let(:fixtures_root) { Pathname.new(__dir__).expand_path.join('rubocop_spec_files') }
8
+ let(:dir1) { fixtures_root.join('dir1') } # rubocop:disable RSpec/IndexedLet
9
+ let(:dir2) { fixtures_root.join('dir2') } # rubocop:disable RSpec/IndexedLet
10
+ let(:dir3) { dir1.join('dir3') } # rubocop:disable RSpec/IndexedLet
11
+ let(:dir4) { fixtures_root.join('dir4') } # rubocop:disable RSpec/IndexedLet
12
12
 
13
13
  before do
14
- ::Avm::EacRubyBase1::Sources::Base.new(dir3).bundle.execute!
14
+ Avm::EacRubyBase1::Sources::Base.new(dir3).bundle.execute!
15
15
  end
16
16
 
17
17
  {
18
18
  dir1: '0.48.1',
19
- dir2: ::Avm::EacRubyBase1::Sources::Base.new(::File.expand_path('../../../../../..', __dir__))
19
+ dir2: Avm::EacRubyBase1::Sources::Base.new(File.expand_path('../../../../../..', __dir__))
20
20
  .gemfile_lock_gem_version('rubocop').to_s,
21
21
  dir3: '0.48.1',
22
22
  dir4: '33.33.33'
23
23
  }.each do |dir_name, rubocop_version|
24
24
  context "when dir is #{dir_name}" do
25
25
  let(:dir) { send(dir_name) }
26
- let(:thegem) { ::Avm::EacRubyBase1::Sources::Base.new(dir) }
26
+ let(:thegem) { Avm::EacRubyBase1::Sources::Base.new(dir) }
27
27
 
28
28
  it "return #{rubocop_version} as Rubocop version" do
29
29
  argv = ['-C', dir.to_s, '--', '--version']
@@ -3,7 +3,7 @@
3
3
  require 'avm/eac_ruby_base1/source_generators/base'
4
4
  require 'avm/source_generators/runner'
5
5
 
6
- RSpec.describe ::Avm::EacRubyBase1::SourceGenerators::Base do
6
+ RSpec.describe Avm::EacRubyBase1::SourceGenerators::Base do
7
7
  include_examples 'avm_source_generated', __FILE__, 'EacRubyBase1',
8
8
  {
9
9
  'eac-ruby-utils-version' => '0.35.0',
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
16
  s.add_dependency 'eac_ruby_utils', '~> 0.35'
16
17
 
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
16
  s.add_dependency 'eac_ruby_utils', '~> 0.35'
16
17
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  require 'avm/eac_ruby_base1/sources/base'
4
4
 
5
- ::RSpec.describe ::Avm::EacRubyBase1::Sources::Base do
6
- let(:mygem_path) { ::Pathname.new(__dir__).join('bundler_spec_files', 'mygem') }
5
+ RSpec.describe Avm::EacRubyBase1::Sources::Base, '#bundler' do
6
+ let(:mygem_path) { Pathname.new(__dir__).join('bundler_spec_files', 'mygem') }
7
7
  let(:mygem) { described_class.new(mygem_path) }
8
8
 
9
9
  before do
@@ -16,6 +16,12 @@ require 'avm/eac_ruby_base1/sources/base'
16
16
  end
17
17
  end
18
18
 
19
+ describe '#gemfile_source' do
20
+ it do
21
+ expect(mygem.gemfile_source).to eq(Addressable::URI.parse('https://rubygems.org'))
22
+ end
23
+ end
24
+
19
25
  describe '#rake' do
20
26
  specify do
21
27
  expect(mygem.rake('mygem:stub').execute!).to include('Stub!')
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.files = Dir['{exe,lib}/**/*', 'Gemfile', 'Rakefile']
12
12
  s.bindir = 'exe'
13
13
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
16
  s.add_dependency 'rake'
16
17
  end
@@ -3,7 +3,7 @@
3
3
  require 'avm/eac_ruby_base1/sources/base'
4
4
  require 'avm/version_number'
5
5
 
6
- ::RSpec.describe ::Avm::EacRubyBase1::Sources::Base do
6
+ RSpec.describe Avm::EacRubyBase1::Sources::Base do
7
7
  let(:instance) { avm_eac_ruby_base1_source }
8
8
 
9
9
  include_examples 'in_avm_registry', 'sources'
@@ -11,6 +11,6 @@ require 'avm/version_number'
11
11
  it { expect(instance).to be_a(described_class) }
12
12
 
13
13
  it do
14
- expect(instance.version).to eq(::Avm::VersionNumber.new('0.0.0'))
14
+ expect(instance.version).to eq(Avm::VersionNumber.new('0.0.0'))
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyUtils::Rspec.default_setup.describe_rubocop
3
+ EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/rspec/default_setup'
4
- ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
4
+ EacRubyUtils::Rspec.default_setup_create(File.expand_path('..', __dir__))
5
5
 
6
6
  require 'eac_ruby_utils/speaker'
7
7
  require 'eac_ruby_utils/rspec/stub_speaker'
8
- ::EacRubyUtils::Speaker.context.push(::EacRubyUtils::Rspec::StubSpeaker.new)
8
+ EacRubyUtils::Speaker.context.push(EacRubyUtils::Rspec::StubSpeaker.new)
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
16
  s.add_dependency 'eac_ruby_utils', %%EAC_RUBY_UTILS_VERSION%%
16
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.79.0
4
+ version: 0.80.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-31 00:00:00.000000000 Z
11
+ date: 2023-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -158,60 +158,42 @@ dependencies:
158
158
  requirements:
159
159
  - - "~>"
160
160
  - !ruby/object:Gem::Version
161
- version: '0.10'
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- version: 0.10.3
161
+ version: '0.11'
165
162
  type: :runtime
166
163
  prerelease: false
167
164
  version_requirements: !ruby/object:Gem::Requirement
168
165
  requirements:
169
166
  - - "~>"
170
167
  - !ruby/object:Gem::Version
171
- version: '0.10'
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: 0.10.3
168
+ version: '0.11'
175
169
  - !ruby/object:Gem::Dependency
176
170
  name: avm-eac_rails_base1
177
171
  requirement: !ruby/object:Gem::Requirement
178
172
  requirements:
179
173
  - - "~>"
180
174
  - !ruby/object:Gem::Version
181
- version: '0.9'
182
- - - ">="
183
- - !ruby/object:Gem::Version
184
- version: 0.9.3
175
+ version: '0.10'
185
176
  type: :runtime
186
177
  prerelease: false
187
178
  version_requirements: !ruby/object:Gem::Requirement
188
179
  requirements:
189
180
  - - "~>"
190
181
  - !ruby/object:Gem::Version
191
- version: '0.9'
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: 0.9.3
182
+ version: '0.10'
195
183
  - !ruby/object:Gem::Dependency
196
184
  name: avm-eac_redmine_base0
197
185
  requirement: !ruby/object:Gem::Requirement
198
186
  requirements:
199
187
  - - "~>"
200
188
  - !ruby/object:Gem::Version
201
- version: '0.21'
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- version: 0.21.2
189
+ version: '0.22'
205
190
  type: :runtime
206
191
  prerelease: false
207
192
  version_requirements: !ruby/object:Gem::Requirement
208
193
  requirements:
209
194
  - - "~>"
210
195
  - !ruby/object:Gem::Version
211
- version: '0.21'
212
- - - ">="
213
- - !ruby/object:Gem::Version
214
- version: 0.21.2
196
+ version: '0.22'
215
197
  - !ruby/object:Gem::Dependency
216
198
  name: avm-eac_redmine_plugin_base0
217
199
  requirement: !ruby/object:Gem::Requirement
@@ -232,20 +214,14 @@ dependencies:
232
214
  requirements:
233
215
  - - "~>"
234
216
  - !ruby/object:Gem::Version
235
- version: '0.32'
236
- - - ">="
237
- - !ruby/object:Gem::Version
238
- version: 0.32.1
217
+ version: '0.33'
239
218
  type: :runtime
240
219
  prerelease: false
241
220
  version_requirements: !ruby/object:Gem::Requirement
242
221
  requirements:
243
222
  - - "~>"
244
223
  - !ruby/object:Gem::Version
245
- version: '0.32'
246
- - - ">="
247
- - !ruby/object:Gem::Version
248
- version: 0.32.1
224
+ version: '0.33'
249
225
  - !ruby/object:Gem::Dependency
250
226
  name: avm-eac_webapp_base0
251
227
  requirement: !ruby/object:Gem::Requirement
@@ -604,6 +580,7 @@ files:
604
580
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_host.rb
605
581
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/apache_path.rb
606
582
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
583
+ - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/deploy.rb
607
584
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes.rb
608
585
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/daemon.rb
609
586
  - sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb