Skip to content

Commit b783086

Browse files
committed
📝 Improve documentation
- 20 year cert, expires 2045-04-29
1 parent cbe965e commit b783086

File tree

2 files changed

+66
-33
lines changed

2 files changed

+66
-33
lines changed

README.md

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# VersionGem
1+
# 🔖 VersionGem
22

33
[![Version][👽versioni]][👽version]
44
[![License: MIT][📄license-img]][📄license-ref]
@@ -29,7 +29,7 @@
2929
[![Donate to my FLOSS or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi]
3030
[![Donate to my FLOSS or refugee efforts using Patreon][🖇patreon-img]][🖇patreon]
3131

32-
## Alternatives
32+
## 🧐 Alternatives
3333

3434
This gem has a very niche purpose, which is:
3535

@@ -47,7 +47,7 @@ gem from the Alchemists, or _[version_sorter](https://rubygems.org/gems/version_
4747

4848
For more discussion about this [see issue #2](https://gitlab.com/oauth-xx/version_gem/-/issues/2)
4949

50-
## Still here?
50+
## 🚀 Still here?
5151

5252
Give your next library an introspectable `Version` module without breaking your Gemspec.
5353

@@ -65,7 +65,7 @@ This library was extracted from the gem _[oauth2](https://gitlab.com/oauth-xx/oa
6565

6666
This gem has no runtime dependencies.
6767

68-
## Info you can shake a stick at
68+
## 💡 Info you can shake a stick at
6969

7070
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
7171
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
@@ -79,9 +79,9 @@ This gem has no runtime dependencies.
7979
| Expert 1:1 Support | [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork] `or` [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor] |
8080
| Enterprise Support | [![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]<br/>💡Subscribe for support guarantees covering _all_ FLOSS dependencies!<br/>💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]!<br/>💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers! |
8181
| Comrade BDFL 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
82-
| `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] |
82+
| `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
8383

84-
## Installation
84+
## Installation
8585

8686
Install the gem and add to the application's Gemfile by executing:
8787

@@ -91,7 +91,36 @@ If bundler is not being used to manage dependencies, install the gem by executin
9191

9292
$ gem install version_gem
9393

94-
## Basic Usage
94+
### 🔒 Secure Installation
95+
96+
`version_gem` is cryptographically signed. Be sure the gem you install hasn’t been tampered with
97+
by following the instructions below.
98+
99+
Add my public key (if you haven’t already, expires 2045-04-29) as a trusted certificate:
100+
101+
```shell
102+
gem cert --add <(curl -Ls https://raw.github.com/oauth-xx/version_gem/master/certs/pboling.pem)
103+
```
104+
105+
You only need to do that once. Then proceed to install with:
106+
107+
```shell
108+
gem install version_gem -P MediumSecurity
109+
```
110+
111+
The `MediumSecurity` trust profile will verify signed gems, but allow the installation of unsigned dependencies.
112+
113+
This is necessary because not all of `version_gem`’s dependencies are signed, so we cannot use `HighSecurity`.
114+
115+
If you want to up your security game full-time:
116+
117+
```shell
118+
bundle config set --global trust-policy MediumSecurity
119+
```
120+
121+
NOTE: Be prepared to track down certs for signed gems and add them the same way you added mine.
122+
123+
## 🔧 Basic Usage
95124

96125
In the standard `bundle gem my_lib` code you get the following in `lib/my_lib/version.rb`:
97126

@@ -250,7 +279,7 @@ MyLib::Version.to_a # => [1, 24, 3, 8]
250279
MyLib::Version.to_h # => { epoch: 1, major: 24, minor: 3, patch: 8, pre: "" }
251280
```
252281

253-
## Usage with Zeitwerk
282+
### Usage with Zeitwerk
254283

255284
The pattern of `version.rb` breaking the ruby convention of directory / path matching the namespace / class
256285
is so entrenched that the `zeitwerk` library has a special carve-out for it. 🥺
@@ -420,7 +449,7 @@ It is obvious to many, but not all, and since the spec is silent, the bike shedd
420449

421450
> dropping support for a platform is both obviously and objectively a breaking change
422451
423-
- Jordan Harband (@ljharb) [in SemVer issue 716][📌semver-breaking]
452+
- Jordan Harband (@ljharb, maintainer of SemVer) [in SemVer issue 716][📌semver-breaking]
424453

425454
To get a better understanding of how SemVer is intended to work over a project's lifetime,
426455
read this article from the creator of SemVer:
@@ -487,14 +516,18 @@ or one of the others at the head of this README.
487516
[💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
488517
[💖🐘ruby-mast]: https://ruby.social/@galtzo
489518
[💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=flat&logo=mastodon&label=Ruby%20%40galtzo
490-
[💖🦋bluesky]: https://galtzo.bsky.social
491-
[💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.bsky.social-0285FF?style=flat&logo=bluesky&logoColor=white
519+
[💖🦋bluesky]: https://bsky.app/profile/galtzo.com
520+
[💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
492521
[💖🌳linktree]: https://linktr.ee/galtzo
493522
[💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
494523
[💖💁🏼‍♂️devto]: https://dev.to/galtzo
495524
[💖💁🏼‍♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
496525
[💖💁🏼‍♂️aboutme]: https://about.me/peter.boling
497526
[💖💁🏼‍♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
527+
[💖🧊berg]: https://codeberg.org/pboling
528+
[💖🐙hub]: https://github.org/pboling
529+
[💖🛖hut]: https://sr.ht/~galtzo/
530+
[💖🧪lab]: https://gitlab.com/pboling
498531
[👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
499532
[👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
500533
[👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
@@ -550,7 +583,7 @@ or one of the others at the head of this README.
550583
[🚎10-j-wfi]: https://github.com/oauth-xx/version_gem/actions/workflows/jruby.yml/badge.svg
551584
[🚎11-c-wf]: https://github.com/oauth-xx/version_gem/actions/workflows/current.yml
552585
[🚎11-c-wfi]: https://github.com/oauth-xx/version_gem/actions/workflows/current.yml/badge.svg
553-
[⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
586+
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay
554587
[⛳liberapay]: https://liberapay.com/pboling/donate
555588
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
556589
[🖇sponsor]: https://github.com/sponsors/pboling

certs/pboling.pem

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
-----BEGIN CERTIFICATE-----
22
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
33
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
4-
A2NvbTAeFw0yNDA5MjAwODU4NDJaFw0yNTA5MjAwODU4NDJaMEMxFTATBgNVBAMM
4+
A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
55
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
6-
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAjrxsKObI
7-
rFQjBpzvVfqnT6JlF8/pkpgEEjFh7ex3zIerfuHzZvSrx+sRDGxQ8koWWG0Wjx8s
8-
wkBZ5dIqvl0g3sWP5asa28u/09opxkQTC1Ao77iYxcBcwoCe/Dpf1m4Q/m6oH0kL
9-
2AZVNJQL3UkqAcLS0tsj/s/jAKnVlsaZZE5gQiIIi8HtkvSsajtx+Cq2AxDvcWvV
10-
/CliD+pmzYkTjvjwGm8yeyFGGGgrisJMryiZdZlkTwrQSjCzudIKbLeuG8Se4JTD
11-
TAcT+rPubr27v1jwmtIjtiot3rf4nof7LHLb122a/0VR7cC7xPLnXw0Cq1BShvoq
12-
/GKRdSwMNinTOGkFTK1gKnjN+3iD4zyXU3XO3CXoTr+Ju8fXPN1x4tpOMgbv8dme
13-
WbcQMOH9ZjmA5w0bSVRL1c3NhRRpUzrKTNXBEvqOyWjUnintxWKj+cRXx+z+dUgI
14-
dL3kj68fcsi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