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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea09e9b4dcde84766fa7083c8bb1a86c8491af61c42e2e8347c870aadb751899
4
- data.tar.gz: 77f7d6e095253daa31e11b7633735e0c707b16de3adbbadeb5291f70a9207c37
3
+ metadata.gz: c3f8d221692d8189ce0007c548af84a7ba43007f1f2f788747714d760d62fa83
4
+ data.tar.gz: 32225a7f6c901ed25a34b73050bad61c7d1f2a5bf63c85abe3f9e2b93f889062
5
5
  SHA512:
6
- metadata.gz: 15e293bbfbc61dcb4b7bc4606c8f00e82bd754b2615b9a30532633e5a898ef12b8de85770254f233027c40c2fd72f4e489d592e2a8d3a4aceaee5f87e1b9b7bb
7
- data.tar.gz: 851585204c32c83e9fa190ebb66e02eafdb350bbd173c52c1d00cf378a709f84e2665c8643792497340540cb7a744f74b000fd0e990a8eca9d0c1669c14b1d2e
6
+ metadata.gz: 0dde7bc05c81eeddaa1b27d4e253056e5f99e3f23abaf16cb5e4044de88d799edb29ece3b7ff2f8234da85c0ced90029a3ed528eb846b5bc9e5005d0edd83324
7
+ data.tar.gz: 9c5de3e05c3bd5920ae0c8ebc5b01fe27134e0993b7cd7c750b932097e2230e6aacc328eb26b924de6220905ab526e0a00fdc303ef327550d9275de0ab5fafb2
data/README.md CHANGED
@@ -21,10 +21,12 @@ Or install it yourself as:
21
21
  ## Usage
22
22
 
23
23
  from command line:
24
+
24
25
  $ itamae local -n redmine::default # dry-run
25
26
  $ itamae local redmine::default # real-run
26
27
 
27
28
  from recipe:
29
+
28
30
  include_recipe 'redmine'
29
31
 
30
32
  ## Development
@@ -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.33"
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
- execute 'apply patch to config.session_store :cookie_store ... secure:true' do
83
- command "patch -p1 <#{patch_file}"
84
- not_if "patch -p1 -Rsf --dry-run <#{patch_file}"
85
- cwd '/opt/redmine/current'
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 c40a580..e748028 100644
2
+ index 1905b45..4316f1a 100644
3
3
  --- a/config/application.rb
4
4
  +++ b/config/application.rb
5
- @@ -80,6 +80,7 @@ module RedmineApp
6
- config.session_store :cookie_store,
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
@@ -0,0 +1,2 @@
1
+ # https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md#2212--2023-05-11
2
+ gem 'loofah', '~> 2.19.1'
@@ -2,12 +2,12 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Redmine
5
- VERSION = "0.1.7"
5
+ VERSION = "0.2.2"
6
6
 
7
7
  REDMINE_VERSION = [
8
8
  REDMINE_VERSION_MAJOR = '4',
9
- REDMINE_VERSION_MINOR = '1',
10
- REDMINE_VERSION_PATCH = '7'
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.1.7
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: 2022-07-13 00:00:00.000000000 Z
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.33
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.33
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.2.29
108
+ rubygems_version: 3.3.16
107
109
  signing_key:
108
110
  specification_version: 4
109
111
  summary: itamae recipe to ease redmine installation