geet 0.3.4 → 0.3.5

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
- SHA1:
3
- metadata.gz: 8b30416607b1d594f4f4d38dc61668a8bb4d2b33
4
- data.tar.gz: c76019c10cc053dc38d7fdc257dbfa0f07e76f48
2
+ SHA256:
3
+ metadata.gz: 06e8a6a20ed456c7b17bfde4830eb57877163ef09487de59b67238011638177a
4
+ data.tar.gz: 2e0205cbd2447689d9fdcf55fd1a8bdba9de5c72301aff16823cc4baf2a7c2bc
5
5
  SHA512:
6
- metadata.gz: 8be0ea5f9f1be8f4307cced46bb846b84b5f74ecfd42f93d89266c57f4cb466913f07d9b849dece1ff4ff4214714d8663fb7316032fd47e10762c5669a528aca
7
- data.tar.gz: a57c1f035b94aa97a7393da8e818f176683fd682542a2a80d5cf39203442cceefe13eb2ffef872e07d8f315e2e461511d4ef8104531dc9bb6f7dcc95bebbaa87
6
+ metadata.gz: 6a493c1b2ab0250859d215f06271f27d2c2caabcc819c049623d644a12351ceaaca7668ad765f62887317de36c2213847addb9e95aeba258ee7263d70f58e3f6
7
+ data.tar.gz: a9774631c431a33e6a6eb9851953e3294978086ecc51ebe1d3f9e33b2a64392a796c1894019ce9f1515186f81d8800f659dde509d325c84f1dc628e1df02370f
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
- Gemfile.lock
1
+ /.ruby-version
2
+ /Gemfile.lock
@@ -6,6 +6,3 @@ rvm:
6
6
  # API tokens are always required, but not used in testing, since no requests are actually made.
7
7
  env:
8
8
  - GITHUB_API_TOKEN=phony GITLAB_API_TOKEN=phony
9
- # Bundler+Rubygems issue; see https://github.com/travis-ci/travis-ci/issues/8978
10
- before_install:
11
- - gem update --system
data/README.md CHANGED
@@ -8,6 +8,14 @@ This tool is very similar to [Hub](https://github.com/github/hub), but it suppor
8
8
 
9
9
  Please see the [development status](#development-status) section for informations about the current development.
10
10
 
11
+ ## Development status
12
+
13
+ Geet is not under active development anymore.
14
+
15
+ Although I keep using it daily, and I have many ideas for making it very smooth and efficient (beside the fact that it's very easy to extend), it has no userbase, while [Hub](https://github.com/github/hub) has a very large one.
16
+
17
+ Therefore, it's probably better to put effort in contributing Hub, rather than improving Geet.
18
+
11
19
  ## Operation/providers support
12
20
 
13
21
  The functionalities currently supported are:
@@ -156,10 +164,4 @@ Examples:
156
164
  $ geet pr --help
157
165
  $ geet pr create --help
158
166
 
159
- ## Development status
160
-
161
- Geet is in beta status. Although I use it daily, new features are frequently added, and internal/external APIs/workflows may change.
162
-
163
- The public release will be 1.0.
164
-
165
167
  [BS img]: https://travis-ci.org/saveriomiroddi/geet.svg?branch=master
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.required_ruby_version = '>= 2.3.0'
12
12
  s.authors = ['Saverio Miroddi']
13
- s.date = '2018-02-05'
13
+ s.date = '2018-04-01'
14
14
  s.email = ['saverio.pub2@gmail.com']
15
15
  s.homepage = 'https://github.com/saveriomiroddi/geet'
16
16
  s.summary = 'Commandline interface for performing SCM (eg. GitHub) operations (eg. PR creation).'
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.license = 'GPL-3.0'
19
19
 
20
20
  s.add_runtime_dependency 'simple_scripting', '~> 0.9.4'
21
- s.add_runtime_dependency 'temp-fork-tp-filter', '= 0.0.3'
21
+ s.add_runtime_dependency 'tty-prompt', '>= 0.15.0'
22
22
 
23
23
  s.add_development_dependency 'rake', '~> 12.3.0'
24
24
 
@@ -45,7 +45,7 @@ module Geet
45
45
 
46
46
  if !wait_thread.value.success?
47
47
  error_message = stderr_content.lines.first.strip
48
- raise "Error#{description_message}: #{error_message})"
48
+ raise "Error#{description_message}: #{error_message}"
49
49
  end
50
50
 
51
51
  stdout_content.strip
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'temp-fork-tp-filter'
3
+ require 'tty-prompt'
4
4
 
5
5
  module Geet
6
6
  module Utils
@@ -19,7 +19,8 @@ module Geet
19
19
  # name_method: required when non-string objects are passed as entries; its invocation on
20
20
  # each object must return a string, which is used as key.
21
21
  #
22
- # returns: the selected entry. if no entries are nil is returned.
22
+ # returns: the selected entry. if the null entry (NO_SELECTION_KEY) is selected, nil is
23
+ # returned.
23
24
  #
24
25
  def select_entry(entry_type, entries, name_method: nil)
25
26
  return nil if entries.empty?
@@ -29,7 +30,9 @@ module Geet
29
30
  entries = create_entries_map(entries, name_method)
30
31
  entries = add_no_selection_entry(entries)
31
32
 
32
- show_prompt(:select, entry_type, entries)
33
+ chosen_entry = show_prompt(:select, entry_type, entries)
34
+
35
+ no_selection?(chosen_entry) ? nil : chosen_entry
33
36
  end
34
37
 
35
38
  # Shows a prompt for selecting an entry from a list.
@@ -73,6 +76,10 @@ module Geet
73
76
 
74
77
  TTY::Prompt.new.send(invocation_method, prompt_title, entries, filter: true, per_page: PAGER_SIZE)
75
78
  end
79
+
80
+ def no_selection?(entry)
81
+ entry == NO_SELECTION_KEY
82
+ end
76
83
  end
77
84
  end
78
85
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geet
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saverio Miroddi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-05 00:00:00.000000000 Z
11
+ date: 2018-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_scripting
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.9.4
27
27
  - !ruby/object:Gem::Dependency
28
- name: temp-fork-tp-filter
28
+ name: tty-prompt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.3
33
+ version: 0.15.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.3
40
+ version: 0.15.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +65,6 @@ files:
65
65
  - ".rspec"
66
66
  - ".rubocop.yml"
67
67
  - ".rubocop_todo.yml"
68
- - ".ruby-version"
69
68
  - ".travis.yml"
70
69
  - Gemfile
71
70
  - LICENSE
@@ -167,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
166
  version: '0'
168
167
  requirements: []
169
168
  rubyforge_project:
170
- rubygems_version: 2.6.14
169
+ rubygems_version: 2.7.4
171
170
  signing_key:
172
171
  specification_version: 4
173
172
  summary: Commandline interface for performing SCM (eg. GitHub) operations (eg. PR
@@ -1 +0,0 @@
1
- 2.3