redmine_with_git 0.1.5 → 0.1.6

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: 180c030aca85081dfee8c238bd41483d38635843330381e7ca83684d6c486516
4
- data.tar.gz: e24239fb73c7e0d4d23f2526104c89c1b29b0b4e4744249ef26e07a1020ec3a2
3
+ metadata.gz: 58274eb6dc1553a0fc31d5b096d9a01793cb7c87d23936c3efc08d71362482ac
4
+ data.tar.gz: 3b49e6376dc0235caa9e8f7a425058e78b7fe4e971c6db47250da4773d336b04
5
5
  SHA512:
6
- metadata.gz: 97b5072b4f3bf68f9e3113cc5e1704546065c3fcefb171cc4cbfd141d81e1d98c9a99a51b70220522a2532010af639851631dc4c4442dfff8f3226391b26e27a
7
- data.tar.gz: a49321b8ed13fbe126260dffe6ba063a5177e441a89fbeb58e1985acaecdf05f8f1d86cf61961dc018351e70e1ad06cf5947168042eb4e68c66319075d843727
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.1.5'.freeze
4
+ VERSION = '0.1.6'.freeze
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.1.5
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 00:00:00.000000000 Z
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: