git 4.0.1 → 4.0.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/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +13 -0
- data/README.md +25 -0
- data/Rakefile +2 -2
- data/lib/git/base.rb +1 -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: edf8c0ca68f2c4a5e2ecd4a72cfc49bf30edf8406bd7016ebd8e96e8bb016065
|
4
|
+
data.tar.gz: 76c74e062482a50b780c3af13767e5bbd9d361f7fe4aad44c593d11de53a3acf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d11d3ae7d6a26365c594381f94d426130fa3d62c819d575b1b8868fa9af3f83b42ba81b0a9404e3aeedc422962f13d6f10203bdfd2074e9e9fbc36c1fc3422
|
7
|
+
data.tar.gz: bf6e926d267120715fbfef1d2008dc3f4951130cdfe6266203caceb9fe63bd55c02282b0798a39c3917ea927af6215da805253eb85210a35a531bc066e62ed78
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,19 @@
|
|
5
5
|
|
6
6
|
# Change Log
|
7
7
|
|
8
|
+
## [4.0.2](https://github.com/ruby-git/ruby-git/compare/v4.0.1...v4.0.2) (2025-07-08)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* Call Git::Index#new correctly from initialize_components ([07dfab5](https://github.com/ruby-git/ruby-git/commit/07dfab5804874cbc52469bd40203b6d0b08be7a1))
|
14
|
+
|
15
|
+
|
16
|
+
### Other Changes
|
17
|
+
|
18
|
+
* Announce that the project has adopted RuboCop ([3d6cac9](https://github.com/ruby-git/ruby-git/commit/3d6cac94b47b3c1b1915f5c37f9e811041210ddc))
|
19
|
+
* Update comment to be accurate ([3a87722](https://github.com/ruby-git/ruby-git/commit/3a87722760176db54dfef9631de6191b183ab223))
|
20
|
+
|
8
21
|
## [4.0.1](https://github.com/ruby-git/ruby-git/compare/v4.0.0...v4.0.1) (2025-07-06)
|
9
22
|
|
10
23
|
|
data/README.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
[](https://github.com/ruby-git/ruby-git/actions?query=workflow%3ACI)
|
12
12
|
[](https://conventionalcommits.org)
|
13
13
|
|
14
|
+
- [📢 We Now Use RuboCop 📢](#-we-now-use-rubocop-)
|
14
15
|
- [📢 Default Branch Rename 📢](#-default-branch-rename-)
|
15
16
|
- [📢 We've Switched to Conventional Commits 📢](#-weve-switched-to-conventional-commits-)
|
16
17
|
- [Summary](#summary)
|
@@ -23,6 +24,30 @@
|
|
23
24
|
- [Ruby version support policy](#ruby-version-support-policy)
|
24
25
|
- [License](#license)
|
25
26
|
|
27
|
+
## 📢 We Now Use RuboCop 📢
|
28
|
+
|
29
|
+
To improve code consistency and maintainability, the `ruby-git` project has now
|
30
|
+
adopted [RuboCop](https://rubocop.org/) as our static code analyzer and formatter.
|
31
|
+
|
32
|
+
This integration is a key part of our ongoing commitment to making `ruby-git` a
|
33
|
+
high-quality, stable, and easy-to-contribute-to project. All new contributions will
|
34
|
+
be expected to adhere to the style guidelines enforced by our RuboCop configuration.
|
35
|
+
|
36
|
+
RuboCop can be run from the project's Rakefile:
|
37
|
+
|
38
|
+
```shell
|
39
|
+
rake rubocop
|
40
|
+
```
|
41
|
+
|
42
|
+
RuboCop is also run as part of the default rake task (by running `rake`) that is run
|
43
|
+
in our Continuous Integration workflow.
|
44
|
+
|
45
|
+
Going forward, any PRs that have any Robocop offenses will not be merged. In
|
46
|
+
certain rare cases, it might be acceptable to disable a RuboCop check for the most
|
47
|
+
limited scope possible.
|
48
|
+
|
49
|
+
If you have a problem fixing a RuboCop offense, don't be afraid to ask a contributor.
|
50
|
+
|
26
51
|
## 📢 Default Branch Rename 📢
|
27
52
|
|
28
53
|
On June 6th, 2025, the default branch was renamed from 'master' to 'main'.
|
data/Rakefile
CHANGED
@@ -14,9 +14,9 @@ task :test do
|
|
14
14
|
# You can run individual test files (or multiple files) from the command
|
15
15
|
# line with:
|
16
16
|
#
|
17
|
-
# $ bin/test
|
17
|
+
# $ bin/test test_archive.rb
|
18
18
|
#
|
19
|
-
# $ bin/test
|
19
|
+
# $ bin/test test_archive.rb test_object.rb
|
20
20
|
end
|
21
21
|
default_tasks << :test
|
22
22
|
|
data/lib/git/base.rb
CHANGED
@@ -851,7 +851,7 @@ module Git
|
|
851
851
|
def initialize_components(options)
|
852
852
|
@working_directory = Git::WorkingDirectory.new(options[:working_directory]) if options[:working_directory]
|
853
853
|
@repository = Git::Repository.new(options[:repository]) if options[:repository]
|
854
|
-
@index = Git::Index.new(options[:index], false) if options[:index]
|
854
|
+
@index = Git::Index.new(options[:index], must_exist: false) if options[:index]
|
855
855
|
end
|
856
856
|
|
857
857
|
# Normalize options before they are sent to Git::Base.new
|
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.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon and others
|
@@ -281,8 +281,8 @@ licenses:
|
|
281
281
|
metadata:
|
282
282
|
homepage_uri: http://github.com/ruby-git/ruby-git
|
283
283
|
source_code_uri: http://github.com/ruby-git/ruby-git
|
284
|
-
changelog_uri: https://rubydoc.info/gems/git/4.0.
|
285
|
-
documentation_uri: https://rubydoc.info/gems/git/4.0.
|
284
|
+
changelog_uri: https://rubydoc.info/gems/git/4.0.2/file/CHANGELOG.md
|
285
|
+
documentation_uri: https://rubydoc.info/gems/git/4.0.2
|
286
286
|
rubygems_mfa_required: 'true'
|
287
287
|
rdoc_options: []
|
288
288
|
require_paths:
|