New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

shiftcare_exam

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shiftcare_exam

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ShiftCare Technical Challenge

Pre-requisite

ruby 3.2.2

How to setup this project

Clone this repo

git@github.com:analyn-cajocson/shiftcare_exam.git

Go to the Project directory

cd shiftcare_exam

Run the test

bundle exec rspec

Available Commands

Open the lib/client.rb file and add this code at the end of the file:

client = Client.new #this will use the default clients.json file
result = client.search("John Doe")  #this will use the default search field full_name

You can also specify the search field:

client = Client.new #this will use the default clients.json file
result = client.search("john.doe@gmail.com", "email")

Save your changes, then run the following command in the terminal:

ruby lib/client.rb

#check_duplicates

Open the lib/client.rb file and add this code at the end of the file:

client = Client.new #this will use the default clients.json file
result = client.check_duplicates

Save your changes, then run the following command in the terminal:

ruby lib/client.rb

FAQs

Package last updated on 26 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc