itamae-plugin-recipe-redmine 0.2.5 → 0.2.7

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: c8812c92429b755e05e55e07c1e8150f13ec5fe173973c77a527c78256978eee
4
- data.tar.gz: 11a6213f785df79ad5d8f28e5e6ff06070d0b810d579445b2654a72a06d257f4
3
+ metadata.gz: 3fd2b3a23d39120b7e85eb2face5b523999d923f2e8c3d3ef6b9ddb476c4aba5
4
+ data.tar.gz: 8148d10467cd848b2f7db7ab8751999c4c9c5658c6c4728ff5d2bcd9776adc8c
5
5
  SHA512:
6
- metadata.gz: f92f2b7e4f914c488115a1e2bb114f66aafc9259b7364b9e70ad03f79493b7bb43faeca086c97eac5683a8d9aea8f5ee0857433ee894a08e90cdccd10689cfbf
7
- data.tar.gz: 16f6d90c309ec644d0dac1a5af92fa5dfcac6145e7f74e54b557f92df9fa630a178fc9f08e0d9f9b87a04431a71957953812c0d0dd55cd80a7be7b840b3e6aab
6
+ metadata.gz: 344cea56a84b47aa36a2adb6d179b5fc504bebe795868159f3f28add97d87e08768df42ed33e6b4663fda2b89afa8528ab991dcbcba44feeaee344e00bede39e
7
+ data.tar.gz: 1c30cf1f648b3eab84c7fe55d1f9acebcbaa881d1620d78025089840eb4b072eab9b01a6ea051298d560defaca4035f79fba1640944d81dfbab07041892907d2
@@ -3,8 +3,6 @@ version = ENV['REDMINE_VERSION'] || Itamae::Plugin::Recipe::Redmine::REDMINE_VER
3
3
  insecure = ENV['INSECURE'] ? '--no-check-certificate' : ''
4
4
 
5
5
  %w{
6
- ImageMagick
7
- ImageMagick-devel
8
6
  expect
9
7
  ipa-pgothic-fonts
10
8
  libcurl-devel
@@ -19,6 +17,20 @@ insecure = ENV['INSECURE'] ? '--no-check-certificate' : ''
19
17
  end
20
18
  end
21
19
 
20
+ case "#{node.platform_family}-#{node.platform_version}"
21
+ when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/
22
+ %w{
23
+ ImageMagick
24
+ ImageMagick-devel
25
+ }.each do |name|
26
+ package name do
27
+ user 'root'
28
+ options '--enablerepo=epel'
29
+ end
30
+ else
31
+ raise 'サポート対象外のOSです。'
32
+ end
33
+
22
34
  directory '/opt/redmine' do
23
35
  user 'root'
24
36
  owner ENV['USER']
@@ -61,13 +73,13 @@ template "/opt/redmine/redmine-#{version}/config/configuration.yml" do
61
73
  mode '644'
62
74
  end
63
75
 
64
- if ENV['GEMFILE_LOCAL'] || version == '4.1.7'
76
+ if ENV['GEMFILE_LOCAL'] || %w{4.1.7 4.2.11}.include?(version)
65
77
  template "/opt/redmine/redmine-#{version}/Gemfile.local" do
66
78
  user 'root'
67
79
  owner ENV['USER']
68
80
  group ENV['USER']
69
81
  mode '644'
70
- source ENV['GEMFILE_LOCAL'] || ::File.join(::File.dirname(__FILE__), 'templates/Gemfile.local.erb')
82
+ source ENV['GEMFILE_LOCAL'] || ::File.join(::File.dirname(__FILE__), "templates/#{version}/Gemfile.local.erb")
71
83
  end
72
84
  end
73
85
 
@@ -1,2 +1,5 @@
1
1
  # https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md#2212--2023-05-11
2
2
  gem 'loofah', '~> 2.19.1'
3
+
4
+ # https://www.redmine.org/issues/40802#note-11
5
+ gem 'builder', '~> 3.2.4'
@@ -0,0 +1,2 @@
1
+ # https://www.redmine.org/issues/40802#note-11
2
+ gem 'builder', '~> 3.2.4'
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Redmine
5
- VERSION = '0.2.5'
5
+ VERSION = '0.2.7'
6
6
 
7
7
  REDMINE_VERSION = [
8
8
  REDMINE_VERSION_MAJOR = '4',
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.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - y.matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2025-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -84,7 +84,8 @@ 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/templates/Gemfile.local.erb
87
+ - lib/itamae/plugin/recipe/redmine/templates/4.1.7/Gemfile.local.erb
88
+ - lib/itamae/plugin/recipe/redmine/templates/4.2.11/Gemfile.local.erb
88
89
  - lib/itamae/plugin/recipe/redmine/templates/configuration.yml.erb
89
90
  - lib/itamae/plugin/recipe/redmine/version.rb
90
91
  homepage: https://github.com/maedadev/itamae-plugin-recipe-redmine