redmine_with_git 0.1.5 → 0.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58274eb6dc1553a0fc31d5b096d9a01793cb7c87d23936c3efc08d71362482ac
|
4
|
+
data.tar.gz: 3b49e6376dc0235caa9e8f7a425058e78b7fe4e971c6db47250da4773d336b04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07cd5541197837d3f9fde3025e0f5f2d7d14e9f06360799b13870b3a2bcecd48217abc2aa4b2b33d2a8636091cd17f5bc98dc749218afeb76c8b58af0f8af47a
|
7
|
+
data.tar.gz: 53ae4211b01ea05301056b3cb86c0b18428a07f46ae4075fbaf38d1eb1b3becf0f39a1f22e6924e1532d2694b37fd2e75090a933a134ac2ed444d4514f96e99e
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module RedmineWithGit
|
2
|
+
module Patches
|
3
|
+
module RedmineGitHosting
|
4
|
+
module Commands
|
5
|
+
module GitPatch
|
6
|
+
def self.included(base)
|
7
|
+
base.send(:include, InstanceMethods)
|
8
|
+
base.alias_method_chain :git_version, :redmine_with_git
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
module InstanceMethods
|
13
|
+
def git_version_with_redmine_with_git
|
14
|
+
sudo_git('--version')
|
15
|
+
rescue RedmineGitHosting::Error::GitoliteCommandException => e
|
16
|
+
logger.error("Can't retrieve Git version: #{e.output}")
|
17
|
+
'unknown'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
patch = ::RedmineWithGit::Patches::RedmineGitHosting::Commands::GitPatch
|
26
|
+
target = ::RedmineGitHosting::Commands::Git
|
27
|
+
target.send(:include, patch) unless target.included_modules.include?(patch)
|
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.1.
|
4
|
+
version: 0.1.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: 2019-06-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_rails_utils
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- lib/redmine_with_git/load/files.rb
|
80
80
|
- lib/redmine_with_git/load/git.rb
|
81
81
|
- lib/redmine_with_git/patches/redmine_git_hosting/cache/database_patch.rb
|
82
|
+
- lib/redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch.rb
|
82
83
|
- lib/redmine_with_git/version.rb
|
83
84
|
- lib/tasks/redmine_with_git.rake
|
84
85
|
homepage:
|