Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 971 Bytes

CONTRIBUTING.md

File metadata and controls

62 lines (44 loc) · 971 Bytes

Ruby SDK for Passage

Testing the gem locally

Install the gem

gem build passageidentity.gemspec -o {$FILE_NAME}.gem
gem install ./{$FILE_NAME}.gem

Test it out:

irb -Ilib -rpassageidentity
>> passage = Passage::Client.new(app_id: 'YOUR_APP_ID')
>> passage.auth.authenticate("JWT_HERE")
<passage_user_id>

Run Tests:

# all tests
ruby tests/all.rb
# individual test files
ruby tests/*_test.rb

Run Linter:

gem install rubocop
rubocop -A

To test in the example app, change the Gemfile to include this path:

gem "passageidentity", path: "../../passage-ruby"

Publishing

Create an account in rubygems.org then run the following command with your username.

$ curl -u <username> https://rubygems.org/api/v1/api_key.yaml >
~/.gem/credentials; chmod 0600 ~/.gem/credentials

Enter host password for user '<username>':
gem push passage-0.0.0.gem

You can check for the gem here:

gem list -r passage