redmine_with_git 0.6.2 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/redmine_with_git/tableless/load.rb +1 -1
- data/config/initializers/000_dependencies.rb +6 -1
- data/config/initializers/001_patches.rb +7 -0
- data/init.rb +0 -3
- data/installer/default_settings.sh +0 -36
- data/installer/setup.sh +35 -0
- data/installer/tasks/redmine_enabled_scm_setting.sh +1 -2
- data/installer/tasks/redmine_git_hosting.sh +1 -1
- data/installer/tasks/redmine_git_hosting_settings.sh +2 -2
- data/lib/redmine_with_git.rb +7 -0
- data/lib/redmine_with_git/version.rb +1 -1
- metadata +10 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0042c0866a1c3837ee497d22bc60af1c308205aacfd5ed3dcbc1f8f5d18a1d55
|
4
|
+
data.tar.gz: 4900f7e85ee5f940d7a8fbe04a5d865c9b7fec47e86d47fd21a618d35df40493
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f5f9e2047c92a341762015813cd34e6d375267a3db52c3a2ae6f60249c9b9efec82920dcf3ecc47309655e330e1f03eed6d2c283ec673e98fe3c4d1753e6b16
|
7
|
+
data.tar.gz: dae66e51c807e2c87df8242a8207f8f538320f14e0463029bca54d25679d00135a93e16aba1363bcb2f8e3f8ffba28df0cb1b252b7aa9f01f5f735d021dc2db2
|
@@ -2,10 +2,15 @@
|
|
2
2
|
|
3
3
|
Redmine::Plugin.post_register :redmine_with_git do
|
4
4
|
# Source: https://github.com/esquilo-azul/redmine_nonproject_modules
|
5
|
-
requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.3.
|
5
|
+
requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.3.1')
|
6
6
|
# Source: https://github.com/jbox-web/redmine_bootstrap_kit.git
|
7
7
|
# Note: redmine_bootstrap_kit is a redmine_git_hosting's dependency.
|
8
8
|
requires_redmine_plugin(:redmine_bootstrap_kit, version_or_higher: '0.2.5')
|
9
9
|
# Source: https://github.com/jbox-web/redmine_git_hosting.git
|
10
10
|
requires_redmine_plugin(:redmine_git_hosting, version_or_higher: '1.2.3')
|
11
|
+
|
12
|
+
# Source: https://github.com/esquilo-azul/redmine_installer
|
13
|
+
if ::Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
|
14
|
+
requires_redmine_plugin(:redmine_installer, version_or_higher: '0.10.0')
|
15
|
+
end
|
11
16
|
end
|
@@ -1,4 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
apply_patches_version_limit = ::Gem::Version.new('4.0.0')
|
4
|
+
redmine_git_hosting_version = ::Gem::Version.new(
|
5
|
+
::Redmine::Plugin.registered_plugins[:redmine_git_hosting].version
|
6
|
+
)
|
7
|
+
|
8
|
+
return unless redmine_git_hosting_version < apply_patches_version_limit
|
9
|
+
|
3
10
|
require 'redmine_with_git/patches/redmine_git_hosting/cache/database_patch'
|
4
11
|
require 'redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch'
|
data/init.rb
CHANGED
@@ -1,43 +1,7 @@
|
|
1
|
-
# Auxilary functions
|
2
|
-
function sanitize_boolean_var {
|
3
|
-
if [ "$1" != 'false' -a "$1" != 'true' ]; then
|
4
|
-
if [ -n "$1" ]; then
|
5
|
-
echo 'true'
|
6
|
-
else
|
7
|
-
echo 'false'
|
8
|
-
fi
|
9
|
-
else
|
10
|
-
echo "$1"
|
11
|
-
fi
|
12
|
-
}
|
13
|
-
|
14
|
-
function set_by_boolean {
|
15
|
-
local value="${!1}"
|
16
|
-
if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
|
17
|
-
export $2=$3
|
18
|
-
else
|
19
|
-
export $2=$4
|
20
|
-
fi
|
21
|
-
}
|
22
|
-
|
23
|
-
# Default settings
|
24
1
|
export address_https=false
|
25
2
|
export address_host=localhost
|
26
3
|
export address_port=
|
27
|
-
set_by_boolean address_https address_scheme https http
|
28
4
|
export git_repositories_hierarchical_organisation=true
|
29
|
-
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
30
|
-
false true
|
31
5
|
export gitolite_user=git
|
32
6
|
export gitolite_user_home=/var/lib/git
|
33
7
|
export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
|
34
|
-
|
35
|
-
# Auxiliary settings
|
36
|
-
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
37
|
-
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
|
38
|
-
|
39
|
-
# Redmine configuration
|
40
|
-
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
41
|
-
export REDMINE_CONFIGURATION_EXTRA=''
|
42
|
-
fi
|
43
|
-
export REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git"
|
data/installer/setup.sh
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Auxiliary functions
|
2
|
+
function sanitize_boolean_var {
|
3
|
+
if [ "$1" != 'false' -a "$1" != 'true' ]; then
|
4
|
+
if [ -n "$1" ]; then
|
5
|
+
echo 'true'
|
6
|
+
else
|
7
|
+
echo 'false'
|
8
|
+
fi
|
9
|
+
else
|
10
|
+
echo "$1"
|
11
|
+
fi
|
12
|
+
}
|
13
|
+
|
14
|
+
function set_by_boolean {
|
15
|
+
local value="${!1}"
|
16
|
+
if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
|
17
|
+
export $2=$3
|
18
|
+
else
|
19
|
+
export $2=$4
|
20
|
+
fi
|
21
|
+
}
|
22
|
+
|
23
|
+
set_by_boolean address_https address_scheme https http
|
24
|
+
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
25
|
+
false true
|
26
|
+
|
27
|
+
# Auxiliary settings
|
28
|
+
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
29
|
+
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
|
30
|
+
|
31
|
+
# Redmine configuration
|
32
|
+
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
33
|
+
export REDMINE_CONFIGURATION_EXTRA=''
|
34
|
+
fi
|
35
|
+
export REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git"
|
@@ -24,6 +24,5 @@ function task_condition {
|
|
24
24
|
function task_fix {
|
25
25
|
set -u
|
26
26
|
set -e
|
27
|
-
|
28
|
-
programeiro /redmine/set_setting_value 'enabled_scm' "$setting_value"
|
27
|
+
programeiro /redmine/set_setting_value 'enabled_scm' "$(enabled_scm_setting_template)"
|
29
28
|
}
|
@@ -23,7 +23,7 @@ function task_condition {
|
|
23
23
|
}
|
24
24
|
|
25
25
|
function task_fix {
|
26
|
-
|
27
|
-
|
26
|
+
programeiro /redmine/set_setting_value 'plugin_redmine_git_hosting' \
|
27
|
+
"$(redmine_git_hosting_setting_template)"
|
28
28
|
programeiro /redmine/installer/triggers/set 'redmine_git_hosting_rescue'
|
29
29
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_with_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-tools
|
@@ -16,48 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.48'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.48'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eac_rails_utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.11'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: eac_ruby_utils
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
48
|
-
- - ">="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 0.10.1
|
47
|
+
version: '0.35'
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
52
|
- - "~>"
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version: '0.
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.10.1
|
54
|
+
version: '0.35'
|
61
55
|
description:
|
62
56
|
email:
|
63
57
|
executables: []
|
@@ -84,6 +78,7 @@ files:
|
|
84
78
|
- installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh
|
85
79
|
- installer/programs/redmine_git_hosting/ssh_key.sh
|
86
80
|
- installer/programs/text/diff_stdin_file.sh
|
81
|
+
- installer/setup.sh
|
87
82
|
- installer/tasks/_before_run.sh
|
88
83
|
- installer/tasks/apt_ruby.sh
|
89
84
|
- installer/tasks/gitolite.sh
|
@@ -102,6 +97,7 @@ files:
|
|
102
97
|
- installer/template/redmine_enabled_scm_setting_value
|
103
98
|
- installer/template/redmine_git_hosting_setting_value.sql
|
104
99
|
- installer/template/redmine_user_sudoer
|
100
|
+
- lib/redmine_with_git.rb
|
105
101
|
- lib/redmine_with_git/dump/all.rb
|
106
102
|
- lib/redmine_with_git/dump/base.rb
|
107
103
|
- lib/redmine_with_git/dump/database.rb
|