eac_git 0.11.0 → 0.12.2

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: 5583900c213a539c619f4d6e7fca1ee9ad8d0c2188549097e572e2c69160aa63
4
- data.tar.gz: 9de7fa274c112090871bcc160d54bf3cc3b9730f8bc603852044d1d20145c8da
3
+ metadata.gz: ac7d4f729a2e0a25b759a3c96641ad54bdc7e7b3aadade385182963530311040
4
+ data.tar.gz: 007172c59466b1174ac6b3900e5c6641b4313b2be2aabbc2068f39ce2b2f3e43
5
5
  SHA512:
6
- metadata.gz: abf9630280dce2fd8252797e7c15620d0d2ae017e0d856ddb21ff96158812a3d95fb20f4a068e6d338690a40510cd3dafd60c207a208f1d1dea1f0bf80812102
7
- data.tar.gz: 6839845a4a856bd6d01cc5642bc03bc44afa29a1f7623cb19e226b49ee1c763ddcacce19c2da56c41eb2d096fda61349edcd020e400e7b6255d4623a9dec768b
6
+ metadata.gz: 1848a9a5b34334afc4f50c62b6ad17955803fe6d2d064affa48e421681c72ed8ec993a725811563443feb05dece85663b23db5efa0649679a93290c444f78f74
7
+ data.tar.gz: f0f0dc253712665f61eb553bf0381ac67c057b635c7520226f384e4a2ec9c2487d5324a4f2753d3675bee712bd8a1cdbc72f14042968b904ccd266208becb119
@@ -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'
@@ -19,8 +19,8 @@ module EacGit
19
19
  # @return [String, nil]
20
20
  def url
21
21
  local.command('remote', 'get-url', name)
22
- .execute!(exit_outputs: { NO_SUCH_REMOTE_CODE => nil })
23
- .if_present(nil, &:strip)
22
+ .execute!(exit_outputs: { NO_SUCH_REMOTE_CODE => nil })
23
+ .if_present(nil, &:strip)
24
24
  end
25
25
  end
26
26
  end
@@ -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/local.rb CHANGED
@@ -110,7 +110,7 @@ module EacGit
110
110
  # @return [Array<EacGit::Local::Subrepo>]
111
111
  def subrepos
112
112
  command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip).select(&:present?)
113
- .map { |subpath| subrepo(subpath) }
113
+ .map { |subpath| subrepo(subpath) }
114
114
  end
115
115
 
116
116
  def to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacGit
4
- VERSION = '0.11.0'
4
+ VERSION = '0.12.2'
5
5
  end
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.11.0
4
+ version: 0.12.2
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-17 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils
@@ -70,20 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.3'
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 0.3.2
73
+ version: 0.5.1
77
74
  type: :development
78
75
  prerelease: false
79
76
  version_requirements: !ruby/object:Gem::Requirement
80
77
  requirements:
81
78
  - - "~>"
82
79
  - !ruby/object:Gem::Version
83
- version: '0.3'
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- version: 0.3.2
80
+ version: 0.5.1
87
81
  description:
88
82
  email:
89
83
  executables: []
@@ -101,6 +95,7 @@ files:
101
95
  - lib/eac_git/local/dirty_files.rb
102
96
  - lib/eac_git/local/log.rb
103
97
  - lib/eac_git/local/remote.rb
98
+ - lib/eac_git/local/remotes.rb
104
99
  - lib/eac_git/local/subrepo.rb
105
100
  - lib/eac_git/local/subrepo/config.rb
106
101
  - lib/eac_git/remote.rb