eac_tools 0.15.0 → 0.16.0

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.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +12 -3
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_wordpress_base0/Gemfile +8 -0
  5. data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +19 -0
  6. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb +27 -0
  7. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb +26 -0
  8. data/sub/{avm-tools/lib/avm/eac_wordpress_base0 → avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances}/deploy.rb +3 -1
  9. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances.rb +11 -0
  10. data/sub/{avm-tools/lib/avm/tools/runner/eac_wordpress_base0.rb → avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb} +3 -4
  11. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb +11 -0
  12. data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +7 -0
  13. data/sub/{avm-tools → avm-eac_wordpress_base0}/lib/avm/eac_wordpress_base0.rb +0 -0
  14. data/sub/{avm-tools/spec/lib/avm/eac_wordpress_base0 → avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances}/apache_host_spec.rb +4 -4
  15. data/sub/{avm-tools/spec/lib/avm/eac_wordpress_base0 → avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances}/apache_host_spec_no_ssl_content.conf +0 -0
  16. data/sub/avm-eac_wordpress_base0/spec/rubocop_spec.rb +3 -0
  17. data/sub/avm-eac_wordpress_base0/spec/spec_helper.rb +5 -0
  18. data/sub/{avm-tools → avm-eac_wordpress_base0}/template/avm/eac_wordpress_base0/deploy/wp-config.php.template +10 -10
  19. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  20. metadata +32 -11
  21. data/sub/avm-tools/lib/avm/eac_wordpress_base0/apache_host.rb +0 -25
  22. data/sub/avm-tools/lib/avm/eac_wordpress_base0/instance.rb +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 435984e41a0bf529de374dc9e4640143f9e9caf7a26118d11ce65e6879488ed2
4
- data.tar.gz: 99c63bd9a4b686211df32d65762873913e21b245a21535e3bc0f3ef8d9e81080
3
+ metadata.gz: 483fe35d1d7edbef046db2d18503575164208989b276d44207ef8931b4b43a39
4
+ data.tar.gz: 1955810083df4620b3b03228c68ebc7b9dfbd47403d0d318e5a3ebdef6f89ccc
5
5
  SHA512:
6
- metadata.gz: 31d1736330d976d3a50e14fa312b2ce826227fea5da3fb3a9bfd846a9a870a7a36244f11f7ac77989bd6773f6f8dbf797ed4065b0061256dbaacd4468d047052
7
- data.tar.gz: ec2df47e102ed54df74f8f35ffb52038d272c20879900c88aaf27058be34c0d2527a96b6f21c4c0dd81b0a70d42d1ff6e166d045a311c9cd411cdc89ebb2afbe
6
+ metadata.gz: ff15828b3b75b1e625b80681bf3ef1bc5069e7e07d0a770c50e20b7e4b40132ebf322d63d75bfcf64041a336130e733fed0690c0445473ed1d80fbef6d6e964b
7
+ data.tar.gz: 193fd20c6f955468dec78935d3046dc312b6b454e1c6ec2760e516c637427b94d1c4413ef2255c41595b26eba3cc6824e490531619c040d6193a208dc73f42e7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.15.0)
4
+ eac_tools (0.16.0)
5
5
  avm-eac_asciidoctor_base0 (~> 0.4)
6
6
  avm-eac_generic_base0 (~> 0.4)
7
7
  avm-eac_rails_base0 (~> 0.6, >= 0.6.1)
@@ -10,7 +10,8 @@ PATH
10
10
  avm-eac_redmine_plugin_base0 (~> 0.3)
11
11
  avm-eac_ruby_base1 (~> 0.12)
12
12
  avm-eac_webapp_base0 (~> 0.3, >= 0.3.1)
13
- avm-tools (~> 0.128)
13
+ avm-eac_wordpress_base0 (~> 0.1)
14
+ avm-tools (~> 0.129)
14
15
  eac_ruby_utils (~> 0.97)
15
16
 
16
17
  PATH
@@ -84,10 +85,17 @@ PATH
84
85
  avm-eac_ubuntu_base0 (~> 0.3)
85
86
  eac_ruby_utils (~> 0.68)
86
87
 
88
+ PATH
89
+ remote: sub/avm-eac_wordpress_base0
90
+ specs:
91
+ avm-eac_wordpress_base0 (0.1.0)
92
+ avm-eac_webapp_base0 (~> 0.3, >= 0.3.1)
93
+ eac_ruby_utils (~> 0.97)
94
+
87
95
  PATH
88
96
  remote: sub/avm-tools
89
97
  specs:
90
- avm-tools (0.128.0)
98
+ avm-tools (0.129.0)
91
99
  aranha-parsers (~> 0.4)
92
100
  avm (~> 0.30)
93
101
  avm-eac_ruby_base1 (~> 0.8)
@@ -327,6 +335,7 @@ DEPENDENCIES
327
335
  avm-eac_redmine_plugin_base0!
328
336
  avm-eac_ruby_base1!
329
337
  avm-eac_webapp_base0!
338
+ avm-eac_wordpress_base0!
330
339
  avm-tools!
331
340
  eac_cli!
332
341
  eac_config!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.15.0'
4
+ VERSION = '0.16.0'
5
5
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+
5
+ require 'avm/eac_wordpress_base0/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'avm-eac_wordpress_base0'
9
+ s.version = Avm::EacWordpressBase0::VERSION
10
+ s.authors = ['Put here the authors']
11
+ s.summary = 'Put here de description.'
12
+
13
+ s.files = Dir['{lib,template}/**/*']
14
+
15
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.3', '>= 0.3.1'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.97'
17
+
18
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5', '>= 0.5.1'
19
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_webapp_base0/apache_host'
4
+
5
+ module Avm
6
+ module EacWordpressBase0
7
+ module Instances
8
+ class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
9
+ def document_root
10
+ instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
11
+ end
12
+
13
+ def extra_content
14
+ "AssignUserID #{system_user} #{system_group}"
15
+ end
16
+
17
+ def system_user
18
+ instance.read_entry('system.username')
19
+ end
20
+
21
+ def system_group
22
+ instance.read_entry('system.groupname')
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/instances/entry_keys'
4
+ require 'avm/eac_webapp_base0/instance'
5
+
6
+ module Avm
7
+ module EacWordpressBase0
8
+ module Instances
9
+ class Base < ::Avm::EacWebappBase0::Instance
10
+ FILES_UNITS = { uploads: 'wp-content/uploads', themes: 'wp-content/themes' }.freeze
11
+
12
+ def database_unit
13
+ web_url = read_entry(::Avm::Instances::EntryKeys::WEB_URL)
14
+ super.after_load do
15
+ info 'Fixing web addresses...'
16
+ run_sql(<<~SQL)
17
+ update wp_options
18
+ set option_value = '#{web_url}'
19
+ where option_name in ('siteurl', 'home')
20
+ SQL
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -4,7 +4,9 @@ require 'avm/eac_webapp_base0/deploy'
4
4
 
5
5
  module Avm
6
6
  module EacWordpressBase0
7
- class Deploy < ::Avm::EacWebappBase0::Deploy
7
+ module Instances
8
+ class Deploy < ::Avm::EacWebappBase0::Deploy
9
+ end
8
10
  end
9
11
  end
10
12
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacWordpressBase0
7
+ module Instances
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -1,13 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/eac_webapp_base0/runner'
4
- require 'avm/eac_wordpress_base0'
5
4
  require 'eac_ruby_utils/core_ext'
6
5
 
7
6
  module Avm
8
- module Tools
9
- class Runner
10
- class EacWordpressBase0 < ::Avm::EacWebappBase0::Runner
7
+ module EacWordpressBase0
8
+ module Runners
9
+ class Base < ::Avm::EacWebappBase0::Runner
11
10
  require_sub __FILE__
12
11
  end
13
12
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacWordpressBase0
7
+ module Runners
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Avm
4
+ module EacWordpressBase0
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/eac_wordpress_base0/apache_host'
4
- require 'avm/eac_wordpress_base0/instance'
3
+ require 'avm/eac_wordpress_base0/instances/apache_host'
4
+ require 'avm/eac_wordpress_base0/instances/base'
5
5
 
6
- RSpec.describe ::Avm::EacWordpressBase0::ApacheHost do
6
+ RSpec.describe ::Avm::EacWordpressBase0::Instances::ApacheHost do
7
7
  describe '#no_ssl_site_content' do
8
- let(:instance) { ::Avm::EacWordpressBase0::Instance.by_id('stub-app_0') }
8
+ let(:instance) { ::Avm::EacWordpressBase0::Instances::Base.by_id('stub-app_0') }
9
9
  let(:apache_host) { described_class.new(instance) }
10
10
  let(:expected_content) do
11
11
  ::File.read(::File.join(__dir__, 'apache_host_spec_no_ssl_content.conf'))
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
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
@@ -20,22 +20,22 @@
20
20
 
21
21
  // ** MySQL settings - You can get this info from your web host ** //
22
22
  /** The name of the database for WordPress */
23
- define( 'DB_NAME', '%%DATABASE.NAME%%' );
23
+ define('DB_NAME', '%%DATABASE.NAME%%');
24
24
 
25
25
  /** MySQL database username */
26
- define( 'DB_USER', '%%DATABASE.USER%%' );
26
+ define('DB_USER', '%%DATABASE.USER%%');
27
27
 
28
28
  /** MySQL database password */
29
- define( 'DB_PASSWORD', '%%DATABASE.PASSWORD%%' );
29
+ define('DB_PASSWORD', '%%DATABASE.PASSWORD%%');
30
30
 
31
31
  /** MySQL hostname */
32
- define( 'DB_HOST', 'localhost' );
32
+ define('DB_HOST', 'localhost');
33
33
 
34
34
  /** Database Charset to use in creating database tables. */
35
- define( 'DB_CHARSET', 'utf8' );
35
+ define('DB_CHARSET', 'utf8');
36
36
 
37
37
  /** The Database Collate type. Don't change this if in doubt. */
38
- define( 'DB_COLLATE', '' );
38
+ define('DB_COLLATE', '');
39
39
 
40
40
  /**#@+
41
41
  * Authentication Unique Keys and Salts.
@@ -77,14 +77,14 @@ $table_prefix = 'wp_';
77
77
  *
78
78
  * @link https://codex.wordpress.org/Debugging_in_WordPress
79
79
  */
80
- define( 'WP_DEBUG', false );
80
+ define('WP_DEBUG', false);
81
81
 
82
82
  /* That's all, stop editing! Happy publishing. */
83
83
 
84
84
  /** Absolute path to the WordPress directory. */
85
- if ( ! defined( 'ABSPATH' ) ) {
86
- define( 'ABSPATH', dirname( __FILE__ ) . '/' );
85
+ if (! defined('ABSPATH')) {
86
+ define('ABSPATH', dirname(__FILE__) . '/');
87
87
  }
88
88
 
89
89
  /** Sets up WordPress vars and included files. */
90
- require_once( ABSPATH . 'wp-settings.php' );
90
+ require_once(ABSPATH . 'wp-settings.php');
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.128.0'
5
+ VERSION = '0.129.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
@@ -140,20 +140,34 @@ dependencies:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: 0.3.1
143
+ - !ruby/object:Gem::Dependency
144
+ name: avm-eac_wordpress_base0
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '0.1'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '0.1'
143
157
  - !ruby/object:Gem::Dependency
144
158
  name: avm-tools
145
159
  requirement: !ruby/object:Gem::Requirement
146
160
  requirements:
147
161
  - - "~>"
148
162
  - !ruby/object:Gem::Version
149
- version: '0.128'
163
+ version: '0.129'
150
164
  type: :runtime
151
165
  prerelease: false
152
166
  version_requirements: !ruby/object:Gem::Requirement
153
167
  requirements:
154
168
  - - "~>"
155
169
  - !ruby/object:Gem::Version
156
- version: '0.128'
170
+ version: '0.129'
157
171
  - !ruby/object:Gem::Dependency
158
172
  name: eac_ruby_utils
159
173
  requirement: !ruby/object:Gem::Requirement
@@ -431,15 +445,26 @@ files:
431
445
  - sub/avm-eac_webapp_base0/spec/spec_helper.rb
432
446
  - sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_host/no_ssl.conf
433
447
  - sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_path/default.conf
448
+ - sub/avm-eac_wordpress_base0/Gemfile
449
+ - sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec
450
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0.rb
451
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances.rb
452
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb
453
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb
454
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/deploy.rb
455
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb
456
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb
457
+ - sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb
458
+ - sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
459
+ - sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec_no_ssl_content.conf
460
+ - sub/avm-eac_wordpress_base0/spec/rubocop_spec.rb
461
+ - sub/avm-eac_wordpress_base0/spec/spec_helper.rb
462
+ - sub/avm-eac_wordpress_base0/template/avm/eac_wordpress_base0/deploy/wp-config.php.template
434
463
  - sub/avm-tools/Gemfile
435
464
  - sub/avm-tools/README.textile
436
465
  - sub/avm-tools/avm-tools.gemspec
437
466
  - sub/avm-tools/exe/avm
438
467
  - sub/avm-tools/lib/avm.rb
439
- - sub/avm-tools/lib/avm/eac_wordpress_base0.rb
440
- - sub/avm-tools/lib/avm/eac_wordpress_base0/apache_host.rb
441
- - sub/avm-tools/lib/avm/eac_wordpress_base0/deploy.rb
442
- - sub/avm-tools/lib/avm/eac_wordpress_base0/instance.rb
443
468
  - sub/avm-tools/lib/avm/eac_writings_base0.rb
444
469
  - sub/avm-tools/lib/avm/eac_writings_base0/apache_host.rb
445
470
  - sub/avm-tools/lib/avm/eac_writings_base0/commons.rb
@@ -544,7 +569,6 @@ files:
544
569
  - sub/avm-tools/lib/avm/tools/runner/config.rb
545
570
  - sub/avm-tools/lib/avm/tools/runner/config/load_path.rb
546
571
  - sub/avm-tools/lib/avm/tools/runner/eac_webapp_base0.rb
547
- - sub/avm-tools/lib/avm/tools/runner/eac_wordpress_base0.rb
548
572
  - sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb
549
573
  - sub/avm-tools/lib/avm/tools/runner/files.rb
550
574
  - sub/avm-tools/lib/avm/tools/runner/files/format.rb
@@ -584,8 +608,6 @@ files:
584
608
  - sub/avm-tools/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb
585
609
  - sub/avm-tools/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb
586
610
  - sub/avm-tools/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec
587
- - sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
588
- - sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec_no_ssl_content.conf
589
611
  - sub/avm-tools/spec/lib/avm/launcher/context_spec.rb
590
612
  - sub/avm-tools/spec/lib/avm/launcher/context_spec.yml
591
613
  - sub/avm-tools/spec/lib/avm/launcher/git/base_spec.rb
@@ -1050,7 +1072,6 @@ files:
1050
1072
  - sub/avm-tools/sub/eac_templates/spec/lib/object/template_spec_files/path/my_stub_with_template
1051
1073
  - sub/avm-tools/sub/eac_templates/spec/rubocop_spec.rb
1052
1074
  - sub/avm-tools/sub/eac_templates/spec/spec_helper.rb
1053
- - sub/avm-tools/template/avm/eac_wordpress_base0/deploy/wp-config.php.template
1054
1075
  - sub/avm-tools/template/avm/eac_writings_base0/commons/all.tex
1055
1076
  - sub/avm-tools/template/avm/eac_writings_base0/commons/ebook.tex
1056
1077
  - sub/avm-tools/template/avm/eac_writings_base0/commons/images.tex
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/apache_host'
4
-
5
- module Avm
6
- module EacWordpressBase0
7
- class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
8
- def document_root
9
- instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
10
- end
11
-
12
- def extra_content
13
- "AssignUserID #{system_user} #{system_group}"
14
- end
15
-
16
- def system_user
17
- instance.read_entry('system.username')
18
- end
19
-
20
- def system_group
21
- instance.read_entry('system.groupname')
22
- end
23
- end
24
- end
25
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/instances/entry_keys'
4
- require 'avm/eac_webapp_base0/instance'
5
-
6
- module Avm
7
- module EacWordpressBase0
8
- class Instance < ::Avm::EacWebappBase0::Instance
9
- FILES_UNITS = { uploads: 'wp-content/uploads', themes: 'wp-content/themes' }.freeze
10
-
11
- def database_unit
12
- web_url = read_entry(::Avm::Instances::EntryKeys::WEB_URL)
13
- super.after_load do
14
- info 'Fixing web addresses...'
15
- run_sql(<<~SQL)
16
- update wp_options
17
- set option_value = '#{web_url}'
18
- where option_name in ('siteurl', 'home')
19
- SQL
20
- end
21
- end
22
- end
23
- end
24
- end