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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0602cccc98ef16f5cfe8d3278a8a983b895e2325ba7aa5bba00e5acecb09786b
4
- data.tar.gz: 52f67cb862e0aab5a89e2cf63e453c0c8ea928417667feca235ecd168abc5055
3
+ metadata.gz: 0042c0866a1c3837ee497d22bc60af1c308205aacfd5ed3dcbc1f8f5d18a1d55
4
+ data.tar.gz: 4900f7e85ee5f940d7a8fbe04a5d865c9b7fec47e86d47fd21a618d35df40493
5
5
  SHA512:
6
- metadata.gz: 14c34bb2e8600f1683b50613472496660321c26b6f8c5976bf9948d93cd5a172e4883ec363df014fb6ffb36c59e3a0606bf863ddf2bd75bacc5551a59ed3dd07
7
- data.tar.gz: f7ddc22f15b3ac8f6b0e2fc8e149b8eef10ad931b1690ea9116699f89e2f297896ccc4511cb97e5559a5edc5381170d17bf90da5baec551c330cf4d545f8471b
6
+ metadata.gz: 3f5f9e2047c92a341762015813cd34e6d375267a3db52c3a2ae6f60249c9b9efec82920dcf3ecc47309655e330e1f03eed6d2c283ec673e98fe3c4d1753e6b16
7
+ data.tar.gz: dae66e51c807e2c87df8242a8207f8f538320f14e0463029bca54d25679d00135a93e16aba1363bcb2f8e3f8ffba28df0cb1b252b7aa9f01f5f735d021dc2db2
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RedmineWithGit
4
4
  module Tableless
5
- class Load < ::EacRailsUtils::TablelessModel
5
+ class Load < ::EacRailsUtils::Models::Tableless
6
6
  attribute :path, String
7
7
 
8
8
  validates :path, presence: true
@@ -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.0')
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
@@ -3,9 +3,6 @@
3
3
  require 'redmine'
4
4
  require 'redmine_with_git/version'
5
5
 
6
- require 'eac_rails_utils'
7
- require 'eac_ruby_utils'
8
-
9
6
  Redmine::Plugin.register :redmine_with_git do
10
7
  name 'RedmineWithGit'
11
8
  author 'Esquilo Azul Company'
@@ -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"
@@ -24,6 +24,5 @@ function task_condition {
24
24
  function task_fix {
25
25
  set -u
26
26
  set -e
27
- local setting_value=$(enabled_scm_setting_template | programeiro /text/escape_single_quotes)
28
- programeiro /redmine/set_setting_value 'enabled_scm' "$setting_value"
27
+ programeiro /redmine/set_setting_value 'enabled_scm' "$(enabled_scm_setting_template)"
29
28
  }
@@ -8,5 +8,5 @@ function task_condition {
8
8
  }
9
9
 
10
10
  function task_dependencies {
11
- echo gitolite_rc redmine_gitolite_sudoer redmine_git_hosting_settings apt_ruby python_two
11
+ echo gitolite_setup redmine_gitolite_sudoer redmine_git_hosting_settings apt_ruby python_two
12
12
  }
@@ -23,7 +23,7 @@ function task_condition {
23
23
  }
24
24
 
25
25
  function task_fix {
26
- local setting_value=$(redmine_git_hosting_setting_template | programeiro /text/escape_single_quotes)
27
- programeiro /redmine/set_setting_value 'plugin_redmine_git_hosting' "$setting_value"
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
  }
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_rails_utils'
4
+ require 'eac_ruby_utils'
5
+
6
+ module RedmineWithGit
7
+ end
@@ -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.7'
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.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: 2019-11-26 00:00:00.000000000 Z
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.8'
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.8'
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.2'
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.2'
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.10'
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.10'
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