redmine_with_git 0.6.2 → 0.6.3

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: 0602cccc98ef16f5cfe8d3278a8a983b895e2325ba7aa5bba00e5acecb09786b
4
- data.tar.gz: 52f67cb862e0aab5a89e2cf63e453c0c8ea928417667feca235ecd168abc5055
3
+ metadata.gz: 6edac773f07d5b57e925df9c50728a3b334bfe7fa3049cc13f9f80dcc35a7ac4
4
+ data.tar.gz: cad8b33dcf3caf410cb74bd98acd3796af224cb9651ae77cb96548de2cb38f12
5
5
  SHA512:
6
- metadata.gz: 14c34bb2e8600f1683b50613472496660321c26b6f8c5976bf9948d93cd5a172e4883ec363df014fb6ffb36c59e3a0606bf863ddf2bd75bacc5551a59ed3dd07
7
- data.tar.gz: f7ddc22f15b3ac8f6b0e2fc8e149b8eef10ad931b1690ea9116699f89e2f297896ccc4511cb97e5559a5edc5381170d17bf90da5baec551c330cf4d545f8471b
6
+ metadata.gz: 346a42525dad1fb27a2bd5096c56b3c5a62fd4a7567f4f7e275eb1f584f87c2d0e20d4e5070c8c06351b351fe15da7a5449cd2f14ea33838f5a3406fd160bf91
7
+ data.tar.gz: 68b8f63798f0eed8ffcbd0def8b298dfc4cd60403ce3648344ec4376060db7f024a32e8e69e27f024871059bd775c952638e9570a04fab9fda812b01f1aff5ac
@@ -8,4 +8,9 @@ Redmine::Plugin.post_register :redmine_with_git do
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.9.0')
15
+ end
11
16
  end
@@ -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"
@@ -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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.6.2'
4
+ VERSION = '0.6.3'
5
5
  end
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.2
4
+ version: 0.6.3
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: 2019-11-26 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -84,6 +84,7 @@ files:
84
84
  - installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh
85
85
  - installer/programs/redmine_git_hosting/ssh_key.sh
86
86
  - installer/programs/text/diff_stdin_file.sh
87
+ - installer/setup.sh
87
88
  - installer/tasks/_before_run.sh
88
89
  - installer/tasks/apt_ruby.sh
89
90
  - installer/tasks/gitolite.sh