direction 0.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 70ef36550c39745b1259e2f37ce744e0a084ce59
4
- data.tar.gz: 923ffca99a808f99a6032a773b0fa8552823e0bc
2
+ SHA256:
3
+ metadata.gz: 47a9e819539f9cf4a771f373c301a8c87e54aaa187b958d44e862f531a55e760
4
+ data.tar.gz: 1c7ae5a125f83031c30977f892ba52eeeeec14a7adba1f8d932db051b14b643e
5
5
  SHA512:
6
- metadata.gz: e1ecae8e58ff1e234052b3768b49b8fe5db442c94efd9e55c6a0eacd80bd51fbd441819516c9daa450eac86b897295ee1b15b07b051034be21aafa727174022d
7
- data.tar.gz: 8d18a5b422438f796853401efbbf35dcf8e3ff9289628a0b6b1b71c65cbf2d1b79fa2aa9b29f83882761b7739f5813e74834b9241d4f352f364d796a3cee7f23
6
+ metadata.gz: 8ea409e148817c51a47e69af81b1cb29ff9fa3a4bca52e441ad81ad5f8390295cd9b76671abd7a4099785e55698f2d0e02219fe30684fe318112604c4035aa36
7
+ data.tar.gz: a8ea1f8065e5a46e9307cfd1dc971a1cf4fd949bc76896c2f1ea81f9732240f7f106fb7d5389491ac8d4fc99699295447249192ca2ec00e21dbd354c749414f4
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [] -
9
+
10
+ ###
11
+
12
+ - [2.0.0]
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ jim@saturnflyer.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
data/Gemfile CHANGED
@@ -1,11 +1,9 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- group :test do
6
- gem 'rubinius-coverage', platform: :rbx
7
- gem 'coveralls', require: false
8
- gem 'minitest'
9
- gem 'rake'
10
- gem 'simplecov'
11
- end
5
+ gem "minitest"
6
+ gem "rake"
7
+ gem "reissue"
8
+ gem "simplecov"
9
+ gem "standardrb"
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 'Jim Gay'
1
+ Copyright (c) 2014-2025 'Jim Gay'
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # Direction
2
2
 
3
- [![Build Status](https://travis-ci.org/saturnflyer/direction.png?branch=master)](https://travis-ci.org/saturnflyer/direction)
4
- [![Code Climate](https://codeclimate.com/github/saturnflyer/direction.png)](https://codeclimate.com/github/saturnflyer/direction)
5
- [![Coverage Status](https://coveralls.io/repos/saturnflyer/direction/badge.png)](https://coveralls.io/r/saturnflyer/direction)
6
3
  [![Gem Version](https://badge.fury.io/rb/direction.png)](http://badge.fury.io/rb/direction)
7
4
 
8
5
  Enforce better encapsulation by returning self from commands.
@@ -40,7 +37,6 @@ person.print_address(template) #=> person
40
37
 
41
38
  This will define methods on instances that forward to the provided receiver while enforcing encapsulation of the relationship between objects.
42
39
 
43
-
44
40
  ## Installation
45
41
 
46
42
  Add this line to your application's Gemfile:
data/Rakefile CHANGED
@@ -1,12 +1,18 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
- require 'rake/testtask'
3
+ require "rake/testtask"
4
+ require "reissue/gem"
5
+
6
+ Reissue::Task.create :reissue do |task|
7
+ task.version_file = "lib/direction/version.rb"
8
+ task.fragment = :git
9
+ end
4
10
 
5
11
  Rake::TestTask.new do |t|
6
- t.libs << 'test'
7
- t.test_files = FileList['test/*_test.rb']
12
+ t.libs << "test"
13
+ t.test_files = FileList["test/*_test.rb"]
8
14
  t.ruby_opts = ["-w"]
9
15
  t.verbose = true
10
16
  end
11
17
 
12
- task :default => :test
18
+ task default: :test
data/direction.gemspec CHANGED
@@ -1,19 +1,28 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'direction/version'
3
+ require "direction/version"
5
4
 
6
5
  Gem::Specification.new do |spec|
7
- spec.name = "direction"
8
- spec.version = Direction::VERSION
9
- spec.authors = ["'Jim Gay'"]
10
- spec.email = ["jim@saturnflyer.com"]
11
- spec.summary = %q{Forward messages to collaborators in East-oriented style.}
12
- spec.description = %q{Forward messages to collaborators in East-oriented style.}
13
- spec.homepage = "https://github.com/saturnflyer/direction"
14
- spec.license = "MIT"
6
+ spec.name = "direction"
7
+ spec.version = Direction::VERSION
8
+ spec.authors = ["'Jim Gay'"]
9
+ spec.email = ["jim@saturnflyer.com"]
10
+ spec.summary = "Forward messages to collaborators in East-oriented style."
11
+ spec.description = "Forward messages to collaborators in East-oriented style."
12
+ spec.homepage = "https://github.com/saturnflyer/direction"
13
+ spec.license = "MIT"
15
14
 
16
- spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "direction.gemspec", "lib/direction.rb", "lib/direction/version.rb", "sample.rb", "sample/accountant.rb", "sample/customer.rb", "sample/kitchen.rb", "sample/micro_manager.rb", "sample/server.rb", "test/direction_test.rb", "test/test_helper.rb"]
17
- spec.test_files = ["test/direction_test.rb", "test/test_helper.rb"]
15
+ spec.files = [
16
+ "Gemfile",
17
+ "LICENSE.txt",
18
+ "README.md",
19
+ "CODE_OF_CONDUCT.md",
20
+ "CHANGELOG.md",
21
+ "Rakefile",
22
+ "direction.gemspec",
23
+ "lib/direction.rb",
24
+ "lib/direction/version.rb"
25
+ ]
18
26
  spec.require_paths = ["lib"]
27
+ spec.required_ruby_version = ">= 2.7"
19
28
  end
@@ -1,3 +1,3 @@
1
1
  module Direction
2
- VERSION = "0.0.5"
2
+ VERSION = "2.0.0"
3
3
  end
data/lib/direction.rb CHANGED
@@ -3,49 +3,44 @@ require "direction/version"
3
3
  # but set the return value to self.
4
4
  # It provides a class level "command" method to do
5
5
  # message forwarding.
6
- #
6
+ #
7
7
  # class SomeClass
8
8
  # extend Direction
9
- #
9
+ #
10
10
  # command [:print_details, :setup_things] => :collaborator
11
11
  # query [:name, :id] => :collaborator, :type => :@partner
12
+ #
13
+ # def_command :collaborator, :print_details, :aliased_name_for_print_details
12
14
  # end
13
- #
15
+ #
14
16
  # This will define methods on instances that forward to the
15
- # provided receiver while enforcing encapsulation of the
17
+ # provided receiver while enforcing encapsulation of the
16
18
  # relationship between objects.
17
19
  module Direction
20
+ def self.extended(base)
21
+ base.extend Forwardable
22
+ end
18
23
 
19
24
  # Forward messages and return self, protecting the encapsulation of the object
20
- def command(options)
21
- Direction.define_methods(self, options) do |command, accessor|
22
- %{
23
- def #{command}(*args, &block)
24
- #{accessor}.__send__(:#{command}, *args, &block)
25
- self
26
- end
27
- }
25
+ def command(**options)
26
+ options.each do |methods, accessor|
27
+ methods.each { |method_name| def_command accessor, method_name }
28
28
  end
29
29
  end
30
30
 
31
- # Forward messages and return the result of the forwarded message
32
- def query(options)
33
- Direction.define_methods(self, options) do |query, accessor|
34
- %{
35
- def #{query}(*args, &block)
36
- #{accessor}.__send__(:#{query}, *args, &block)
37
- end
38
- }
31
+ # Create an individual command with an optional alias
32
+ def def_command accessor, method_name, aliased_method_name = method_name
33
+ result_name = "#{aliased_method_name}_result"
34
+ def_delegator accessor, method_name, result_name
35
+ private result_name
36
+ define_method aliased_method_name do |*args, **kwargs, &block|
37
+ send(result_name, *args, **kwargs, &block)
38
+ self
39
39
  end
40
40
  end
41
41
 
42
- def self.define_methods(mod, options)
43
- method_defs = []
44
- options.each_pair do |method_names, accessor|
45
- Array(method_names).map do |message|
46
- method_defs.push yield(message, accessor)
47
- end
48
- end
49
- mod.class_eval method_defs.join("\n"), __FILE__, __LINE__
42
+ # Forward messages and return the result of the forwarded message
43
+ def query(**options)
44
+ instance_delegate options
50
45
  end
51
46
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: direction
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Jim Gay'"
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2014-12-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: Forward messages to collaborators in East-oriented style.
14
13
  email:
@@ -17,8 +16,8 @@ executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
20
- - ".gitignore"
21
- - ".travis.yml"
19
+ - CHANGELOG.md
20
+ - CODE_OF_CONDUCT.md
22
21
  - Gemfile
23
22
  - LICENSE.txt
24
23
  - README.md
@@ -26,19 +25,10 @@ files:
26
25
  - direction.gemspec
27
26
  - lib/direction.rb
28
27
  - lib/direction/version.rb
29
- - sample.rb
30
- - sample/accountant.rb
31
- - sample/customer.rb
32
- - sample/kitchen.rb
33
- - sample/micro_manager.rb
34
- - sample/server.rb
35
- - test/direction_test.rb
36
- - test/test_helper.rb
37
28
  homepage: https://github.com/saturnflyer/direction
38
29
  licenses:
39
30
  - MIT
40
31
  metadata: {}
41
- post_install_message:
42
32
  rdoc_options: []
43
33
  require_paths:
44
34
  - lib
@@ -46,18 +36,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
46
36
  requirements:
47
37
  - - ">="
48
38
  - !ruby/object:Gem::Version
49
- version: '0'
39
+ version: '2.7'
50
40
  required_rubygems_version: !ruby/object:Gem::Requirement
51
41
  requirements:
52
42
  - - ">="
53
43
  - !ruby/object:Gem::Version
54
44
  version: '0'
55
45
  requirements: []
56
- rubyforge_project:
57
- rubygems_version: 2.2.2
58
- signing_key:
46
+ rubygems_version: 3.7.2
59
47
  specification_version: 4
60
48
  summary: Forward messages to collaborators in East-oriented style.
61
- test_files:
62
- - test/direction_test.rb
63
- - test/test_helper.rb
49
+ test_files: []
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.2
4
- - ruby-head
5
- - jruby-head
6
- - rbx-2
7
- env:
8
- - COVERALLS=true
9
- matrix:
10
- allow_failures:
11
- - rvm: jruby-head
data/sample/accountant.rb DELETED
@@ -1,5 +0,0 @@
1
- class Accountant
2
- def accept_funds
3
- puts " $$$ Cha-ching!"
4
- end
5
- end
data/sample/customer.rb DELETED
@@ -1,9 +0,0 @@
1
- class Customer
2
- extend Direction
3
- def initialize(server)
4
- @server = server
5
- end
6
- attr_accessor :server
7
-
8
- command [:order_food, :pay_bill] => :server
9
- end
data/sample/kitchen.rb DELETED
@@ -1,15 +0,0 @@
1
- class Kitchen
2
- def make_food(food)
3
- puts " <Kitchen preparing #{food}>"
4
- sleep(3)
5
- puts " <Kitchen made #{food}>"
6
- end
7
-
8
- def provide_food(food)
9
- puts " <Kitchen served up #{food}>"
10
- end
11
-
12
- def accountant
13
- @accountant ||= Accountant.new
14
- end
15
- end
@@ -1,6 +0,0 @@
1
- class MicroManager
2
- def initialize(server)
3
- @server = server
4
- end
5
- attr_accessor :server
6
- end
data/sample/server.rb DELETED
@@ -1,34 +0,0 @@
1
- class Server
2
- def initialize(kitchen)
3
- @kitchen = kitchen
4
- @accountant = kitchen.accountant
5
- end
6
- attr_reader :kitchen
7
- attr_accessor :customer
8
-
9
- def order_food(food)
10
- puts "I'll put that order in for you right now"
11
- sleep(2)
12
- kitchen.make_food(food)
13
- serve_food(food)
14
- end
15
-
16
- def serve_food(food)
17
- retrieve_food(food)
18
- sleep(2)
19
- puts " <Server retrieved #{food}>"
20
- return_to_customer(food)
21
- end
22
-
23
- def retrieve_food(food)
24
- kitchen.provide_food(food)
25
- end
26
-
27
- def return_to_customer(food)
28
- puts "Here's your order of #{food}"
29
- end
30
-
31
- def pay_bill
32
- @accountant.accept_funds
33
- end
34
- end
data/sample.rb DELETED
@@ -1,27 +0,0 @@
1
- require 'direction'
2
- $:.unshift(__dir__) unless $:.include?(__dir__)
3
- require 'sample/accountant'
4
- require 'sample/customer'
5
- require 'sample/kitchen'
6
- require 'sample/micro_manager'
7
- require 'sample/server'
8
-
9
- def setup
10
- @kitchen = Kitchen.new
11
- @server = Server.new(@kitchen)
12
- @manager = MicroManager.new(@server)
13
- @customer = Customer.new(@server)
14
- @manager
15
- self
16
- end
17
-
18
- def manager
19
- @manager
20
- end
21
-
22
- def customer
23
- @customer
24
- end
25
-
26
- # Try loading this in the console and interact to make food using @manager vs. @customer
27
- # customer.order_food('burrito').pay_bill vs. ... lots of commands for @manager
@@ -1,122 +0,0 @@
1
- require 'test_helper'
2
-
3
- class Person
4
- extend Direction
5
- command [:make_me_a_sandwich, :cook, :blocky] => :@friend
6
- query [:activities, :go, :say_what] => :friend
7
- attr_accessor :friend
8
- end
9
-
10
- class Friend
11
- def make_me_a_sandwich
12
- Table.place "a sandwich!"
13
- end
14
-
15
- def cook(what)
16
- Table.place what
17
- end
18
-
19
- def activities
20
- 'running, biking, hiking'
21
- end
22
-
23
- def go(do_what)
24
- Activities.record do_what
25
- end
26
-
27
- def blocky(text)
28
- Activities.record([yield(self).to_s,text].join(' '))
29
- end
30
-
31
- def say_what(text)
32
- [yield(self).to_s,text].join(' ')
33
- end
34
- end
35
-
36
- module Table
37
- def self.place(text)
38
- contents << text
39
- end
40
- def self.contents
41
- @contents ||= []
42
- end
43
- def self.clear
44
- @contents = []
45
- end
46
- end
47
-
48
- module Activities
49
- def self.record(text)
50
- list << text
51
- end
52
- def self.list
53
- @list ||= []
54
- end
55
- def self.clear
56
- @list = []
57
- end
58
- end
59
-
60
- describe Direction, 'command' do
61
- let(:friend){ Friend.new }
62
- let(:person){ person = Person.new
63
- person.friend = friend
64
- person
65
- }
66
- before do
67
- Table.clear
68
- Activities.clear
69
- end
70
- it 'forwards a message to another object' do
71
- assert_equal [], Table.contents
72
- person.make_me_a_sandwich
73
- assert_includes Table.contents, "a sandwich!"
74
- end
75
-
76
- it 'returns the original receiver' do
77
- assert_equal person, person.make_me_a_sandwich
78
- end
79
-
80
- it 'forwards additional arguments' do
81
- assert_equal [], Table.contents
82
- person.cook('yum')
83
- assert_includes Table.contents, "yum"
84
- end
85
-
86
- it 'forwards block arguments' do
87
- assert_equal [], Activities.list
88
- person.blocky('yay!') do |friend|
89
- "Arguments forwarded to #{friend}"
90
- end
91
- assert_includes Activities.list, "Arguments forwarded to #{friend} yay!"
92
- end
93
- end
94
-
95
- describe Direction, 'query' do
96
- let(:friend){ Friend.new }
97
- let(:person){ person = Person.new
98
- person.friend = friend
99
- person
100
- }
101
- before do
102
- Activities.clear
103
- end
104
-
105
- it 'forwards a message to another object' do
106
- assert_includes person.activities, "running, biking, hiking"
107
- end
108
-
109
- it 'forwards additional arguments' do
110
- assert_equal [], Activities.list
111
- person.go('have fun')
112
- assert_includes Activities.list, "have fun"
113
- end
114
-
115
- it 'forwards block arguments' do
116
- assert_equal [], Activities.list
117
- what_said = person.say_what('yay!') do |friend|
118
- "Arguments forwarded to #{friend}"
119
- end
120
- assert_equal what_said, "Arguments forwarded to #{friend} yay!"
121
- end
122
- end
data/test/test_helper.rb DELETED
@@ -1,12 +0,0 @@
1
- require 'simplecov'
2
- SimpleCov.start do
3
- add_filter 'test'
4
- end
5
-
6
- require 'coveralls'
7
- if ENV['COVERALLS']
8
- Coveralls.wear!
9
- end
10
-
11
- require 'minitest/autorun'
12
- require 'direction'