├── .coveralls.yml ├── .document ├── .github └── workflows │ └── ruby.yml ├── .gitignore ├── .rspec ├── .ruby-gemset ├── .ruby-version ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── Gemfile.lock ├── LICENSE.txt ├── README.md ├── Rakefile ├── TODO.md ├── VERSION ├── lib ├── strategic.rb └── strategic │ └── strategy.rb ├── spec ├── fixtures │ ├── car.rb │ ├── mini_van.rb │ ├── move_action.rb │ ├── move_action │ │ └── mini_van_strategy.rb │ ├── move_action_with_implicit_default_strategy.rb │ ├── move_action_with_implicit_default_strategy │ │ └── default_strategy.rb │ ├── move_action_with_strategy_matcher.rb │ ├── move_action_with_strategy_matcher │ │ ├── mini_van_strategy.rb │ │ ├── simple_strategy.rb │ │ └── strategy_base.rb │ ├── truck.rb │ └── vehicle.rb ├── lib │ └── strategic_spec.rb └── spec_helper.rb ├── strategic-example.png └── strategic.gemspec /.coveralls.yml: -------------------------------------------------------------------------------- 1 | service_name: travis-pro 2 | repo_token: 9X9eWfSz9GeFgWyhQ0NccLlr4A8xm7vKn 3 | -------------------------------------------------------------------------------- /.document: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/.document -------------------------------------------------------------------------------- /.github/workflows/ruby.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/.github/workflows/ruby.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /.ruby-gemset: -------------------------------------------------------------------------------- 1 | strategic 2 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-3.0.2 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/TODO.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 1.2.0 2 | -------------------------------------------------------------------------------- /lib/strategic.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/lib/strategic.rb -------------------------------------------------------------------------------- /lib/strategic/strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/lib/strategic/strategy.rb -------------------------------------------------------------------------------- /spec/fixtures/car.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/car.rb -------------------------------------------------------------------------------- /spec/fixtures/mini_van.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/mini_van.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action/mini_van_strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action/mini_van_strategy.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action_with_implicit_default_strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action_with_implicit_default_strategy.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action_with_implicit_default_strategy/default_strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action_with_implicit_default_strategy/default_strategy.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action_with_strategy_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action_with_strategy_matcher.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action_with_strategy_matcher/mini_van_strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action_with_strategy_matcher/mini_van_strategy.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action_with_strategy_matcher/simple_strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action_with_strategy_matcher/simple_strategy.rb -------------------------------------------------------------------------------- /spec/fixtures/move_action_with_strategy_matcher/strategy_base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/move_action_with_strategy_matcher/strategy_base.rb -------------------------------------------------------------------------------- /spec/fixtures/truck.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/truck.rb -------------------------------------------------------------------------------- /spec/fixtures/vehicle.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/fixtures/vehicle.rb -------------------------------------------------------------------------------- /spec/lib/strategic_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/lib/strategic_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /strategic-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/strategic-example.png -------------------------------------------------------------------------------- /strategic.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndyObtiva/strategic/HEAD/strategic.gemspec --------------------------------------------------------------------------------