Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.57 KB

README.swiftype.md

File metadata and controls

40 lines (29 loc) · 1.57 KB

Swiftype Fork of postrank-uri

This repo contains a Swiftype-specific fork of postrank-uri gem. There is a number of changes we have made that are not in the upstream, so we have to use this version for now.

Releasing a new version

Configure authentication for artifactory

Create ~/.gem/credentials with 600 permission:

mkdir -p ~/.gem && touch ~/.gem/credentials && chmod 600 ~/.gem/credentials

Sign into artifactory and get your API token from your user profile.

Set USERNAME and API_TOKEN in the following snippet and run it:

export USERNAME=username
export API_TOKEN=supersecret
curl --silent --fail --user "${USERNAME}:${API_TOKEN}" \
  https://artifactory.elstc.co/artifactory/api/gems/swiftype-gems/api/v1/api_key.json | \
  jq -r '.rubygems_api_key | ":elastic: \(.)"' > ~/.gem/credentials

Release Process

When you make a change in this repository, please use the following process for releasing your changes into Swiftype's private gem repository:

  1. Follow the above section to configure push access to artifactory
  2. Commit all of the changes you want to release.
  3. Bump up the swiftype version (the number at the very end of the VERSION string) in lib/postrank-uri/version.rb.
  4. Update SWIFTYPE-CHANGELOG.md and include information on your changes.
  5. Commit and push your changes to Github.
  6. Run bundle install to make sure the gem could be installed.
  7. Run rake release to generate a gem file and push it to artifactory