gh_issues 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 555cbd34f219d73894066bc1aee857022fd22a144d3d89b11aa91d8b51ce33aa
4
- data.tar.gz: 8e5d222dfd86613032277d53780a52b60bf6f6b2ca8c7505cd7b702870a12b68
3
+ metadata.gz: f116f9aa17103ebb0e6e481a14f6cc1e5f98224cd19071be9eaf5d5613007262
4
+ data.tar.gz: 6c7b3434630c8b94832454a568538e97f346b9ea6dabbb59ea5866ba2cd3e7ea
5
5
  SHA512:
6
- metadata.gz: 021b6a293374b4928b500321b6be5f9528accdb940f68eb503494fa076aa258c7bdc9d572772ce3f6211374383d2ed6379a7669dcb039f5671c5e18b2e850faa
7
- data.tar.gz: f1f5e2ce671ae6904284fc79798cf9ba5015203657053231d8f52bd3e306355ed470f24e3fd15434d360620412e4f45a1f4de02250b31a0b12c2c4a85bec24f0
6
+ metadata.gz: 32e221cd7babd2a987c207e42d4c8117623b68cabecf4658ae52c7d88a6dda53364cb895aa5f91c548adbc3866a01d0c480c352f9ec31908948f465e02d29ca3
7
+ data.tar.gz: a179422ccb6ada5ba6b250cde5c451da5226ea0d43876313dae555849cea07716146790208952c6174e14d9e16b58a7404f5ad2dcb7e47d23afe52f026af0ae9
@@ -1,12 +1,16 @@
1
1
  [bumpversion]
2
- current_version = 0.4.7
2
+ current_version = 0.4.8
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})
16
+
@@ -1,5 +1,6 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 1.12.5
4
+ - 2.6.5
5
+ before_install:
6
+ - gem install bundler
data/README.md CHANGED
@@ -19,13 +19,13 @@ I need this tool for couple of reasons:
19
19
  This is a command-line client. You can install via:
20
20
 
21
21
  ```bash
22
- gem install gh_issues
22
+ $ gem install gh_issues
23
23
  ```
24
24
 
25
25
  or,
26
26
 
27
27
  ```bash
28
- gem "@vigo/gh_issues" ~> "0.4.7"
28
+ $ gem install gh_issues --version "0.4.8" --source "https://rubygems.pkg.github.com/vigo"
29
29
  ```
30
30
 
31
31
  ## 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
@@ -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.0'
24
- spec.add_development_dependency 'rake', '~> 10.0'
25
- spec.add_development_dependency 'minitest', '~> 5.0'
26
- spec.add_development_dependency 'minitest-reporters', '~> 1.4', '>= 1.4.1'
27
- spec.add_development_dependency 'pry', '0.12.2'
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.20.3'
31
- spec.add_runtime_dependency 'octokit', '~> 4.14'
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
@@ -13,8 +13,9 @@ module GhIssues
13
13
 
14
14
  def self.check_ghi_github_credentials
15
15
  begin
16
- user = @@client.user
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
@@ -1,3 +1,3 @@
1
1
  module GhIssues
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  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.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uğur Özyılmazel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-13 00:00:00.000000000 Z
11
+ date: 2020-04-03 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.0'
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.0'
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: '10.0'
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: '10.0'
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.0'
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.0'
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.1
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.1
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.12.2
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.12.2
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.20.3
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.20.3
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.14'
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.14'
148
+ version: '4.18'
131
149
  - !ruby/object:Gem::Dependency
132
150
  name: time_difference
133
151
  requirement: !ruby/object:Gem::Requirement