tarquinn 0.0.2 → 0.1.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
2
  SHA1:
3
- metadata.gz: 127a3336f88c936432f99b747ce1fcc05a8ac383
4
- data.tar.gz: 945174dc6e9dd2d0a53cd3c999577035df8683e9
3
+ metadata.gz: 9e8629e912a90812be4bfecbe735d47213dcc52a
4
+ data.tar.gz: e2f2c47d5be94b83b3640da3c2629feefca5b3b3
5
5
  SHA512:
6
- metadata.gz: 159300d5d10e03e370861da7562adce6cb149f4b6d18923d2f0df8f19d8e69abbbdacb9a85dfec4e82bb9f21d7405d6e4e2f13500c5ec1e194cc6d57afff49f9
7
- data.tar.gz: b1bcc793e2466dca7f3a1c4cb679912c22d930dff9b4409a17583d5e3cd10cfd6e35a7cfdb2d12c91e11c62579ab306959ca19a69fe12c0e834ada7380d63d6f
6
+ metadata.gz: 8a55c1cc2c11d6a2d4db1ef413616761ec8f795875355375b48908f3bf2a5be58865d0a6a65aa7b528bbf744028e409813a8cde170644d5ba7ead4312f5096c0
7
+ data.tar.gz: c8e2a0466104acb3392a568bc4c1d32fe91b36755537a299a4a926425720fd9e03e2f3f68961d948a9afd22dd5154bdc0f239a11be55a7e7ff5b2497f18d4226
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tarquinn (0.0.2)
4
+ tarquinn (0.1.0)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -30,7 +30,7 @@ Getting started
30
30
  end
31
31
 
32
32
  def loggin_needed?
33
- user.present?
33
+ user.nil?
34
34
  end
35
35
  end
36
36
 
@@ -43,4 +43,4 @@ Getting started
43
43
  params[:action] == 'home'
44
44
  end
45
45
  end
46
- ```
46
+ ```
@@ -1,4 +1,8 @@
1
1
  class Tarquinn::Builder
2
+ def add_skip_action(redirection, *actions)
3
+ config_for(redirection).add_skip_action(*actions)
4
+ end
5
+
2
6
  def add_redirection_config(redirection, *methods, block)
3
7
  config_for(redirection).add_redirection_rules(*methods, &block)
4
8
  end
@@ -8,6 +12,7 @@ class Tarquinn::Builder
8
12
  end
9
13
 
10
14
  def build(controller)
15
+ controller = Tarquinn::Controller.new(controller)
11
16
  Tarquinn::Engine.new(configs, controller)
12
17
  end
13
18
 
@@ -1,4 +1,8 @@
1
1
  module Tarquinn::ClassMethods
2
+ def skip_redirection(redirection, *actions)
3
+ redirector_builder.add_skip_action(redirection, *actions)
4
+ end
5
+
2
6
  def redirection_rule(redirection, *methods, &block)
3
7
  redirector_builder.add_redirection_config(redirection, *methods, block)
4
8
  end
@@ -0,0 +1,11 @@
1
+ class Tarquinn::Condition::ActionChecker
2
+ attr_accessor :routes
3
+
4
+ def initialize(routes)
5
+ @routes = [ routes ].flatten.map(&:to_s)
6
+ end
7
+
8
+ def check?(controller)
9
+ routes.include? controller.params[:action]
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ class Tarquinn::Condition::MethodCaller
2
+ attr_accessor :methods
3
+
4
+ def initialize(methods)
5
+ @methods = [ methods ].flatten
6
+ end
7
+
8
+ def check?(controller)
9
+ methods.any? do |method|
10
+ controller.call(method)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ class Tarquinn::Condition::ProcRunner
2
+ attr_reader :block
3
+
4
+ def initialize(&block)
5
+ @block = block
6
+ end
7
+
8
+ def check?(controller)
9
+ block.yield(controller)
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Tarquinn::Condition
2
+ require 'tarquinn/condition/action_checker'
3
+ require 'tarquinn/condition/method_caller'
4
+ require 'tarquinn/condition/proc_runner'
5
+ end
@@ -5,29 +5,35 @@ class Tarquinn::Config
5
5
  @redirect = redirect
6
6
  end
7
7
 
8
+ def add_skip_action(*routes)
9
+ skip_blocks << block_routes(routes)
10
+ end
11
+
8
12
  def add_redirection_rules(*methods, &block)
9
- self.methods.concat methods
10
- blocks << block if block_given?
13
+ redirection_blocks << block_methods(methods)
14
+ redirection_blocks << Tarquinn::Condition::ProcRunner.new(&block) if block_given?
11
15
  end
12
16
 
13
17
  def add_skip_rules(*methods, &block)
14
- skip_methods.concat methods
15
- skip_blocks << block if block_given?
18
+ skip_blocks << block_methods(methods)
19
+ skip_blocks << Tarquinn::Condition::ProcRunner.new(&block) if block_given?
16
20
  end
17
21
 
18
- def methods
19
- @methods ||= []
22
+ def redirection_blocks
23
+ @blocks ||= []
20
24
  end
21
25
 
22
- def skip_methods
23
- @skip_methods ||= []
26
+ def skip_blocks
27
+ @skip_blocks ||= []
24
28
  end
25
29
 
26
- def blocks
27
- @blocks ||= []
30
+ private
31
+
32
+ def block_methods(methods)
33
+ Tarquinn::Condition::MethodCaller.new(methods)
28
34
  end
29
35
 
30
- def skip_blocks
31
- @skip_blocks ||= []
36
+ def block_routes(routes)
37
+ Tarquinn::Condition::ActionChecker.new(routes)
32
38
  end
33
39
  end
@@ -0,0 +1,19 @@
1
+ class Tarquinn::Controller
2
+ attr_reader :controller
3
+
4
+ def initialize(controller)
5
+ @controller = controller
6
+ end
7
+
8
+ def params
9
+ @params ||= controller.send(:params)
10
+ end
11
+
12
+ def call(method, *args)
13
+ controller.send(method, *args)
14
+ end
15
+
16
+ def has_method?(method)
17
+ controller.respond_to?(method, true)
18
+ end
19
+ end
@@ -6,17 +6,21 @@ class Tarquinn::Engine
6
6
  @controller = controller
7
7
  end
8
8
 
9
- def perform_redirect?
10
- handlers.any? { |h| h.perform_redirect? }
11
- end
12
-
13
9
  def perform_redirect
14
10
  return unless perform_redirect?
15
- handlers.find { |h| h.perform_redirect? }.redirect
11
+ handler_redirector.redirect
16
12
  end
17
13
 
18
14
  private
19
15
 
16
+ def perform_redirect?
17
+ handler_redirector.present?
18
+ end
19
+
20
+ def handler_redirector
21
+ @handler_redirector ||= handlers.find { |h| h.perform_redirect? }
22
+ end
23
+
20
24
  def handlers
21
25
  @handlers ||= build_handlers
22
26
  end
@@ -1,7 +1,7 @@
1
1
  class Tarquinn::Handler
2
2
  attr_accessor :config, :controller
3
3
 
4
- delegate :methods, :skip_methods, :blocks, :skip_blocks, to: :config
4
+ delegate :redirection_blocks, :skip_blocks, to: :config
5
5
 
6
6
  def initialize(config, controller)
7
7
  @config = config
@@ -9,12 +9,12 @@ class Tarquinn::Handler
9
9
  end
10
10
 
11
11
  def perform_redirect?
12
- @perform_redirect = is_redirect? if @perform_redirect.nil?
13
- @perform_redirect
12
+ return @perform_redirect unless @perform_redirect.nil?
13
+ @perform_redirect = is_redirect?
14
14
  end
15
15
 
16
16
  def redirect
17
- controller.send(:redirect_to, redirect_path)
17
+ controller.call(:redirect_to, redirect_path)
18
18
  end
19
19
 
20
20
  private
@@ -24,35 +24,26 @@ class Tarquinn::Handler
24
24
  end
25
25
 
26
26
  def redirect_path
27
- controller.send(redirect_method)
27
+ return redirect_method unless controller.has_method?(redirect_method)
28
+ controller.call redirect_method
28
29
  end
29
30
 
30
31
  def is_redirect?
31
- return false if methods_skip_redirect? || blocks_skip_redirect?
32
- methods_require_redirect? || blocks_require_redirect?
33
- end
34
-
35
- def methods_skip_redirect?
36
- skip_methods.any? do |method|
37
- controller.send(method)
38
- end
32
+ return false if blocks_skip_redirect?
33
+ blocks_require_redirect?
39
34
  end
40
35
 
41
36
  def blocks_skip_redirect?
42
- skip_blocks.any? do |block|
43
- block.yield
44
- end
37
+ check_blocks(skip_blocks)
45
38
  end
46
39
 
47
- def methods_require_redirect?
48
- methods.any? do |method|
49
- controller.send(method)
50
- end
40
+ def blocks_require_redirect?
41
+ check_blocks(redirection_blocks)
51
42
  end
52
43
 
53
- def blocks_require_redirect?
44
+ def check_blocks(blocks)
54
45
  blocks.any? do |block|
55
- block.yield
46
+ block.check?(controller)
56
47
  end
57
48
  end
58
49
  end
@@ -1,3 +1,3 @@
1
1
  module Tarquinn
2
- VERSION = '0.0.2'
2
+ VERSION = '0.1.0'
3
3
  end
data/lib/tarquinn.rb CHANGED
@@ -4,6 +4,8 @@ require 'active_support/core_ext'
4
4
  module Tarquinn
5
5
  require 'tarquinn/version'
6
6
  require 'tarquinn/handler'
7
+ require 'tarquinn/controller'
8
+ require 'tarquinn/condition'
7
9
  require 'tarquinn/config'
8
10
  require 'tarquinn/engine'
9
11
  require 'tarquinn/builder'
@@ -0,0 +1,53 @@
1
+ require 'spec_helper'
2
+
3
+ describe Tarquinn::Condition::ActionChecker do
4
+ let(:dummy_controller) { Tarquinn::DummyController.new }
5
+ let(:controller) { Tarquinn::Controller.new(dummy_controller) }
6
+
7
+ context 'when initialized with a single route' do
8
+ let(:route) { :show }
9
+ let(:subject) { described_class.new(route) }
10
+
11
+ context 'when receiving a request for the given action' do
12
+ context 'but it was configured with a symbol' do
13
+ it do
14
+ expect(subject.check?(controller)).to be_truthy
15
+ end
16
+ end
17
+
18
+ context 'and it was configured with a string' do
19
+ let(:route) { 'show' }
20
+
21
+ it do
22
+ expect(subject.check?(controller)).to be_truthy
23
+ end
24
+ end
25
+ end
26
+
27
+ context 'when receiving a request for other action action' do
28
+ let(:route) { :view }
29
+
30
+ it do
31
+ expect(subject.check?(controller)).to be_falsey
32
+ end
33
+ end
34
+ end
35
+
36
+ context 'when initialized with more routes' do
37
+ let(:routes) { [ :show, :view ] }
38
+ let(:subject) { described_class.new(routes) }
39
+
40
+ context 'when receiving a request for one of the given action' do
41
+ it do
42
+ expect(subject.check?(controller)).to be_truthy
43
+ end
44
+ end
45
+
46
+ context 'when receiving a request for another action' do
47
+ let(:routes) { [ :update, :view ] }
48
+ it do
49
+ expect(subject.check?(controller)).to be_falsey
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,50 @@
1
+ require 'spec_helper'
2
+
3
+ describe Tarquinn::Condition::MethodCaller do
4
+ let(:dummy_controller) { Tarquinn::DummyController.new }
5
+ let(:controller) { Tarquinn::Controller.new(dummy_controller) }
6
+
7
+ context 'when initialized with a single method' do
8
+ let(:method) { :true }
9
+ let(:subject) { described_class.new(method) }
10
+
11
+ context 'when method returns true' do
12
+ it do
13
+ expect(subject.check?(controller)).to be_truthy
14
+ end
15
+ end
16
+
17
+ context 'when method returns true' do
18
+ let(:method) { :false }
19
+
20
+ it do
21
+ expect(subject.check?(controller)).to be_falsey
22
+ end
23
+ end
24
+ end
25
+
26
+ context 'when initialized with more methods' do
27
+ let(:methods) { [ :true, :false ] }
28
+ let(:subject) { described_class.new(methods) }
29
+
30
+ context 'when one return true and the other false' do
31
+ it do
32
+ expect(subject.check?(controller)).to be_truthy
33
+ end
34
+ end
35
+
36
+ context 'when all return true' do
37
+ let(:methods) { [ :true, :true ] }
38
+ it do
39
+ expect(subject.check?(controller)).to be_truthy
40
+ end
41
+ end
42
+
43
+ context 'when all return false' do
44
+ let(:methods) { [ :false, :false ] }
45
+ it do
46
+ expect(subject.check?(controller)).to be_falsey
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe Tarquinn::Condition::ProcRunner do
4
+ let(:controller) { double }
5
+ let(:value) { true }
6
+ let(:subject) { described_class.new { value } }
7
+
8
+ describe '#check?' do
9
+ context 'when block evaluates into true' do
10
+ it do
11
+ expect(subject.check?(controller)).to be_truthy
12
+ end
13
+ end
14
+
15
+ context 'when block evaluates into false' do
16
+ let(:value) { false }
17
+ it do
18
+ expect(subject.check?(controller)).to be_falsey
19
+ end
20
+ end
21
+ end
22
+ end
@@ -5,31 +5,35 @@ describe Tarquinn::Config do
5
5
 
6
6
  describe '#add_redirection_rules' do
7
7
  context 'when not passing a block' do
8
- it do
9
- expect do
10
- subject.add_redirection_rules(:methods)
11
- end.to change { subject.methods }
8
+ it_behaves_like 'a method that adds a redirection rule', Tarquinn::Condition::MethodCaller do
9
+ let(:call_method) { subject.add_redirection_rules(:methods) }
12
10
  end
11
+ end
13
12
 
14
- it do
15
- expect do
16
- subject.add_redirection_rules(:methods)
17
- end.not_to change { subject.blocks }
13
+ context 'when passing only a block' do
14
+ it_behaves_like 'a method that adds a redirection rule', Tarquinn::Condition::ProcRunner do
15
+ let(:call_method) { subject.add_redirection_rules { true } }
18
16
  end
19
17
  end
18
+ end
20
19
 
21
- context 'when not passing only a block' do
22
- it do
23
- expect do
24
- subject.add_redirection_rules { true }
25
- end.not_to change { subject.methods }
20
+ describe '#add_skip_rules' do
21
+ context 'when not passing a block' do
22
+ it_behaves_like 'a method that adds a skip rule', Tarquinn::Condition::MethodCaller do
23
+ let(:call_method) { subject.add_skip_rules(:methods) }
26
24
  end
25
+ end
27
26
 
28
- it do
29
- expect do
30
- subject.add_redirection_rules { true }
31
- end.to change { subject.blocks }
27
+ context 'when passing only a block' do
28
+ it_behaves_like 'a method that adds a skip rule', Tarquinn::Condition::ProcRunner do
29
+ let(:call_method) { subject.add_skip_rules { true } }
32
30
  end
33
31
  end
34
32
  end
33
+
34
+ describe '#add_skip_action' do
35
+ it_behaves_like 'a method that adds a skip rule', Tarquinn::Condition::ActionChecker do
36
+ let(:call_method) { subject.add_skip_action(:methods) }
37
+ end
38
+ end
35
39
  end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe Tarquinn::Controller do
4
+ let(:controller) { Tarquinn::DummyController.new }
5
+ let(:subject) { described_class.new(controller) }
6
+
7
+ describe '#call' do
8
+ it 'redirects a method call to the controller' do
9
+ expect(controller).to receive(:redirect_to)
10
+ subject.call(:redirect_to)
11
+ end
12
+ end
13
+
14
+ describe '#params' do
15
+ it 'returns the instance params call' do
16
+ expect(subject.params).to eq(action: 'show')
17
+ end
18
+ end
19
+
20
+ describe '#has_method?' do
21
+ context 'when calling for a public method that exists' do
22
+ it do
23
+ expect(subject.has_method?(:parse_request)).to be_truthy
24
+ end
25
+ end
26
+
27
+ context 'when calling for a private method that exists' do
28
+ it do
29
+ expect(subject.has_method?(:redirection_path)).to be_truthy
30
+ end
31
+ end
32
+
33
+ context 'when calling for a non existing method' do
34
+ it do
35
+ expect(subject.has_method?(:non_existing)).to be_falsey
36
+ end
37
+ end
38
+ end
39
+ end
@@ -9,41 +9,8 @@ describe Tarquinn::Engine do
9
9
  let(:config) { Tarquinn::Config.new(:redirect_path) }
10
10
  let(:config2) { Tarquinn::Config.new(:redirect_path2) }
11
11
  let(:configs) { { redirect_path: config, redirect_path2: config2 } }
12
- let(:subject) { described_class.new configs, controller }
13
-
14
- describe '#perform_redirect?' do
15
- context 'when no redirection should be performed' do
16
- before do
17
- config.add_skip_rules { true }
18
- config2.add_skip_rules { true }
19
- end
20
-
21
- it do
22
- expect(subject.perform_redirect?).to be_falsey
23
- end
24
- end
25
-
26
- context 'when all redirection is required' do
27
- before do
28
- config.add_redirection_rules { true }
29
- config2.add_redirection_rules { true }
30
- end
31
-
32
- it do
33
- expect(subject.perform_redirect?).to be_truthy
34
- end
35
- end
36
-
37
- context 'when only one allow for redirection' do
38
- before do
39
- config.add_redirection_rules { true }
40
- config2.add_skip_rules { true }
41
- end
42
-
43
- it do
44
- expect(subject.perform_redirect?).to be_truthy
45
- end
46
- end
12
+ let(:subject) do
13
+ described_class.new configs, Tarquinn::Controller.new(controller)
47
14
  end
48
15
 
49
16
  describe '#perform_redirect' do
@@ -54,19 +21,19 @@ describe Tarquinn::Engine do
54
21
  end
55
22
 
56
23
  it 'redirects to the first redirection' do
57
- expect(controller).not_to receive(:redirect_to).with(redirection_path)
24
+ expect(controller).not_to receive(:redirect_to)
58
25
  subject.perform_redirect
59
26
  end
60
27
  end
61
28
 
62
- context 'when all redirection is required' do
29
+ context 'when all redirection are required' do
63
30
  before do
64
31
  config.add_redirection_rules { true }
65
32
  config2.add_redirection_rules { true }
66
33
  end
67
34
 
68
35
  it do
69
- expect(controller).to receive(:redirect_to)
36
+ expect(controller).to receive(:redirect_to).with(redirection_path)
70
37
  subject.perform_redirect
71
38
  end
72
39
  end
@@ -2,9 +2,11 @@ require 'spec_helper'
2
2
 
3
3
  describe Tarquinn::Handler do
4
4
  let(:redirection_path) { '/path' }
5
- let(:controller) { double('controller', true: true, false: false, redirect_path: redirection_path) }
6
- let(:config) { Tarquinn::Config.new(:redirect_path) }
7
- let(:subject) { described_class.new config, controller }
5
+ let(:controller) { Tarquinn::DummyController.new }
6
+ let(:config) { Tarquinn::Config.new(:redirection_path) }
7
+ let(:subject) do
8
+ described_class.new config, Tarquinn::Controller.new(controller)
9
+ end
8
10
 
9
11
  describe '#perform_redirect?' do
10
12
  context 'when rules allow for redirection' do
@@ -90,10 +92,19 @@ describe Tarquinn::Handler do
90
92
  end
91
93
 
92
94
  describe '#redirect' do
93
- it do
95
+ it 'calls for redirection using controller method' do
94
96
  expect(controller).to receive(:redirect_to).with(redirection_path)
95
97
  subject.redirect
96
98
  end
99
+
100
+ context 'when configured with a method that does not exist in the controller' do
101
+ let(:config) { Tarquinn::Config.new('/new_path') }
102
+
103
+ it 'calls for redirection using static path' do
104
+ expect(controller).to receive(:redirect_to).with('/new_path')
105
+ subject.redirect
106
+ end
107
+ end
97
108
  end
98
109
  end
99
110
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Tarquinn do
4
- let(:controller) { Tarquinn::Controller.new }
4
+ let(:controller) { Tarquinn::DummyController.new }
5
5
 
6
6
  describe 'redirection' do
7
7
  context 'when configuration calls for a method that allows redirection' do
@@ -1,9 +1,10 @@
1
- class Tarquinn::Controller
1
+ class Tarquinn::DummyController
2
2
  def self.before_action(_)
3
3
  end
4
4
 
5
5
  include Tarquinn
6
6
 
7
+ skip_redirection :redirection_path, :route_method
7
8
  redirection_rule :redirection_path, :should_redirect?
8
9
  skip_redirection_rule :redirection_path, :should_skip_redirect?
9
10
 
@@ -13,6 +14,18 @@ class Tarquinn::Controller
13
14
 
14
15
  private
15
16
 
17
+ def params
18
+ { action: 'show' }
19
+ end
20
+
21
+ def true
22
+ true
23
+ end
24
+
25
+ def false
26
+ false
27
+ end
28
+
16
29
  def redirection_path
17
30
  '/path'
18
31
  end
@@ -0,0 +1,28 @@
1
+ shared_examples 'a method that adds a redirection rule' do |expected_class|
2
+ it_behaves_like 'a method that adds a rule', :redirection, expected_class
3
+ end
4
+
5
+ shared_examples 'a method that adds a skip rule' do |expected_class|
6
+ it_behaves_like 'a method that adds a rule', :skip, expected_class
7
+ end
8
+
9
+ shared_examples 'a method that adds a rule' do |rule, expected_class|
10
+ let(:reverse_rule) { rule == :skip ? :redirection : :skip }
11
+ it do
12
+ expect do
13
+ call_method
14
+ end.to change { subject.public_send("#{rule}_blocks" ) }
15
+ end
16
+
17
+ it do
18
+ call_method
19
+ expect(subject.public_send("#{rule}_blocks" ).last).to be_a(expected_class)
20
+ end
21
+
22
+ it do
23
+ expect do
24
+ call_method
25
+ end.not_to change { subject.public_send("#{reverse_rule}_blocks" ) }
26
+ end
27
+ end
28
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarquinn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DarthJee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-30 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -126,17 +126,27 @@ files:
126
126
  - lib/tarquinn/builder.rb
127
127
  - lib/tarquinn/class_methods.rb
128
128
  - lib/tarquinn/concern.rb
129
+ - lib/tarquinn/condition.rb
130
+ - lib/tarquinn/condition/action_checker.rb
131
+ - lib/tarquinn/condition/method_caller.rb
132
+ - lib/tarquinn/condition/proc_runner.rb
129
133
  - lib/tarquinn/config.rb
134
+ - lib/tarquinn/controller.rb
130
135
  - lib/tarquinn/engine.rb
131
136
  - lib/tarquinn/handler.rb
132
137
  - lib/tarquinn/version.rb
133
138
  - spec/lib/tarquinn/builder_spec.rb
139
+ - spec/lib/tarquinn/condition/action_checker_spec.rb
140
+ - spec/lib/tarquinn/condition/method_caller_spec.rb
141
+ - spec/lib/tarquinn/condition/proc_runner_spec.rb
134
142
  - spec/lib/tarquinn/config_spec.rb
143
+ - spec/lib/tarquinn/controller_spec.rb
135
144
  - spec/lib/tarquinn/engine_spec.rb
136
145
  - spec/lib/tarquinn/handler_spec.rb
137
146
  - spec/lib/tarquinn_spec.rb
138
147
  - spec/spec_helper.rb
139
- - spec/support/models/tarquinn/controller.rb
148
+ - spec/support/models/tarquinn/dummy_controller.rb
149
+ - spec/support/shared_examples/config.rb
140
150
  - tarquinn.gemspec
141
151
  homepage: https://github.com/darthje/tarquinn
142
152
  licenses: []