git 2.3.1 → 2.3.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/git/lib.rb +18 -3
- data/lib/git/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c3080ee5b1fd4b591abe1e3e94917ea4307c97a3cf75f93cbc910e5320142b
|
4
|
+
data.tar.gz: 1b5a4682825b282577918929d21967846191fdcf16a8dc3c72de71820fee74f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57434c5742779e9769f3a6ce85a5b25c5f3c4e5974427965bca0df4922a266ffb3225839ccf2964f2391d5b8c7eda68de4aa1d46bbbd264b6d5c53a2c7852f77
|
7
|
+
data.tar.gz: 6c1a1bc6010f883eb8b0d4ccd677a5f46c98db9f3f9e582b8c06f6b4294903c1949fe288fe2ae2c17c41ae9e5319fdc9fc64870e5f3f1219b03351a22f475d4c
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@
|
|
5
5
|
|
6
6
|
# Change Log
|
7
7
|
|
8
|
+
## v2.3.2 (2024-11-19)
|
9
|
+
|
10
|
+
[Full Changelog](https://github.com/ruby-git/ruby-git/compare/v2.3.1..v2.3.2)
|
11
|
+
|
12
|
+
Changes since v2.3.1:
|
13
|
+
|
14
|
+
* 7646e38 fix: improve error message for Git::Lib#branches_all
|
15
|
+
|
8
16
|
## v2.3.1 (2024-10-23)
|
9
17
|
|
10
18
|
[Full Changelog](https://github.com/ruby-git/ruby-git/compare/v2.3.0..v2.3.1)
|
data/lib/git/lib.rb
CHANGED
@@ -362,7 +362,7 @@ module Git
|
|
362
362
|
#
|
363
363
|
# @example Get the contents of a file with a block
|
364
364
|
# lib.cat_file_contents('README.md') { |f| f.read } # => "This is a README file\n"
|
365
|
-
#
|
365
|
+
#
|
366
366
|
# @param object [String] the object whose contents to return
|
367
367
|
#
|
368
368
|
# @return [String] the object contents
|
@@ -641,10 +641,13 @@ module Git
|
|
641
641
|
/x
|
642
642
|
|
643
643
|
def branches_all
|
644
|
-
command_lines('branch', '-a')
|
644
|
+
lines = command_lines('branch', '-a')
|
645
|
+
lines.each_with_index.map do |line, line_index|
|
645
646
|
match_data = line.match(BRANCH_LINE_REGEXP)
|
646
|
-
|
647
|
+
|
648
|
+
raise Git::UnexpectedResultError, unexpected_branch_line_error(lines, line, line_index) unless match_data
|
647
649
|
next nil if match_data[:not_a_branch] || match_data[:detached_ref]
|
650
|
+
|
648
651
|
[
|
649
652
|
match_data[:refname],
|
650
653
|
!match_data[:current].nil?,
|
@@ -654,6 +657,18 @@ module Git
|
|
654
657
|
end.compact
|
655
658
|
end
|
656
659
|
|
660
|
+
def unexpected_branch_line_error(lines, line, index)
|
661
|
+
<<~ERROR
|
662
|
+
Unexpected line in output from `git branch -a`, line #{index + 1}
|
663
|
+
|
664
|
+
Full output:
|
665
|
+
#{lines.join("\n ")}
|
666
|
+
|
667
|
+
Line #{index + 1}:
|
668
|
+
"#{line}"
|
669
|
+
ERROR
|
670
|
+
end
|
671
|
+
|
657
672
|
def worktrees_all
|
658
673
|
arr = []
|
659
674
|
directory = ''
|
data/lib/git/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon and others
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -243,8 +243,8 @@ licenses:
|
|
243
243
|
metadata:
|
244
244
|
homepage_uri: http://github.com/ruby-git/ruby-git
|
245
245
|
source_code_uri: http://github.com/ruby-git/ruby-git
|
246
|
-
changelog_uri: https://rubydoc.info/gems/git/2.3.
|
247
|
-
documentation_uri: https://rubydoc.info/gems/git/2.3.
|
246
|
+
changelog_uri: https://rubydoc.info/gems/git/2.3.2/file/CHANGELOG.md
|
247
|
+
documentation_uri: https://rubydoc.info/gems/git/2.3.2
|
248
248
|
post_install_message:
|
249
249
|
rdoc_options: []
|
250
250
|
require_paths:
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
requirements:
|
263
263
|
- git 2.28.0 or greater
|
264
|
-
rubygems_version: 3.5.
|
264
|
+
rubygems_version: 3.5.22
|
265
265
|
signing_key:
|
266
266
|
specification_version: 4
|
267
267
|
summary: An API to create, read, and manipulate Git repositories
|