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 +4 -4
- data/.circle-ruby +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/lib/spaarti/repo.rb +1 -1
- data/lib/spaarti/site.rb +4 -4
- data/lib/spaarti/version.rb +1 -1
- data/spaarti.gemspec +9 -9
- data/spec/spec_helper.rb +2 -3
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ade6ab474a55354cb5493add5565c61497bf9267d41fff098cace26ee2ac1ea
|
4
|
+
data.tar.gz: 10a6eea7bd684f8ded035c4f6a881b878ae577089013f77759b4b5e27d5e6556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1625d7d2f924b3c604afa558abc43a638a806e1ac6e02d036d9b0a8f7f5d302a315f6d15cb8a586e4b36a3bdaa7208a790189bbef6cf366f0b8604156c953472
|
7
|
+
data.tar.gz: f4d7ba48a318e4e5add916b6add3beaad74d3e7c6e01b68eb5bdccbb1b1ec200573201db4b8ed06f48ab0d5eba08df294e2e121d854ad271d953d40911d7216d
|
data/.circle-ruby
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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**
|
data/lib/spaarti/repo.rb
CHANGED
data/lib/spaarti/site.rb
CHANGED
@@ -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
|
data/lib/spaarti/version.rb
CHANGED
data/spaarti.gemspec
CHANGED
@@ -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.
|
24
|
-
s.add_dependency 'octokit', '~> 4.
|
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.
|
28
|
-
s.add_development_dependency 'goodcop', '~> 0.
|
29
|
-
s.add_development_dependency 'rake', '~>
|
30
|
-
s.add_development_dependency 'rspec', '~> 3.
|
31
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
32
|
-
s.add_development_dependency 'vcr', '~>
|
33
|
-
s.add_development_dependency 'webmock', '~> 3.
|
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
|
data/spec/spec_helper.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
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.
|
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.
|
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.
|
232
|
+
rubygems_version: 3.1.2
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: Helper for cloning GitHub repos
|