redmine_with_git 0.6.1 → 0.6.6
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/init.rb +0 -3
- data/installer/default_settings.sh +0 -40
- data/installer/setup.sh +35 -0
- data/installer/tasks/redmine_enabled_scm_setting.sh +1 -2
- data/installer/tasks/redmine_git_hosting_settings.sh +2 -2
- data/installer/template/redmine_git_hosting_setting_value.sql +3 -3
- 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: d9cd18d67c21ce83f22e2fb723565d29ccabc5a94ecc067af4cdad07ddb6056f
|
4
|
+
data.tar.gz: 20a85425786d00990baa5383914256fd9fd538ce706a7ead6090c5c333f2ca84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccc841dbce7f3344eda27888db548e02c02e0a10423b7ca8b19eb89d609c73948a046feefaea1364b6b7e445f1848eda10e128810de0c626f642a193f23711d5
|
7
|
+
data.tar.gz: aee908492c5f37941f2a27033a10225667b4b0b7c0c024d34c6a9c6f8007947b5f6ff6153b660659ffacff9b22d45530cb6d3f99e65a897c6a133c03f2a16591
|
@@ -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
|
data/init.rb
CHANGED
@@ -1,47 +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
|
-
export address_server="$address_host"
|
29
|
-
if [ -n "$address_port" ]; then
|
30
|
-
export address_server="$address_server:$address_port"
|
31
|
-
fi
|
32
4
|
export git_repositories_hierarchical_organisation=true
|
33
|
-
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
34
|
-
false true
|
35
5
|
export gitolite_user=git
|
36
6
|
export gitolite_user_home=/var/lib/git
|
37
7
|
export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
|
38
|
-
|
39
|
-
# Auxiliary settings
|
40
|
-
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
41
|
-
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
|
42
|
-
|
43
|
-
# Redmine configuration
|
44
|
-
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
45
|
-
export REDMINE_CONFIGURATION_EXTRA=''
|
46
|
-
fi
|
47
|
-
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
|
}
|
@@ -15,7 +15,7 @@ gitolite_flush_cache: 'false'
|
|
15
15
|
gitolite_global_storage_dir: repositories/
|
16
16
|
gitolite_hooks_are_asynchronous: 'false'
|
17
17
|
gitolite_hooks_debug: 'false'
|
18
|
-
gitolite_hooks_url: "${address_scheme}://${
|
18
|
+
gitolite_hooks_url: "${address_scheme}://${address_authority}${address_path}"
|
19
19
|
gitolite_http_by_default: '1'
|
20
20
|
gitolite_identifier_prefix: redmine_
|
21
21
|
gitolite_identifier_strip_user_id: 'false'
|
@@ -43,9 +43,9 @@ gitolite_timeout: '10'
|
|
43
43
|
gitolite_user: ${gitolite_user}
|
44
44
|
gitolite_use_sidekiq: 'false'
|
45
45
|
hierarchical_organisation: '${git_repositories_hierarchical_organisation}'
|
46
|
-
http_server_domain: ${
|
46
|
+
http_server_domain: ${address_authority}
|
47
47
|
http_server_subdir: ''
|
48
|
-
https_server_domain: ${
|
48
|
+
https_server_domain: ${address_authority}
|
49
49
|
init_repositories_on_create: 'false'
|
50
50
|
redmine_has_rw_access_on_all_repos: 'true'
|
51
51
|
show_repositories_url: 'true'
|
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.6
|
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-06-02 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
|