spaarti 2.0.0 → 2.0.2

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: 11cb46ba9d4286d50abc75683e01d3433d060a0a5230e15af6504ad9f9c1abf8
4
- data.tar.gz: d7cf2513bbf67eb47206e6b9e5fe5e52064a86413eb06a22be4efd96c0178535
3
+ metadata.gz: 7ade6ab474a55354cb5493add5565c61497bf9267d41fff098cace26ee2ac1ea
4
+ data.tar.gz: 10a6eea7bd684f8ded035c4f6a881b878ae577089013f77759b4b5e27d5e6556
5
5
  SHA512:
6
- metadata.gz: fce4a9832661cd46b893214e4b4d3bf9356054faa26c73913a5c5c2cd2eb90babed048171c1e96065c1e3950f7514ab50606f20176a9635230f62b75ca61d3ee
7
- data.tar.gz: d47a0d30c6b405fda7b16928b5c2a99752d53742c70489742d6c86426d9447c9949bb46fb0a3c679491aca81128bbdbbf6db8e7c229c49954236a94882c43b65
6
+ metadata.gz: 1625d7d2f924b3c604afa558abc43a638a806e1ac6e02d036d9b0a8f7f5d302a315f6d15cb8a586e4b36a3bdaa7208a790189bbef6cf366f0b8604156c953472
7
+ data.tar.gz: f4d7ba48a318e4e5add916b6add3beaad74d3e7c6e01b68eb5bdccbb1b1ec200573201db4b8ed06f48ab0d5eba08df294e2e121d854ad271d953d40911d7216d
@@ -1,4 +1,4 @@
1
- 2.6.0
1
+ 2.6.1
2
2
  2.5.3
3
3
  2.4.5
4
4
  2.3.8
@@ -1,4 +1,4 @@
1
- dist: trusty
1
+ dist: xenial
2
2
  install:
3
3
  - for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
4
4
  - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
@@ -1,3 +1,11 @@
1
+ # 2.0.2 / 2020-05-12
2
+
3
+ * [BUGFIX] Fix Octokit error
4
+
5
+ # 2.0.1 / 2020-05-12
6
+
7
+ * [ENHANCEMENT] Update deps
8
+
1
9
  # 2.0.0 / 2019-01-12
2
10
 
3
11
  * [FEATURE] Generate new GitHub API tokens with read:org, read:user, and repo scopes. This allows the token to enumerate and fetch repos from orgs the user is a member of. **This also grants read/write access to all repos, which increases the danger of the token**
@@ -31,7 +31,7 @@ module Spaarti
31
31
  end
32
32
 
33
33
  def err(msg)
34
- STDERR.puts msg
34
+ warn msg
35
35
  end
36
36
 
37
37
  def run(cmd, error_msg)
@@ -58,22 +58,22 @@ module Spaarti
58
58
  end
59
59
 
60
60
  def client
61
- @client ||= Octokit::Client.new(
61
+ @client ||= Octokit::Client.new({
62
62
  access_token: auth.token,
63
63
  auto_paginate: true,
64
64
  default_media_type: 'application/vnd.github.moondragon+json',
65
65
  api_endpoint: @options[:api_endpoint]
66
- )
66
+ }.compact)
67
67
  end
68
68
 
69
69
  def auth
70
- @auth ||= Octoauth.new(
70
+ @auth ||= Octoauth.new({
71
71
  note: 'spaarti',
72
72
  scopes: %w[read:org read:user repo],
73
73
  file: @options[:auth_file],
74
74
  autosave: true,
75
75
  api_endpoint: @options[:api_endpoint]
76
- )
76
+ }.compact)
77
77
  end
78
78
 
79
79
  def repos
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Set the version (needed for Mercenary -v)
5
5
  module Spaarti
6
- VERSION = '2.0.0'.freeze
6
+ VERSION = '2.0.2'.freeze
7
7
  end
@@ -20,15 +20,15 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency 'cymbal', '~> 2.0.0'
22
22
  s.add_dependency 'mercenary', '~> 0.3.4'
23
- s.add_dependency 'octoauth', '~> 1.5.5'
24
- s.add_dependency 'octokit', '~> 4.13.0'
23
+ s.add_dependency 'octoauth', '~> 1.7.0'
24
+ s.add_dependency 'octokit', '~> 4.18.0'
25
25
 
26
26
  s.add_development_dependency 'codecov', '~> 0.1.1'
27
- s.add_development_dependency 'fuubar', '~> 2.3.0'
28
- s.add_development_dependency 'goodcop', '~> 0.6.0'
29
- s.add_development_dependency 'rake', '~> 12.3.0'
30
- s.add_development_dependency 'rspec', '~> 3.8.0'
31
- s.add_development_dependency 'rubocop', '~> 0.62.0'
32
- s.add_development_dependency 'vcr', '~> 4.0.0'
33
- s.add_development_dependency 'webmock', '~> 3.5.1'
27
+ s.add_development_dependency 'fuubar', '~> 2.5.0'
28
+ s.add_development_dependency 'goodcop', '~> 0.8.0'
29
+ s.add_development_dependency 'rake', '~> 13.0.0'
30
+ s.add_development_dependency 'rspec', '~> 3.9.0'
31
+ s.add_development_dependency 'rubocop', '~> 0.76.0'
32
+ s.add_development_dependency 'vcr', '~> 5.0.0'
33
+ s.add_development_dependency 'webmock', '~> 3.7.6'
34
34
  end
@@ -9,12 +9,11 @@ end
9
9
 
10
10
  require 'rspec'
11
11
  require 'spaarti'
12
- require 'webmock'
13
-
14
- WebMock.enable!
12
+ require 'webmock/rspec'
15
13
 
16
14
  require 'vcr'
17
15
  VCR.configure do |c|
16
+ c.configure_rspec_metadata!
18
17
  c.cassette_library_dir = 'spec/fixtures/cassettes'
19
18
  c.hook_into :webmock
20
19
  c.before_record do |i|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaarti
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-12 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cymbal
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.5
47
+ version: 1.7.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.5
54
+ version: 1.7.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: octokit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 4.13.0
61
+ version: 4.18.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 4.13.0
68
+ version: 4.18.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: codecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,98 +86,98 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.3.0
89
+ version: 2.5.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.3.0
96
+ version: 2.5.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: goodcop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.6.0
103
+ version: 0.8.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.6.0
110
+ version: 0.8.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 12.3.0
117
+ version: 13.0.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 12.3.0
124
+ version: 13.0.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.8.0
131
+ version: 3.9.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 3.8.0
138
+ version: 3.9.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.62.0
145
+ version: 0.76.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.62.0
152
+ version: 0.76.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: vcr
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 4.0.0
159
+ version: 5.0.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 4.0.0
166
+ version: 5.0.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: webmock
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.5.1
173
+ version: 3.7.6
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 3.5.1
180
+ version: 3.7.6
181
181
  description: Maintain local clones of repos you have access to on GitHub
182
182
  email: me@lesaker.org
183
183
  executables:
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.0.2
232
+ rubygems_version: 3.1.2
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Helper for cloning GitHub repos