pd1_tools 0.46.0 → 0.48.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: a111980c747031f68b2c39fcbf051c5c3463645061b3198e7d8ea7fc627f240d
4
+ data.tar.gz: e7ce309ec2c8bb26c938ced74e45e50d8a78f3b28c871eca60ee9481b3ce4c9e
5
5
  SHA512:
6
- metadata.gz: a54f3cc1466a53a1e6502e7c154f47051ff46a129ee5946d6e4f7ad349c7f921283d113ec10cc4dde63ffb1d59fd09f3fb34e3ca6e17a38134009e8e1bac5f73
7
- data.tar.gz: 70b66ded731c596f144d25003e2a1005b3a3ca51ec8849da978d67bb01c4786f5e946fd8e27235b9bb65cb6dd8fcfd9958ac4a5ca4415718f5fb83a669b13a26
6
+ metadata.gz: f09bc45b2ad88e40be7d72bc4836d700b4e19f7c481d1c3735aeb1d443fb6ffc766b3bf39eaac2694319297e5dc282cd14b1dde10fcf3f5183613c27d2ac6f8b
7
+ data.tar.gz: e879bfa81995317485ea7af8e53b98207aa653675a39fced160e8e59dab645fa21dab6b43e475ba837a188b9f9a45d582ce9b3dcf447d3afa42ba37e912fa7a6
@@ -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
@@ -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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pd1Tools
4
- VERSION = '0.46.0'
4
+ VERSION = '0.48.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.48.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-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -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