itamae-plugin-recipe-redmine 0.1.7 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/itamae-plugin-recipe-redmine.gemspec +1 -1
- data/lib/itamae/plugin/recipe/redmine/default.rb +18 -4
- data/lib/itamae/plugin/recipe/redmine/files/application.rb.diff +4 -4
- data/lib/itamae/plugin/recipe/redmine/redmine-4.2.6_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/redmine/templates/Gemfile.local.erb +2 -0
- data/lib/itamae/plugin/recipe/redmine/version.rb +3 -3
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3f8d221692d8189ce0007c548af84a7ba43007f1f2f788747714d760d62fa83
|
4
|
+
data.tar.gz: 32225a7f6c901ed25a34b73050bad61c7d1f2a5bf63c85abe3f9e2b93f889062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dde7bc05c81eeddaa1b27d4e253056e5f99e3f23abaf16cb5e4044de88d799edb29ece3b7ff2f8234da85c0ced90029a3ed528eb846b5bc9e5005d0edd83324
|
7
|
+
data.tar.gz: 9c5de3e05c3bd5920ae0c8ebc5b01fe27134e0993b7cd7c750b932097e2230e6aacc328eb26b924de6220905ab526e0a00fdc303ef327550d9275de0ab5fafb2
|
data/README.md
CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_dependency 'itamae', '~> 1.10', '>= 1.10.2'
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler", "~> 2.2
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
28
28
|
spec.add_development_dependency "rake", "~> 12.3.3"
|
29
29
|
end
|
@@ -61,6 +61,16 @@ template "/opt/redmine/redmine-#{version}/config/configuration.yml" do
|
|
61
61
|
mode '644'
|
62
62
|
end
|
63
63
|
|
64
|
+
if ENV['GEMFILE_LOCAL'] || version == '4.1.7'
|
65
|
+
template "/opt/redmine/redmine-#{version}/Gemfile.local" do
|
66
|
+
user 'root'
|
67
|
+
owner ENV['USER']
|
68
|
+
group ENV['USER']
|
69
|
+
mode '644'
|
70
|
+
source ENV['GEMFILE_LOCAL'] || 'Gemfile.local'
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
64
74
|
execute 'bundle install --without development test --path vendor/bundle' do
|
65
75
|
cwd "/opt/redmine/redmine-#{version}"
|
66
76
|
command <<-EOF
|
@@ -79,8 +89,12 @@ link 'current' do
|
|
79
89
|
end
|
80
90
|
|
81
91
|
patch_file = "#{File.dirname(__FILE__)}/files/application.rb.diff"
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
92
|
+
if version == '4.2.6'
|
93
|
+
execute 'apply patch to config.session_store :cookie_store ... secure:true' do
|
94
|
+
command "patch -p1 <#{patch_file}"
|
95
|
+
not_if "patch -p1 -Rsf --dry-run <#{patch_file}"
|
96
|
+
cwd '/opt/redmine/current'
|
97
|
+
end
|
98
|
+
else
|
99
|
+
Itamae.logger.warn "patch(#{patch_file}) is just for redmine #{version}, skipped."
|
86
100
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
diff --git a/config/application.rb b/config/application.rb
|
2
|
-
index
|
2
|
+
index 1905b45..4316f1a 100644
|
3
3
|
--- a/config/application.rb
|
4
4
|
+++ b/config/application.rb
|
5
|
-
@@ -
|
6
|
-
|
5
|
+
@@ -81,6 +81,7 @@ module RedmineApp
|
6
|
+
:cookie_store,
|
7
7
|
:key => '_redmine_session',
|
8
8
|
:path => config.relative_url_root || '/',
|
9
9
|
+ :secure => true,
|
10
10
|
:same_site => :lax
|
11
|
+
)
|
11
12
|
|
12
|
-
if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
|
@@ -0,0 +1 @@
|
|
1
|
+
022cb2eee0f8823fd27e2e93373086a29b4bb11215ee6dc7012b5ef2a3bada4c redmine-4.2.6.tar.gz
|
@@ -2,12 +2,12 @@ module Itamae
|
|
2
2
|
module Plugin
|
3
3
|
module Recipe
|
4
4
|
module Redmine
|
5
|
-
VERSION = "0.
|
5
|
+
VERSION = "0.2.2"
|
6
6
|
|
7
7
|
REDMINE_VERSION = [
|
8
8
|
REDMINE_VERSION_MAJOR = '4',
|
9
|
-
REDMINE_VERSION_MINOR = '
|
10
|
-
REDMINE_VERSION_PATCH = '
|
9
|
+
REDMINE_VERSION_MINOR = '2',
|
10
|
+
REDMINE_VERSION_PATCH = '6'
|
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.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- y-matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.2
|
39
|
+
version: '2.2'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.2
|
46
|
+
version: '2.2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,6 +82,8 @@ files:
|
|
82
82
|
- lib/itamae/plugin/recipe/redmine/redmine-4.1.1_sha256sum.txt
|
83
83
|
- lib/itamae/plugin/recipe/redmine/redmine-4.1.5_sha256sum.txt
|
84
84
|
- lib/itamae/plugin/recipe/redmine/redmine-4.1.7_sha256sum.txt
|
85
|
+
- lib/itamae/plugin/recipe/redmine/redmine-4.2.6_sha256sum.txt
|
86
|
+
- lib/itamae/plugin/recipe/redmine/templates/Gemfile.local.erb
|
85
87
|
- lib/itamae/plugin/recipe/redmine/templates/configuration.yml.erb
|
86
88
|
- lib/itamae/plugin/recipe/redmine/version.rb
|
87
89
|
homepage: https://github.com/maedadev/itamae-plugin-recipe-redmine
|
@@ -103,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
105
|
- !ruby/object:Gem::Version
|
104
106
|
version: '0'
|
105
107
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.3.16
|
107
109
|
signing_key:
|
108
110
|
specification_version: 4
|
109
111
|
summary: itamae recipe to ease redmine installation
|