Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update development section in ruby readme #720

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ./bitwarden_sdk_secrets/lib/macos-arm64
dani-garcia marked this conversation as resolved.
Show resolved Hide resolved

# 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
Comment on lines +127 to +128
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After messing with this for a bit, I got these proxy endpoints working if:

  • You generate a valid SSL Certificate following instructions here
  • Run export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
  • Have the web client running to have these proxies running.

I don't have a strong opinion either way, but we probably need more clarity on prerequisites for using the proxy endpoints.

ruby examples/example.rb
```

Expand Down
Loading