Skip to content

Commit

Permalink
Update development section in ruby readme (#720)
Browse files Browse the repository at this point in the history
## Type of change

<!-- (mark with an `X`) -->

```
- [ ] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [X] Other
```

## Objective

<!--Describe what the purpose of this PR is. For example: what bug
you're fixing or what new feature you're adding-->
Update README for Ruby language local development. 

## Code changes

<!--Explain the changes you've made to each file or major component.
This should help the reviewer understand your changes-->
<!--Also refer to any related changes or PRs in other repositories-->

- **file.ext:** Description of what was changed and why

## Before you submit

- Please add **unit tests** where it makes sense to do so
  • Loading branch information
Thomas-Avery authored Apr 23, 2024
1 parent 72a3b49 commit 5f26180
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions languages/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,18 @@ puts response

## Development

Prerequisites:

- Ruby >= 3.0 installed
- Generate schemas `npm run schemas`

```bash
# Navigate to the ruby language folder
cd languages/ruby

# Make the binary folder if it doesn't exist already
mkdir -p ./bitwarden_sdk_secrets/lib/macos-arm64

# Build and copy the bitwarden-c library
cargo build --package bitwarden-c
cp ../../target/debug/libbitwarden_c.dylib ./bitwarden_sdk_secrets/lib/macos-arm64/libbitwarden_c.dylib
Expand All @@ -113,8 +124,8 @@ cd ..
export ACCESS_TOKEN=""
export ORGANIZATION_ID=""

export API_URL=https://localhost:8080/api
export IDENTITY_URL=https://localhost:8080/identity
export API_URL=http://localhost:4000
export IDENTITY_URL=http://localhost:33656
ruby examples/example.rb
```

Expand Down

0 comments on commit 5f26180

Please sign in to comment.