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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edae593cc5b009ece9ad798a753242bf5fc501b78feedf34261e86f41605f8b7
4
- data.tar.gz: c42e795f5252111d62d0a595c5e057ccb287953ca262a9ead9c4149b812ee4a7
3
+ metadata.gz: cb77b948c000e08a52d370f23a72f15b93bdbf9771530888c25497fd67ef876b
4
+ data.tar.gz: daa2d140e30dc3c76929d50fbc38473f211f6d422481e75a992a7aacfc0bac96
5
5
  SHA512:
6
- metadata.gz: 72b1647b369e1d0a4cfaa22adf9b6c6b2d19c566944bf324e9d726ed234db81b8a7f2957580013fbc5fd2e46ad68e30778822bcd9d83deb1a53d3a2acffdefe7
7
- data.tar.gz: b70f06a91f6263a15eb64bf3844850497fd6e4482733c44fcd6e820909686206285d8b863f16846fed0ec80f33bad0315fe31064e725b499b0eaecf2eafca02c
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubygems
4
4
  module Server
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -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.sort.map do |spec|
492
- platform = spec.original_platform || Gem::Platform::RUBY
493
- [spec.name, spec.version, platform]
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.1.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: 2021-10-28 00:00:00.000000000 Z
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.3.0.dev
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`.