From 5f26180ccd4a2f0c0e4b3d6abf7cfc798c4fdf89 Mon Sep 17 00:00:00 2001 From: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:12:14 -0500 Subject: [PATCH] Update development section in ruby readme (#720) ## Type of change ``` - [ ] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [X] Other ``` ## Objective Update README for Ruby language local development. ## Code changes - **file.ext:** Description of what was changed and why ## Before you submit - Please add **unit tests** where it makes sense to do so --- languages/ruby/README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/languages/ruby/README.md b/languages/ruby/README.md index e9fb61e0c..a02b1b53e 100644 --- a/languages/ruby/README.md +++ b/languages/ruby/README.md @@ -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 @@ -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 ```