gemstash 2.1.0 → 2.2.0
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 +4 -4
- data/CHANGELOG.md +57 -0
- data/lib/gemstash/cache.rb +37 -0
- data/lib/gemstash/cli/authorize.rb +2 -2
- data/lib/gemstash/cli/setup.rb +11 -3
- data/lib/gemstash/configuration.rb +1 -1
- data/lib/gemstash/dependencies.rb +2 -2
- data/lib/gemstash/env.rb +2 -0
- data/lib/gemstash/gem_fetcher.rb +2 -2
- data/lib/gemstash/gem_pusher.rb +2 -2
- data/lib/gemstash/gem_source/private_source.rb +3 -3
- data/lib/gemstash/gem_source.rb +2 -2
- data/lib/gemstash/http_client.rb +8 -3
- data/lib/gemstash/logging.rb +1 -1
- data/lib/gemstash/man/gemstash-authorize.1.txt +0 -45
- data/lib/gemstash/man/gemstash-configuration.5.txt +0 -209
- data/lib/gemstash/man/gemstash-customize.7.txt +0 -186
- data/lib/gemstash/man/gemstash-debugging.7.txt +0 -28
- data/lib/gemstash/man/gemstash-deploy.7.txt +0 -58
- data/lib/gemstash/man/gemstash-mirror.7.txt +0 -32
- data/lib/gemstash/man/gemstash-multiple-sources.7.txt +0 -70
- data/lib/gemstash/man/gemstash-private-gems.7.txt +0 -155
- data/lib/gemstash/man/gemstash-readme.7.txt +0 -181
- data/lib/gemstash/man/gemstash-setup.1.txt +0 -39
- data/lib/gemstash/man/gemstash-start.1.txt +0 -25
- data/lib/gemstash/man/gemstash-status.1.txt +0 -21
- data/lib/gemstash/man/gemstash-stop.1.txt +0 -21
- data/lib/gemstash/man/gemstash-version.1.txt +0 -20
- data/lib/gemstash/storage.rb +5 -4
- data/lib/gemstash/upstream.rb +6 -5
- data/lib/gemstash/version.rb +2 -2
- data/lib/gemstash/web.rb +6 -4
- data/lib/gemstash.rb +1 -1
- metadata +31 -171
- data/lib/gemstash/man/gemstash-authorize.1 +0 -51
- data/lib/gemstash/man/gemstash-configuration.5 +0 -229
- data/lib/gemstash/man/gemstash-customize.7 +0 -301
- data/lib/gemstash/man/gemstash-debugging.7 +0 -34
- data/lib/gemstash/man/gemstash-deploy.7 +0 -72
- data/lib/gemstash/man/gemstash-mirror.7 +0 -40
- data/lib/gemstash/man/gemstash-multiple-sources.7 +0 -89
- data/lib/gemstash/man/gemstash-private-gems.7 +0 -227
- data/lib/gemstash/man/gemstash-readme.7 +0 -233
- data/lib/gemstash/man/gemstash-setup.1 +0 -43
- data/lib/gemstash/man/gemstash-start.1 +0 -26
- data/lib/gemstash/man/gemstash-status.1 +0 -20
- data/lib/gemstash/man/gemstash-stop.1 +0 -20
- data/lib/gemstash/man/gemstash-version.1 +0 -22
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemstash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andre Arko
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -34,16 +34,22 @@ dependencies:
|
|
34
34
|
name: dalli
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 3.2.3
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '4'
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 3.2.3
|
50
|
+
- - "<"
|
45
51
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
52
|
+
version: '4'
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: faraday
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,6 +92,20 @@ dependencies:
|
|
86
92
|
- - "~>"
|
87
93
|
- !ruby/object:Gem::Version
|
88
94
|
version: '1.1'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: psych
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 3.2.1
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 3.2.1
|
89
109
|
- !ruby/object:Gem::Dependency
|
90
110
|
name: puma
|
91
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,152 +196,6 @@ dependencies:
|
|
176
196
|
- - "~>"
|
177
197
|
- !ruby/object:Gem::Version
|
178
198
|
version: '1.3'
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
name: aruba
|
181
|
-
requirement: !ruby/object:Gem::Requirement
|
182
|
-
requirements:
|
183
|
-
- - ">="
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: '0.14'
|
186
|
-
type: :development
|
187
|
-
prerelease: false
|
188
|
-
version_requirements: !ruby/object:Gem::Requirement
|
189
|
-
requirements:
|
190
|
-
- - ">="
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: '0.14'
|
193
|
-
- !ruby/object:Gem::Dependency
|
194
|
-
name: bundler
|
195
|
-
requirement: !ruby/object:Gem::Requirement
|
196
|
-
requirements:
|
197
|
-
- - ">="
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
version: '1.11'
|
200
|
-
- - "<"
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
version: '3.0'
|
203
|
-
type: :development
|
204
|
-
prerelease: false
|
205
|
-
version_requirements: !ruby/object:Gem::Requirement
|
206
|
-
requirements:
|
207
|
-
- - ">="
|
208
|
-
- !ruby/object:Gem::Version
|
209
|
-
version: '1.11'
|
210
|
-
- - "<"
|
211
|
-
- !ruby/object:Gem::Version
|
212
|
-
version: '3.0'
|
213
|
-
- !ruby/object:Gem::Dependency
|
214
|
-
name: citrus
|
215
|
-
requirement: !ruby/object:Gem::Requirement
|
216
|
-
requirements:
|
217
|
-
- - "~>"
|
218
|
-
- !ruby/object:Gem::Version
|
219
|
-
version: '3.0'
|
220
|
-
type: :development
|
221
|
-
prerelease: false
|
222
|
-
version_requirements: !ruby/object:Gem::Requirement
|
223
|
-
requirements:
|
224
|
-
- - "~>"
|
225
|
-
- !ruby/object:Gem::Version
|
226
|
-
version: '3.0'
|
227
|
-
- !ruby/object:Gem::Dependency
|
228
|
-
name: octokit
|
229
|
-
requirement: !ruby/object:Gem::Requirement
|
230
|
-
requirements:
|
231
|
-
- - "~>"
|
232
|
-
- !ruby/object:Gem::Version
|
233
|
-
version: '4.2'
|
234
|
-
type: :development
|
235
|
-
prerelease: false
|
236
|
-
version_requirements: !ruby/object:Gem::Requirement
|
237
|
-
requirements:
|
238
|
-
- - "~>"
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
version: '4.2'
|
241
|
-
- !ruby/object:Gem::Dependency
|
242
|
-
name: pandoc_object_filters
|
243
|
-
requirement: !ruby/object:Gem::Requirement
|
244
|
-
requirements:
|
245
|
-
- - "~>"
|
246
|
-
- !ruby/object:Gem::Version
|
247
|
-
version: '0.2'
|
248
|
-
type: :development
|
249
|
-
prerelease: false
|
250
|
-
version_requirements: !ruby/object:Gem::Requirement
|
251
|
-
requirements:
|
252
|
-
- - "~>"
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
version: '0.2'
|
255
|
-
- !ruby/object:Gem::Dependency
|
256
|
-
name: rack-test
|
257
|
-
requirement: !ruby/object:Gem::Requirement
|
258
|
-
requirements:
|
259
|
-
- - "~>"
|
260
|
-
- !ruby/object:Gem::Version
|
261
|
-
version: '1.1'
|
262
|
-
type: :development
|
263
|
-
prerelease: false
|
264
|
-
version_requirements: !ruby/object:Gem::Requirement
|
265
|
-
requirements:
|
266
|
-
- - "~>"
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
version: '1.1'
|
269
|
-
- !ruby/object:Gem::Dependency
|
270
|
-
name: rake
|
271
|
-
requirement: !ruby/object:Gem::Requirement
|
272
|
-
requirements:
|
273
|
-
- - "~>"
|
274
|
-
- !ruby/object:Gem::Version
|
275
|
-
version: '12.3'
|
276
|
-
type: :development
|
277
|
-
prerelease: false
|
278
|
-
version_requirements: !ruby/object:Gem::Requirement
|
279
|
-
requirements:
|
280
|
-
- - "~>"
|
281
|
-
- !ruby/object:Gem::Version
|
282
|
-
version: '12.3'
|
283
|
-
- !ruby/object:Gem::Dependency
|
284
|
-
name: rspec
|
285
|
-
requirement: !ruby/object:Gem::Requirement
|
286
|
-
requirements:
|
287
|
-
- - "~>"
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
version: '3.3'
|
290
|
-
type: :development
|
291
|
-
prerelease: false
|
292
|
-
version_requirements: !ruby/object:Gem::Requirement
|
293
|
-
requirements:
|
294
|
-
- - "~>"
|
295
|
-
- !ruby/object:Gem::Version
|
296
|
-
version: '3.3'
|
297
|
-
- !ruby/object:Gem::Dependency
|
298
|
-
name: rubocop
|
299
|
-
requirement: !ruby/object:Gem::Requirement
|
300
|
-
requirements:
|
301
|
-
- - '='
|
302
|
-
- !ruby/object:Gem::Version
|
303
|
-
version: 0.67.2
|
304
|
-
type: :development
|
305
|
-
prerelease: false
|
306
|
-
version_requirements: !ruby/object:Gem::Requirement
|
307
|
-
requirements:
|
308
|
-
- - '='
|
309
|
-
- !ruby/object:Gem::Version
|
310
|
-
version: 0.67.2
|
311
|
-
- !ruby/object:Gem::Dependency
|
312
|
-
name: rubocop-performance
|
313
|
-
requirement: !ruby/object:Gem::Requirement
|
314
|
-
requirements:
|
315
|
-
- - "~>"
|
316
|
-
- !ruby/object:Gem::Version
|
317
|
-
version: 1.1.0
|
318
|
-
type: :development
|
319
|
-
prerelease: false
|
320
|
-
version_requirements: !ruby/object:Gem::Requirement
|
321
|
-
requirements:
|
322
|
-
- - "~>"
|
323
|
-
- !ruby/object:Gem::Version
|
324
|
-
version: 1.1.0
|
325
199
|
description: Gemstash acts as a local RubyGems server, caching copies of gems from
|
326
200
|
RubyGems.org automatically, and eventually letting you push your own private gems
|
327
201
|
as well.
|
@@ -369,33 +243,19 @@ files:
|
|
369
243
|
- lib/gemstash/health.rb
|
370
244
|
- lib/gemstash/http_client.rb
|
371
245
|
- lib/gemstash/logging.rb
|
372
|
-
- lib/gemstash/man/gemstash-authorize.1
|
373
246
|
- lib/gemstash/man/gemstash-authorize.1.txt
|
374
|
-
- lib/gemstash/man/gemstash-configuration.5
|
375
247
|
- lib/gemstash/man/gemstash-configuration.5.txt
|
376
|
-
- lib/gemstash/man/gemstash-customize.7
|
377
248
|
- lib/gemstash/man/gemstash-customize.7.txt
|
378
|
-
- lib/gemstash/man/gemstash-debugging.7
|
379
249
|
- lib/gemstash/man/gemstash-debugging.7.txt
|
380
|
-
- lib/gemstash/man/gemstash-deploy.7
|
381
250
|
- lib/gemstash/man/gemstash-deploy.7.txt
|
382
|
-
- lib/gemstash/man/gemstash-mirror.7
|
383
251
|
- lib/gemstash/man/gemstash-mirror.7.txt
|
384
|
-
- lib/gemstash/man/gemstash-multiple-sources.7
|
385
252
|
- lib/gemstash/man/gemstash-multiple-sources.7.txt
|
386
|
-
- lib/gemstash/man/gemstash-private-gems.7
|
387
253
|
- lib/gemstash/man/gemstash-private-gems.7.txt
|
388
|
-
- lib/gemstash/man/gemstash-readme.7
|
389
254
|
- lib/gemstash/man/gemstash-readme.7.txt
|
390
|
-
- lib/gemstash/man/gemstash-setup.1
|
391
255
|
- lib/gemstash/man/gemstash-setup.1.txt
|
392
|
-
- lib/gemstash/man/gemstash-start.1
|
393
256
|
- lib/gemstash/man/gemstash-start.1.txt
|
394
|
-
- lib/gemstash/man/gemstash-status.1
|
395
257
|
- lib/gemstash/man/gemstash-status.1.txt
|
396
|
-
- lib/gemstash/man/gemstash-stop.1
|
397
258
|
- lib/gemstash/man/gemstash-stop.1.txt
|
398
|
-
- lib/gemstash/man/gemstash-version.1
|
399
259
|
- lib/gemstash/man/gemstash-version.1.txt
|
400
260
|
- lib/gemstash/migrations/01_gem_dependencies.rb
|
401
261
|
- lib/gemstash/migrations/02_authorizations.rb
|
@@ -412,7 +272,7 @@ homepage: https://github.com/rubygems/gemstash
|
|
412
272
|
licenses:
|
413
273
|
- MIT
|
414
274
|
metadata: {}
|
415
|
-
post_install_message:
|
275
|
+
post_install_message:
|
416
276
|
rdoc_options: []
|
417
277
|
require_paths:
|
418
278
|
- lib
|
@@ -420,15 +280,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
420
280
|
requirements:
|
421
281
|
- - ">="
|
422
282
|
- !ruby/object:Gem::Version
|
423
|
-
version: '2.
|
283
|
+
version: '2.7'
|
424
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
425
285
|
requirements:
|
426
286
|
- - ">="
|
427
287
|
- !ruby/object:Gem::Version
|
428
288
|
version: '0'
|
429
289
|
requirements: []
|
430
|
-
rubygems_version: 3.
|
431
|
-
signing_key:
|
290
|
+
rubygems_version: 3.4.5
|
291
|
+
signing_key:
|
432
292
|
specification_version: 4
|
433
293
|
summary: A place to stash gems you'll need
|
434
294
|
test_files: []
|
@@ -1,51 +0,0 @@
|
|
1
|
-
.\" Automatically generated by Pandoc 2.5
|
2
|
-
.\"
|
3
|
-
.TH "gemstash\-authorize" "1" "October 9, 2015" "" ""
|
4
|
-
.hy
|
5
|
-
.SH NAME
|
6
|
-
.PP
|
7
|
-
gemstash\-authorize \- Adds or removes authorization to interact with
|
8
|
-
privately stored gems
|
9
|
-
.SH SYNOPSIS
|
10
|
-
.PP
|
11
|
-
\f[C]gemstash authorize [permissions] [\-\-remove] [\-\-key SECURE_KEY] [\-\-config\-file FILE]\f[R]
|
12
|
-
.SH DESCRIPTION
|
13
|
-
.PP
|
14
|
-
Adds or removes authorization to interact with privately stored gems.
|
15
|
-
.PP
|
16
|
-
Any arguments will be used as specific permissions.
|
17
|
-
Valid permissions include \f[C]push\f[R], \f[C]yank\f[R], and
|
18
|
-
\f[C]fetch\f[R].
|
19
|
-
If no permissions are provided, then all permissions will be granted
|
20
|
-
(including any that may be added in future versions of Gemstash).
|
21
|
-
.SS USAGE
|
22
|
-
.IP
|
23
|
-
.nf
|
24
|
-
\f[C]
|
25
|
-
gemstash authorize
|
26
|
-
gemstash authorize push yank
|
27
|
-
gemstash authorize yank \-\-key <secure\-key>
|
28
|
-
gemstash authorize \-\-remove \-\-key <secure\-key>
|
29
|
-
\f[R]
|
30
|
-
.fi
|
31
|
-
.SH OPTIONS
|
32
|
-
.IP \[bu] 2
|
33
|
-
\f[C]\-\-config\-file FILE\f[R]: Specify the config file to use.
|
34
|
-
If you aren\[cq]t using the default config file at
|
35
|
-
\f[C]\[ti]/.gemstash/config.yml\f[R] or
|
36
|
-
\f[C]\[ti]/.gemstash/config.yml.erb\f[R] (gemstash help customize.7),
|
37
|
-
then you must specify the config file via this option.
|
38
|
-
.IP \[bu] 2
|
39
|
-
\f[C]\-\-key SECURE_KEY\f[R]: Specify the API key to affect.
|
40
|
-
This should be the actual key value, not a name.
|
41
|
-
This option is required when using \f[C]\-\-remove\f[R] but is optional
|
42
|
-
otherwise.
|
43
|
-
If adding an authorization, using this will either create or update the
|
44
|
-
permissions for the specified API key.
|
45
|
-
If missing, a new API key will always be generated.
|
46
|
-
Note that a key can only have a maximum length of 255 chars.
|
47
|
-
.IP \[bu] 2
|
48
|
-
\f[C]\-\-remove\f[R]: Remove an authorization rather than add or update
|
49
|
-
one.
|
50
|
-
When removing, permission values are not allowed.
|
51
|
-
The \f[C]\-\-key <secure\-key>\f[R] option is required.
|
@@ -1,229 +0,0 @@
|
|
1
|
-
.\" Automatically generated by Pandoc 2.5
|
2
|
-
.\"
|
3
|
-
.TH "gemstash\-configuration" "5" "October 13, 2015" "" ""
|
4
|
-
.hy
|
5
|
-
.SH NAME
|
6
|
-
.PP
|
7
|
-
gemstash\-configuration
|
8
|
-
.SH SYNOPSIS
|
9
|
-
.IP
|
10
|
-
.nf
|
11
|
-
\f[C]
|
12
|
-
# \[ti]/.gemstash/config.yml
|
13
|
-
\-\-\-
|
14
|
-
:base_path: \[dq]/var/gemstash\[dq]
|
15
|
-
:cache_type: memcached
|
16
|
-
:memcached_servers: localhost:11211
|
17
|
-
:db_adapter: postgres
|
18
|
-
:db_url: postgres:///gemstash
|
19
|
-
:db_connection_options:
|
20
|
-
:test: true
|
21
|
-
:pool_timeout: 2
|
22
|
-
:rubygems_url: https://my.gem\-source.local
|
23
|
-
:ignore_gemfile_source: false
|
24
|
-
:puma_threads: 32
|
25
|
-
:bind: tcp://0.0.0.0:4242
|
26
|
-
:protected_fetch: true
|
27
|
-
:fetch_timeout: 10
|
28
|
-
:log_file: gemstash.log
|
29
|
-
\f[R]
|
30
|
-
.fi
|
31
|
-
.SH BASE PATH
|
32
|
-
.PP
|
33
|
-
\f[C]:base_path\f[R]
|
34
|
-
.PP
|
35
|
-
Specifies where to store local files like the server log, cached gem
|
36
|
-
files, and the database (when using SQLite).
|
37
|
-
If the default is being used, the directory will be created if it does
|
38
|
-
not exist.
|
39
|
-
Any other directory needs to be created ahead of time and be writable to
|
40
|
-
the Gemstash server process.
|
41
|
-
Specifying the \f[C]:base_path\f[R] via
|
42
|
-
\f[C]gemstash setup\f[R] (gemstash help setup.1) will create the
|
43
|
-
directory for you.
|
44
|
-
.SS DEFAULT VALUE
|
45
|
-
.PP
|
46
|
-
\f[C]\[ti]/.gemstash\f[R]
|
47
|
-
.SS VALID VALUES
|
48
|
-
.PP
|
49
|
-
Any valid path
|
50
|
-
.SH CACHE TYPE
|
51
|
-
.PP
|
52
|
-
\f[C]:cache_type\f[R]
|
53
|
-
.PP
|
54
|
-
Specifies how to cache values other than gem files (such as gem
|
55
|
-
dependencies).
|
56
|
-
\f[C]memory\f[R] will use an in memory cache while \f[C]memcached\f[R]
|
57
|
-
will point to 1 or more Memcached servers.
|
58
|
-
Use the \f[C]:memcached_servers\f[R] configuration key for specifying
|
59
|
-
where the Memcached server(s) are.
|
60
|
-
.SS DEFAULT VALUE
|
61
|
-
.PP
|
62
|
-
\f[C]memory\f[R]
|
63
|
-
.SS VALID VALUES
|
64
|
-
.PP
|
65
|
-
\f[C]memory\f[R], \f[C]memcached\f[R]
|
66
|
-
.SH MEMCACHED SERVERS
|
67
|
-
.PP
|
68
|
-
\f[C]:memcached_servers\f[R]
|
69
|
-
.PP
|
70
|
-
Specifies the Memcached servers to connect to when using
|
71
|
-
\f[C]memcached\f[R] for the \f[C]:cache_type\f[R].
|
72
|
-
Only used when \f[C]memcached\f[R] is used for \f[C]:cache_type\f[R].
|
73
|
-
.SS DEFAULT VALUE
|
74
|
-
.PP
|
75
|
-
\f[C]localhost:11211\f[R]
|
76
|
-
.SS VALID VALUES
|
77
|
-
.PP
|
78
|
-
A comma delimited list of Memcached servers
|
79
|
-
.SH DB ADAPTER
|
80
|
-
.PP
|
81
|
-
\f[C]:db_adapter\f[R]
|
82
|
-
.PP
|
83
|
-
Specifies what database adapter to use.
|
84
|
-
When \f[C]sqlite3\f[R] is used, the database will be located at
|
85
|
-
\f[C]gemstash.db\f[R] within the directory specified by
|
86
|
-
\f[C]:base_path\f[R].
|
87
|
-
The database will automatically be created when using \f[C]sqlite3\f[R].
|
88
|
-
When \f[C]postgres\f[R], \f[C]mysql\f[R], or \f[C]mysql2\f[R] is used,
|
89
|
-
the database to connect to must be specified in the \f[C]:db_url\f[R]
|
90
|
-
configuration key.
|
91
|
-
The database must already be created when using anything other than
|
92
|
-
\f[C]sqlite3\f[R].
|
93
|
-
.SS DEFAULT VALUE
|
94
|
-
.PP
|
95
|
-
\f[C]sqlite3\f[R]
|
96
|
-
.SS VALID VALUES
|
97
|
-
.PP
|
98
|
-
\f[C]sqlite3\f[R], \f[C]postgres\f[R], \f[C]mysql\f[R], \f[C]mysql2\f[R]
|
99
|
-
.SH DB URL
|
100
|
-
.PP
|
101
|
-
\f[C]:db_url\f[R]
|
102
|
-
.PP
|
103
|
-
Specifies the database to connect to when using \f[C]postgres\f[R],
|
104
|
-
\f[C]mysql\f[R], or \f[C]mysql2\f[R] for the \f[C]:db_adapter\f[R].
|
105
|
-
Only used when the \f[C]:db_adapter\f[R] is not \f[C]sqlite3\f[R].
|
106
|
-
.SS DEFAULT VALUE
|
107
|
-
.PP
|
108
|
-
None
|
109
|
-
.SS VALID VALUES
|
110
|
-
.PP
|
111
|
-
A valid database URL for the Sequel gem (http://sequel.jeremyevans.net/)
|
112
|
-
.SH DB CONNECTION OPTIONS
|
113
|
-
.PP
|
114
|
-
\f[C]:db_connection_options\f[R]
|
115
|
-
.PP
|
116
|
-
Specifies additional \f[C]Sequel.connect\f[R] options to use.
|
117
|
-
Note that any options here are merged in with the default options, so
|
118
|
-
you need not specify the \f[C]max_connections\f[R] if you customize this
|
119
|
-
option.
|
120
|
-
.SS DEFAULT VALUE
|
121
|
-
.PP
|
122
|
-
\f[C]{ max_connections: 1 }\f[R] for \f[C]sqlite3\f[R] adapter,
|
123
|
-
\f[C]{ max_connections: config[:puma_threads] + 1 }\f[R] for any other
|
124
|
-
adapter.
|
125
|
-
.SS VALID VALUES
|
126
|
-
.PP
|
127
|
-
A valid connection options Hash for the
|
128
|
-
Sequel.connect (http://sequel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html#label-General+connection+options)
|
129
|
-
method.
|
130
|
-
.SH RUBYGEMS URL
|
131
|
-
.PP
|
132
|
-
\f[C]:rubygems_url\f[R]
|
133
|
-
.PP
|
134
|
-
Specifies the default gem source URL.
|
135
|
-
When any API endpoint is called without a \f[C]/private\f[R] or
|
136
|
-
\f[C]/upstream/<url>\f[R] prefix, this URL will be used to fetch the
|
137
|
-
result.
|
138
|
-
This value can be safely changed even if there are already gems stashed
|
139
|
-
for the previous value.
|
140
|
-
.SS DEFAULT VALUE
|
141
|
-
.PP
|
142
|
-
\f[C]https://rubygems.org\f[R]
|
143
|
-
.SS VALID VALUES
|
144
|
-
.PP
|
145
|
-
A valid gem source URL
|
146
|
-
.SH IGNORE GEMFILE SOURCE
|
147
|
-
.PP
|
148
|
-
\f[C]:ignore_gemfile_source\f[R]
|
149
|
-
.PP
|
150
|
-
Ignore the source specified in Gemfile and always use
|
151
|
-
\f[C]:rubygems_url\f[R] as gems upstream.
|
152
|
-
.SS DEFAULT VALUE
|
153
|
-
.PP
|
154
|
-
\f[C]false\f[R]
|
155
|
-
.SS VALID VALUES
|
156
|
-
.PP
|
157
|
-
Boolean: \f[C]true\f[R] or \f[C]false\f[R]
|
158
|
-
.SH PUMA THREADS
|
159
|
-
.PP
|
160
|
-
\f[C]:puma_threads\f[R]
|
161
|
-
.PP
|
162
|
-
Specifies the number of threads used for the Gemstash server.
|
163
|
-
.SS DEFAULT VALUE
|
164
|
-
.PP
|
165
|
-
\f[C]16\f[R]
|
166
|
-
.SS VALID VALUES
|
167
|
-
.PP
|
168
|
-
Integer value with a minimum of \f[C]1\f[R]
|
169
|
-
.SH BIND ADDRESS
|
170
|
-
.PP
|
171
|
-
\f[C]:bind\f[R]
|
172
|
-
.PP
|
173
|
-
Specifies the binding used to start the Gemstash server.
|
174
|
-
Keep in mind the user starting Gemstash needs to have access to bind in
|
175
|
-
this manner.
|
176
|
-
For example, if you use a port below 1024, you will need to run Gemstash
|
177
|
-
as the root user.
|
178
|
-
.SS DEFAULT VALUE
|
179
|
-
.PP
|
180
|
-
\f[C]tcp://0.0.0.0:9292\f[R]
|
181
|
-
.SS VALID VALUES
|
182
|
-
.PP
|
183
|
-
Any valid binding that is supported by
|
184
|
-
Puma (https://github.com/puma/puma#binding-tcp--sockets)
|
185
|
-
.SH PROTECTED FETCH
|
186
|
-
.PP
|
187
|
-
\f[C]:protected_fetch\f[R]
|
188
|
-
.PP
|
189
|
-
Tells Gemstash to authenticate via an API key before allowing the
|
190
|
-
fetching of private gems and specs.
|
191
|
-
The default behavior is to allow unauthenticated download of private
|
192
|
-
gems and specs.
|
193
|
-
.SS DEFAULT VALUE
|
194
|
-
.PP
|
195
|
-
\f[C]false\f[R]
|
196
|
-
.SS VALID VALUES
|
197
|
-
.PP
|
198
|
-
Boolean values \f[C]true\f[R] or \f[C]false\f[R]
|
199
|
-
.SH FETCH TIMEOUT
|
200
|
-
.PP
|
201
|
-
\f[C]:fetch_timeout\f[R]
|
202
|
-
.PP
|
203
|
-
The timeout setting for fetching gems.
|
204
|
-
Fetching gems over a slow connection may cause timeout errors.
|
205
|
-
If you experience timeout errors, you may want to increase this value.
|
206
|
-
The default is \f[C]20\f[R] seconds.
|
207
|
-
.SS DEFAULT VALUE
|
208
|
-
.PP
|
209
|
-
\f[C]20\f[R]
|
210
|
-
.SS VALID VALUES
|
211
|
-
.PP
|
212
|
-
Integer value with a minimum of \f[C]1\f[R]
|
213
|
-
.SH LOG FILE
|
214
|
-
.PP
|
215
|
-
\f[C]:log_file\f[R]
|
216
|
-
.PP
|
217
|
-
Indicates the name of the file to use for logging.
|
218
|
-
The file will be placed in the base
|
219
|
-
path (gemstash help configuration.5).
|
220
|
-
.SS DEFAULT VALUE
|
221
|
-
.PP
|
222
|
-
\f[C]server.log\f[R]
|
223
|
-
.SS VALID VALUES
|
224
|
-
.PP
|
225
|
-
Any valid file name, or \f[C]:stdout\f[R] to log to \f[C]$stdout\f[R]
|
226
|
-
.PP
|
227
|
-
\f[I]Note: Using \f[CI]:stdout\f[I] for the \f[CI]:log_file\f[I]
|
228
|
-
requires running with
|
229
|
-
\f[CI]\-\-no\-daemonize\f[I] (gemstash help start.1).\f[R]
|