avm-tools 0.89.0 → 0.90.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9acbf7ad72627c97018d603c65da21c1875efea79caa7569059d5fd1aeb083e2
4
- data.tar.gz: 8d0bb06826ece8223ed806348cf91f36c8117ebba3ceb05247b6947b54da44f0
3
+ metadata.gz: 4b99793f17ad684a2f04156e2a2127eb7390095bc4c72f92312813773c9e9df8
4
+ data.tar.gz: '0417914a7d8ed5863a222bf4f80f3239bc3462e82bf43162b4c1dd5968fb24c4'
5
5
  SHA512:
6
- metadata.gz: f249739403ccc5346e161f6481acd020d369a02b00b01da1b6c80addc6bcce58d2dc7724cf923929e146e3cac1b8e5e557e82f66cb9f501da8e44f30f358b5c8
7
- data.tar.gz: a47f7c215bedfe5f870ba8a6bbbaf2e579c0c31b017546894c43e0421d75362b366dace3cfcd2bb9f72df7a3037866385b9c928e9389d558d0c39c1939928ea1
6
+ metadata.gz: 84a5deb989dd5d1013a12bd1db132a9fabcf2bb998982f2437d958f0f0a68874eaad7dc99d261b7e2e7db4ae468b2c6ae7dde82ea254af0824dd6264dfb6aa66
7
+ data.tar.gz: 06ff0affee3bf3dbcf9781c37968fdbb575bf11409c5a8492953a6ebc2dad763d4c3004af6d6007d4a4dc4e9d8fb1f71baca87ce08b29ee957a925d633c4e259
@@ -3,7 +3,7 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avm
6
- module EacWritingsBase1
6
+ module EacAsciidoctorBase0
7
7
  require_sub __FILE__
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  require 'avm/eac_webapp_base0/apache_host'
4
4
 
5
5
  module Avm
6
- module EacWritingsBase1
6
+ module EacAsciidoctorBase0
7
7
  class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
8
8
  def document_root
9
9
  instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
@@ -4,7 +4,7 @@ require 'eac_ruby_utils/core_ext'
4
4
  require 'eac_ruby_utils/fs/clearable_directory'
5
5
 
6
6
  module Avm
7
- module EacWritingsBase1
7
+ module EacAsciidoctorBase0
8
8
  class Build
9
9
  require_sub __FILE__
10
10
  enable_console_speaker
@@ -36,7 +36,7 @@ module Avm
36
36
  project.root.children.each do |child|
37
37
  next unless child.extname == '.asc'
38
38
 
39
- r << ::Avm::EacWritingsBase1::Build::File.new(self, child.basename)
39
+ r << ::Avm::EacAsciidoctorBase0::Build::File.new(self, child.basename)
40
40
  end
41
41
  r
42
42
  end
@@ -3,7 +3,7 @@
3
3
  require 'avm/executables'
4
4
 
5
5
  module Avm
6
- module EacWritingsBase1
6
+ module EacAsciidoctorBase0
7
7
  class Build
8
8
  class File
9
9
  enable_console_speaker
@@ -1,23 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/eac_webapp_base0/deploy'
4
- require 'avm/eac_writings_base1/project'
5
- require 'avm/eac_writings_base1/build'
4
+ require 'avm/eac_asciidoctor_base0/project'
5
+ require 'avm/eac_asciidoctor_base0/build'
6
6
 
7
7
  module Avm
8
- module EacWritingsBase1
8
+ module EacAsciidoctorBase0
9
9
  class Deploy < ::Avm::EacWebappBase0::Deploy
10
10
  def build_content
11
- ::Avm::EacWritingsBase1::Build.new(
11
+ ::Avm::EacAsciidoctorBase0::Build.new(
12
12
  project,
13
- ::Avm::EacWritingsBase1::Build::OPTION_TARGET_DIRECTORY => build_dir
13
+ ::Avm::EacAsciidoctorBase0::Build::OPTION_TARGET_DIRECTORY => build_dir
14
14
  ).run
15
15
  end
16
16
 
17
17
  private
18
18
 
19
19
  def project_uncached
20
- ::Avm::EacWritingsBase1::Project.new(
20
+ ::Avm::EacAsciidoctorBase0::Project.new(
21
21
  instance.source_instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
22
22
  )
23
23
  end
@@ -3,7 +3,7 @@
3
3
  require 'avm/eac_webapp_base0/instance'
4
4
 
5
5
  module Avm
6
- module EacWritingsBase1
6
+ module EacAsciidoctorBase0
7
7
  class Instance < ::Avm::EacWebappBase0::Instance
8
8
  FILES_UNITS = {}.freeze
9
9
  end
@@ -3,7 +3,7 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avm
6
- module EacWritingsBase1
6
+ module EacAsciidoctorBase0
7
7
  class Project
8
8
  common_constructor :root do
9
9
  self.root = root.to_pathname
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/eac_webapp_base0/runner'
4
- require 'avm/eac_writings_base1'
4
+ require 'avm/eac_asciidoctor_base0'
5
5
  require 'eac_ruby_utils/console/docopt_runner'
6
6
 
7
7
  module Avm
8
8
  module Tools
9
9
  class Runner
10
- class EacWritingsBase1 < ::Avm::EacWebappBase0::Runner
10
+ class EacAsciidoctorBase0 < ::Avm::EacWebappBase0::Runner
11
11
  require_sub __FILE__
12
12
  end
13
13
  end
@@ -7,11 +7,11 @@ module Avm
7
7
  module Tools
8
8
  class Runner
9
9
  class LocalProject
10
- class EacWritingsBase1
10
+ class EacAsciidoctorBase0
11
11
  require_sub __FILE__
12
12
 
13
13
  runner_with :help, :subcommands do
14
- desc 'EacWritingsBase0 utitilies for local projects.'
14
+ desc 'EacAsciidoctorBase0 utitilies for local projects.'
15
15
  subcommands
16
16
  end
17
17
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/eac_writings_base1/build'
4
- require 'avm/eac_writings_base1/project'
3
+ require 'avm/eac_asciidoctor_base0/build'
4
+ require 'avm/eac_asciidoctor_base0/project'
5
5
  require 'eac_cli/core_ext'
6
6
  require 'eac_ruby_utils/console/docopt_runner'
7
7
 
@@ -9,7 +9,7 @@ module Avm
9
9
  module Tools
10
10
  class Runner
11
11
  class LocalProject
12
- class EacWritingsBase1
12
+ class EacAsciidoctorBase0
13
13
  class Build
14
14
  runner_with :help do
15
15
  desc 'Build the project'
@@ -24,8 +24,8 @@ module Avm
24
24
  private
25
25
 
26
26
  def build_uncached
27
- ::Avm::EacWritingsBase1::Build.new(runner_context.call(:project),
28
- target_directory: parsed.target_dir)
27
+ ::Avm::EacAsciidoctorBase0::Build.new(runner_context.call(:project),
28
+ target_directory: parsed.target_dir)
29
29
  end
30
30
 
31
31
  def default_target_directory
@@ -36,10 +36,6 @@ module Avm
36
36
  runner_context.call(:project_banner)
37
37
  infov 'Target directory', build.target_directory
38
38
  end
39
- #
40
- # def target_directory_uncached
41
- # .if_present(default_target_directory).to_pathname
42
- # end
43
39
  end
44
40
  end
45
41
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.89.0'
5
+ VERSION = '0.90.0'
6
6
  end
7
7
  end
@@ -14,6 +14,10 @@ module EacRubyUtils
14
14
  %w[tz_env debian_config offset].lazy.map { |s| send("by_#{s}") }.find(&:present?)
15
15
  end
16
16
 
17
+ def auto_set
18
+ ::Time.zone = auto
19
+ end
20
+
17
21
  def by_debian_config
18
22
  path = ::Pathname.new(DEBIAN_CONFIG_PATH)
19
23
  path.exist? ? path.read.strip.presence : nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.58.0'
4
+ VERSION = '0.58.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.89.0
4
+ version: 0.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
@@ -290,6 +290,13 @@ files:
290
290
  - lib/avm/docker/image.rb
291
291
  - lib/avm/docker/registry.rb
292
292
  - lib/avm/docker/runner.rb
293
+ - lib/avm/eac_asciidoctor_base0.rb
294
+ - lib/avm/eac_asciidoctor_base0/apache_host.rb
295
+ - lib/avm/eac_asciidoctor_base0/build.rb
296
+ - lib/avm/eac_asciidoctor_base0/build/file.rb
297
+ - lib/avm/eac_asciidoctor_base0/deploy.rb
298
+ - lib/avm/eac_asciidoctor_base0/instance.rb
299
+ - lib/avm/eac_asciidoctor_base0/project.rb
293
300
  - lib/avm/eac_rails_base0.rb
294
301
  - lib/avm/eac_rails_base0/apache_host.rb
295
302
  - lib/avm/eac_rails_base0/apache_path.rb
@@ -348,13 +355,6 @@ files:
348
355
  - lib/avm/eac_writings_base0/project_build.rb
349
356
  - lib/avm/eac_writings_base0/project_build/chapters_content.rb
350
357
  - lib/avm/eac_writings_base0/project_build/copy_files.rb
351
- - lib/avm/eac_writings_base1.rb
352
- - lib/avm/eac_writings_base1/apache_host.rb
353
- - lib/avm/eac_writings_base1/build.rb
354
- - lib/avm/eac_writings_base1/build/file.rb
355
- - lib/avm/eac_writings_base1/deploy.rb
356
- - lib/avm/eac_writings_base1/instance.rb
357
- - lib/avm/eac_writings_base1/project.rb
358
358
  - lib/avm/executables.rb
359
359
  - lib/avm/files.rb
360
360
  - lib/avm/files/appendable.rb
@@ -498,6 +498,7 @@ files:
498
498
  - lib/avm/sync.rb
499
499
  - lib/avm/tools.rb
500
500
  - lib/avm/tools/runner.rb
501
+ - lib/avm/tools/runner/eac_asciidoctor_base0.rb
501
502
  - lib/avm/tools/runner/eac_rails_base0.rb
502
503
  - lib/avm/tools/runner/eac_rails_base0/apache_path.rb
503
504
  - lib/avm/tools/runner/eac_redmine_base0.rb
@@ -507,7 +508,6 @@ files:
507
508
  - lib/avm/tools/runner/eac_webapp_base0.rb
508
509
  - lib/avm/tools/runner/eac_wordpress_base0.rb
509
510
  - lib/avm/tools/runner/eac_writings_base0.rb
510
- - lib/avm/tools/runner/eac_writings_base1.rb
511
511
  - lib/avm/tools/runner/files.rb
512
512
  - lib/avm/tools/runner/files/format.rb
513
513
  - lib/avm/tools/runner/files/rotate.rb
@@ -531,12 +531,12 @@ files:
531
531
  - lib/avm/tools/runner/launcher/projects.rb
532
532
  - lib/avm/tools/runner/launcher/publish.rb
533
533
  - lib/avm/tools/runner/local_project.rb
534
+ - lib/avm/tools/runner/local_project/eac_asciidoctor_base0.rb
535
+ - lib/avm/tools/runner/local_project/eac_asciidoctor_base0/build.rb
534
536
  - lib/avm/tools/runner/local_project/eac_writings_base0.rb
535
537
  - lib/avm/tools/runner/local_project/eac_writings_base0/build_chapters.rb
536
538
  - lib/avm/tools/runner/local_project/eac_writings_base0/build_single.rb
537
539
  - lib/avm/tools/runner/local_project/eac_writings_base0/info.rb
538
- - lib/avm/tools/runner/local_project/eac_writings_base1.rb
539
- - lib/avm/tools/runner/local_project/eac_writings_base1/build.rb
540
540
  - lib/avm/tools/runner/local_project/info.rb
541
541
  - lib/avm/tools/runner/local_project/ruby.rb
542
542
  - lib/avm/tools/runner/local_project/ruby/bundler.rb
@@ -1041,7 +1041,6 @@ files:
1041
1041
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
1042
1042
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
1043
1043
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
1044
- - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
1045
1044
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
1046
1045
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
1047
1046
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/core_ext/time/zones'
4
- require 'eac_ruby_utils/local_time_zone'
5
-
6
- ::Time.zone = ::EacRubyUtils::LocalTimeZone.auto