diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index ef538c2810..0000000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -3.1.2 diff --git a/Gemfile b/Gemfile deleted file mode 100644 index bc63d8fb1f..0000000000 --- a/Gemfile +++ /dev/null @@ -1,3 +0,0 @@ -source 'https://rubygems.org' - -gem 'rspec', '~>3.9' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index cfacf03362..0000000000 --- a/Gemfile.lock +++ /dev/null @@ -1,26 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - diff-lcs (1.5.0) - rspec (3.11.0) - rspec-core (~> 3.11.0) - rspec-expectations (~> 3.11.0) - rspec-mocks (~> 3.11.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-support (3.11.0) - -PLATFORMS - ruby - -DEPENDENCIES - rspec (~> 3.9) - -BUNDLED WITH - 2.3.14 diff --git a/README.md b/README.md index 6fc8528bee..a92f0616a6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ This repository is a complement to the Ruby course for The Odin Project. It cont Each set of exercises should only be done **after** being directed to do so in the assignment of the corresponding Ruby lesson. I.e. if you just finished the Basic Data Types lesson you should **only** do the exercises in the `1_data_types` folder for now. +> [!IMPORTANT] +> Please do not submit your solutions as a PR to this repository. Any PR that does this will have to be closed. + ## Cloning and installation Clone this repository to your local machine. To do this, click on the green "Code" button at the top right of list of files and copy the link in the prompt. Then, run the following command in your terminal: @@ -18,18 +21,22 @@ CD into that folder: cd ruby-exercises -Then run the following command: +Now before beginning work on the exercises, you'll want to install a gem called RSpec. RSpec is a popular Ruby testing framework that is used in this repository to provide you with tests that check your solutions. - bundle install +To install RSpec, run the following command in your terminal: -This folder contains a Gemfile, which tells bundle which gems to install locally and makes them available for use in that directory. In this case, we are installing RSpec, which is a popular Ruby testing framework. + gem install rspec -Verify that the installation was successful by simply running the following command: +You should see a message that says something along the lines of "6 gems installed" in your terminal. Verify that the installation was successful by simply running the following command: - bundle exec rspec + rspec Which should print a few lines about not finding any examples. This is ok and means it's working! +If your shell reports that it cannot find the rspec binary, it may be necessary to run the following command: + + rbenv rehash + ## Usage Each directory contains a read me with instructions for the exercises within them.