From 1ccead3009362a7e6b93e568b4618a7a8e60f0fb Mon Sep 17 00:00:00 2001 From: Haris Krajina Date: Tue, 14 May 2024 13:43:51 +0200 Subject: [PATCH] Bump the mysql2 version There is an issue that has been fixed with 0.5.6 that solves problem with MySql 8+ client support. This the change that was introduced and it is backwards compatible https://github.com/brianmario/mysql2/pull/1352 --- Gemfile.lock | 5 ++++- README.md | 16 +++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c442782..d03114f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -107,7 +107,7 @@ GEM mini_mime (1.1.5) minitest (5.21.2) msgpack (1.7.2) - mysql2 (0.5.5) + mysql2 (0.5.6) net-imap (0.4.9.1) date net-protocol @@ -118,6 +118,8 @@ GEM net-smtp (0.4.0.1) net-protocol nio4r (2.7.0) + nokogiri (1.16.0-arm64-darwin) + racc (~> 1.4) nokogiri (1.16.0-x86_64-darwin) racc (~> 1.4) psych (5.1.2) @@ -191,6 +193,7 @@ GEM zeitwerk (2.6.12) PLATFORMS + arm64-darwin-23 x86_64-darwin-21 DEPENDENCIES diff --git a/README.md b/README.md index ab870dc..5cd9a6d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ The goal of this Ruby on Rails & React homework assignment is to assess your abi This repository mocks a CRM in the simplest of terms by demonstrating the one to many relationship of Companies to Deals and visualizng various attributes of each to our users. -Unfortunately, the current implementation is (intentionally) naive and not working as expected in several ways. +Unfortunately, the current implementation is (intentionally) naive and not working as expected in several ways. Your primary task with this homework assignment is to resolve the user stories below. @@ -32,14 +32,24 @@ Assumptions to make regarding the user story for this service: #### Running the App - `bin/dev` +#### Installing the `mysql2` Gem + +If you encounter issues with the `mysql2` gem, ensure that you provide paths to the necessary libraries. Use the following command: + +```bash +gem install mysql2 --version=0.5.6 -- --with-mysql-config=/opt/homebrew/bin/mysql_config --with-openssl-dir=/opt/homebrew/opt/openssl@3.2 --with-opt-lib=/opt/homebrew/lib +``` + +This command specifies the paths for the MySQL configuration and OpenSSL directory, which can resolve common installation problems. + #### Submission - Clone the repository - Setup a new repository with the source code - Implement solution - Push your solution to a new branch - Create a Pull Request within the new repository -- When you're ready, share a link to the Pull Request with us - +- When you're ready, share a link to the Pull Request with us + ## FAQ #### How will I be evaluated?