git-fancy 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d92ba033793ea978318c6ca53b07088bbd769bb2255e54788cd76289368af265
4
+ data.tar.gz: c7dc19e5a4a1d378f32012cbe84516cb623c8530f3f1656d4a25da91422828b4
5
+ SHA512:
6
+ metadata.gz: 9b9149fa76d4256400ee1b8f9569bbc01cb8c5f14d42a174cc9a5f574b4685fefc0aa81346a044a256b2d09befa2e811b9c3df560d2ee0400cd199742b17e837
7
+ data.tar.gz: 75592f89347bcd62bbb8aa79251c4316639ecdd839e5974b9f486b365eeda80c457b2fcbedff0caa47ffb9deded0c96401255fb0be4a2d6709b1f9fd78663171
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.1
3
+
4
+ Style/StringLiterals:
5
+ EnforcedStyle: double_quotes
6
+
7
+ Style/StringLiteralsInInterpolation:
8
+ EnforcedStyle: double_quotes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-05-05
4
+
5
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Sean McCleary
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Git::Fancy
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/git/fancy`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/git-fancy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/git-fancy/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Git::Fancy project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/git-fancy/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/exe/switch-branch ADDED
@@ -0,0 +1,145 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # Switch to git branch by matching part of a name
5
+
6
+ require 'optparse'
7
+ require 'tty-prompt'
8
+ require 'tty-logger'
9
+ require 'sqlite3'
10
+ require 'git/fancy'
11
+
12
+ options = {}
13
+
14
+ OptionParser.new do |opts|
15
+ opts.banner = 'Usage: sb [options]'
16
+ opts.on('--delete', 'Deletes history') do
17
+ options[:delete_history] = true
18
+ end
19
+ opts.on('--inspect-history', 'Prints the recent_branches table') do
20
+ options[:inspect_history] = true
21
+ end
22
+ opts.on('-nNOTE', '--note=NOTE', 'Add a note for the current branch') do |note|
23
+ options[:note] = note
24
+ end
25
+ opts.on('-l', '--list', 'List 20 most recent branches') do
26
+ options[:list] = true
27
+ end
28
+ end.parse!
29
+
30
+ Signal.trap('TERM') do
31
+ puts 'Terminating...'
32
+ shutdown
33
+ end
34
+
35
+ logger = TTY::Logger.new
36
+
37
+ @search_term = ARGV[0]&.strip
38
+ search_term = @search_term
39
+
40
+ @color = Pastel.new
41
+
42
+ @branch_history = Git::Fancy::BranchHistory.new
43
+ @branch_history.clean_missing_branches
44
+
45
+ def prep_branch_results(results)
46
+ results.split("\n").map { |bn| bn.sub(/^\*/, '').strip }
47
+ end
48
+
49
+ if options[:delete_history]
50
+ @branch_history.purge_history!
51
+ logger.success @color.green('Removed branch history')
52
+ exit 0
53
+ end
54
+
55
+ if options[:inspect_history]
56
+ rows = @branch_history.inspect_history
57
+ require 'pp'
58
+ pp rows
59
+ exit 0
60
+ end
61
+
62
+ if options[:note]
63
+ @branch_history.add_branch @branch_history.current_branch
64
+ @branch_history.add_note options[:note]
65
+ logger.success @color.green('Note added')
66
+ exit 0
67
+ end
68
+
69
+ if options[:list]
70
+ branches = @branch_history.recent_branches(limit: 20, include_current: true)
71
+ if branches.empty?
72
+ logger.warn 'No recent branches found'
73
+ exit 0
74
+ end
75
+
76
+ puts 'Recent branches:'
77
+ branches.each do |branch|
78
+ time = branch.last_accessed ? Time.at(branch.last_accessed).strftime('%y-%m-%d') : nil
79
+ note = branch.note ? @color.yellow(branch.note) : nil
80
+ puts [time, branch.name, note].compact.join(' -- ')
81
+ end
82
+ exit 0
83
+ end
84
+
85
+ def find_branches(search_term)
86
+ if search_term
87
+ matching_branch_names = prep_branch_results(`git branch -l | grep -i #{search_term} | cut -f 1`)
88
+ .map { |bn| @branch_history.class::Branch.new(bn) }
89
+
90
+ matching_branch_notes = @branch_history.branches_matching_notes(search_term)
91
+ matching_branch_names.reject! { |b| matching_branch_notes.map(&:name).include?(b.name) }
92
+ matching_branch_notes + matching_branch_names
93
+ else
94
+ recent = @branch_history.recent_branches
95
+ recent.empty? ? @branch_history.local_branches : recent
96
+ end
97
+ end
98
+
99
+ branches = find_branches(search_term) || []
100
+
101
+ def switch_branch(branch_name, location:)
102
+ logger = TTY::Logger.new
103
+ `git switch #{branch_name}`
104
+
105
+ @branch_history.add_branch(branch_name)
106
+ branch_note = @branch_history.branches_matching_notes(@search_term).find { |b| b.name == branch_name }&.note if @search_term
107
+ logger.success "Switched to #{location} branch: #{branch_name} #{branch_note ? @color.yellow(branch_note) : ''}"
108
+ end
109
+
110
+ def select_branch(branches, location: 'local', selected_branch: nil)
111
+ logger = TTY::Logger.new
112
+ prompt = TTY::Prompt.new
113
+
114
+ choices = branches.each_with_object({}) do |branch, hash|
115
+ time = branch.last_accessed ? Time.at(branch.last_accessed).strftime('%y-%m-%d') : nil
116
+ note = branch.note ? @color.yellow(branch.note) : nil
117
+ key = [time, branch.name, note].compact.join(' -- ')
118
+ hash[key] = branch.name
119
+ end
120
+
121
+ selection = prompt.select("Choose #{location} branch", choices.merge('none' => 'none'))
122
+ if selection == 'none'
123
+ logger.info 'Cancelling selection'
124
+ exit 0
125
+ end
126
+
127
+ switch_branch(selection, location:)
128
+ end
129
+
130
+ if branches.length == 1
131
+ branch_name = branches.first&.name
132
+ @branch_history.add_branch(branch_name)
133
+ #BranchHistory::Branch.new(branch_name).
134
+ raise 'Branch name is nil' if branch_name.nil?
135
+
136
+ switch_branch(branch_name, location: 'local')
137
+ elsif branches.length > 1
138
+ logger.warn 'More than one branch name matched' unless search_term
139
+ select_branch(branches, location: 'local')
140
+ else
141
+ logger.warn "No local branches named: '#{branches.join(', ')}' with that name were found"
142
+ remote_branches = prep_branch_results(`git branch -r | grep #{search_term} | cut -f 1`)
143
+
144
+ select_branch(remote_branches, location: 'remote')
145
+ end
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'db'
4
+ require 'tty-logger'
5
+
6
+ module Git
7
+ module Fancy
8
+ # SQLite3 database to keep track of recent branches
9
+ class BranchHistory
10
+ Branch = Struct.new(:name, :last_accessed, :note)
11
+
12
+ attr_reader :logger
13
+
14
+ def logger
15
+ @logger ||= TTY::Logger.new
16
+ end
17
+
18
+ def db = Db.instance.db
19
+
20
+ def local_branch_names
21
+ `git branch --sort='-*authordate' --format='%(refname:short)'`.split("\n")
22
+ end
23
+
24
+ def local_branches
25
+ to_branches(local_branch_names)
26
+ end
27
+
28
+ def recent_branches(limit: 10, include_current: false)
29
+ if include_current
30
+ sql = <<~SQL
31
+ SELECT name, last_accessed, note FROM recent_branches ORDER BY last_accessed DESC LIMIT ?
32
+ SQL
33
+ return to_branches db.execute(sql, [limit])
34
+ end
35
+
36
+ sql = <<~SQL
37
+ SELECT name, last_accessed, note FROM recent_branches WHERE name != ? ORDER BY last_accessed DESC LIMIT ?
38
+ SQL
39
+ to_branches db.execute(sql, [current_branch, limit])
40
+ end
41
+
42
+ def add_branch(branch_name)
43
+ sql = <<~SQL
44
+ INSERT INTO recent_branches (name, last_accessed) VALUES (?, ?)
45
+ ON CONFLICT DO UPDATE SET last_accessed=?
46
+ SQL
47
+ time = Time.now.to_i
48
+ db.execute(sql, [branch_name, time, time])
49
+ end
50
+
51
+ # Removes branches in the db that no longer exist locally
52
+ def clean_missing_branches
53
+ sql = <<~SQL
54
+ select name from recent_branches where name NOT IN (#{local_branch_names.map { |b| "'#{b}'" }.join(',')})
55
+ SQL
56
+ missing_branch_names = db.execute(sql).flatten
57
+
58
+ del_sql = "DELETE FROM recent_branches WHERE name IN (#{missing_branch_names.map { |b| "'#{b}'" }.join(',')})"
59
+
60
+ return if missing_branch_names.empty?
61
+
62
+ db.execute(del_sql)
63
+ logger.info "Removed missing local branches: #{missing_branch_names.join(', ')} branches from database"
64
+ end
65
+
66
+ def add_note(note, branch_name = nil)
67
+ branch_name ||= current_branch
68
+
69
+ sql = <<~SQL
70
+ UPDATE recent_branches SET note = ? WHERE name = ?
71
+ SQL
72
+ db.execute(sql, [note, branch_name])
73
+ end
74
+
75
+ def branches_matching_notes(search_term)
76
+ sql = <<~SQL
77
+ SELECT name, last_accessed, note
78
+ FROM recent_branches
79
+ WHERE note IS NOT NULL
80
+ AND LOWER(note) LIKE ?
81
+ ORDER BY last_accessed DESC
82
+ SQL
83
+ to_branches db.execute(sql, ["%#{search_term.downcase}%"])
84
+ end
85
+
86
+ def purge_history!
87
+ db.execute('DROP TABLE recent_branches')
88
+ end
89
+
90
+ def inspect_history
91
+ db.execute('SELECT * FROM recent_branches ORDER BY last_accessed DESC')
92
+ end
93
+
94
+ def current_branch
95
+ `git branch --show-current`.chomp
96
+ end
97
+
98
+ private
99
+
100
+ def to_branches(rows)
101
+ rows.map { |r| Branch.new(*r) }
102
+ end
103
+ end
104
+ end
105
+ end
106
+
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Git
4
+ module Fancy
5
+ class Db
6
+ FILE_PATH = File.join(Dir.home, '.git-fancy.db')
7
+ include Singleton
8
+
9
+ attr_reader :db
10
+
11
+ def initialize
12
+ @db = SQLite3::Database.new FILE_PATH
13
+ create_recent_branches_table
14
+ end
15
+
16
+ def create_recent_branches_table
17
+ return if table_exists?('recent_branches')
18
+
19
+ puts 'Creating and indexing recent_branches'
20
+ db.execute <<~SQL
21
+ CREATE TABLE recent_branches(
22
+ name TEXT,
23
+ last_accessed INTEGER,
24
+ note TEXT
25
+ );
26
+ SQL
27
+ db.execute 'CREATE UNIQUE INDEX recent_branches_branch_name ON recent_branches(name);'
28
+ db.execute 'CREATE INDEX recent_branches_last_accessed ON recent_branches(last_accessed);'
29
+ end
30
+
31
+ def table_exists?(table_name)
32
+ !db.execute("SELECT name FROM sqlite_master WHERE type='table' AND name=?;", [table_name]).empty?
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Git
4
+ module Fancy
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
data/lib/git/fancy.rb ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "fancy/db"
4
+ require_relative "fancy/branch_history"
5
+ require_relative "fancy/version"
6
+
7
+ module Git
8
+ module Fancy
9
+ end
10
+ end
11
+
data/sig/git/fancy.rbs ADDED
@@ -0,0 +1,6 @@
1
+ module Git
2
+ module Fancy
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: git-fancy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sean McCleary
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: tty-prompt
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: tty-logger
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: sqlite3
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ description: This gem is a tool to switch between recent branches and add notes to
55
+ them.
56
+ email:
57
+ - seanmcc@gmail.com
58
+ executables:
59
+ - switch-branch
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - CHANGELOG.md
66
+ - CODE_OF_CONDUCT.md
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - exe/switch-branch
71
+ - lib/git/fancy.rb
72
+ - lib/git/fancy/branch_history.rb
73
+ - lib/git/fancy/db.rb
74
+ - lib/git/fancy/version.rb
75
+ - sig/git/fancy.rbs
76
+ homepage: https://github.com/mrinterweb/git-fancy
77
+ licenses:
78
+ - MIT
79
+ metadata:
80
+ homepage_uri: https://github.com/mrinterweb/git-fancy
81
+ source_code_uri: https://github.com/mrinterweb/git-fancy
82
+ changelog_uri: https://github.com/mrinterweb/git-fancy/blob/main/CHANGELOG.md
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 3.1.0
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubygems_version: 3.6.8
98
+ specification_version: 4
99
+ summary: Fancy git branch switcher
100
+ test_files: []