Repository navigation
Maintainer Guide
The repository defines these tasks:
rake gem:create
rake gem:installgem:create removes existing .gem files in the checkout, loads the gemspec,
and builds a signed gem. gem:install runs gem:create and installs the resulting
local archive. The signing key is read from ~/.ssh/gem-private_key.pem; an
encrypted key prompts for its passphrase in the local terminal.
The public signing certificate is tracked as certs/djberg96_pub.pem and
referenced by spec.cert_chain in mail-sympa.gemspec. The private key stays
outside the repository.
Before preparing a release, keep the gemspec version, Mail::Sympa::VERSION,
version expectations in the specs, and changelog consistent. Run the real-server
suite described in Testing. The current gemspec targets 1.3.0; consult
the source when checking the runtime constant and tests.
After reviewing the built archive, a maintainer can publish it with:
gem push mail-sympa-1.3.0.gemSee Publishing your gem for RubyGems account and publishing requirements.
An error such as:
OpenSSL::X509::CertificateError:
PEM_read_bio_X509: no start line (Expecting: CERTIFICATE)
can mean the file named in spec.cert_chain does not exist. RubyGems accepts
both certificate paths and PEM strings; if a path is missing, its signer tries
to parse the path string itself as a certificate.
Confirm that certs/djberg96_pub.pem exists and contains an X.509 certificate.
The certificate and private key are separate files. Inspect the public
certificate without opening the private key:
openssl x509 -in certs/djberg96_pub.pem -noout -datesThe repository certificate was checked against the maintainer's existing public
certificate and the one in sctp-socket; it is valid until March 15, 2028.
Installed libraries continue to run after the certificate expires. Future signed builds using an expired certificate fail unless it is renewed, and installation policies that check certificate validity can reject old gem archives containing the expired certificate.
The current certificate is self-signed. It can be renewed using the existing
private key with gem cert --re-sign after expiration; use -C to select the
certificate and -K to select the key. Then update the public certificate in
each gem repository before building future releases. Renewal does not replace
certificates already embedded in published archives.
RubyGems has a restricted automatic-renewal path requiring matching certificate
and key files in its default locations. The repository certificate and
~/.ssh key arrangement does not satisfy those requirements automatically.
In the RubyGems 4.0.18 installation checked for this project, the default paths
are under ~/.local/share/gem/; locate yours with:
ruby -rrubygems/security -e 'puts Gem.default_cert_path; puts Gem.default_key_path'See Certificate commands and the RubyGems signer and verification policy for the exact behavior of your installed RubyGems version.
RubyGems 3.6.7 introduced a fixed default SOURCE_DATE_EPOCH of 315619200,
January 2, 1980, to improve build reproducibility. A gemspec's YAML date can
therefore show 1980 even for a newly built archive. This is separate from the
certificate's own validity dates.
The project's built 1.3.0 archive and RubyGems 4.0.18 installation were checked:
SOURCE_DATE_EPOCH was unset and the gem metadata used the fixed default.
No certificate change is needed because of that metadata date.
See the RubyGems 3.6.7 release notes.