├── .ruby-version ├── .rspec ├── Gemfile ├── Gemfile.lock ├── README.md └── spec └── spec_helper.rb /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.0.0-p247 2 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format progress 3 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | gem 'rspec' -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: http://rubygems.org/ 3 | specs: 4 | diff-lcs (1.2.4) 5 | rspec (2.14.1) 6 | rspec-core (~> 2.14.0) 7 | rspec-expectations (~> 2.14.0) 8 | rspec-mocks (~> 2.14.0) 9 | rspec-core (2.14.5) 10 | rspec-expectations (2.14.2) 11 | diff-lcs (>= 1.1.3, < 2.0) 12 | rspec-mocks (2.14.3) 13 | 14 | PLATFORMS 15 | ruby 16 | 17 | DEPENDENCIES 18 | rspec 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Tuts+ Course: Design Patterns in Ruby 2 | #### Instructor: Rem Zolotykh 3 | 4 | This course will review twelve common patterns for better Ruby development. Each lesson will provide an overview of a problem, and then propose a solution, using a particular design pattern. 5 | 6 | Each lesson is represented by a different branch of the repository. On GitHub, you can click the "branches" button above the file list to switch between these branches. 7 | 8 | Source files for the Tuts+ course: [Design Patterns in Ruby](https://courses.tutsplus.com/courses/design-patterns-in-ruby) 9 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | # This file was generated by the `rspec --init` command. Conventionally, all 2 | # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. 3 | # Require this file using `require "spec_helper"` to ensure that it is only 4 | # loaded once. 5 | # 6 | # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration 7 | RSpec.configure do |config| 8 | config.treat_symbols_as_metadata_keys_with_true_values = true 9 | config.run_all_when_everything_filtered = true 10 | config.filter_run :focus 11 | 12 | # Run specs in random order to surface order dependencies. If you find an 13 | # order dependency and want to debug it, you can fix the order by providing 14 | # the seed, which is printed after each run. 15 | # --seed 1234 16 | config.order = 'random' 17 | end 18 | --------------------------------------------------------------------------------