Skip to content

Commit 210b6ea

Browse files
authored
Merge pull request #760 from voxpupuli/modulesync
modulesync 10.6.0
2 parents a1bc10a + 9a7d35e commit 210b6ea

15 files changed

Lines changed: 150 additions & 132 deletions

File tree

‎.devcontainer/devcontainer.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
21
{
32
"name": "VoxBox",
43
"image": "ghcr.io/voxpupuli/voxbox:latest"

‎.msync.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Managed by modulesync - DO NOT EDIT
33
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
44

5-
modulesync_config_version: '10.5.0'
5+
modulesync_config_version: '10.6.0'

‎.rubocop_todo.yml‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
# This configuration was generated by
2-
# `rubocop --auto-gen-config`
3-
# on 2023-08-18 06:32:34 UTC using RuboCop version 1.50.2.
2+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
3+
# using RuboCop version 1.85.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 22
10+
RSpec/LeakyLocalVariable:
11+
Exclude:
12+
- 'spec/classes/php_spec.rb'
13+
- 'spec/defines/extension_rhscl_spec.rb'
14+
- 'spec/defines/extension_spec.rb'
15+
- 'spec/functions/to_hash_settings_spec.rb'
16+
17+
# Offense count: 1
18+
RSpec/SpecFilePathSuffix:
19+
Exclude:
20+
- 'spec/functions/ensure_prefix.rb'
21+
22+
# Offense count: 1
23+
# This cop supports unsafe autocorrection (--autocorrect-all).
24+
Style/ReduceToHash:
25+
Exclude:
26+
- 'lib/puppet/parser/functions/to_hash_settings.rb'

‎Gemfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
55

66
group :test do
7-
gem 'voxpupuli-test', '~> 13.0', :require => false
7+
gem 'voxpupuli-test', '~> 14.0', :require => false
88
gem 'puppet_metadata', '~> 6.0', :require => false
99
end
1010

@@ -18,7 +18,7 @@ group :system_tests do
1818
end
1919

2020
group :release do
21-
gem 'voxpupuli-release', '~> 5.0', :require => false
21+
gem 'voxpupuli-release', '~> 5.3', :require => false
2222
end
2323

2424
gem 'rake', :require => false

‎lib/facter/phpversion.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
output = Facter::Util::Resolution.exec('php -v')
66

77
unless output.nil?
8-
output.split("\n").first.split.
9-
grep(%r{^(?:(\d+)\.)(?:(\d+)\.)?(\*|\d+)}).first
8+
output.split("\n").first.split
9+
.grep(%r{^(?:(\d+)\.)(?:(\d+)\.)?(\*|\d+)}).first
1010
end
1111
end
1212
end

‎lib/puppet/provider/package/pear.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def self.pearsplit(desc, channel)
4949
{
5050
name: name,
5151
vendor: channel,
52-
ensure: state == 'stable' ? version : state,
53-
provider: self.name
52+
ensure: (state == 'stable') ? version : state,
53+
provider: self.name,
5454
}
5555
else
5656
Puppet.warning format('Could not match %s', desc)
@@ -85,7 +85,7 @@ def install(useversion = true)
8585
if @resource[:responsefile]
8686
Puppet::Util::Execution.execute(
8787
[command(:pear)] + command,
88-
stdinfile: @resource[:responsefile]
88+
stdinfile: @resource[:responsefile],
8989
)
9090
else
9191
pear(*command)

‎lib/puppet/provider/package/pecl.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def convert_to_pear
2525

2626
def install(useversion = true)
2727
convert_to_pear
28-
super(useversion)
28+
super
2929
end
3030

3131
def latest

‎spec/classes/php_fpm_config_spec.rb‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@
2121
{
2222
inifile: '/etc/php5/conf.d/unique-name.ini',
2323
settings: {
24-
'apc.enabled' => 1
25-
}
24+
'apc.enabled' => 1,
25+
},
2626
}
2727
end
2828

2929
it do
3030
is_expected.to contain_class('php::fpm::config').with(
3131
inifile: '/etc/php5/conf.d/unique-name.ini',
3232
settings: {
33-
'apc.enabled' => 1
34-
}
33+
'apc.enabled' => 1,
34+
},
3535
)
3636
end
3737

3838
it do
3939
is_expected.to contain_php__config('fpm').with(
4040
file: '/etc/php5/conf.d/unique-name.ini',
4141
config: {
42-
'apc.enabled' => 1
43-
}
42+
'apc.enabled' => 1,
43+
},
4444
)
4545
end
4646
end

‎spec/classes/php_spec.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@
299299
'PHP/memory_limit' => '300M',
300300
'PHP/safe_mode_include_dir' => :undef,
301301
'PHP/error_reporting' => '',
302-
'PHP/max_execution_time' => 60
303-
}
302+
'PHP/max_execution_time' => 60,
303+
},
304304
}
305305
end
306306

@@ -314,7 +314,7 @@
314314
let(:params) do
315315
{
316316
'settings' => { 'PHP/memory_limit' => '300M' },
317-
'cli_settings' => { 'PHP/memory_limit' => '1000M' }
317+
'cli_settings' => { 'PHP/memory_limit' => '1000M' },
318318
}
319319
end
320320

‎spec/defines/config_spec.rb‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
let(:params) do
1717
{
1818
file: '/etc/php/5.6/conf.d/unique-name.ini',
19-
config: {}
19+
config: {},
2020
}
2121
end
2222

@@ -29,8 +29,8 @@
2929
{
3030
file: '/etc/php/5.6/conf.d/unique-name.ini',
3131
config: {
32-
'apc.enabled' => 1
33-
}
32+
'apc.enabled' => 1,
33+
},
3434
}
3535
end
3636

@@ -42,7 +42,7 @@
4242
let(:params) do
4343
{
4444
file: '/etc/php/5.6/conf.d/unique-name.ini',
45-
config: {}
45+
config: {},
4646
}
4747
end
4848

@@ -54,7 +54,7 @@
5454
let(:params) do
5555
{
5656
file: '/etc/php/5.6/conf.d/unique-name.ini',
57-
config: 'hello world'
57+
config: 'hello world',
5858
}
5959
end
6060

@@ -66,7 +66,7 @@
6666
let(:params) do
6767
{
6868
file: '/etc/php5/conf.d/unique-name.ini',
69-
config: {}
69+
config: {},
7070
}
7171
end
7272

@@ -79,8 +79,8 @@
7979
{
8080
file: '/etc/php5/conf.d/unique-name.ini',
8181
config: {
82-
'apc.enabled' => 1
83-
}
82+
'apc.enabled' => 1,
83+
},
8484
}
8585
end
8686

@@ -92,7 +92,7 @@
9292
let(:params) do
9393
{
9494
file: '/etc/php5/conf.d/unique-name.ini',
95-
config: {}
95+
config: {},
9696
}
9797
end
9898

@@ -104,7 +104,7 @@
104104
let(:params) do
105105
{
106106
file: '/etc/php5/conf.d/unique-name.ini',
107-
config: 'hello world'
107+
config: 'hello world',
108108
}
109109
end
110110

0 commit comments

Comments
 (0)