eac_tools 0.86.2 → 0.86.3

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: 971a844d5fe39f713dc7a9b084aa58f9f3f906131004e0660f32990fc96a2bc3
4
- data.tar.gz: cc342a3c34371fc6a245150be49105580a53f2761f1b9272a16691864b3dfe78
3
+ metadata.gz: 2e0a08240490efcb95d3a2cfe887090c9cc3c2eec48f9a4429f4e920523adfed
4
+ data.tar.gz: 14aa56767dab9d77feaed53aef6ee7b08eb3acdfc5b90322b7e6c54dffa1a717
5
5
  SHA512:
6
- metadata.gz: 48a6afe66fec33a33278c334b9471354350bc1f118ec4f7658e082c005a625f7c5587a5ef0063ba0d94477b38cd89ddc97e3509994ae00f329823b35a0065006
7
- data.tar.gz: 05011c8c364dfc4947403deb2664fe6b2c3feec9ce3e1495cf1e86bd54091dbbe12bcf6ee439709e1ea3ec191b72aba9f72a18f364a54d388af27b08af3c197e
6
+ metadata.gz: cff01158afb0ea1cb1d42cb0cd35694a17cb9b5469786c6a2b6e5fccbb22865a5712bbee5b9b331c2f82247865151f2977533beb9255463c1f617485b600a934
7
+ data.tar.gz: bbc04fce854f2c56e0b19b567dc5b3916799173e9e7d56e4933e3eec0787346d29c02060a070d916c5fd6f5964483ab71833c0eec5312356ec063bbd8a9fc3ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.86.2)
4
+ eac_tools (0.86.3)
5
5
  avm (~> 0.85)
6
6
  avm-eac_asciidoctor_base0 (~> 0.22)
7
7
  avm-eac_generic_base0 (~> 0.12, >= 0.12.2)
@@ -9,7 +9,7 @@ PATH
9
9
  avm-eac_gitlab_base0 (~> 0.4)
10
10
  avm-eac_latex_base0 (~> 0.3, >= 0.3.2)
11
11
  avm-eac_php_base0 (~> 0.4, >= 0.4.3)
12
- avm-eac_postgresql_base0 (~> 0.5, >= 0.5.2)
12
+ avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
13
13
  avm-eac_python_base0 (~> 0.2, >= 0.2.2)
14
14
  avm-eac_rails_base0 (~> 0.11)
15
15
  avm-eac_rails_base1 (~> 0.10)
@@ -25,9 +25,9 @@ PATH
25
25
  PATH
26
26
  remote: sub/avm-eac_postgresql_base0
27
27
  specs:
28
- avm-eac_postgresql_base0 (0.5.2)
29
- avm (~> 0.79)
30
- eac_ruby_utils (~> 0.119, >= 0.119.1)
28
+ avm-eac_postgresql_base0 (0.5.3)
29
+ avm (~> 0.85)
30
+ eac_ruby_utils (~> 0.121)
31
31
 
32
32
  PATH
33
33
  remote: sub/avm-eac_redmine_plugin_base0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.86.2'
4
+ VERSION = '0.86.3'
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}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
- s.add_dependency 'avm', '~> 0.79'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.1'
16
+ s.add_dependency 'avm', '~> 0.85'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.121'
17
18
 
18
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
19
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.10'
19
20
  end
@@ -29,7 +29,7 @@ module Avm
29
29
  end
30
30
 
31
31
  def current_owner
32
- root_query(<<~SQL
32
+ root_query(<<~SQL.squish
33
33
  SELECT pg_catalog.pg_get_userbyid(datdba)
34
34
  FROM pg_catalog.pg_database
35
35
  WHERE datname = '#{name}'
@@ -43,7 +43,7 @@ module Avm
43
43
 
44
44
  def password_ok?
45
45
  instance.psql_command_command('SELECT 1', false)
46
- .execute!(exit_outputs: { 512 => 'login_failed' }).strip == '1'
46
+ .execute!(exit_outputs: { 512 => 'login_failed' }).strip == '1'
47
47
  end
48
48
 
49
49
  def user_exist?
@@ -41,12 +41,12 @@ module Avm
41
41
  "@ESC_PGPASSWORD=#{password}"
42
42
  end
43
43
 
44
- def psql_command(database = true)
44
+ def psql_command(database = true) # rubocop:disable Style/OptionalBooleanParameter
45
45
  env.command(password_command_argument, 'psql', '--variable', 'ON_ERROR_STOP=t',
46
46
  *common_command_args(database))
47
47
  end
48
48
 
49
- def psql_command_command(sql, database = true)
49
+ def psql_command_command(sql, database = true) # rubocop:disable Style/OptionalBooleanParameter
50
50
  psql_command(database).append(['--quiet', '--tuples-only', '--command', sql])
51
51
  end
52
52
 
@@ -56,7 +56,7 @@ module Avm
56
56
  env.command(*args)
57
57
  end
58
58
 
59
- def common_command_args(database = true)
59
+ def common_command_args(database = true) # rubocop:disable Style/OptionalBooleanParameter
60
60
  ['--host', host, '--username', user, '--port', port,
61
61
  (database ? name : MAINTENANCE_DATABASE)]
62
62
  end
@@ -71,7 +71,7 @@ module Avm
71
71
  # @return [EacRubyUtils::Envs::Command]
72
72
  def pg_dump_command
73
73
  env.command('pg_dump', '--no-privileges', '--no-owner', *common_command_args)
74
- .envvar('PGPASSWORD', password)
74
+ .envvar('PGPASSWORD', password)
75
75
  end
76
76
  end
77
77
  end
@@ -10,7 +10,7 @@ module Avm
10
10
  SCHEMA_VAR = '%%SCHEMA%%'
11
11
  TABLE_PARTS_SEPARATOR = '/'
12
12
  TABLES_SQL = "select schemaname || '#{TABLE_PARTS_SEPARATOR}' || tablename from " \
13
- "pg_tables where schemaname = '#{SCHEMA_VAR}'"
13
+ "pg_tables where schemaname = '#{SCHEMA_VAR}'"
14
14
 
15
15
  def do_clear
16
16
  ts = tables
@@ -35,7 +35,7 @@ module Avm
35
35
  # @param table_list [Array<String>]
36
36
  # @return [String]
37
37
  def drop_tables_sql(table_list)
38
- 'drop table ' + table_list.map(&:to_s).join(', ') + ' cascade'
38
+ "drop table #{table_list.map(&:to_s).join(', ')} cascade"
39
39
  end
40
40
 
41
41
  # @param parts [Array<String>, Strings]
@@ -51,8 +51,8 @@ module Avm
51
51
 
52
52
  # @return [Array<String>]
53
53
  def tables
54
- run_sql(tables_sql).each_line.map(&:strip).reject(&:blank?)
55
- .map { |line| join_table_parts(line) }
54
+ run_sql(tables_sql).each_line.map(&:strip).compact_blank
55
+ .map { |line| join_table_parts(line) }
56
56
  end
57
57
 
58
58
  # @return [String]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacPostgresqlBase0
5
- VERSION = '0.5.2'
5
+ VERSION = '0.5.3'
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__))
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.86.2
4
+ version: 0.86.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
@@ -135,7 +135,7 @@ dependencies:
135
135
  version: '0.5'
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.5.2
138
+ version: 0.5.3
139
139
  type: :runtime
140
140
  prerelease: false
141
141
  version_requirements: !ruby/object:Gem::Requirement
@@ -145,7 +145,7 @@ dependencies:
145
145
  version: '0.5'
146
146
  - - ">="
147
147
  - !ruby/object:Gem::Version
148
- version: 0.5.2
148
+ version: 0.5.3
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: avm-eac_python_base0
151
151
  requirement: !ruby/object:Gem::Requirement