-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
114 additions
and
4,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "minitest", "~>5.2" | ||
gem "rspec" | ||
gem "pry" | ||
gem "pry-byebug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,6 @@ Each folder in this repository is a set of related exercises. Open up the folder | |
1. How you need to manipulate or work with this file to complete the exercise. | ||
2. Some exercises will require you to manipulate the "current" file and run it. Other exercises will require you to create _new_ files and then reference those files for the "current" file to work. | ||
|
||
If you're new here, watch this getting-started video. We'll install the ruby-exercises directory, figure out how to get set up to practice some `ruby`, and then we'll work through the _complete_ full exercises: | ||
|
||
[](https://youtu.be/aeAkLxr5diE) | ||
|
||
## Setup | ||
|
||
### 1. Clone this repository | ||
|
@@ -29,7 +25,7 @@ in your `/turing` directory on your laptop (or whatever directory you want this | |
git clone [email protected]:turingschool/ruby-exercises.git | ||
// using https, if the above doesn't work: | ||
git clone https://github.com/turingschool/ruby-exercises.git | ||
``` | ||
``` | ||
|
||
Once this command runs, you'll now have a "local" copy of this entire repository, living right on your laptop. | ||
|
||
|
@@ -45,17 +41,28 @@ You _should_ see something like this: | |
|
||
``` | ||
$ bundle install | ||
Fetching gem metadata from https://rubygems.org/........... | ||
Fetching gem metadata from https://rubygems.org/........ | ||
Resolving dependencies... | ||
Using bundler 2.1.4 | ||
Using byebug 11.1.3 | ||
Fetching coderay 1.1.2 | ||
Installing coderay 1.1.2 | ||
Fetching method_source 1.0.0 | ||
Installing method_source 1.0.0 | ||
Fetching minitest 5.2.1 | ||
Installing minitest 5.2.1 | ||
Fetching pry 0.13.1 | ||
Installing pry 0.13.1 | ||
Bundle complete! 2 Gemfile dependencies, 5 gems now installed. | ||
Using diff-lcs 1.4.4 | ||
Using method_source 1.0.0 | ||
Using pry 0.13.1 | ||
Fetching pry-byebug 3.9.0 | ||
Installing pry-byebug 3.9.0 | ||
Fetching rspec-support 3.10.1 | ||
Installing rspec-support 3.10.1 | ||
Fetching rspec-core 3.10.1 | ||
Installing rspec-core 3.10.1 | ||
Fetching rspec-expectations 3.10.1 | ||
Installing rspec-expectations 3.10.1 | ||
Fetching rspec-mocks 3.10.1 | ||
Installing rspec-mocks 3.10.1 | ||
Fetching rspec 3.10.0 | ||
Installing rspec 3.10.0 | ||
Bundle complete! 3 Gemfile dependencies, 12 gems now installed. | ||
Use `bundle info [gemname]` to see where a bundled gem is installed. | ||
``` | ||
If you see that, great! | ||
|
@@ -76,7 +83,8 @@ If this command throws an error, you either: | |
1. Don't have `rbenv` installed | ||
2. You've not yet installed a version of Ruby. | ||
|
||
Please check that you've followed [mod0 setup instructions](http://mod0.turing.io/setup-instructions) and this guide to [install rbenv and a version of ruby](https://github.com/turingschool-examples/backend_module_0_capstone#environment). | ||
Please check that you've followed [mod0 setup instructions](http://mod0.turing.io/setup-instructions) | ||
and this guide to [install rbenv and a version of ruby](https://github.com/turingschool-examples/backend_module_0_capstone#environment). | ||
|
||
> Hey, hold up. What is this `bundle` thing, and what does it do? what does `gem install bundler` do? | ||
|
@@ -101,67 +109,5 @@ And read through the `README.md` for further instructions! | |
|
||
If you want to view the instructions in your web browser, you can view them here: [data-types/strings/README.md](https://github.com/turingschool/ruby-exercises/tree/main/data-types/strings) | ||
|
||
Otherwise, please work through [this video guide](https://youtu.be/aeAkLxr5diE) to fully understand how to run these exercises. They can be mostly self-explanitory, but even if you know exactly how to make these tests pass, you'll gain value from the video. | ||
|
||
---------------------------------- | ||
|
||
## Suggested order | ||
|
||
This repository of exercises is one of the best tools you've got to learn Ruby. Every minute spent here is time _very_ well spent. | ||
|
||
* Week 1 | ||
* data-types | ||
* strings (start here!!!) [video walk-through](https://youtu.be/aeAkLxr5diE) | ||
* ints_and_floats | ||
* collections/arrays [video walk-through](https://youtu.be/RUnd1Uu0AyE) | ||
* initialize | ||
* aardvark | ||
* beaver | ||
* cat | ||
* dog | ||
* eel | ||
* ferret | ||
* groundhog | ||
* horse | ||
* mythical-creatures | ||
* Unicorn [video walk-through](https://youtu.be/mocwGsu41yw) | ||
* Vampire | ||
* Dragon [video walk-through](https://youtu.be/NIPerY-xuCk) | ||
* enumerables/exercises | ||
* find_pattern_test | ||
* find_test | ||
* map_pattern_test | ||
* map_test | ||
* select_pattern_test | ||
* select_test | ||
|
||
* Week 2 | ||
* data-types/collections/hashes.rb | ||
* objects-and-methods/exercise-1 | ||
* mythical-creatures | ||
* Hobbit [video walk-through](https://youtu.be/uYGS-DCNR-0) | ||
* Pirate | ||
* Wizard | ||
* command-query | ||
* leather_chair_test.rb | ||
* baby_test.rb | ||
* beers_test.rb | ||
|
||
* Week 3 | ||
* datatypes/collections/advanced_nested_collections.rb [video walk-through](https://youtu.be/9AaElA4elDU) | ||
* object-and-methods/exercise-2 | ||
* mythical-creatures | ||
* Medusa | ||
* Werewolf | ||
* Centaur | ||
* Ogre | ||
* command-query | ||
* adult_test.rb | ||
* roll_call_test.rb | ||
* wallet_test.rb | ||
|
||
* Week 4+ | ||
* Enumerables/exercises | ||
* Iteration | ||
* Command and Query | ||
* Complete/Redo Mythical Creatures |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.