gemstash 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/lib/gemstash.rb +0 -1
  4. data/lib/gemstash/authorization.rb +1 -5
  5. data/lib/gemstash/cli.rb +4 -4
  6. data/lib/gemstash/cli/authorize.rb +4 -2
  7. data/lib/gemstash/cli/base.rb +5 -4
  8. data/lib/gemstash/cli/setup.rb +2 -2
  9. data/lib/gemstash/cli/status.rb +1 -1
  10. data/lib/gemstash/cli/stop.rb +1 -1
  11. data/lib/gemstash/configuration.rb +3 -2
  12. data/lib/gemstash/gem_pusher.rb +7 -0
  13. data/lib/gemstash/gem_source/private_source.rb +0 -4
  14. data/lib/gemstash/gem_source/upstream_source.rb +0 -4
  15. data/lib/gemstash/health.rb +3 -3
  16. data/lib/gemstash/logging.rb +2 -4
  17. data/lib/gemstash/man/gemstash-authorize.1.txt +53 -33
  18. data/lib/gemstash/man/gemstash-configuration.5.txt +10 -141
  19. data/lib/gemstash/man/gemstash-customize.7.txt +66 -175
  20. data/lib/gemstash/man/gemstash-debugging.7.txt +54 -17
  21. data/lib/gemstash/man/gemstash-deploy.7.txt +51 -44
  22. data/lib/gemstash/man/gemstash-mirror.7.txt +53 -20
  23. data/lib/gemstash/man/gemstash-multiple-sources.7.txt +48 -53
  24. data/lib/gemstash/man/gemstash-private-gems.7.txt +15 -117
  25. data/lib/gemstash/man/gemstash-readme.7.txt +10 -126
  26. data/lib/gemstash/man/gemstash-setup.1.txt +54 -28
  27. data/lib/gemstash/man/gemstash-start.1.txt +56 -16
  28. data/lib/gemstash/man/gemstash-status.1.txt +57 -13
  29. data/lib/gemstash/man/gemstash-stop.1.txt +57 -13
  30. data/lib/gemstash/man/gemstash-version.1.txt +57 -12
  31. data/lib/gemstash/migrations/01_gem_dependencies.rb +2 -2
  32. data/lib/gemstash/migrations/03_cached_gems.rb +1 -1
  33. data/lib/gemstash/migrations/04_health_tests.rb +8 -0
  34. data/lib/gemstash/puma.rb +1 -1
  35. data/lib/gemstash/storage.rb +1 -0
  36. data/lib/gemstash/upstream.rb +2 -2
  37. data/lib/gemstash/version.rb +1 -1
  38. data/lib/gemstash/web.rb +5 -4
  39. metadata +20 -28
  40. data/lib/gemstash/gem_unyanker.rb +0 -67
  41. data/lib/gemstash/man/gemstash-authorize.1 +0 -51
  42. data/lib/gemstash/man/gemstash-configuration.5 +0 -215
  43. data/lib/gemstash/man/gemstash-customize.7 +0 -280
  44. data/lib/gemstash/man/gemstash-debugging.7 +0 -34
  45. data/lib/gemstash/man/gemstash-deploy.7 +0 -72
  46. data/lib/gemstash/man/gemstash-mirror.7 +0 -40
  47. data/lib/gemstash/man/gemstash-multiple-sources.7 +0 -89
  48. data/lib/gemstash/man/gemstash-private-gems.7 +0 -244
  49. data/lib/gemstash/man/gemstash-readme.7 +0 -234
  50. data/lib/gemstash/man/gemstash-setup.1 +0 -43
  51. data/lib/gemstash/man/gemstash-start.1 +0 -26
  52. data/lib/gemstash/man/gemstash-status.1 +0 -20
  53. data/lib/gemstash/man/gemstash-stop.1 +0 -20
  54. data/lib/gemstash/man/gemstash-version.1 +0 -22
@@ -1,40 +1,66 @@
1
- gemstash-setup(1) gemstash-setup(1)
2
1
 
3
2
 
4
3
 
5
- NAME
6
- gemstash-setup - Customize your Gemstash configuration interactively
7
4
 
8
- SYNOPSIS
9
- gemstash setup [--redo] [--debug] [--config-file FILE]
10
5
 
11
- DESCRIPTION
12
- Customize your Gemstash configuration interactively. This will save
13
- your config file, but only if a few checks pass after you've provided
14
- your answers.
15
6
 
16
- USAGE
17
- gemstash setup
18
- gemstash setup --redo
19
- gemstash setup --config-file <file>
20
7
 
21
- OPTIONS
22
- o --redo: Redo the configuration. This does nothing the first time
23
- gemstash setup is run. If you want to change your configuration us-
24
- ing gemstash setup after you've run it before, you must provide this
25
- option, otherwise Gemstash will simply indicate your setup is com-
26
- plete.
27
8
 
28
- o --debug: Output additional information if one of the checks at the
29
- end of setup fails. This will do nothing if all checks pass.
30
9
 
31
- o --config-file FILE: Specify the config file to write to. Without
32
- this option, your configuration will be written to ~/.gemstash/con-
33
- fig.yml. If you write to a custom location, you will need to pass
34
- the --config-file option to all Gemstash commands. If you plan to
35
- use ERB in your config file (gemstash help customize.7), you might
36
- want to use ~/.gemstash/config.yml.erb.
37
10
 
38
11
 
39
12
 
40
- October 9, 2015 gemstash-setup(1)
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
@@ -1,26 +1,66 @@
1
- gemstash-start(1) gemstash-start(1)
2
1
 
3
2
 
4
3
 
5
- NAME
6
- gemstash-start - Starts the Gemstash server
7
4
 
8
- SYNOPSIS
9
- gemstash start [--no-daemonize] [--config-file FILE]
10
5
 
11
- DESCRIPTION
12
- Starts the Gemstash server.
13
6
 
14
- OPTIONS
15
- o --config-file FILE: Specify the config file to use. If you aren't
16
- using the default config file at ~/.gemstash/config.yml or ~/.gem-
17
- stash/config.yml.erb (gemstash help customize.7), then you must spec-
18
- ify the config file via this option.
19
7
 
20
- o --no-daemonize: The Gemstash server daemonizes itself by default.
21
- Provide this option to instead run the server until Ctrl-C is typed.
22
- When not daemonized, the log will be output to standard out.
23
8
 
24
9
 
25
10
 
26
- October 9, 2015 gemstash-start(1)
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
@@ -1,22 +1,66 @@
1
- gemstash-status(1) gemstash-status(1)
2
1
 
3
2
 
4
3
 
5
- NAME
6
- gemstash-status - Checks status of the Gemstash server
7
4
 
8
- SYNOPSIS
9
- gemstash status [--config-file FILE]
10
5
 
11
- DESCRIPTION
12
- Checks status of the Gemstash server.
13
6
 
14
- OPTIONS
15
- o --config-file FILE: Specify the config file to use. If you aren't
16
- using the default config file at ~/.gemstash/config.yml or ~/.gem-
17
- stash/config.yml.erb (gemstash help customize.7), then you must spec-
18
- ify the config file via this option.
19
7
 
20
8
 
21
9
 
22
- October 28, 2015 gemstash-status(1)
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
@@ -1,22 +1,66 @@
1
- gemstash-stop(1) gemstash-stop(1)
2
1
 
3
2
 
4
3
 
5
- NAME
6
- gemstash-stop - Stops the Gemstash server
7
4
 
8
- SYNOPSIS
9
- gemstash stop [--config-file FILE]
10
5
 
11
- DESCRIPTION
12
- Stops the Gemstash server.
13
6
 
14
- OPTIONS
15
- o --config-file FILE: Specify the config file to use. If you aren't
16
- using the default config file at ~/.gemstash/config.yml or ~/.gem-
17
- stash/config.yml.erb (gemstash help customize.7), then you must spec-
18
- ify the config file via this option.
19
7
 
20
8
 
21
9
 
22
- October 9, 2015 gemstash-stop(1)
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
@@ -1,21 +1,66 @@
1
- gemstash-version(1) gemstash-version(1)
2
1
 
3
2
 
4
3
 
5
- NAME
6
- gemstash-version - Show what version of Gemstash you are using
7
4
 
8
- SYNOPSIS
9
- gemstash version
10
5
 
11
- DESCRIPTION
12
- Show what version of Gemstash you are using.
13
6
 
14
- USAGE
15
- gemstash version
16
- gemstash --version
17
- gemstash -v
18
7
 
19
8
 
20
9
 
21
- December 14, 2015 gemstash-version(1)
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
@@ -19,9 +19,9 @@ Sequel.migration do
19
19
  TrueClass :prerelease, :null => false
20
20
  DateTime :created_at, :null => false
21
21
  DateTime :updated_at, :null => false
22
- index [:rubygem_id, :number, :platform], :unique => true
22
+ index %i[rubygem_id number platform], :unique => true
23
23
  index [:indexed]
24
- index [:indexed, :prerelease]
24
+ index %i[indexed prerelease]
25
25
  index [:number]
26
26
  index [:full_name], :unique => true
27
27
  index [:storage_id], :unique => true
@@ -17,7 +17,7 @@ Sequel.migration do
17
17
  String :resource_type, size: 191, null: false
18
18
  DateTime :created_at, null: false
19
19
  DateTime :updated_at, null: false
20
- index [:upstream_id, :resource_type, :name], unique: true
20
+ index %i[upstream_id resource_type name], unique: true
21
21
  index [:name]
22
22
  end
23
23
  end
@@ -0,0 +1,8 @@
1
+ Sequel.migration do
2
+ change do
3
+ create_table :health_tests do
4
+ primary_key :id
5
+ String :string
6
+ end
7
+ end
8
+ end