rubygems-server 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubygems/commands/server_command.rb +3 -3
- data/lib/rubygems/server/version.rb +1 -1
- data/lib/rubygems/server.rb +3 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb77b948c000e08a52d370f23a72f15b93bdbf9771530888c25497fd67ef876b
|
4
|
+
data.tar.gz: daa2d140e30dc3c76929d50fbc38473f211f6d422481e75a992a7aacfc0bac96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d548a4aea96ca849c08ae57864dba9f48b6fcf41e2717a225272d58d4c6cd9d7fcd943a1d6513dbabb1d2c42b576f8782f09917211cfe1127d5c7c3186390263
|
7
|
+
data.tar.gz: 22560980458c36d563bb06a243aa65215255c140e21f2fb5a25120475815d213957b45db13544fcc9d0626ca3bdaacefe5a4fd84b735b125579524da0d697f7b
|
@@ -8,10 +8,10 @@ class Gem::Commands::ServerCommand < Gem::Command
|
|
8
8
|
super 'server', 'Documentation and gem repository HTTP server',
|
9
9
|
:port => 8808, :gemdir => [], :daemon => false
|
10
10
|
|
11
|
-
OptionParser.accept :Port do |port|
|
11
|
+
Gem::OptionParser.accept :Port do |port|
|
12
12
|
if port =~ /\A\d+\z/
|
13
13
|
port = Integer port
|
14
|
-
raise OptionParser::InvalidArgument, "#{port}: not a port number" if
|
14
|
+
raise Gem::OptionParser::InvalidArgument, "#{port}: not a port number" if
|
15
15
|
port > 65535
|
16
16
|
|
17
17
|
port
|
@@ -19,7 +19,7 @@ class Gem::Commands::ServerCommand < Gem::Command
|
|
19
19
|
begin
|
20
20
|
Socket.getservbyname port
|
21
21
|
rescue SocketError
|
22
|
-
raise OptionParser::InvalidArgument, "#{port}: no such named service"
|
22
|
+
raise Gem::OptionParser::InvalidArgument, "#{port}: no such named service"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/rubygems/server.rb
CHANGED
@@ -488,10 +488,9 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
|
488
488
|
|
489
489
|
latest_specs = Gem::Specification.latest_specs
|
490
490
|
|
491
|
-
specs = latest_specs.
|
492
|
-
|
493
|
-
|
494
|
-
end
|
491
|
+
specs = latest_specs.map do |spec|
|
492
|
+
[spec.name, spec.version, spec.platform]
|
493
|
+
end.sort
|
495
494
|
|
496
495
|
specs = Marshal.dump specs
|
497
496
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi SHIBATA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webrick
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.4.0.dev
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Gem::Server and allows users to serve gems for consumption by `gem --remote-install`.
|