Skip to content

Commit

Permalink
🔐 cert for securely releasing
Browse files Browse the repository at this point in the history
- Add version_gem integration
  • Loading branch information
pboling committed Sep 24, 2024
1 parent 861d1ab commit 1cf9c3b
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 19 deletions.
27 changes: 27 additions & 0 deletions certs/pboling.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN CERTIFICATE-----
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
A2NvbTAeFw0yNDA5MjAwODU4NDJaFw0yNTA5MjAwODU4NDJaMEMxFTATBgNVBAMM
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAjrxsKObI
rFQjBpzvVfqnT6JlF8/pkpgEEjFh7ex3zIerfuHzZvSrx+sRDGxQ8koWWG0Wjx8s
wkBZ5dIqvl0g3sWP5asa28u/09opxkQTC1Ao77iYxcBcwoCe/Dpf1m4Q/m6oH0kL
2AZVNJQL3UkqAcLS0tsj/s/jAKnVlsaZZE5gQiIIi8HtkvSsajtx+Cq2AxDvcWvV
/CliD+pmzYkTjvjwGm8yeyFGGGgrisJMryiZdZlkTwrQSjCzudIKbLeuG8Se4JTD
TAcT+rPubr27v1jwmtIjtiot3rf4nof7LHLb122a/0VR7cC7xPLnXw0Cq1BShvoq
/GKRdSwMNinTOGkFTK1gKnjN+3iD4zyXU3XO3CXoTr+Ju8fXPN1x4tpOMgbv8dme
WbcQMOH9ZjmA5w0bSVRL1c3NhRRpUzrKTNXBEvqOyWjUnintxWKj+cRXx+z+dUgI
dL3kj68fcsiTgl75In3C485pnCMmq1eLuVoiy3jkLNOn2lHeLt9ZK63LAgMBAAGj
fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRhfc+2UaVYd74p
yJ1JclGiUYN8+jAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
ggGBAA4fLU2+mQ++jBhVM2IeyvQdw1nm+0thkH4Ldv8ZOBm5ZxCPGIMoYliDDzg4
4JDFxZR1wR4sdrz/K5tWtEkN23SKzopwbNb1NIQRSLQ7nOoc+4bkuz9xwKinmIvF
D+5qsl2S27WLKFreMDtGoh0CREIMBUxU4rGTh0gtzmweGR+fnOShg4Jo0kxrjU5h
uYk/uVE+bn/jOEGs43GvKXZLyshpBrZjQ+ArbvxDht5t35zbSxerbUxUPZUbXUCW
tTyh38a9UYjAAHvnh6Y4Fi9wd4/pGNsektrzB3z/zlVj4YF2TMLX9XfNJWEGRGpO
sSkLYdtEX1WQAmuZtActVW2cL3HdQaRbiv7VbfpA0eSk0ZdZHvBCl516ZZu10uX6
82W1mg6fuezdpeBOiXwrEbZSt/oGiF4V511F6nd55p0okwHc/6nS10F/3aKJ4gwC
I5o+DRfXQHqKucx1ldFHvI2rE/kSCWqGTHN2eyu1sqCPeOoIMxrltJhaejKPkxqj
zaF9Og==
-----END CERTIFICATE-----
4 changes: 4 additions & 0 deletions lib/rots.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
# Namespace for this gem
module Rots
end

Rots::Version.class_eval do
extend VersionGem::Basic
end
6 changes: 4 additions & 2 deletions lib/rots/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module Rots
VERSION = "0.2.2"
end
module Version
VERSION = "1.0.0"
end
end
50 changes: 33 additions & 17 deletions rots.gemspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "rots/version"
# Get the GEMFILE_VERSION without *require* "my_gem/version", for code coverage accuracy
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-825171399
load "lib/rots/version.rb"
gem_version = Rots::Version::VERSION
Rots::Version.send(:remove_const, :VERSION)

Gem::Specification.new do |spec|
spec.name = "rots"
spec.version = Rots::VERSION
spec.platform = Gem::Platform::RUBY
spec.summary = "an OpenID server for making tests of OpenID clients implementations"
spec.name = "rots"
spec.version = gem_version
spec.authors = ["Peter Boling", "Roman Gonzalez"]
spec.email = ["[email protected]", "[email protected]"]
spec.homepage = "http://github.com/oauth-xx/#{spec.name}"

spec.description = <<-EOF
Ruby OpenID Test Server (ROTS) provides a basic OpenID server made in top of the Rack gem.
With this small server, you can make dummy OpenID request for testing purposes,
the success of the response will depend on a parameter given on the URL of the authentication request.
# See CONTRIBUTING.md
spec.cert_chain = [ENV.fetch("GEM_CERT_PATH", "certs/#{ENV.fetch("GEM_CERT_USER", ENV["USER"])}.pem")]
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $PROGRAM_NAME.end_with?("gem")

spec.summary = "an OpenID server for making tests of OpenID clients implementations"
spec.description = <<~EOF
Ruby OpenID Test Server (ROTS) provides a basic OpenID server made in top of the Rack gem.
With this small server, you can make dummy OpenID request for testing purposes,
the success of the response will depend on a parameter given on the URL of the authentication request.
EOF

spec.files = Dir[
Expand All @@ -27,12 +35,20 @@ the success of the response will depend on a parameter given on the URL of the a
spec.executables = %w[
rots
]
spec.require_path = 'lib'
spec.author = 'Roman Gonzalez'
spec.email = '[email protected]'
spec.homepage = 'http://github.com/roman'
spec.rubyforge_project = 'rots'
spec.license = 'MIT'
spec.license = "MIT"

spec.add_dependency("date")
spec.add_dependency("net-http")
spec.add_dependency("openssl")
spec.add_dependency("optparse")
spec.add_dependency("psych", "~> 5.1")
spec.add_dependency("rack", ">= 2")
spec.add_dependency("rackup", ">= 2")
spec.add_dependency("ruby-openid2", "~> 3.0", ">= 3.0.2")
spec.add_dependency("stringio")
spec.add_dependency("version_gem", "~> 1.1", ">= 1.1.4")
spec.add_dependency("webrick")
spec.add_dependency("yaml", "~> 0.3")

spec.add_dependency "date"
spec.add_dependency "net-http"
Expand Down

0 comments on commit 1cf9c3b

Please sign in to comment.