Skip to content

Commit

Permalink
further updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedao committed Mar 22, 2021
2 parents 4b41f30 + a5cc18a commit 39be5d7
Show file tree
Hide file tree
Showing 94 changed files with 114 additions and 4,679 deletions.
2 changes: 1 addition & 1 deletion Gemfile
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"
19 changes: 17 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,35 @@ GEM
specs:
byebug (11.1.3)
coderay (1.1.2)
diff-lcs (1.4.4)
method_source (1.0.0)
minitest (5.2.1)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.1)

PLATFORMS
ruby

DEPENDENCIES
minitest (~> 5.2)
pry
pry-byebug
rspec

BUNDLED WITH
2.1.4
98 changes: 22 additions & 76 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

[![Intro to ruby-exercises and strings.rb (YouTube)](/images/embedded-video-screenshot-getting-started.jpg)](https://youtu.be/aeAkLxr5diE)

## Setup

### 1. Clone this repository
Expand All @@ -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.

Expand All @@ -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!
Expand All @@ -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?
Expand All @@ -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
6 changes: 0 additions & 6 deletions archive/comparisons/README.md

This file was deleted.

60 changes: 0 additions & 60 deletions archive/comparisons/cupcake_comparison_test.rb

This file was deleted.

56 changes: 0 additions & 56 deletions archive/comparisons/number_comparison_test.rb

This file was deleted.

93 changes: 0 additions & 93 deletions archive/comparisons/string_comparison_test.rb

This file was deleted.

Loading

0 comments on commit 39be5d7

Please sign in to comment.