gh_issues 0.4.7 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +8 -5
- data/.github/FUNDING.yml +2 -0
- data/.travis.yml +3 -2
- data/README.md +4 -3
- data/Rakefile +13 -0
- data/bin/setup +2 -1
- data/gh_issues.gemspec +9 -9
- data/lib/gh_issues/version.rb +1 -1
- data/lib/gh_issues.rb +3 -1
- metadata +43 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed8c9d16f8c541851df319e9a16c126722eea120103c60c03da3fdeb4590107
|
4
|
+
data.tar.gz: 7e284b80dcb03fd153f414f1a8a668f989c48541d39e3673893cc0d9fc339a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba4c6428a31e5c8eb81fac677445f1ce01a2a50a02399c7b4bfe32db18ff8d2c923dba52bbc5a2ef3f6a80aeffd04d64f68e76cedfb76a658e8a2fb6db0d763
|
7
|
+
data.tar.gz: 757d8cb658385162f9bdf005dcb6d2e243e69e6b76ca772d624d3e6aace5d8c27555e7af5c420824bde83630df3b2ca19e165a635c21a4c4fa36203e12db77b9
|
data/.bumpversion.cfg
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
[bumpversion]
|
2
|
-
current_version = 0.4.
|
2
|
+
current_version = 0.4.9
|
3
3
|
commit = True
|
4
4
|
|
5
|
-
[bumpversion:file:README.md]
|
6
|
-
search = gem "@vigo/gh_issues" ~> "{current_version}"
|
7
|
-
replace = gem "@vigo/gh_issues" ~> "{new_version}"
|
8
|
-
|
9
5
|
[bumpversion:file:lib/gh_issues/version.rb]
|
10
6
|
search = VERSION = "{current_version}"
|
11
7
|
replace = VERSION = "{new_version}"
|
12
8
|
|
9
|
+
[bumpversion:file:README.md]
|
10
|
+
search = gh_issues --version "{current_version}"
|
11
|
+
replace = gh_issues --version "{new_version}"
|
12
|
+
|
13
|
+
[bumpversion:file:Gemfile.lock]
|
14
|
+
search = gh_issues ({current_version})
|
15
|
+
replace = gh_issues ({new_version})
|
data/.github/FUNDING.yml
ADDED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/gh_issues.svg)](https://badge.fury.io/rb/gh_issues)
|
2
|
-
[![Build Status](https://travis-ci.org/vigo/
|
2
|
+
[![Build Status](https://travis-ci.org/vigo/gh_issues.svg?branch=master)](https://travis-ci.org/vigo/gh_issues)
|
3
|
+
![Powered by Rake](https://img.shields.io/badge/powered_by-rake-blue?logo=ruby)
|
3
4
|
|
4
5
|
# GitHub Issues
|
5
6
|
|
@@ -19,13 +20,13 @@ I need this tool for couple of reasons:
|
|
19
20
|
This is a command-line client. You can install via:
|
20
21
|
|
21
22
|
```bash
|
22
|
-
gem install gh_issues
|
23
|
+
$ gem install gh_issues
|
23
24
|
```
|
24
25
|
|
25
26
|
or,
|
26
27
|
|
27
28
|
```bash
|
28
|
-
gem
|
29
|
+
$ gem install gh_issues --version "0.4.9" --source "https://rubygems.pkg.github.com/vigo"
|
29
30
|
```
|
30
31
|
|
31
32
|
## Usage
|
data/Rakefile
CHANGED
@@ -9,6 +9,13 @@ end
|
|
9
9
|
|
10
10
|
task :default => :test
|
11
11
|
|
12
|
+
def get_package_name
|
13
|
+
name = Dir['*.gemspec'].first.split('.').first
|
14
|
+
line = File.read("lib/#{name}/version.rb")[/^\s*VERSION\s*=\s*.*/]
|
15
|
+
version = line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
|
16
|
+
"#{name}-#{version}.gem"
|
17
|
+
end
|
18
|
+
|
12
19
|
AVAILABLE_REVISIONS = ["major", "minor", "patch"]
|
13
20
|
desc "Bump version"
|
14
21
|
task :bump, [:revision] do |t, args|
|
@@ -16,3 +23,9 @@ task :bump, [:revision] do |t, args|
|
|
16
23
|
abort "Please provide valid revision: #{AVAILABLE_REVISIONS.join(',')}" unless AVAILABLE_REVISIONS.include?(args.revision)
|
17
24
|
system "bumpversion #{args.revision}"
|
18
25
|
end
|
26
|
+
|
27
|
+
desc "Push #{get_package_name} to GitHub registry"
|
28
|
+
task :push_to_github => [:build] do
|
29
|
+
package_path = "pkg/#{get_package_name}"
|
30
|
+
system "gem push --key github --host https://rubygems.pkg.github.com/vigo #{package_path}"
|
31
|
+
end
|
data/bin/setup
CHANGED
data/gh_issues.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Manage your GitHub issues from command-line.}
|
13
13
|
spec.description = %q{Manage your GitHub issues from command-line.}
|
14
|
-
spec.homepage = "https://github.com/vigo/
|
15
|
-
spec.metadata = {"github_repo" => "ssh://github.com/vigo/
|
14
|
+
spec.homepage = "https://github.com/vigo/gh_issues"
|
15
|
+
spec.metadata = {"github_repo" => "ssh://github.com/vigo/gh_issues"}
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -20,15 +20,15 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
24
|
-
spec.add_development_dependency 'rake', '~>
|
25
|
-
spec.add_development_dependency 'minitest', '~> 5.
|
26
|
-
spec.add_development_dependency 'minitest-reporters', '~> 1.4', '>= 1.4.
|
27
|
-
spec.add_development_dependency 'pry', '0.
|
23
|
+
spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.4'
|
24
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
25
|
+
spec.add_development_dependency 'minitest', '~> 5.14'
|
26
|
+
spec.add_development_dependency 'minitest-reporters', '~> 1.4', '>= 1.4.2'
|
27
|
+
spec.add_development_dependency 'pry', '~> 0.13.0'
|
28
28
|
|
29
29
|
spec.add_runtime_dependency 'terminal-table', '~> 1.8'
|
30
|
-
spec.add_runtime_dependency 'thor', '~> 0.
|
31
|
-
spec.add_runtime_dependency 'octokit', '~> 4.
|
30
|
+
spec.add_runtime_dependency 'thor', '~> 1.0', '>= 1.0.1'
|
31
|
+
spec.add_runtime_dependency 'octokit', '~> 4.18'
|
32
32
|
spec.add_runtime_dependency 'time_difference', '~> 0.7.0'
|
33
33
|
spec.add_runtime_dependency 'redcarpet', '~> 3.5'
|
34
34
|
end
|
data/lib/gh_issues/version.rb
CHANGED
data/lib/gh_issues.rb
CHANGED
@@ -13,8 +13,9 @@ module GhIssues
|
|
13
13
|
|
14
14
|
def self.check_ghi_github_credentials
|
15
15
|
begin
|
16
|
-
|
16
|
+
@@client.user
|
17
17
|
rescue Octokit::Unauthorized => error_message
|
18
|
+
puts error_message
|
18
19
|
raise ::GhIssues::GitHubBadCredentialsError, "Bad GitHub credentials."
|
19
20
|
end
|
20
21
|
end
|
@@ -87,6 +88,7 @@ module GhIssues
|
|
87
88
|
updated_at: issue[:updated_at],
|
88
89
|
}
|
89
90
|
rescue Octokit::NotFound => error_message
|
91
|
+
puts error_message
|
90
92
|
puts "Incorrect issue number (#{issue_number})"
|
91
93
|
exit
|
92
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh_issues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uğur Özyılmazel
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,54 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.1.4
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
29
|
+
version: '2.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.1.4
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '13.0'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 13.0.1
|
34
43
|
type: :development
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
49
|
+
version: '13.0'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 13.0.1
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: minitest
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - "~>"
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '5.
|
59
|
+
version: '5.14'
|
48
60
|
type: :development
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
64
|
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: '5.
|
66
|
+
version: '5.14'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: minitest-reporters
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +73,7 @@ dependencies:
|
|
61
73
|
version: '1.4'
|
62
74
|
- - ">="
|
63
75
|
- !ruby/object:Gem::Version
|
64
|
-
version: 1.4.
|
76
|
+
version: 1.4.2
|
65
77
|
type: :development
|
66
78
|
prerelease: false
|
67
79
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -71,21 +83,21 @@ dependencies:
|
|
71
83
|
version: '1.4'
|
72
84
|
- - ">="
|
73
85
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.4.
|
86
|
+
version: 1.4.2
|
75
87
|
- !ruby/object:Gem::Dependency
|
76
88
|
name: pry
|
77
89
|
requirement: !ruby/object:Gem::Requirement
|
78
90
|
requirements:
|
79
|
-
- -
|
91
|
+
- - "~>"
|
80
92
|
- !ruby/object:Gem::Version
|
81
|
-
version: 0.
|
93
|
+
version: 0.13.0
|
82
94
|
type: :development
|
83
95
|
prerelease: false
|
84
96
|
version_requirements: !ruby/object:Gem::Requirement
|
85
97
|
requirements:
|
86
|
-
- -
|
98
|
+
- - "~>"
|
87
99
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.
|
100
|
+
version: 0.13.0
|
89
101
|
- !ruby/object:Gem::Dependency
|
90
102
|
name: terminal-table
|
91
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,28 +118,34 @@ dependencies:
|
|
106
118
|
requirements:
|
107
119
|
- - "~>"
|
108
120
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0
|
121
|
+
version: '1.0'
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.0.1
|
110
125
|
type: :runtime
|
111
126
|
prerelease: false
|
112
127
|
version_requirements: !ruby/object:Gem::Requirement
|
113
128
|
requirements:
|
114
129
|
- - "~>"
|
115
130
|
- !ruby/object:Gem::Version
|
116
|
-
version: 0
|
131
|
+
version: '1.0'
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 1.0.1
|
117
135
|
- !ruby/object:Gem::Dependency
|
118
136
|
name: octokit
|
119
137
|
requirement: !ruby/object:Gem::Requirement
|
120
138
|
requirements:
|
121
139
|
- - "~>"
|
122
140
|
- !ruby/object:Gem::Version
|
123
|
-
version: '4.
|
141
|
+
version: '4.18'
|
124
142
|
type: :runtime
|
125
143
|
prerelease: false
|
126
144
|
version_requirements: !ruby/object:Gem::Requirement
|
127
145
|
requirements:
|
128
146
|
- - "~>"
|
129
147
|
- !ruby/object:Gem::Version
|
130
|
-
version: '4.
|
148
|
+
version: '4.18'
|
131
149
|
- !ruby/object:Gem::Dependency
|
132
150
|
name: time_difference
|
133
151
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,6 +183,7 @@ extensions: []
|
|
165
183
|
extra_rdoc_files: []
|
166
184
|
files:
|
167
185
|
- ".bumpversion.cfg"
|
186
|
+
- ".github/FUNDING.yml"
|
168
187
|
- ".gitignore"
|
169
188
|
- ".travis.yml"
|
170
189
|
- CODE_OF_CONDUCT.md
|
@@ -180,12 +199,12 @@ files:
|
|
180
199
|
- lib/gh_issues.rb
|
181
200
|
- lib/gh_issues/cli.rb
|
182
201
|
- lib/gh_issues/version.rb
|
183
|
-
homepage: https://github.com/vigo/
|
202
|
+
homepage: https://github.com/vigo/gh_issues
|
184
203
|
licenses:
|
185
204
|
- MIT
|
186
205
|
metadata:
|
187
|
-
github_repo: ssh://github.com/vigo/
|
188
|
-
post_install_message:
|
206
|
+
github_repo: ssh://github.com/vigo/gh_issues
|
207
|
+
post_install_message:
|
189
208
|
rdoc_options: []
|
190
209
|
require_paths:
|
191
210
|
- lib
|
@@ -200,8 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
219
|
- !ruby/object:Gem::Version
|
201
220
|
version: '0'
|
202
221
|
requirements: []
|
203
|
-
rubygems_version: 3.
|
204
|
-
signing_key:
|
222
|
+
rubygems_version: 3.3.26
|
223
|
+
signing_key:
|
205
224
|
specification_version: 4
|
206
225
|
summary: Manage your GitHub issues from command-line.
|
207
226
|
test_files: []
|