git-smart
git-smart copied to clipboard
Add some smarts to your git workflow
https://github.com/geelen/git-smart/blob/3e0667cd2f1f123b4cd090c72d8ff36fd74874ab/lib/git-smart/git_repo.rb#L23 I think the newer version of Ruby does not support `File.exists?` any more, instead it use `File.exist?` The error I got: "undefined method `exists?' for File:Class (NoMethodError)"
Ruby 3.2 deprecated support for `File.exists?` This PR duplicates the work done in https://github.com/geelen/git-smart/pull/35 to support Ruby 3.2.x and also updates the bundle and test suite for a green build.
``` /Users/keviwill/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/git-smart-0.1.11/lib/git-smart/git_repo.rb:23:in `git_dir': undefined method `exists?' for File:Class (NoMethodError) unless File.exists?(gitdir) ^^^^^^^^ Did you mean? exist? from /Users/keviwill/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/git-smart-0.1.11/lib/git-smart/git_repo.rb:9:in `initialize' from /Users/keviwill/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/git-smart-0.1.11/lib/git-smart/git_smart.rb:21:in `new' from /Users/keviwill/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/git-smart-0.1.11/lib/git-smart/git_smart.rb:21:in `block in register' from /Users/keviwill/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/git-smart-0.1.11/lib/git-smart/git_smart.rb:6:in `run'...
On the README the links to additional documentation point to https://github-displayer.heroku.com/ which seems to be no longer operational.  
Bumps [redcarpet](https://github.com/vmg/redcarpet) from 1.17.2 to 3.5.1. Release notes Sourced from redcarpet's releases. Redcarpet v3.5.1 Fix a security vulnerability using :quote in combination with the :escape_html option. Reported by Johan Smits....
Here is detail: Your connection is not private Attackers might be trying to steal your information from github-displayer.heroku.com (for example, passwords, messages, or credit cards). Learn more NET::ERR_CERT_COMMON_NAME_INVALID Help improve...
Bumps [rake](https://github.com/ruby/rake) from 10.0.3 to 12.3.3. Changelog *Sourced from [rake's changelog](https://github.com/ruby/rake/blob/master/History.rdoc).* > === 12.3.3 > > ==== Bug fixes > > * Use the application's name in error message if...
Visiting the https://github-displayer.heroku.com/geelen/git-smart/raw/master/docs/smart-pull.html page results in the following error:  (Apologies if this is not directly related to this particular project).
User can create an executable script in `.git/hooks/smart-pull-pre-fetch` that will be executed just before a fetch. Example: There are tags in remote that need to be cleaned out. One team...