pd1_tools 0.46.0 → 0.49.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72f5f688393e0830da04eb3677b9a6bd1118680df5f2342ebce5c583cc2ad4df
4
- data.tar.gz: eceaab0236a48e42926cb3c0377434ead9cabe870abecc15918aed3c946ad014
3
+ metadata.gz: 6c0f8929626ef04c1e48a9fcebec35361701e91e9a168d42311d2c7bd465427e
4
+ data.tar.gz: ecc63a8611bc739c74d2ed4898875a4790e1a8eb1988c2b814d133c12ddc5806
5
5
  SHA512:
6
- metadata.gz: a54f3cc1466a53a1e6502e7c154f47051ff46a129ee5946d6e4f7ad349c7f921283d113ec10cc4dde63ffb1d59fd09f3fb34e3ca6e17a38134009e8e1bac5f73
7
- data.tar.gz: 70b66ded731c596f144d25003e2a1005b3a3ca51ec8849da978d67bb01c4786f5e946fd8e27235b9bb65cb6dd8fcfd9958ac4a5ca4415718f5fb83a669b13a26
6
+ metadata.gz: 565a66f260e130ce1009bd1fe2fe4a0d22df512fc06057c263c12c8fe27821804955a14ec0d8b995ffbc8158f1e769125971cae3227572db2376ce251c3f52f3
7
+ data.tar.gz: 26fc4529208531c8b3c7db1e9c2fa920bba6869eeb7e217425725915d937fc98d47c01a60579e8867bb7cae82493e46a5709c60d6033e7563973c6df2f2a2bab
@@ -5,12 +5,12 @@ module Avmtrf1
5
5
  class PushLarge
6
6
  class LfsCommit
7
7
  module Push
8
- private
9
-
10
8
  PACK_ERROR_MESSAGE = 'pack exceeds maximum allowed size'
11
9
  PACK_ERROR_TRUE = 'true'
12
10
  PACK_ERROR_FALSE = 'false'
13
11
 
12
+ private
13
+
14
14
  def push_ok_uncached
15
15
  commit
16
16
  fresh_push if push_pack_error_cache.read.blank?
@@ -5,13 +5,13 @@ module Avmtrf1
5
5
  class PushLarge
6
6
  class LfsCommit
7
7
  module TrackLargeFiles
8
- private
9
-
10
8
  EXTENSIONS_REQUIRED_TO_TRACK = %w[
11
9
  bak bkp bmp bpm cfm chm dat db doc fla flv gz jar log mp3 mp4 otf pdf ppt psd rar rtf
12
10
  swf ttf wav wmf wmv wmz woff woff2 xmind z zip
13
11
  ].freeze
14
12
 
13
+ private
14
+
15
15
  def track_large_files_uncached
16
16
  cherry_pick_source_revision
17
17
  if lfs_file_min_size.present?
@@ -40,7 +40,8 @@ module Avmtrf1
40
40
  end
41
41
 
42
42
  def required_extesion_to_track?(file)
43
- EXTENSIONS_REQUIRED_TO_TRACK.include?(::File.extname(file.path).gsub(/\A\./, ''))
43
+ EXTENSIONS_REQUIRED_TO_TRACK.include?(::File.extname(file.path).gsub(/\A\./,
44
+ ''))
44
45
  end
45
46
 
46
47
  def tracked_file?(file)
@@ -7,10 +7,10 @@ module Avmtrf1
7
7
  class PushLarge
8
8
  class SourceCommit
9
9
  module Push
10
- private
11
-
12
10
  LFS_FILE_MIN_SIZES = [nil, 1_048_576, 524_288, 131_072].freeze
13
11
 
12
+ private
13
+
14
14
  def pushed_revision_uncached
15
15
  fs_cache.child('pushed_revision')
16
16
  end
data/lib/avmtrf1/ini.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/simple_cache'
4
- require 'pp' # rubocop:disable Lint/RedundantRequireStatement
4
+ require 'pp'
5
5
  require 'avmtrf1/ini/profile'
6
6
  require 'avmtrf1/patches/inifile'
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avmtrf1/red/server'
4
4
  require 'avmtrf1/red/helper'
5
- require 'pp' # rubocop:disable Lint/RedundantRequireStatement
5
+ require 'pp'
6
6
  require 'tempfile'
7
7
 
8
8
  module Avmtrf1
@@ -39,7 +39,7 @@ module Avmtrf1
39
39
 
40
40
  def file_put
41
41
  result = red_profile.put_file(file)
42
- require 'pp' # rubocop:disable Lint/RedundantRequireStatement
42
+ require 'pp'
43
43
  puts '>' * 20
44
44
  puts result
45
45
  puts '<' * 20
@@ -18,9 +18,7 @@ module Avmtrf1
18
18
  'Quando usando Selenium não mostra a interface gráfica do navegador web.'
19
19
  end
20
20
 
21
- def application
22
- ::Avmtrf1::Tools.application
23
- end
21
+ delegate :application, to: :'::Avmtrf1::Tools'
24
22
 
25
23
  def run
26
24
  ::Aranha::Selenium::DriverFactory::Base.default_headless = parsed.headless?
@@ -37,13 +37,24 @@ module Pd1Tools
37
37
  self.class.name.split('::')[-2].underscore.dasherize
38
38
  end
39
39
 
40
+ # @return [String]
40
41
  def stereotype_tag
41
- "#{platform_stereotype_tag}-#{platform_version}"
42
+ "#{platform_stereotype_tag}/#{platform_version}"
42
43
  end
43
44
 
44
45
  def generator_version
45
46
  ::Pd1Tools::VERSION
46
47
  end
48
+
49
+ # @return [String]
50
+ def tag_name
51
+ "#{super}/#{stereotype_tag}"
52
+ end
53
+
54
+ # @return [String]
55
+ def tag_version
56
+ tag_version_version
57
+ end
47
58
  end
48
59
  end
49
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pd1Tools
4
- VERSION = '0.46.0'
4
+ VERSION = '0.49.0'
5
5
  end
@@ -2,8 +2,12 @@ FROM php:%%PLATFORM_VERSION%%-apache
2
2
 
3
3
  %%APT_SETUP%%
4
4
 
5
- # Apache HTTP
5
+ # Apache HTTPD
6
+ RUN apt-get install -y ssl-cert
6
7
  RUN a2enmod rewrite
8
+ RUN echo 'ServerTokens Prod' > /etc/apache2/conf-available/zzz_after.conf
9
+ RUN echo 'ServerSignature Off' >> /etc/apache2/conf-available/zzz_after.conf
10
+ RUN a2enconf zzz_after
7
11
 
8
12
  # Extensão PHP "apcu"
9
13
  %%APCU_INSTALL%%
@@ -104,13 +108,10 @@ RUN apt-get install -y git unzip
104
108
  RUN curl -sS https://getcomposer.org/installer | \
105
109
  php -- --install-dir=/usr/local/bin --filename=composer
106
110
 
107
- # SSL
108
- RUN apt-get install -y ssl-cert
109
-
110
111
  # Inicializador
111
112
  RUN mkdir '/aux'
112
113
  RUN mkdir '/aux/eac-bash-lib'
113
- RUN curl -sS https://codeload.github.com/esquilo-azul/eac-bash-lib/tar.gz/refs/tags/v0.17.1 \
114
+ RUN curl -sS https://codeload.github.com/esquilo-azul/eac-bash-lib/tar.gz/refs/tags/v0.27.0 \
114
115
  | tar -xzf - --strip-components 1 -C '/aux/eac-bash-lib'
115
116
  ADD aux '/aux'
116
117
  CMD '/aux/start.sh'
@@ -17,6 +17,8 @@ function setup_site() {
17
17
  a2ensite "${2}"
18
18
  }
19
19
 
20
+ export APACHE_SITE_COMMONS="$(template_apply "$TEMPLATES_ROOT/apache_site_commons.conf")"
21
+
20
22
  infom "Configuração site Apache..."
21
23
  setup_site 'apache_site_nossl' '000-default'
22
24
  setup_site 'apache_site_ssl' 'default-ssl'
@@ -0,0 +1,12 @@
1
+ DocumentRoot "%%DOCUMENT_ROOT%%"
2
+
3
+ ErrorLog ${APACHE_LOG_DIR}/error.log
4
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
5
+
6
+ <Directory %%DOCUMENT_ROOT%%>
7
+ Options Indexes FollowSymLinks
8
+ AllowOverride All
9
+ Require all granted
10
+ </Directory>
11
+
12
+ RedirectMatch 404 /\.
@@ -1,12 +1,3 @@
1
1
  <VirtualHost *:80>
2
- DocumentRoot %%DOCUMENT_ROOT%%
3
-
4
- ErrorLog ${APACHE_LOG_DIR}/error.log
5
- CustomLog ${APACHE_LOG_DIR}/access.log combined
6
-
7
- <Directory %%DOCUMENT_ROOT%%>
8
- Options Indexes FollowSymLinks
9
- AllowOverride All
10
- Require all granted
11
- </Directory>
2
+ %%APACHE_SITE_COMMONS%%
12
3
  </VirtualHost>
@@ -3,14 +3,5 @@
3
3
  SSLCertificateFile "%%SSL_CERTIFICATE_FILE%%"
4
4
  SSLCertificateKeyFile "%%SSL_CERTIFICATE_KEY_FILE%%"
5
5
 
6
- DocumentRoot "%%DOCUMENT_ROOT%%"
7
-
8
- ErrorLog ${APACHE_LOG_DIR}/error.log
9
- CustomLog ${APACHE_LOG_DIR}/access.log combined
10
-
11
- <Directory %%DOCUMENT_ROOT%%>
12
- Options Indexes FollowSymLinks
13
- AllowOverride All
14
- Require all granted
15
- </Directory>
6
+ %%APACHE_SITE_COMMONS%%
16
7
  </VirtualHost>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pd1_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-13 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.24'
19
+ version: '0.25'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.24'
26
+ version: '0.25'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aranha-selenium
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -308,14 +308,14 @@ dependencies:
308
308
  requirements:
309
309
  - - "~>"
310
310
  - !ruby/object:Gem::Version
311
- version: '0.10'
311
+ version: '0.11'
312
312
  type: :development
313
313
  prerelease: false
314
314
  version_requirements: !ruby/object:Gem::Requirement
315
315
  requirements:
316
316
  - - "~>"
317
317
  - !ruby/object:Gem::Version
318
- version: '0.10'
318
+ version: '0.11'
319
319
  description:
320
320
  email:
321
321
  executables:
@@ -543,6 +543,7 @@ files:
543
543
  - template/pd1_tools/php/docker_images/base/aux/setup_apache_modules.sh
544
544
  - template/pd1_tools/php/docker_images/base/aux/setup_apache_sites.sh
545
545
  - template/pd1_tools/php/docker_images/base/aux/start.sh
546
+ - template/pd1_tools/php/docker_images/base/aux/templates/apache_site_commons.conf
546
547
  - template/pd1_tools/php/docker_images/base/aux/templates/apache_site_nossl.conf
547
548
  - template/pd1_tools/php/docker_images/base/aux/templates/apache_site_ssl.conf
548
549
  - template/pd1_tools/php/docker_images/base/aux/variables.sh