eac_git 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_git/local/commit.rb +1 -0
- data/lib/eac_git/local/remotes.rb +20 -0
- data/lib/eac_git/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ae089affcb0d05e18f41ec4714b46f5ddc9df84d86cc51fffbae59fdec37bfc
|
4
|
+
data.tar.gz: 84ca61a9dcd87fe0a99e7e277706c0b0b45aa63355f7c6367334423adc8c150e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4660dc27975d833e3b57097f99e15253970c4b33bc5e3877034cd95d61c6f9e1d539562e144799b5f8b8b4355c555a3102c8f3d6cf4bf0a86cfd4a17ebc4fa39
|
7
|
+
data.tar.gz: 1d78cd7ed4d5cbeadecfef5b99783d02f1495b380834f17bd45eaa63f2cb85c69017da70bfb30e5d3a4f3de3fde156738ebbde52b5d9a7df6429d25fa0fe5438
|
data/lib/eac_git/local/commit.rb
CHANGED
@@ -13,6 +13,7 @@ module EacGit
|
|
13
13
|
author_name: '%an', author_email: '%ae', author_date: '%ai',
|
14
14
|
subject: '%s',
|
15
15
|
author_all: '%an <%ae>, %ai',
|
16
|
+
commit_hash: '%H', abbreviated_commit_hash: '%h',
|
16
17
|
commiter_name: '%cn', commiter_email: '%ce', commiter_date: '%ci',
|
17
18
|
commiter_all: '%cn <%ce>, %ci',
|
18
19
|
raw_body: '%B'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'eac_git/local/remote'
|
5
|
+
|
6
|
+
module EacGit
|
7
|
+
class Local
|
8
|
+
module Remotes
|
9
|
+
def remote(name)
|
10
|
+
::EacGit::Local::Remote.new(self, name)
|
11
|
+
end
|
12
|
+
|
13
|
+
def remotes
|
14
|
+
command('remote').execute!.each_line.map(&:strip).reject(&:blank?).map do |name|
|
15
|
+
remote(name)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/eac_git/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/eac_git/local/dirty_files.rb
|
102
102
|
- lib/eac_git/local/log.rb
|
103
103
|
- lib/eac_git/local/remote.rb
|
104
|
+
- lib/eac_git/local/remotes.rb
|
104
105
|
- lib/eac_git/local/subrepo.rb
|
105
106
|
- lib/eac_git/local/subrepo/config.rb
|
106
107
|
- lib/eac_git/remote.rb
|