git 4.1.2 → 4.2.0
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/.github/workflows/release.yml +1 -0
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +13 -0
- data/lib/git/base.rb +4 -4
- data/lib/git/lib.rb +3 -3
- data/lib/git/path.rb +7 -1
- data/lib/git/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd870e7039cc00b042255eaf275983499afc046343ddae22a0ae121c0ccae5e2
|
|
4
|
+
data.tar.gz: c107f2b83705d0c5353328f011346c01dbed28671323e36258d73c3c5205f835
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82be60353d5481abd360bc7c0a1b18ef5c6dacadfe9c6185d524d754e0203b4dd2a687942c8813962ccc329cea6c14014d0a77296801c7d557e62b9b91880f75
|
|
7
|
+
data.tar.gz: b6aeeb8d2f12639ff26837de8ca5d910457b58b8356cd82c5843ebc4ea269f49b8cf0fe1b1e1c0f598304b8f82018416c5f2d701b84cc8f0494ce127316605c9
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
# Change Log
|
|
7
7
|
|
|
8
|
+
## [4.2.0](https://github.com/ruby-git/ruby-git/compare/v4.1.2...v4.2.0) (2026-01-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Add deprecation warning for .path accessor ([8af4543](https://github.com/ruby-git/ruby-git/commit/8af4543a25a46bf40ed7a05b31cea1a5b17e3f0b))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Other Changes
|
|
17
|
+
|
|
18
|
+
* Add target-branch to release-please action ([13e041e](https://github.com/ruby-git/ruby-git/commit/13e041ebb76587b90549896a4c9b9b872f60696a))
|
|
19
|
+
* Set 4.x manifest to start from 4.1.1 ([1ccee62](https://github.com/ruby-git/ruby-git/commit/1ccee62cdd832a6de2307b0a61ceb593548e7fe1))
|
|
20
|
+
|
|
8
21
|
## [4.1.2](https://github.com/ruby-git/ruby-git/compare/v4.1.1...v4.1.2) (2026-01-10)
|
|
9
22
|
|
|
10
23
|
|
data/lib/git/base.rb
CHANGED
|
@@ -195,7 +195,7 @@ module Git
|
|
|
195
195
|
# :fetch => true
|
|
196
196
|
# :track => <branch_name>
|
|
197
197
|
def add_remote(name, url, opts = {})
|
|
198
|
-
url = url.repo.
|
|
198
|
+
url = url.repo.to_s if url.is_a?(Git::Base)
|
|
199
199
|
lib.remote_add(name, url, opts)
|
|
200
200
|
Git::Remote.new(self, name)
|
|
201
201
|
end
|
|
@@ -210,8 +210,8 @@ module Git
|
|
|
210
210
|
# @git.commit('message')
|
|
211
211
|
# end
|
|
212
212
|
def chdir # :yields: the Git::Path
|
|
213
|
-
Dir.chdir(dir.
|
|
214
|
-
yield dir.
|
|
213
|
+
Dir.chdir(dir.to_s) do
|
|
214
|
+
yield dir.to_s
|
|
215
215
|
end
|
|
216
216
|
end
|
|
217
217
|
|
|
@@ -558,7 +558,7 @@ module Git
|
|
|
558
558
|
# @git.set_remote_url('scotts_git', 'git://repo.or.cz/rubygit.git')
|
|
559
559
|
#
|
|
560
560
|
def set_remote_url(name, url)
|
|
561
|
-
url = url.repo.
|
|
561
|
+
url = url.repo.to_s if url.is_a?(Git::Base)
|
|
562
562
|
lib.remote_set_url(name, url)
|
|
563
563
|
Git::Remote.new(self, name)
|
|
564
564
|
end
|
data/lib/git/lib.rb
CHANGED
|
@@ -1709,9 +1709,9 @@ module Git
|
|
|
1709
1709
|
end
|
|
1710
1710
|
|
|
1711
1711
|
def initialize_from_base(base_object)
|
|
1712
|
-
@git_dir = base_object.repo.
|
|
1713
|
-
@git_index_file = base_object.index&.
|
|
1714
|
-
@git_work_dir = base_object.dir&.
|
|
1712
|
+
@git_dir = base_object.repo.to_s
|
|
1713
|
+
@git_index_file = base_object.index&.to_s
|
|
1714
|
+
@git_work_dir = base_object.dir&.to_s
|
|
1715
1715
|
@git_ssh = base_object.git_ssh
|
|
1716
1716
|
end
|
|
1717
1717
|
|
data/lib/git/path.rb
CHANGED
|
@@ -7,7 +7,13 @@ module Git
|
|
|
7
7
|
# directory or index file.
|
|
8
8
|
#
|
|
9
9
|
class Path
|
|
10
|
-
|
|
10
|
+
def path
|
|
11
|
+
Git::Deprecation.warn(
|
|
12
|
+
'The .path accessor is deprecated and will be removed in v5.0. ' \
|
|
13
|
+
'Use .to_s instead.'
|
|
14
|
+
)
|
|
15
|
+
@path
|
|
16
|
+
end
|
|
11
17
|
|
|
12
18
|
def initialize(path, must_exist: true)
|
|
13
19
|
path = File.expand_path(path)
|
data/lib/git/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Chacon and others
|
|
@@ -308,8 +308,8 @@ licenses:
|
|
|
308
308
|
metadata:
|
|
309
309
|
homepage_uri: http://github.com/ruby-git/ruby-git
|
|
310
310
|
source_code_uri: http://github.com/ruby-git/ruby-git
|
|
311
|
-
changelog_uri: https://rubydoc.info/gems/git/4.
|
|
312
|
-
documentation_uri: https://rubydoc.info/gems/git/4.
|
|
311
|
+
changelog_uri: https://rubydoc.info/gems/git/4.2.0/file/CHANGELOG.md
|
|
312
|
+
documentation_uri: https://rubydoc.info/gems/git/4.2.0
|
|
313
313
|
rubygems_mfa_required: 'true'
|
|
314
314
|
rdoc_options: []
|
|
315
315
|
require_paths:
|