trusted_publishing_test 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/LICENSE.txt +21 -0
- data/README.md +69 -0
- data/lib/trusted_publishing_test/version.rb +3 -0
- data/lib/trusted_publishing_test.rb +9 -0
- metadata +51 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 38776541683c9543008867b5954918c15cfa97b621a9a26d173ee42ce472c48c
|
|
4
|
+
data.tar.gz: 27d52a55c8988e5fceac5a1553ef6cba8a347a1d3857049f6a6f35b6e660b7eb
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4c1d61704a7ea2b41f0ba8b094e11a5b4152431c54e2711b5f189dc781f2377ce03dc3f38a5d0bb9e818f69f72f38b52ce82dd36566d203b98aa5e108c65466b
|
|
7
|
+
data.tar.gz: ea39017ef7da3dc8573741119cd42daebacf420d0a409a32e4bc6c4e6ba7b6c585b430b5dbefaa28bfee306f38059585fad911684ffd7e9955e6d205f09cfdfd
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - 2025-10-15
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Initial release
|
|
10
|
+
- Basic gem structure for testing trusted publishing
|
|
11
|
+
- GitHub Actions workflow for trusted publishing to RubyGems.org
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ruby Central
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Trusted Publishing Test
|
|
2
|
+
|
|
3
|
+
A minimal Ruby gem for testing trusted publishing on rubygems.org.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This gem exists solely to test the trusted publishing workflow, which allows publishing gems to RubyGems.org from GitHub Actions without requiring API keys.
|
|
8
|
+
|
|
9
|
+
## Setup
|
|
10
|
+
|
|
11
|
+
### 1. Configure Trusted Publishing on RubyGems.org
|
|
12
|
+
|
|
13
|
+
1. Log in to rubygems.org
|
|
14
|
+
2. Navigate to your gem's page (or create a new gem)
|
|
15
|
+
3. Go to Settings > Trusted Publishing
|
|
16
|
+
4. Add a new trusted publisher with:
|
|
17
|
+
- Repository owner: `RubyGemsOrg`
|
|
18
|
+
- Repository name: `trusted-publishing-test`
|
|
19
|
+
- Workflow filename: `publish.yml`
|
|
20
|
+
- Environment name: (leave empty unless using GitHub environments)
|
|
21
|
+
|
|
22
|
+
### 2. Create a Release
|
|
23
|
+
|
|
24
|
+
To publish a new version:
|
|
25
|
+
|
|
26
|
+
1. Update the version in `lib/trusted_publishing_test/version.rb`
|
|
27
|
+
2. Commit the changes
|
|
28
|
+
3. Create and push a git tag:
|
|
29
|
+
```bash
|
|
30
|
+
git tag v0.1.0
|
|
31
|
+
git push origin v0.1.0
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The GitHub Actions workflow will automatically:
|
|
35
|
+
- Build the gem
|
|
36
|
+
- Publish it to RubyGems.org using trusted publishing (no API key required)
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
You probably don't want to install this, but in case you do: Add this line to your application's Gemfile:
|
|
41
|
+
|
|
42
|
+
```ruby
|
|
43
|
+
gem 'trusted_publishing_test'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
And then execute:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
bundle install
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Or install it yourself as:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
gem install trusted_publishing_test
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Usage
|
|
59
|
+
|
|
60
|
+
```ruby
|
|
61
|
+
require 'trusted_publishing_test'
|
|
62
|
+
|
|
63
|
+
TrustedPublishingTest.hello
|
|
64
|
+
# => "Hello from Trusted Publishing Test gem v0.1.0!"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT
|
metadata
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: trusted_publishing_test
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ruby Central
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-10-15 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: This gem exists solely to test the trusted publishing workflow on rubygems.org
|
|
14
|
+
email:
|
|
15
|
+
- noreply@rubycentral.org
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- CHANGELOG.md
|
|
21
|
+
- LICENSE.txt
|
|
22
|
+
- README.md
|
|
23
|
+
- lib/trusted_publishing_test.rb
|
|
24
|
+
- lib/trusted_publishing_test/version.rb
|
|
25
|
+
homepage: https://github.com/RubyGemsOrg/trusted-publishing-test
|
|
26
|
+
licenses:
|
|
27
|
+
- MIT
|
|
28
|
+
metadata:
|
|
29
|
+
homepage_uri: https://github.com/RubyGemsOrg/trusted-publishing-test
|
|
30
|
+
source_code_uri: https://github.com/RubyGemsOrg/trusted-publishing-test
|
|
31
|
+
changelog_uri: https://github.com/RubyGemsOrg/trusted-publishing-test/blob/main/CHANGELOG.md
|
|
32
|
+
post_install_message:
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
require_paths:
|
|
35
|
+
- lib
|
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 2.6.0
|
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
requirements: []
|
|
47
|
+
rubygems_version: 3.5.22
|
|
48
|
+
signing_key:
|
|
49
|
+
specification_version: 4
|
|
50
|
+
summary: A minimal gem for testing trusted publishing on rubygems.org
|
|
51
|
+
test_files: []
|