From 667b55ab2218d74ccf0543155b64c1d2d4880b24 Mon Sep 17 00:00:00 2001 From: Thomas Avery Date: Thu, 18 Apr 2024 12:20:18 -0500 Subject: [PATCH 1/2] Update development section in ruby readme --- 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..18c8d4db1 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 ./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 ``` From d597a11b60ff22eeb11bd49ca9ce35a64e377857 Mon Sep 17 00:00:00 2001 From: Thomas Avery Date: Thu, 18 Apr 2024 12:41:08 -0500 Subject: [PATCH 2/2] Add -p flag to mkdir --- languages/ruby/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/ruby/README.md b/languages/ruby/README.md index 18c8d4db1..a02b1b53e 100644 --- a/languages/ruby/README.md +++ b/languages/ruby/README.md @@ -106,7 +106,7 @@ Prerequisites: cd languages/ruby # Make the binary folder if it doesn't exist already -mkdir ./bitwarden_sdk_secrets/lib/macos-arm64 +mkdir -p ./bitwarden_sdk_secrets/lib/macos-arm64 # Build and copy the bitwarden-c library cargo build --package bitwarden-c