git-nebenan 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +87 -0
- data/LICENSE +21 -0
- data/README.md +36 -0
- data/Rakefile +6 -0
- data/bin/console +15 -0
- data/bin/git-nebenan +8 -0
- data/git-nebenan.gemspec +34 -0
- data/lib/git/nebenan.rb +20 -0
- data/lib/git/nebenan/cli.rb +20 -0
- data/lib/git/nebenan/commands/checkout.rb +68 -0
- data/lib/git/nebenan/commands/command.rb +60 -0
- data/lib/git/nebenan/commands/config.rb +19 -0
- data/lib/git/nebenan/commands/jira.rb +37 -0
- data/lib/git/nebenan/commands/open.rb +27 -0
- data/lib/git/nebenan/version.rb +5 -0
- metadata +177 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fc86de7bf930116d5c539a7a1961eeedc21d913d5cbf284ef7e9ee5f3dddf8f9
|
4
|
+
data.tar.gz: 8dfcd90ad8d342adc80739b360e9298a0fa52a646b0626ffa333f66017637dc6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 790d6da0ef8cee360c793a9580f6667050d87e7167360d7269d69ddd37afd991b4b9469c190159431f1109e341ee59ed233db287115d2acf5bb9b7b700a994df
|
7
|
+
data.tar.gz: ad5b0f8f625cac970be15b065a05a1fc2ff94759c5d4cb8e4d5727d56b31224d2a81458921807c9708115780f004d4024f34ef76113ecd36944f683e3676d7f4
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0 Initial release
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
git-nebenan (0.1.0)
|
5
|
+
jira-ruby
|
6
|
+
thor
|
7
|
+
toml
|
8
|
+
tty-config
|
9
|
+
tty-logger
|
10
|
+
tty-platform
|
11
|
+
tty-prompt
|
12
|
+
|
13
|
+
GEM
|
14
|
+
remote: https://rubygems.org/
|
15
|
+
specs:
|
16
|
+
activesupport (6.1.3.1)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 1.6, < 2)
|
19
|
+
minitest (>= 5.1)
|
20
|
+
tzinfo (~> 2.0)
|
21
|
+
zeitwerk (~> 2.3)
|
22
|
+
atlassian-jwt (0.2.0)
|
23
|
+
jwt (~> 2.1.0)
|
24
|
+
byebug (11.1.3)
|
25
|
+
concurrent-ruby (1.1.8)
|
26
|
+
diff-lcs (1.4.4)
|
27
|
+
i18n (1.8.10)
|
28
|
+
concurrent-ruby (~> 1.0)
|
29
|
+
jira-ruby (2.1.5)
|
30
|
+
activesupport
|
31
|
+
atlassian-jwt
|
32
|
+
multipart-post
|
33
|
+
oauth (~> 0.5, >= 0.5.0)
|
34
|
+
jwt (2.1.0)
|
35
|
+
minitest (5.14.4)
|
36
|
+
multipart-post (2.1.1)
|
37
|
+
oauth (0.5.6)
|
38
|
+
parslet (1.8.2)
|
39
|
+
pastel (0.8.0)
|
40
|
+
tty-color (~> 0.5)
|
41
|
+
rake (12.3.3)
|
42
|
+
rspec (3.10.0)
|
43
|
+
rspec-core (~> 3.10.0)
|
44
|
+
rspec-expectations (~> 3.10.0)
|
45
|
+
rspec-mocks (~> 3.10.0)
|
46
|
+
rspec-core (3.10.1)
|
47
|
+
rspec-support (~> 3.10.0)
|
48
|
+
rspec-expectations (3.10.1)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.10.0)
|
51
|
+
rspec-mocks (3.10.2)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.10.0)
|
54
|
+
rspec-support (3.10.2)
|
55
|
+
thor (1.1.0)
|
56
|
+
toml (0.2.0)
|
57
|
+
parslet (~> 1.8.0)
|
58
|
+
tty-color (0.6.0)
|
59
|
+
tty-config (0.4.0)
|
60
|
+
tty-cursor (0.7.1)
|
61
|
+
tty-logger (0.6.0)
|
62
|
+
pastel (~> 0.8)
|
63
|
+
tty-platform (0.3.0)
|
64
|
+
tty-prompt (0.23.0)
|
65
|
+
pastel (~> 0.8)
|
66
|
+
tty-reader (~> 0.8)
|
67
|
+
tty-reader (0.9.0)
|
68
|
+
tty-cursor (~> 0.7)
|
69
|
+
tty-screen (~> 0.8)
|
70
|
+
wisper (~> 2.0)
|
71
|
+
tty-screen (0.8.1)
|
72
|
+
tzinfo (2.0.4)
|
73
|
+
concurrent-ruby (~> 1.0)
|
74
|
+
wisper (2.0.1)
|
75
|
+
zeitwerk (2.4.2)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
byebug
|
82
|
+
git-nebenan!
|
83
|
+
rake (~> 12.0)
|
84
|
+
rspec (~> 3.0)
|
85
|
+
|
86
|
+
BUNDLED WITH
|
87
|
+
2.1.4
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) Good Hood GmbH <johannes.opper@nebenan.de> (http://nebenan.de)
|
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,36 @@
|
|
1
|
+
# Git::Nebenan
|
2
|
+
|
3
|
+
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/nebenan`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'git-nebenan'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install git-nebenan
|
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 tags, 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-nebenan.
|
36
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "git/nebenan"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/git-nebenan
ADDED
data/git-nebenan.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require_relative 'lib/git/nebenan/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "git-nebenan"
|
5
|
+
spec.version = Git::Nebenan::VERSION
|
6
|
+
spec.authors = ["Johannes Opper"]
|
7
|
+
spec.email = ["johannes.opper@nebenan.de"]
|
8
|
+
|
9
|
+
spec.summary = %q{Switch git branches based on JIRA issues.}
|
10
|
+
spec.description = %q{Switch git branches based on JIRA issues.}
|
11
|
+
spec.homepage = "https://www.nebenan.de"
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
15
|
+
spec.metadata["source_code_uri"] = "https://github.com/goodhood-eu/git-nebenan"
|
16
|
+
spec.metadata["changelog_uri"] = "https://github.com/goodhood-eu/git-nebenan/CHANGELOG.md"
|
17
|
+
|
18
|
+
spec.add_dependency 'jira-ruby'
|
19
|
+
spec.add_dependency 'tty-prompt'
|
20
|
+
spec.add_dependency 'tty-config'
|
21
|
+
spec.add_dependency 'tty-platform'
|
22
|
+
spec.add_dependency 'tty-logger'
|
23
|
+
spec.add_dependency 'thor'
|
24
|
+
spec.add_dependency 'toml'
|
25
|
+
spec.add_development_dependency 'byebug'
|
26
|
+
|
27
|
+
# Specify which files should be added to the gem when it is released.
|
28
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
30
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
31
|
+
end
|
32
|
+
spec.executables = ["git-nebenan"]
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
end
|
data/lib/git/nebenan.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'jira-ruby'
|
4
|
+
require 'tty-prompt'
|
5
|
+
require 'tty-config'
|
6
|
+
require 'tty-logger'
|
7
|
+
require 'tty-platform'
|
8
|
+
require 'git/nebenan/commands/jira'
|
9
|
+
require 'git/nebenan/commands/command'
|
10
|
+
require 'git/nebenan/commands/config'
|
11
|
+
require 'git/nebenan/commands/checkout'
|
12
|
+
require 'git/nebenan/commands/open'
|
13
|
+
require 'git/nebenan/version'
|
14
|
+
require 'git/nebenan/cli'
|
15
|
+
|
16
|
+
module Git
|
17
|
+
module Nebenan
|
18
|
+
class Error < StandardError; end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Git
|
2
|
+
module Nebenan
|
3
|
+
class CLI < Thor
|
4
|
+
Error = Class.new(StandardError)
|
5
|
+
|
6
|
+
def self.exit_on_failure?
|
7
|
+
true
|
8
|
+
end
|
9
|
+
|
10
|
+
register Git::Nebenan::Commands::Jira, 'jira', 'jira [SUBCOMMAND]', 'Interact with jira'
|
11
|
+
|
12
|
+
desc 'version', 'app version'
|
13
|
+
def version
|
14
|
+
require_relative 'version'
|
15
|
+
puts "v#{App::VERSION}"
|
16
|
+
end
|
17
|
+
map %w(--version -v) => :version
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
module Git
|
2
|
+
module Nebenan
|
3
|
+
module Commands
|
4
|
+
class Checkout < Command
|
5
|
+
def initialize(options)
|
6
|
+
@options = options
|
7
|
+
end
|
8
|
+
|
9
|
+
def execute
|
10
|
+
unless config.exist?
|
11
|
+
logger.error 'missing config'
|
12
|
+
logger.info 'run `git nebenan jira config first`'
|
13
|
+
return
|
14
|
+
end
|
15
|
+
|
16
|
+
issues = jira_client.Issue.jql("PROJECT = '#{config.fetch('jira.project')}' AND status in ('Backlog', 'To Do', 'In Progress')", fields: [:summary, :assignee])
|
17
|
+
|
18
|
+
choices = issues.map { |issue| { name: present(issue), value: issue.key } }
|
19
|
+
|
20
|
+
puts "\n"
|
21
|
+
|
22
|
+
key = prompt.select("Choose ticket?", choices, filter: true)
|
23
|
+
|
24
|
+
remote_branch = find_remote_branch(key)
|
25
|
+
local_branch = find_local_branch(key)
|
26
|
+
|
27
|
+
puts "\n"
|
28
|
+
|
29
|
+
command = if !local_branch.empty?
|
30
|
+
logger.local "branch found, switching:"
|
31
|
+
# puts Pastel.new.dim(" git checkout #{local_branch}")
|
32
|
+
# `git checkout #{local_branch}`
|
33
|
+
"git checkout #{local_branch}"
|
34
|
+
elsif !remote_branch.empty?
|
35
|
+
logger.remote "branch found, checking out:"
|
36
|
+
"git checkout -t #{remote_branch}"
|
37
|
+
else
|
38
|
+
logger.create "missing branch:"
|
39
|
+
"git checkout -b feature/#{generate_branch_name(issues.find { |i| i.key == key })}"
|
40
|
+
end
|
41
|
+
|
42
|
+
puts Pastel.new.dim(" #{command}")
|
43
|
+
puts "\n"
|
44
|
+
`#{command}`
|
45
|
+
rescue TTY::Reader::InputInterrupt
|
46
|
+
puts "\n"
|
47
|
+
logger.error 'aborted'
|
48
|
+
end
|
49
|
+
|
50
|
+
def find_remote_branch(key)
|
51
|
+
`git branch --remote --list '**/#{key}*' --format \"%(refname:short)\"`.strip
|
52
|
+
end
|
53
|
+
|
54
|
+
def find_local_branch(key)
|
55
|
+
`git branch --list '**/#{key}*' --format \"%(refname:short)\"`.strip
|
56
|
+
end
|
57
|
+
|
58
|
+
def generate_branch_name(issue)
|
59
|
+
[issue.key, issue.fields['summary'].strip.squish.downcase].join(' ').gsub(/\W/, ?-)
|
60
|
+
end
|
61
|
+
|
62
|
+
def present(issue)
|
63
|
+
"#{issue.key} #{issue.fields['summary']} (#{issue.fields.dig('assignee', 'key') || Pastel.new.red('unassigned')})"
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
module Git
|
2
|
+
module Nebenan
|
3
|
+
module Commands
|
4
|
+
class Command
|
5
|
+
def config
|
6
|
+
@config ||= begin
|
7
|
+
config = TTY::Config.new
|
8
|
+
config.filename = ".git-nebenan"
|
9
|
+
config.extname = ".toml"
|
10
|
+
config.append_path Dir.home
|
11
|
+
config.read if config.exist?
|
12
|
+
config
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def prompt
|
17
|
+
@prompt ||= TTY::Prompt.new(help_color: :cyan)
|
18
|
+
end
|
19
|
+
|
20
|
+
def jira_client
|
21
|
+
@jira_client ||= JIRA::Client.new(
|
22
|
+
username: config.fetch('jira.username'),
|
23
|
+
password: config.fetch('jira.password'),
|
24
|
+
site: config.fetch('jira.site'),
|
25
|
+
context_path: '',
|
26
|
+
auth_type: :basic,
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
def logger
|
31
|
+
@logger ||= TTY::Logger.new do |log|
|
32
|
+
log.types = {
|
33
|
+
remote: { level: :info },
|
34
|
+
local: { level: :info },
|
35
|
+
create: { level: :info },
|
36
|
+
command: { level: :info },
|
37
|
+
}
|
38
|
+
log.handlers = [
|
39
|
+
[
|
40
|
+
:console,
|
41
|
+
{
|
42
|
+
styles: {
|
43
|
+
remote: { symbol: "✔", label: "remote", color: :yellow, levelpad: 0 },
|
44
|
+
local: { symbol: "✔", label: "local", color: :green, levelpad: 0 },
|
45
|
+
create: { symbol: "+", label: "create", color: :blue, levelpad: 0 },
|
46
|
+
command: { symbol: " ", label: " ", color: :dim, levelpad: 0 },
|
47
|
+
}
|
48
|
+
}
|
49
|
+
]
|
50
|
+
]
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def platform
|
55
|
+
@platform ||= TTY::Platform.new
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Git
|
2
|
+
module Nebenan
|
3
|
+
module Commands
|
4
|
+
class Config < Command
|
5
|
+
def initialize(options)
|
6
|
+
@options = options
|
7
|
+
end
|
8
|
+
|
9
|
+
def execute
|
10
|
+
config.set('jira.username', value: prompt.ask('JIRA username', default: ENV['USER']))
|
11
|
+
config.set('jira.password', value: prompt.mask('JIRA password'))
|
12
|
+
config.set('jira.site', value: prompt.ask('JIRA site', default: 'https://jira.nebenan.de/'))
|
13
|
+
config.set('jira.project', value: prompt.ask('JIRA project', default: 'CORE'))
|
14
|
+
config.write(force: true)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Git
|
2
|
+
module Nebenan
|
3
|
+
module Commands
|
4
|
+
class Jira < Thor
|
5
|
+
|
6
|
+
namespace :jira
|
7
|
+
|
8
|
+
desc 'config', 'Command description...'
|
9
|
+
def config(*)
|
10
|
+
if options[:help]
|
11
|
+
invoke :help, ['config']
|
12
|
+
else
|
13
|
+
Git::Nebenan::Commands::Config.new(options).execute
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'checkout', 'Command description...'
|
18
|
+
def checkout(*)
|
19
|
+
if options[:help]
|
20
|
+
invoke :help, ['checkout']
|
21
|
+
else
|
22
|
+
Git::Nebenan::Commands::Checkout.new(options).execute
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
desc 'open', 'Open JIRA ticket in browser'
|
27
|
+
def open(*)
|
28
|
+
if options[:help]
|
29
|
+
invoke :help, ['open']
|
30
|
+
else
|
31
|
+
Git::Nebenan::Commands::Open.new(options).execute
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Git
|
2
|
+
module Nebenan
|
3
|
+
module Commands
|
4
|
+
class Open < Command
|
5
|
+
def initialize(options)
|
6
|
+
@options = options
|
7
|
+
end
|
8
|
+
|
9
|
+
def execute
|
10
|
+
current_branch = `git branch --show-current`
|
11
|
+
project = config.fetch('jira.project')
|
12
|
+
issue = current_branch[/#{project}-\d+/]
|
13
|
+
url = [config.fetch('jira.site'), 'projects', project, 'issues', issue].join(?/).squeeze(?/)
|
14
|
+
logger.info url
|
15
|
+
|
16
|
+
if platform.mac?
|
17
|
+
`open #{url}`
|
18
|
+
elsif platform.linux?
|
19
|
+
`xdg-open #{url}`
|
20
|
+
else
|
21
|
+
`start #{url}`
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: git-nebenan
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Johannes Opper
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jira-ruby
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: tty-prompt
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tty-config
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tty-platform
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: tty-logger
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: thor
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: toml
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: byebug
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Switch git branches based on JIRA issues.
|
126
|
+
email:
|
127
|
+
- johannes.opper@nebenan.de
|
128
|
+
executables:
|
129
|
+
- git-nebenan
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rspec"
|
135
|
+
- CHANGELOG.md
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
138
|
+
- LICENSE
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- bin/console
|
142
|
+
- bin/git-nebenan
|
143
|
+
- git-nebenan.gemspec
|
144
|
+
- lib/git/nebenan.rb
|
145
|
+
- lib/git/nebenan/cli.rb
|
146
|
+
- lib/git/nebenan/commands/checkout.rb
|
147
|
+
- lib/git/nebenan/commands/command.rb
|
148
|
+
- lib/git/nebenan/commands/config.rb
|
149
|
+
- lib/git/nebenan/commands/jira.rb
|
150
|
+
- lib/git/nebenan/commands/open.rb
|
151
|
+
- lib/git/nebenan/version.rb
|
152
|
+
homepage: https://www.nebenan.de
|
153
|
+
licenses: []
|
154
|
+
metadata:
|
155
|
+
homepage_uri: https://www.nebenan.de
|
156
|
+
source_code_uri: https://github.com/goodhood-eu/git-nebenan
|
157
|
+
changelog_uri: https://github.com/goodhood-eu/git-nebenan/CHANGELOG.md
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options: []
|
160
|
+
require_paths:
|
161
|
+
- lib
|
162
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 2.3.0
|
167
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
requirements: []
|
173
|
+
rubygems_version: 3.1.4
|
174
|
+
signing_key:
|
175
|
+
specification_version: 4
|
176
|
+
summary: Switch git branches based on JIRA issues.
|
177
|
+
test_files: []
|