redmine_with_git 0.7.2 → 0.7.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: 8bd14037ae44be933908581d3ff3dd0cb0b1008e1965d14a65ea0dc172f51c10
4
- data.tar.gz: 2a35c43a7c6a14e976bd0bea49466f01199aa810fbab2a524b9ed12f36a0840b
3
+ metadata.gz: 2219380d4334bafe782080437e1bcd84ebff15941299c8bbaf2f2771864083e9
4
+ data.tar.gz: 228fe248d3a5e5d9e9d023aee75579a5d0485b3686cf5fac3055129db9437267
5
5
  SHA512:
6
- metadata.gz: 89608f63346fca9895526c8c7c14dece8e2bac40759dee6a2a091fcf43881bb3df611485ea55b8bd939254caaddf620452246c5d24cd68193949870a4f12a71a
7
- data.tar.gz: 62fd747190aaa0a9643fd04db0d9673fbc2dc780cbea37065204fb2d8edc859772416eb816d5ff327b3217ce369422988ee4a4d7ceeab4be5a57851b3243d6a6
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
- # Source: https://github.com/jbox-web/redmine_bootstrap_kit.git
7
- # Note: redmine_bootstrap_kit is a redmine_git_hosting's dependency.
8
- requires_redmine_plugin(:redmine_bootstrap_kit, version_or_higher: '0.2.5')
9
- # Source: https://github.com/esquilo-azul/redmine_git_hosting
10
- requires_redmine_plugin(:redmine_git_hosting, version_or_higher: '1.2.3.1')
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.include(InstanceMethods)
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 apply_cache_limit_with_redmine_with_git
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.send(:include, InstanceMethods)
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 git_version_with_redmine_with_git
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}")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.7.2'
4
+ VERSION = '0.7.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.7.2
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-05-24 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm