git 1.17.0 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcca4b91f56e1bf6b99c471f918fbe4b1ed6d56b0058021e345514676e153223
4
- data.tar.gz: 9f4386702fca4248c3a7a07400c6ff3e52fa7898f0e16bbcb3b90bf945fde1da
3
+ metadata.gz: 6c893cd566fdfc36e3f6ea4fc742d7665b5daf14c299ff1acd19c40de49e3eb2
4
+ data.tar.gz: cc08038a56beb1ba3195600e80a666d66a7d58dd1abb16d4e5282718cd067bcd
5
5
  SHA512:
6
- metadata.gz: 4d943759fc15a56baee49734b4628cf1b5651416c13842077a9bfe979df1bdc05afbe114af904b2161ef84be090207f9691a80a704efe2d8a3a14bb4c80df8f6
7
- data.tar.gz: 8feccfa435ec2f3d95a52ec0fd3920b5a956b2dc3cbcddfbc63c48052ddf64686ba1ef849f0b96307e573134d0e818c6d5bfaae8f3dad877a6f74a516806754a
6
+ metadata.gz: 82e6441de9ff798080bddc79ca411386a7c20b5d4208d584fa12925777bb66de1ddc3532d512087eb815c083184d30cf445ef097a47cc8a8089027b1498820c1
7
+ data.tar.gz: f0657f1ee3f3142612fdd904bc8649207e6bc1a115cbb3a969105c99a0fff15c0d1851b755c527351f06b462e6ff22b98e85ed4139acdcdcf949c434417becb2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@
5
5
 
6
6
  # Change Log
7
7
 
8
+ ## v1.17.1 (2023-03-06)
9
+
10
+ [Full Changelog](https://github.com/ruby-git/ruby-git/compare/v1.17.0..v1.17.1)
11
+
12
+ Changes since v1.17.0:
13
+
14
+ * 774e Revert introduction of ActiveSupport dependency (#649)
15
+
8
16
  ## v1.17.0 (2023-03-05)
9
17
 
10
18
  [Full Changelog](https://github.com/ruby-git/ruby-git/compare/v1.16.0..v1.17.0)
data/README.md CHANGED
@@ -3,73 +3,47 @@
3
3
  # @title README
4
4
  -->
5
5
 
6
- # The `git` Gem
6
+ # The Git Gem
7
7
 
8
- [![Gem Version](https://badge.fury.io/rb/git.svg)](https://badge.fury.io/rb/git)
9
- [![Change Log](https://img.shields.io/badge/change%20log-Latest-green)](https://rubydoc.info/gems/git/file/CHANGELOG.md)
10
- [![Build Status](https://github.com/ruby-git/ruby-git/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/ruby-git/ruby-git/actions/workflows/continuous_integration.yml)
11
- [![Code Climate](https://codeclimate.com/github/ruby-git/ruby-git.png)](https://codeclimate.com/github/ruby-git/ruby-git)
12
- [![Source Code](https://img.shields.io/badge/source-GitHub-green)](https://github.com/ruby-git/ruby-git)
13
- [![Documentation](https://img.shields.io/badge/documentation-Latest-green)](https://rubydoc.info/gems/git)
14
- [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/ruby-git/ruby-git/blob/master/LICENSE)
15
-
16
- The git Gem provides an API that can be used to create, read, and manipulate
8
+ The Git Gem provides an API that can be used to create, read, and manipulate
17
9
  Git repositories by wrapping system calls to the `git` binary. The API can be
18
10
  used for working with Git in complex interactions including branching and
19
11
  merging, object inspection and manipulation, history, patch generation and
20
12
  more.
21
13
 
22
- ## Basic Usage
14
+ ## Homepage
23
15
 
24
- Get started by obtaining a repository object by:
16
+ The project source code is at:
25
17
 
26
- * Opening an existing working copy with [Git.open](https://rubydoc.info/gems/git/Git#open-class_method)
27
- * Initializing a new repository with [Git.init](https://rubydoc.info/gems/git/Git#init-class_method)
28
- * Cloning a repository with [Git.clone](https://rubydoc.info/gems/git/Git#clone-class_method)
18
+ http://github.com/ruby-git/ruby-git
29
19
 
30
- Methods that can be called on a repository object are documented in [Git::Base](https://rubydoc.info/gems/git/Git/Base)
20
+ ## Documentation
31
21
 
32
- ## Install
22
+ Detailed documentation can be found at:
33
23
 
34
- You can install the `git` gem with the following command:
24
+ https://rubydoc.info/gems/git/Git.html
35
25
 
36
- ```shell
37
- gem install git
38
- ```
39
-
40
- ## Deprecation Warnings
26
+ Get started by obtaining a repository object by:
41
27
 
42
- Deprecation warnings are managed with the `Git.deprecation` attribute.
28
+ * opening an existing working copy with [Git.open](https://rubydoc.info/gems/git/Git#open-class_method)
29
+ * initializing a new repository with [Git.init](https://rubydoc.info/gems/git/Git#init-class_method)
30
+ * cloning a repository with [Git.clone](https://rubydoc.info/gems/git/Git#clone-class_method)
43
31
 
44
- Use this object to define deprecations in the source code:
32
+ Methods that can be called on a repository object are documented in [Git::Base](https://rubydoc.info/gems/git/Git/Base)
45
33
 
46
- ```ruby
47
- Git.deprecation.deprecate_methods(Git::Branch, stashes: 'use Git::Base#stash_list instead')
48
- ```
34
+ ## Install
49
35
 
50
- The default action when using deprecated items (methods, classes, etc.) is to output
51
- a **DEPRECATION WARNING** to `$stderr` like the following:
36
+ You can install Ruby/Git like this:
52
37
 
53
- ```text
54
- DEPRECATION WARNING: stashes is deprecated and will be removed from git 2.0.0 (use Git::Base.stash_list instead)
55
38
  ```
56
-
57
- The action taken when a deprecated item is used is defined by setting the behavior
58
- on the deprecation object:
59
-
60
- ```ruby
61
- # Log all deprecation warnings to $stderr (the default)
62
- Git.deprecation = :stderr
63
-
64
- # Raise an ActiveSupport::DeprecationException
65
- Git.deprecation = :raise
66
-
67
- # Do nothing
68
- Git.deprecation = :silence
39
+ sudo gem install git
69
40
  ```
70
41
 
71
- See [ActiveSupport::Deprecation](https://api.rubyonrails.org/classes/ActiveSupport/Deprecation.html)
72
- for more details on how to use deprecations.
42
+ ## Code Status
43
+
44
+ * [![Build Status](https://github.com/ruby-git/ruby-git/workflows/CI/badge.svg?branch=master)](https://github.com/ruby-git/ruby-git/actions?query=workflow%3ACI)
45
+ * [![Code Climate](https://codeclimate.com/github/ruby-git/ruby-git.png)](https://codeclimate.com/github/ruby-git/ruby-git)
46
+ * [![Gem Version](https://badge.fury.io/rb/git.svg)](https://badge.fury.io/rb/git)
73
47
 
74
48
  ## Major Objects
75
49
 
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ task :test do
18
18
  end
19
19
  default_tasks << :test
20
20
 
21
- unless RUBY_PLATFORM == 'java' || RUBY_ENGINE == 'truffleruby'
21
+ unless RUBY_PLATFORM == 'java'
22
22
  #
23
23
  # YARD documentation for this project can NOT be built with JRuby.
24
24
  # This project uses the redcarpet gem which can not be installed on JRuby.
data/git.gemspec CHANGED
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to?(:required_rubygems_version=)
27
27
  s.requirements = ['git 1.6.0.0, or greater']
28
28
 
29
- s.add_runtime_dependency 'activesupport', '>= 4.0.0'
30
29
  s.add_runtime_dependency 'addressable', '~> 2.8'
31
30
  s.add_runtime_dependency 'rchardet', '~> 1.8'
32
31
 
data/lib/git/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  # The current gem version
3
3
  # @return [String] the current gem version.
4
- VERSION='1.17.0'
4
+ VERSION='1.17.1'
5
5
  end
data/lib/git.rb CHANGED
@@ -1,32 +1,7 @@
1
- require 'active_support/deprecation'
2
-
3
- module Git
4
- # An object used to manage deprecations
5
- #
6
- # A ActiveSupport::Deprecation object used to manage the deprecations scheduled
7
- # to be removed in the next major release of the `git`` gem.
8
- #
9
- # @example Deprecate a method
10
- # Git.deprecation.deprecate_methods(Git::Branch, stashes: 'use Git::Base#stash_list instead')
11
- #
12
- # @example Set the deprecation behavior
13
- # # Log all deprecation warnings to $stderr (the default)
14
- # Git.deprecation.behavior = :stderr
15
- #
16
- # # Raise an ActiveSupport::DeprecationException
17
- # Git.deprecation.behavior = :raise
18
- #
19
- # # Do nothing
20
- # Git.deprecation.behavior = :raise
21
- #
22
- # @see https://api.rubyonrails.org/classes/ActiveSupport/Deprecation.html ActiveSupport::Deprecation
23
- #
24
- # @return [ActiveSupport::Deprecation]
25
- #
26
- def self.deprecation
27
- @deprecation ||= ActiveSupport::Deprecation.new('2.0.0', 'git')
28
- end
29
- end
1
+ # Add the directory containing this file to the start of the load path if it
2
+ # isn't there already.
3
+ $:.unshift(File.dirname(__FILE__)) unless
4
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
30
5
 
31
6
  require 'git/author'
32
7
  require 'git/base'
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: 1.17.0
4
+ version: 1.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon and others
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 4.0.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: 4.0.0
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: addressable
29
15
  requirement: !ruby/object:Gem::Requirement