redmine_with_git 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/000_dependencies.rb +14 -5
- data/lib/redmine_with_git/patches/redmine_git_hosting/cache/database_patch.rb +2 -5
- data/lib/redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch.rb +2 -3
- data/lib/redmine_with_git/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2219380d4334bafe782080437e1bcd84ebff15941299c8bbaf2f2771864083e9
|
4
|
+
data.tar.gz: 228fe248d3a5e5d9e9d023aee75579a5d0485b3686cf5fac3055129db9437267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b347512823f7c5851d9657ae37ea6723a045b6416207e2d483aebd1a0f68abe9778e9262a979e331c88cc94e7fe93592e62380806d5145d00bbb482eb64a6db
|
7
|
+
data.tar.gz: cfe10d54564b08047d5b5d5147c0e1730906f5eb2e1a4f80c8698c82aa1dcdd378e697ea11cefe82827a9ff40a2f8f76e1cbad6c55bf2e7654c4820e4722f854
|
@@ -3,11 +3,20 @@
|
|
3
3
|
Redmine::Plugin.post_register :redmine_with_git do
|
4
4
|
# Source: https://github.com/esquilo-azul/redmine_nonproject_modules
|
5
5
|
requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.3.1')
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
|
7
|
+
if ::Redmine::VERSION.to_s < '4'
|
8
|
+
# Source: https://github.com/jbox-web/redmine_bootstrap_kit.git
|
9
|
+
# Note: redmine_bootstrap_kit is a redmine_git_hosting's dependency.
|
10
|
+
requires_redmine_plugin(:redmine_bootstrap_kit, version_or_higher: '0.2.5')
|
11
|
+
# Source: https://github.com/jbox-web/redmine_git_hosting.git
|
12
|
+
requires_redmine_plugin(:redmine_git_hosting, version_or_higher: '1.2.3.1')
|
13
|
+
else
|
14
|
+
# Source: https://github.com/jbox-web/additionals
|
15
|
+
# Note: additionals is a redmine_git_hosting's dependency.
|
16
|
+
requires_redmine_plugin(:additionals, version_or_higher: '2.0.24')
|
17
|
+
# Source: https://github.com/jbox-web/redmine_git_hosting.git
|
18
|
+
requires_redmine_plugin(:redmine_git_hosting, version_or_higher: '4.0.1.1')
|
19
|
+
end
|
11
20
|
|
12
21
|
# Source: https://github.com/esquilo-azul/redmine_installer
|
13
22
|
if ::Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
|
@@ -4,14 +4,11 @@ module RedmineGitHosting
|
|
4
4
|
module Cache
|
5
5
|
module DatabasePatch
|
6
6
|
def self.included(base)
|
7
|
-
base.
|
8
|
-
base.class_eval do
|
9
|
-
alias_method_chain :apply_cache_limit, :redmine_with_git
|
10
|
-
end
|
7
|
+
base.prepend(InstanceMethods)
|
11
8
|
end
|
12
9
|
|
13
10
|
module InstanceMethods
|
14
|
-
def
|
11
|
+
def apply_cache_limit
|
15
12
|
return unless max_cache_elements >= 0 && GitCache.count > max_cache_elements
|
16
13
|
|
17
14
|
GitCache.order(created_at: :desc).last.destroy
|
@@ -6,13 +6,12 @@ module RedmineWithGit
|
|
6
6
|
module Commands
|
7
7
|
module GitPatch
|
8
8
|
def self.included(base)
|
9
|
-
base.
|
10
|
-
base.alias_method_chain :git_version, :redmine_with_git
|
9
|
+
base.prepend(InstanceMethods)
|
11
10
|
end
|
12
11
|
end
|
13
12
|
|
14
13
|
module InstanceMethods
|
15
|
-
def
|
14
|
+
def git_version
|
16
15
|
sudo_git('--version')
|
17
16
|
rescue RedmineGitHosting::Error::GitoliteCommandException => e
|
18
17
|
logger.error("Can't retrieve Git version: #{e.output}")
|
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.7.
|
4
|
+
version: 0.7.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: 2022-
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|