Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit c2971eb

Browse files
author
Lindsey Whitley
committed
Do not need to publish public github repo
1 parent 4104123 commit c2971eb

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

README.md

+2-24
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,9 @@ You can update the bonusly branch by pulling and rebasing and then publishing th
99

1010
## Publishing
1111

12-
To publish to our private gemserver you will first need to get the api key.
12+
This is a public repo, so we don't need to publish the gem in order to pull the changes into an application. Add this line to your Gemfile to get this gem: `gem "yam", github: "bonusly/yam"`
1313

14-
The api key can be found in vault: https://vault.bonus.ly/ui/vault/secrets/kv/show/global/gemstash
15-
16-
To set it correctly first check to see if you already have a file at `~/.gem/credentials` if you do
17-
you can skip to editing that file. If not follow these steps to create it:
18-
19-
```shell
20-
$ mkdir -p ~/.gem
21-
$ touch ~/.gem/credentials
22-
$ chmod 0600 ~/.gem/credentials
23-
```
24-
25-
Once you have a credentials file you will need to add the following line to it:
26-
27-
```yaml
28-
---
29-
:private_gemserver_key: <API KEY GOES HERE>
30-
```
31-
32-
Now that you have the credentials configured use the following command to push a new version to the private gemserver:
33-
34-
```shell
35-
$ gem push --key private_gemserver_key --host https://rubygems.bonusly.dev/private pkg/yam-X.X.X.gem
36-
```
14+
When you have changes that you want to pull into an app (i.e. something you would publish as a new version), you can just run `bundle update yam` in the repo.
3715

3816
# Original README Below
3917

yam.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
3535
s.files = `git ls-files`.split("\n")
3636
s.require_paths = ['lib']
3737

38-
s.metadata['allowed_push_host'] = 'https://rubygems.bonusly.dev/private'
38+
s.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com/bonusly'
3939

4040
s.licenses = ['MIT']
4141
s.test_files = Dir.glob('spec/**/*')

0 commit comments

Comments
 (0)