itamae-plugin-recipe-redmine 0.2.10 → 0.2.11

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: 07e7664ae16f518fd6bfe7017911bb9bd717c1aeca09b25382e05b90ebafd16b
4
- data.tar.gz: f41b81177630d03a517b6a27bcbd3261e6122fd20946498618ced2d383ce0175
3
+ metadata.gz: 877890b6741bafbe61b53b03336b2a5c6ff347424bcc1175cd26257dabd173f2
4
+ data.tar.gz: 29a5196cada4da362bf885b820b19f06ea1b54baadb537676816db7d28076b1b
5
5
  SHA512:
6
- metadata.gz: 7626eee99fe2724499a434478c8f40e7f50930e50d195099ac6f4c0bc3eabfb75a994cda69ff2f09961ce2c6f1e26176a7b8f70fa4ba68e331fb5b334b84bb86
7
- data.tar.gz: ce202e345df7546309199b331d20f3a48badd44e54f2c9a92c9b13206065cbfb1e71a3aa3d7a574d5500f911e5e5b21828c2368bc96839c559d7022c51c9dd04
6
+ metadata.gz: c358658dc21b73fe63c3b938a1366c69c3a5f358b13ba1bc8c794affdb5fcf21e8ae67128bac0f1b9bf65c7ce460d1132e7694360386ff5a03c8fcadaafce7db
7
+ data.tar.gz: 776bc83087840d580edc1372e272884eb99ae9d286b2108d6b7e58971d2fd08541b8f312081f5118ac6f9be1d5257a0c52016afc3452b9e6359365aea38dd255
@@ -16,45 +16,43 @@ insecure = ENV['INSECURE'] ? '--no-check-certificate' : ''
16
16
  end
17
17
  end
18
18
 
19
- case "#{node.platform_family}-#{node.platform_version}"
20
- when /rhel-7\.(.*?)/
21
- %w{
22
- ipa-pgothic-fonts
23
- }.each do |name|
19
+ install_fonts = ->(fonts) {
20
+ fonts.each do |name|
24
21
  package name do
25
22
  user 'root'
26
23
  end
27
24
  end
25
+ }
28
26
 
29
- %w{
30
- ImageMagick
31
- ImageMagick-devel
32
- }.each do |name|
27
+ install_imagemagick_with_epel = -> {
28
+ %w[ImageMagick ImageMagick-devel].each do |name|
33
29
  package name do
34
30
  user 'root'
35
31
  options '--enablerepo=epel'
36
32
  end
37
33
  end
38
- when /rhel-8\.(.*?)/
39
- %w{
40
- google-noto-sans-cjk-jp-fonts
41
- }.each do |name|
42
- package name do
43
- user 'root'
44
- end
45
- end
34
+ }
46
35
 
47
- %w{
48
- ImageMagick
49
- ImageMagick-devel
50
- }.each do |name|
51
- package name do
52
- user 'root'
53
- options '--enablerepo=epel'
54
- end
55
- end
36
+ # platform_familyを自前で実装
37
+ platform_family = case node.platform
38
+ when 'centos', 'redhat', 'amazon', 'almalinux', 'rocky'
39
+ 'rhel'
40
+ when 'ubuntu', 'debian'
41
+ 'debian'
42
+ else
43
+ raise "未知のplatform: #{node.platform}"
44
+ end
45
+
46
+ platform_key = "#{platform_family}-#{node.platform_version}"
47
+
48
+ if platform_key.match?(/rhel-7\./)
49
+ install_fonts.call(%w[ipa-pgothic-fonts])
50
+ install_imagemagick_with_epel.call
51
+ elsif platform_key.match?(/rhel-8\./)
52
+ install_fonts.call(%w[google-noto-sans-cjk-jp-fonts])
53
+ install_imagemagick_with_epel.call
56
54
  else
57
- raise 'サポート対象外のOSです。'
55
+ raise "サポート対象外のOSです。"
58
56
  end
59
57
 
60
58
  directory '/opt/redmine' do
@@ -0,0 +1 @@
1
+ cc0ddafa6fe6f5192236a27cec64e3466023a12c92c1da4abb680248639f678c redmine-5.1.9.tar.gz
@@ -2,12 +2,12 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Redmine
5
- VERSION = '0.2.10'
5
+ VERSION = '0.2.11'
6
6
 
7
7
  REDMINE_VERSION = [
8
- REDMINE_VERSION_MAJOR = '4',
9
- REDMINE_VERSION_MINOR = '2',
10
- REDMINE_VERSION_PATCH = '11'
8
+ REDMINE_VERSION_MAJOR = '5',
9
+ REDMINE_VERSION_MINOR = '1',
10
+ REDMINE_VERSION_PATCH = '9'
11
11
  ].join('.')
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-redmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - y.matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-13 00:00:00.000000000 Z
11
+ date: 2025-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -84,6 +84,7 @@ files:
84
84
  - lib/itamae/plugin/recipe/redmine/redmine-4.2.11_sha256sum.txt
85
85
  - lib/itamae/plugin/recipe/redmine/redmine-4.2.6_sha256sum.txt
86
86
  - lib/itamae/plugin/recipe/redmine/redmine-4.2.7_sha256sum.txt
87
+ - lib/itamae/plugin/recipe/redmine/redmine-5.1.9_sha256sum.txt
87
88
  - lib/itamae/plugin/recipe/redmine/templates/4.1.7/Gemfile.local.erb
88
89
  - lib/itamae/plugin/recipe/redmine/templates/4.2.11/Gemfile.local.erb
89
90
  - lib/itamae/plugin/recipe/redmine/templates/configuration.yml.erb
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  requirements: []
110
- rubygems_version: 3.4.22
111
+ rubygems_version: 3.3.26
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: itamae recipe to ease redmine installation