gnav 0.3.1 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa3051d2421e791f72f1b0b5fe3b8555659ced717fd0673e933e6c682240f4f8
4
- data.tar.gz: d99af68932fd661797c5a588948f3ba65103d988f21abfd09cf3bd9ba3501f3c
3
+ metadata.gz: 3b0f80c776f44c119ace59cd7c9a5e8308418dbebafd0d56ef5126d79b390967
4
+ data.tar.gz: a45c068ccc8991749025b494417bd28b1f90b05dd198a5f57835df3bda3486c2
5
5
  SHA512:
6
- metadata.gz: 1d28bc4f4fb4f7764593f69488bc453992b8208829ede70b5e6ba83afc2914da1f5808e0e10f63c2ea228e167fdde1262f48f46a4cadc802e0d70acf1bd5600f
7
- data.tar.gz: 8b828fbe2ef5f58ab193cb5c74f9b232522215687f9f3467dc236559fb5a2d7b55f4f7df68d54c7cc83ed61fff730265b58def27c38c6a9878c2d07bc64f315e
6
+ metadata.gz: f4d4fd6654ab4c7d7a843387a53d4d7cc79a79a1c493884fe251c3834f3f342a3b2a63dc69edfe5413080693cbfa3fa8c147ffc39d2e0cb8a4c076dbee69b415
7
+ data.tar.gz: feee967450e66b5b2fd7aa4ee27793d88ea1608e18d9347d18fe566f5c8cbad54722aa8d80bbf9dbf179bcbff8ef736e89113adc3cdb8159e8e665b42ae88cd7
data/Gemfile CHANGED
@@ -9,4 +9,5 @@ group :development, :test do
9
9
  gem 'pry-byebug'
10
10
  gem 'pry-stack_explorer'
11
11
  gem 'simplecov', require: false
12
+ gem 'rake'
12
13
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gnav (0.3.0)
4
+ gnav (0.3.2)
5
+ cli
5
6
  git
6
7
  tty-prompt (>= 0.22.0, < 0.24)
7
8
 
@@ -13,6 +14,7 @@ GEM
13
14
  binding_of_caller (1.0.0)
14
15
  debug_inspector (>= 0.0.1)
15
16
  byebug (11.1.3)
17
+ cli (1.4.0)
16
18
  coderay (1.1.3)
17
19
  debug_inspector (1.1.0)
18
20
  diff-lcs (1.5.0)
@@ -33,6 +35,7 @@ GEM
33
35
  binding_of_caller (~> 1.0)
34
36
  pry (~> 0.13)
35
37
  public_suffix (5.0.3)
38
+ rake (13.1.0)
36
39
  rchardet (1.8.0)
37
40
  rspec (3.12.0)
38
41
  rspec-core (~> 3.12.0)
@@ -73,8 +76,9 @@ DEPENDENCIES
73
76
  pry
74
77
  pry-byebug
75
78
  pry-stack_explorer
79
+ rake
76
80
  rspec
77
81
  simplecov
78
82
 
79
83
  BUNDLED WITH
80
- 2.1.4
84
+ 2.2.3
data/README.md CHANGED
@@ -1,24 +1,16 @@
1
1
  # GNav
2
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/gnav`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ `gnav` is a simple command line tool to choose git tag and branch interactively.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
5
 
7
6
  ## Installation
8
7
 
9
- Add this line to your application's Gemfile:
8
+ Simply, install it with gem.
10
9
 
11
- ```ruby
12
- gem 'gnav'
10
+ ```shell
11
+ $ gem 'gnav'
13
12
  ```
14
13
 
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install gnav
22
14
 
23
15
  ## Usage
24
16
 
@@ -26,13 +18,14 @@ TODO: Write usage instructions here
26
18
 
27
19
  ## Development
28
20
 
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.
21
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
22
 
31
23
  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
24
 
25
+
33
26
  ## Contributing
34
27
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gnav. 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]/gnav/blob/master/CODE_OF_CONDUCT.md).
28
+ Bug reports and pull requests are welcome on GitHub at https://github.com/suzukimilanpaak/gnav. 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/suzukimilanpaak/gnav/blob/master/CODE_OF_CONDUCT.md).
36
29
 
37
30
 
38
31
  ## License
@@ -41,4 +34,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
41
34
 
42
35
  ## Code of Conduct
43
36
 
44
- Everyone interacting in the GNav project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/gnav/blob/master/CODE_OF_CONDUCT.md).
37
+ Everyone interacting in the GNav project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/suzukimilanpaak/gnav/blob/master/CODE_OF_CONDUCT.md).
data/bin/release/gnav CHANGED
@@ -1,5 +1,14 @@
1
1
  #!/usr/bin/env ruby -W0
2
2
 
3
+ require 'cli'
4
+ require "rubygems"
3
5
  require_relative '../../lib/gnav.rb'
4
6
 
7
+ gemspec = Gem::Specification::load('gnav.gemspec')
8
+
9
+ CLI.new do
10
+ description gemspec.description
11
+ version gemspec.version
12
+ end.parse!
13
+
5
14
  GNav.run
data/gnav.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.email = ["ttsysuzuki@googlemail.com"]
8
8
 
9
9
  spec.summary = 'Interactive git tag and branch selector'
10
- spec.description = 'A CLI to let you interactive select tag and branch'
10
+ spec.description = '`gnav` is a simple command line tool to choose git tag and branch interactively.'
11
11
  spec.homepage = 'https://github.com/suzukimilanpaak/gnav'
12
12
 
13
13
  spec.license = "MIT"
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  spec.add_dependency 'git'
32
+ spec.add_dependency 'cli'
32
33
  # see monkey_patches/tty/prompt.rb for more details
33
34
  spec.add_dependency 'tty-prompt', '>= 0.22.0', '< 0.24'
34
35
  spec.add_development_dependency 'rspec'
data/lib/gnav/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GNav
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/gnav.rb CHANGED
@@ -1,12 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/setup'
4
3
  require_relative './gnav/version'
5
4
  require_relative '../lib/git_prompt'
6
5
 
7
- # Load bundled gems
8
- Bundler.require(:default)
9
-
10
6
  module GNav
11
7
  def self.run
12
8
  GitPrompt.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuya Suzuki
8
8
  autorequire:
9
9
  bindir: bin/release
10
10
  cert_chain: []
11
- date: 2023-10-29 00:00:00.000000000 Z
11
+ date: 2023-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cli
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'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: tty-prompt
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +72,7 @@ dependencies:
58
72
  - - ">="
59
73
  - !ruby/object:Gem::Version
60
74
  version: '0'
61
- description: A CLI to let you interactive select tag and branch
75
+ description: "`gnav` is a simple command line tool to choose git tag and branch interactively."
62
76
  email:
63
77
  - ttsysuzuki@googlemail.com
64
78
  executables:
@@ -107,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
121
  - !ruby/object:Gem::Version
108
122
  version: '0'
109
123
  requirements: []
110
- rubygems_version: 3.4.10
124
+ rubygems_version: 3.2.3
111
125
  signing_key:
112
126
  specification_version: 4
113
127
  summary: Interactive git tag and branch selector