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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 547a803a734580e23f5e1f6910f54c2437bcb165331d1d2d9048a2fb2ff1180f
4
- data.tar.gz: 9532b6e51177204f789aab40b2d551d8886abf524f50f9366a60045f00e2cc7f
3
+ metadata.gz: bd870e7039cc00b042255eaf275983499afc046343ddae22a0ae121c0ccae5e2
4
+ data.tar.gz: c107f2b83705d0c5353328f011346c01dbed28671323e36258d73c3c5205f835
5
5
  SHA512:
6
- metadata.gz: 31f1da3bc8b566f4990efd1651ed59202eabd424722693e0fae1b41ec194d4bbd2f7c613ed7552035b6ca42b6d501459b0d9d323bd188957ed5291675ff506de
7
- data.tar.gz: eb4a424bdfbc1fcda445e880b8497ff714fe2c575591a5c48ee8c37f36e721f38474dd409c0af85fddbd98570a8ac7e5e5ba8c4e6c994fce46108e9f349f8137
6
+ metadata.gz: 82be60353d5481abd360bc7c0a1b18ef5c6dacadfe9c6185d524d754e0203b4dd2a687942c8813962ccc329cea6c14014d0a77296801c7d557e62b9b91880f75
7
+ data.tar.gz: b6aeeb8d2f12639ff26837de8ca5d910457b58b8356cd82c5843ebc4ea269f49b8cf0fe1b1e1c0f598304b8f82018416c5f2d701b84cc8f0494ce127316605c9
@@ -39,6 +39,7 @@ jobs:
39
39
  token: ${{ secrets.AUTO_RELEASE_TOKEN }}
40
40
  config-file: release-please-config.json
41
41
  manifest-file: .release-please-manifest.json
42
+ target-branch: ${{ github.ref_name }}
42
43
 
43
44
  - name: Setup ruby
44
45
  uses: ruby/setup-ruby@v1
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.1.2"
2
+ ".": "4.2.0"
3
3
  }
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.path if url.is_a?(Git::Base)
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.path) do
214
- yield dir.path
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.path if url.is_a?(Git::Base)
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.path
1713
- @git_index_file = base_object.index&.path
1714
- @git_work_dir = base_object.dir&.path
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
- attr_accessor :path
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
@@ -3,5 +3,5 @@
3
3
  module Git
4
4
  # The current gem version
5
5
  # @return [String] the current gem version.
6
- VERSION = '4.1.2'
6
+ VERSION = '4.2.0'
7
7
  end
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.1.2
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.1.2/file/CHANGELOG.md
312
- documentation_uri: https://rubydoc.info/gems/git/4.1.2
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: