controll 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +253 -93
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/controll.gemspec +121 -84
- data/lib/controll/assistant/param_assistant.rb +23 -0
- data/lib/controll/assistant/session_assistant.rb +23 -0
- data/lib/controll/assistant.rb +9 -7
- data/lib/controll/commander.rb +16 -3
- data/lib/controll/enabler/macros.rb +75 -0
- data/lib/controll/enabler/maps.rb +15 -0
- data/lib/controll/enabler/notify.rb +43 -0
- data/lib/controll/enabler/path_handler.rb +49 -0
- data/lib/controll/enabler/path_resolver.rb +47 -0
- data/lib/controll/enabler.rb +49 -0
- data/lib/controll/engine.rb +9 -0
- data/lib/controll/errors.rb +4 -1
- data/lib/controll/event/helper.rb +20 -0
- data/lib/controll/{helper/event_matcher.rb → event/matcher.rb} +3 -3
- data/lib/controll/event.rb +60 -0
- data/lib/controll/events.rb +48 -0
- data/lib/controll/executor/base.rb +3 -7
- data/lib/controll/executor/controlled.rb +36 -0
- data/lib/controll/executor/delegator.rb +6 -0
- data/lib/controll/executor.rb +8 -1
- data/lib/controll/flow/action/base.rb +30 -0
- data/lib/controll/flow/action/fallback.rb +25 -0
- data/lib/controll/flow/action/path_action.rb +24 -0
- data/lib/controll/flow/action.rb +7 -0
- data/lib/controll/flow/action_mapper/base.rb +13 -0
- data/lib/controll/flow/action_mapper/complex.rb +52 -0
- data/lib/controll/flow/action_mapper/simple.rb +54 -0
- data/lib/controll/flow/action_mapper.rb +7 -0
- data/lib/controll/flow/errors.rb +16 -0
- data/lib/controll/flow/event_mapper/path_finder.rb +36 -0
- data/lib/controll/flow/event_mapper/util.rb +43 -0
- data/lib/controll/flow/event_mapper.rb +6 -0
- data/lib/controll/flow/master/executor.rb +57 -0
- data/lib/controll/flow/master/macros.rb +66 -0
- data/lib/controll/flow/master.rb +70 -0
- data/lib/controll/flow.rb +15 -0
- data/lib/controll/focused/enabler.rb +31 -0
- data/lib/controll/helper.rb +0 -94
- data/lib/controll/macros.rb +12 -0
- data/lib/controll/notify/base.rb +22 -43
- data/lib/controll/notify/flash.rb +3 -3
- data/lib/controll/notify/macros.rb +57 -0
- data/lib/controll/notify/message/handler.rb +36 -0
- data/lib/controll/notify/message/resolver.rb +28 -0
- data/lib/controll/notify/message/translator.rb +45 -0
- data/lib/controll/notify/message.rb +25 -0
- data/lib/controll/notify/typed.rb +13 -22
- data/lib/controll/notify.rb +11 -4
- data/lib/controll.rb +8 -2
- data/lib/generators/controll/assistant_generator.rb +27 -0
- data/lib/generators/controll/executor_generator.rb +23 -0
- data/lib/generators/controll/flow_handler_generator.rb +21 -0
- data/lib/generators/controll/notifier_generator.rb +21 -0
- data/lib/generators/controll/setup_generator.rb +37 -0
- data/lib/generators/controll/templates/assistant.tt +10 -0
- data/lib/generators/controll/templates/commander.tt +15 -0
- data/lib/generators/controll/templates/executor.tt +14 -0
- data/lib/generators/controll/templates/flow_handler.tt +26 -0
- data/lib/generators/controll/templates/notifier.tt +31 -0
- data/spec/acceptance/app_test.rb +1 -1
- data/spec/controll/assistant/param_assistant_spec.rb +31 -0
- data/spec/controll/assistant/session_assistant_spec.rb +31 -0
- data/spec/controll/assistant_spec.rb +26 -0
- data/spec/controll/command_spec.rb +4 -4
- data/spec/controll/enabler/macros_spec.rb +76 -0
- data/spec/controll/enabler/maps_spec.rb +31 -0
- data/spec/controll/{helper → enabler}/notify_spec.rb +7 -17
- data/spec/controll/enabler/path_handler_spec.rb +24 -0
- data/spec/controll/enabler/path_resolver_spec.rb +87 -0
- data/spec/controll/enabler_spec.rb +30 -0
- data/spec/controll/event/helper_spec.rb +33 -0
- data/spec/controll/{helper/event_matcher_spec.rb → event/matcher_spec.rb} +4 -3
- data/spec/controll/event_spec.rb +66 -0
- data/spec/controll/events_spec.rb +23 -0
- data/spec/controll/executor/controlled_spec.rb +36 -0
- data/spec/controll/executor/{notificator_spec.rb → delegator_spec.rb} +4 -4
- data/spec/controll/flow/action_mapper/complex_spec.rb +102 -0
- data/spec/controll/flow/action_mapper/fallback_spec.rb +34 -0
- data/spec/controll/{flow_handler/render_spec.rb → flow/action_mapper/simple_spec.rb} +25 -22
- data/spec/controll/{flow_handler/redirect/action_spec.rb → flow/event_mapper/path_finder_spec.rb} +10 -10
- data/spec/controll/{flow_handler/redirect/mapper_spec.rb → flow/event_mapper/util_spec.rb} +9 -9
- data/spec/controll/flow/master/executor_spec.rb +56 -0
- data/spec/{app/app/models/.gitkeep → controll/flow/master/macros_spec.rb} +0 -0
- data/spec/controll/flow/master_spec.rb +157 -0
- data/spec/controll/notify/base_spec.rb +6 -12
- data/spec/controll/notify/message/handler_spec.rb +27 -0
- data/spec/controll/notify/message/resolver_spec.rb +53 -0
- data/spec/controll/notify/message/translator_spec.rb +46 -0
- data/spec/controll/notify/message_spec.rb +4 -0
- data/spec/controll/notify/{message_handler.rb → services_notifier.rb} +3 -5
- data/spec/controll/notify/typed_spec.rb +2 -2
- data/spec/{app → controll_app}/.gitignore +0 -0
- data/spec/{app → controll_app}/Gemfile +0 -0
- data/spec/{app → controll_app}/Gemfile.lock +0 -0
- data/spec/{app → controll_app}/README.rdoc +0 -0
- data/spec/{app → controll_app}/Rakefile +0 -0
- data/spec/controll_app/app/controll/commanders/services_commander.rb +5 -0
- data/spec/controll_app/app/controll/executors/services_executor.rb +4 -0
- data/spec/controll_app/app/controll/flows/create_services.rb +9 -0
- data/spec/controll_app/app/controll/notifiers/services_notifier.rb +9 -0
- data/spec/{app → controll_app}/app/controllers/application_controller.rb +0 -1
- data/spec/controll_app/app/controllers/services_controller.rb +8 -0
- data/spec/{app/lib/assets → controll_app/app/models}/.gitkeep +0 -0
- data/spec/{app → controll_app}/app/models/post.rb +0 -0
- data/spec/{app → controll_app}/app/views/layouts/application.html.erb +0 -0
- data/spec/{app → controll_app}/app/views/posts/_form.html.erb +0 -0
- data/spec/{app → controll_app}/app/views/posts/edit.html.erb +0 -0
- data/spec/{app → controll_app}/app/views/posts/index.html.erb +0 -0
- data/spec/{app → controll_app}/app/views/posts/new.html.erb +0 -0
- data/spec/{app → controll_app}/app/views/posts/show.html.erb +0 -0
- data/spec/{app → controll_app}/config/application.rb +1 -1
- data/spec/{app → controll_app}/config/boot.rb +0 -0
- data/spec/{app → controll_app}/config/environment.rb +0 -0
- data/spec/{app → controll_app}/config/environments/development.rb +0 -0
- data/spec/{app → controll_app}/config/environments/test.rb +0 -0
- data/spec/{app → controll_app}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/{app → controll_app}/config/initializers/inflections.rb +0 -0
- data/spec/{app → controll_app}/config/initializers/mime_types.rb +0 -0
- data/spec/{app → controll_app}/config/initializers/secret_token.rb +0 -0
- data/spec/{app → controll_app}/config/initializers/session_store.rb +0 -0
- data/spec/{app → controll_app}/config/locales/en.yml +0 -0
- data/spec/controll_app/config/routes.rb +5 -0
- data/spec/{app → controll_app}/config.ru +0 -0
- data/spec/{app → controll_app}/db/seeds.rb +0 -0
- data/spec/{app/lib/tasks → controll_app/log}/.gitkeep +0 -0
- data/spec/{app → controll_app}/public/404.html +0 -0
- data/spec/{app → controll_app}/public/422.html +0 -0
- data/spec/{app → controll_app}/public/500.html +0 -0
- data/spec/{app → controll_app}/public/favicon.ico +0 -0
- data/spec/{app → controll_app}/public/index.html +0 -0
- data/spec/{app → controll_app}/public/javascripts/application.js +0 -0
- data/spec/{app → controll_app}/public/robots.txt +0 -0
- data/spec/{app → controll_app}/public/stylesheets/application.css +0 -0
- metadata +122 -85
- data/lib/controll/executor/notificator.rb +0 -12
- data/lib/controll/flow_handler/base.rb +0 -19
- data/lib/controll/flow_handler/control.rb +0 -85
- data/lib/controll/flow_handler/errors.rb +0 -5
- data/lib/controll/flow_handler/event_helper.rb +0 -18
- data/lib/controll/flow_handler/redirect/action.rb +0 -45
- data/lib/controll/flow_handler/redirect/mapper.rb +0 -41
- data/lib/controll/flow_handler/redirect.rb +0 -51
- data/lib/controll/flow_handler/render.rb +0 -51
- data/lib/controll/flow_handler.rb +0 -11
- data/lib/controll/helper/notify.rb +0 -74
- data/lib/controll/helper/path_resolver.rb +0 -45
- data/spec/app/app/controllers/posts_controller.rb +0 -52
- data/spec/app/config/routes.rb +0 -62
- data/spec/app/log/.gitkeep +0 -0
- data/spec/app/script/rails +0 -6
- data/spec/app/spec/controllers/posts_controller_spec.rb +0 -59
- data/spec/app/spec/isolated_spec_helper.rb +0 -6
- data/spec/app/spec/spec_helper.rb +0 -5
- data/spec/app/spec/unit/controllers/posts_controller_isolated_spec.rb +0 -63
- data/spec/app/spec/unit/controllers/posts_controller_spec.rb +0 -59
- data/spec/app/test/functional/.gitkeep +0 -0
- data/spec/app/test/functional/posts_controller_test.rb +0 -67
- data/spec/app/test/isolated_test_helper.rb +0 -7
- data/spec/app/test/test_helper.rb +0 -6
- data/spec/app/test/unit/.gitkeep +0 -0
- data/spec/app/test/unit/controllers/posts_controller_isolated_test.rb +0 -71
- data/spec/app/test/unit/controllers/posts_controller_test.rb +0 -67
- data/spec/app/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/app/vendor/plugins/.gitkeep +0 -0
- data/spec/controll/asssistant_spec.rb +0 -5
- data/spec/controll/flow_handler/control_spec.rb +0 -159
- data/spec/controll/flow_handler/redirect_spec.rb +0 -93
- data/spec/controll/helper/path_resolver_spec.rb +0 -49
- data/spec/controll/helper_spec.rb +0 -108
@@ -51,12 +51,6 @@ describe Controll::Notify::Base do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'notify_msg - messages map' do
|
55
|
-
specify do
|
56
|
-
subject.send(:notify_msg, :must_sign_in).should == sign_in_msg
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
54
|
context 'I18n message' do
|
61
55
|
# services:
|
62
56
|
# notice:
|
@@ -85,13 +79,13 @@ describe Controll::Notify::Base do
|
|
85
79
|
end
|
86
80
|
|
87
81
|
context 'Variable substitution' do
|
88
|
-
context 'method calls' do
|
89
|
-
|
82
|
+
# context 'method calls' do
|
83
|
+
# let(:auth_error_msg) { 'Error while authenticating via facebook. The service did not return valid data.' }
|
90
84
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
end
|
85
|
+
# specify do
|
86
|
+
# subject.notify('auth_error!').should == auth_error_msg
|
87
|
+
# end
|
88
|
+
# end
|
95
89
|
|
96
90
|
context 'Liquid templates with args' do
|
97
91
|
let(:auth_error_msg) { 'Error while authenticating via www.facebook.com/login. The service returned invalid data for the user id.' }
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Controll::Notify::Message::Handler do
|
4
|
+
subject { Controll::Notify::Message::Handler.new message }
|
5
|
+
|
6
|
+
let(:message) { Controll::Notify::Message.new text, options }
|
7
|
+
let(:text) { 'Error while authenticating via {{full_route}}. The service returned invalid data for the user id.' }
|
8
|
+
let(:options) do
|
9
|
+
{:full_route => 'the_path'}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '.initialize message' do
|
13
|
+
its(:message) { should == message }
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '.handle' do
|
17
|
+
context 'simple text' do
|
18
|
+
let(:text) { 'simple text' }
|
19
|
+
|
20
|
+
its(:handle) { should == text }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'with arg replacement' do
|
24
|
+
its(:handle) { should == 'Error while authenticating via the_path. The service returned invalid data for the user id.' }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Services
|
4
|
+
class NoticeHandler
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
describe Controll::Notify::Message::Resolver do
|
9
|
+
subject { Controll::Notify::Message::Resolver.new caller, message }
|
10
|
+
|
11
|
+
let(:caller) { Services::NoticeHandler.new }
|
12
|
+
let(:message) { Controll::Notify::Message.new text, options }
|
13
|
+
let(:text) { 'Error while authenticating via {{full_route}}. The service returned invalid data for the user id.' }
|
14
|
+
let(:options) do
|
15
|
+
{:full_route => 'the_path', :name => 'kris'}
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '.initialize message' do
|
19
|
+
its(:message) { should == message }
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '.resolve' do
|
23
|
+
context 'simple text' do
|
24
|
+
let(:text) { 'simple text' }
|
25
|
+
|
26
|
+
its(:resolve) { should == text }
|
27
|
+
end
|
28
|
+
|
29
|
+
context 'with arg replacement' do
|
30
|
+
its(:resolve) { should == 'Error while authenticating via the_path. The service returned invalid data for the user id.' }
|
31
|
+
end
|
32
|
+
|
33
|
+
context 'translation' do
|
34
|
+
let(:text) { :signed_out }
|
35
|
+
let(:name) { 'kris' }
|
36
|
+
|
37
|
+
before do
|
38
|
+
::I18n.backend.store_translations :en,
|
39
|
+
:services => {
|
40
|
+
:notice => {
|
41
|
+
:signed_out => "Hey %{name}, you have been signed out!"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
after do
|
47
|
+
::I18n.backend.reload!
|
48
|
+
end
|
49
|
+
|
50
|
+
its(:resolve) { should == "Hey #{name}, you have been signed out!" }
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Services
|
4
|
+
class NoticeHandler
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
describe Controll::Notify::Message::Translator do
|
9
|
+
subject { Controll::Notify::Message::Translator.new caller, message }
|
10
|
+
|
11
|
+
let(:caller) { Services::NoticeHandler.new }
|
12
|
+
let(:message) { Controll::Notify::Message.new key, options }
|
13
|
+
let(:key) { :signed_out }
|
14
|
+
let(:options) do
|
15
|
+
{:name => 'kris'}
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '.initialize caller, message' do
|
19
|
+
its(:caller) { should == caller }
|
20
|
+
its(:key) { should == key }
|
21
|
+
its(:key) { should == message.text }
|
22
|
+
its(:options) { should == message.options }
|
23
|
+
its(:options) { should == options }
|
24
|
+
|
25
|
+
context 'I18n messages with args' do
|
26
|
+
let(:name) { 'kris' }
|
27
|
+
|
28
|
+
before do
|
29
|
+
::I18n.backend.store_translations :en,
|
30
|
+
:services => {
|
31
|
+
:notice => {
|
32
|
+
:signed_out => "Hey %{name}, you have been signed out!"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
::I18n.backend.reload!
|
39
|
+
end
|
40
|
+
|
41
|
+
specify do
|
42
|
+
subject.translate.should == "Hey #{name}, you have been signed out!"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Notifiers
|
2
2
|
class Services < Controll::Notify::Typed
|
3
3
|
class Base < Controll::Notify::Base
|
4
4
|
def provider_name
|
@@ -14,7 +14,7 @@ module MessageHandler
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
class
|
17
|
+
class ErrorHandler < Base
|
18
18
|
type :error
|
19
19
|
|
20
20
|
def messages
|
@@ -42,9 +42,7 @@ You have not been signed in.},
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
class
|
46
|
-
type :notice
|
47
|
-
|
45
|
+
class NoticeHandler < Base
|
48
46
|
# for :signed_in and :signed_out - defined in locale file under:
|
49
47
|
|
50
48
|
# services:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require 'controll/notify/
|
2
|
+
require 'controll/notify/services_notifier'
|
3
3
|
|
4
4
|
class MyController
|
5
5
|
attr_reader :flash
|
@@ -10,7 +10,7 @@ class MyController
|
|
10
10
|
end
|
11
11
|
|
12
12
|
describe Controll::Notify::Typed do
|
13
|
-
subject {
|
13
|
+
subject { Notifiers::Services.new controller }
|
14
14
|
|
15
15
|
let(:controller) { MyController.new }
|
16
16
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: controll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0.5'
|
126
|
-
description:
|
126
|
+
description: Flow, Executor, Notifier and more, all tied together tool pack
|
127
127
|
email: kmandrup@gmail.com
|
128
128
|
executables: []
|
129
129
|
extensions: []
|
@@ -142,109 +142,146 @@ files:
|
|
142
142
|
- controll.gemspec
|
143
143
|
- lib/controll.rb
|
144
144
|
- lib/controll/assistant.rb
|
145
|
+
- lib/controll/assistant/param_assistant.rb
|
146
|
+
- lib/controll/assistant/session_assistant.rb
|
145
147
|
- lib/controll/command.rb
|
146
148
|
- lib/controll/commander.rb
|
149
|
+
- lib/controll/enabler.rb
|
150
|
+
- lib/controll/enabler/macros.rb
|
151
|
+
- lib/controll/enabler/maps.rb
|
152
|
+
- lib/controll/enabler/notify.rb
|
153
|
+
- lib/controll/enabler/path_handler.rb
|
154
|
+
- lib/controll/enabler/path_resolver.rb
|
155
|
+
- lib/controll/engine.rb
|
147
156
|
- lib/controll/errors.rb
|
157
|
+
- lib/controll/event.rb
|
158
|
+
- lib/controll/event/helper.rb
|
159
|
+
- lib/controll/event/matcher.rb
|
160
|
+
- lib/controll/events.rb
|
148
161
|
- lib/controll/executor.rb
|
149
162
|
- lib/controll/executor/base.rb
|
150
|
-
- lib/controll/executor/
|
151
|
-
- lib/controll/
|
152
|
-
- lib/controll/
|
153
|
-
- lib/controll/
|
154
|
-
- lib/controll/
|
155
|
-
- lib/controll/
|
156
|
-
- lib/controll/
|
157
|
-
- lib/controll/
|
158
|
-
- lib/controll/
|
159
|
-
- lib/controll/
|
163
|
+
- lib/controll/executor/controlled.rb
|
164
|
+
- lib/controll/executor/delegator.rb
|
165
|
+
- lib/controll/flow.rb
|
166
|
+
- lib/controll/flow/action.rb
|
167
|
+
- lib/controll/flow/action/base.rb
|
168
|
+
- lib/controll/flow/action/fallback.rb
|
169
|
+
- lib/controll/flow/action/path_action.rb
|
170
|
+
- lib/controll/flow/action_mapper.rb
|
171
|
+
- lib/controll/flow/action_mapper/base.rb
|
172
|
+
- lib/controll/flow/action_mapper/complex.rb
|
173
|
+
- lib/controll/flow/action_mapper/simple.rb
|
174
|
+
- lib/controll/flow/errors.rb
|
175
|
+
- lib/controll/flow/event_mapper.rb
|
176
|
+
- lib/controll/flow/event_mapper/path_finder.rb
|
177
|
+
- lib/controll/flow/event_mapper/util.rb
|
178
|
+
- lib/controll/flow/master.rb
|
179
|
+
- lib/controll/flow/master/executor.rb
|
180
|
+
- lib/controll/flow/master/macros.rb
|
181
|
+
- lib/controll/focused/enabler.rb
|
160
182
|
- lib/controll/helper.rb
|
161
|
-
- lib/controll/helper/event_matcher.rb
|
162
183
|
- lib/controll/helper/hash_access.rb
|
163
|
-
- lib/controll/helper/notify.rb
|
164
184
|
- lib/controll/helper/params.rb
|
165
|
-
- lib/controll/helper/path_resolver.rb
|
166
185
|
- lib/controll/helper/session.rb
|
186
|
+
- lib/controll/macros.rb
|
167
187
|
- lib/controll/notify.rb
|
168
188
|
- lib/controll/notify/base.rb
|
169
189
|
- lib/controll/notify/flash.rb
|
190
|
+
- lib/controll/notify/macros.rb
|
191
|
+
- lib/controll/notify/message.rb
|
192
|
+
- lib/controll/notify/message/handler.rb
|
193
|
+
- lib/controll/notify/message/resolver.rb
|
194
|
+
- lib/controll/notify/message/translator.rb
|
170
195
|
- lib/controll/notify/typed.rb
|
196
|
+
- lib/generators/controll/assistant_generator.rb
|
197
|
+
- lib/generators/controll/executor_generator.rb
|
198
|
+
- lib/generators/controll/flow_handler_generator.rb
|
199
|
+
- lib/generators/controll/notifier_generator.rb
|
200
|
+
- lib/generators/controll/setup_generator.rb
|
201
|
+
- lib/generators/controll/templates/assistant.tt
|
202
|
+
- lib/generators/controll/templates/commander.tt
|
203
|
+
- lib/generators/controll/templates/executor.tt
|
204
|
+
- lib/generators/controll/templates/flow_handler.tt
|
205
|
+
- lib/generators/controll/templates/notifier.tt
|
171
206
|
- spec/acceptance/app_test.rb
|
172
|
-
- spec/
|
173
|
-
- spec/
|
174
|
-
- spec/
|
175
|
-
- spec/app/README.rdoc
|
176
|
-
- spec/app/Rakefile
|
177
|
-
- spec/app/app/controllers/application_controller.rb
|
178
|
-
- spec/app/app/controllers/posts_controller.rb
|
179
|
-
- spec/app/app/models/.gitkeep
|
180
|
-
- spec/app/app/models/post.rb
|
181
|
-
- spec/app/app/views/layouts/application.html.erb
|
182
|
-
- spec/app/app/views/posts/_form.html.erb
|
183
|
-
- spec/app/app/views/posts/edit.html.erb
|
184
|
-
- spec/app/app/views/posts/index.html.erb
|
185
|
-
- spec/app/app/views/posts/new.html.erb
|
186
|
-
- spec/app/app/views/posts/show.html.erb
|
187
|
-
- spec/app/config.ru
|
188
|
-
- spec/app/config/application.rb
|
189
|
-
- spec/app/config/boot.rb
|
190
|
-
- spec/app/config/environment.rb
|
191
|
-
- spec/app/config/environments/development.rb
|
192
|
-
- spec/app/config/environments/test.rb
|
193
|
-
- spec/app/config/initializers/backtrace_silencers.rb
|
194
|
-
- spec/app/config/initializers/inflections.rb
|
195
|
-
- spec/app/config/initializers/mime_types.rb
|
196
|
-
- spec/app/config/initializers/secret_token.rb
|
197
|
-
- spec/app/config/initializers/session_store.rb
|
198
|
-
- spec/app/config/locales/en.yml
|
199
|
-
- spec/app/config/routes.rb
|
200
|
-
- spec/app/db/seeds.rb
|
201
|
-
- spec/app/lib/assets/.gitkeep
|
202
|
-
- spec/app/lib/tasks/.gitkeep
|
203
|
-
- spec/app/log/.gitkeep
|
204
|
-
- spec/app/public/404.html
|
205
|
-
- spec/app/public/422.html
|
206
|
-
- spec/app/public/500.html
|
207
|
-
- spec/app/public/favicon.ico
|
208
|
-
- spec/app/public/index.html
|
209
|
-
- spec/app/public/javascripts/application.js
|
210
|
-
- spec/app/public/robots.txt
|
211
|
-
- spec/app/public/stylesheets/application.css
|
212
|
-
- spec/app/script/rails
|
213
|
-
- spec/app/spec/controllers/posts_controller_spec.rb
|
214
|
-
- spec/app/spec/isolated_spec_helper.rb
|
215
|
-
- spec/app/spec/spec_helper.rb
|
216
|
-
- spec/app/spec/unit/controllers/posts_controller_isolated_spec.rb
|
217
|
-
- spec/app/spec/unit/controllers/posts_controller_spec.rb
|
218
|
-
- spec/app/test/functional/.gitkeep
|
219
|
-
- spec/app/test/functional/posts_controller_test.rb
|
220
|
-
- spec/app/test/isolated_test_helper.rb
|
221
|
-
- spec/app/test/test_helper.rb
|
222
|
-
- spec/app/test/unit/.gitkeep
|
223
|
-
- spec/app/test/unit/controllers/posts_controller_isolated_test.rb
|
224
|
-
- spec/app/test/unit/controllers/posts_controller_test.rb
|
225
|
-
- spec/app/vendor/assets/javascripts/.gitkeep
|
226
|
-
- spec/app/vendor/assets/stylesheets/.gitkeep
|
227
|
-
- spec/app/vendor/plugins/.gitkeep
|
228
|
-
- spec/controll/asssistant_spec.rb
|
207
|
+
- spec/controll/assistant/param_assistant_spec.rb
|
208
|
+
- spec/controll/assistant/session_assistant_spec.rb
|
209
|
+
- spec/controll/assistant_spec.rb
|
229
210
|
- spec/controll/command_spec.rb
|
230
211
|
- spec/controll/commander_spec.rb
|
231
|
-
- spec/controll/
|
232
|
-
- spec/controll/
|
233
|
-
- spec/controll/
|
234
|
-
- spec/controll/
|
235
|
-
- spec/controll/
|
236
|
-
- spec/controll/
|
237
|
-
- spec/controll/
|
212
|
+
- spec/controll/enabler/macros_spec.rb
|
213
|
+
- spec/controll/enabler/maps_spec.rb
|
214
|
+
- spec/controll/enabler/notify_spec.rb
|
215
|
+
- spec/controll/enabler/path_handler_spec.rb
|
216
|
+
- spec/controll/enabler/path_resolver_spec.rb
|
217
|
+
- spec/controll/enabler_spec.rb
|
218
|
+
- spec/controll/event/helper_spec.rb
|
219
|
+
- spec/controll/event/matcher_spec.rb
|
220
|
+
- spec/controll/event_spec.rb
|
221
|
+
- spec/controll/events_spec.rb
|
222
|
+
- spec/controll/executor/controlled_spec.rb
|
223
|
+
- spec/controll/executor/delegator_spec.rb
|
224
|
+
- spec/controll/flow/action_mapper/complex_spec.rb
|
225
|
+
- spec/controll/flow/action_mapper/fallback_spec.rb
|
226
|
+
- spec/controll/flow/action_mapper/simple_spec.rb
|
227
|
+
- spec/controll/flow/event_mapper/path_finder_spec.rb
|
228
|
+
- spec/controll/flow/event_mapper/util_spec.rb
|
229
|
+
- spec/controll/flow/master/executor_spec.rb
|
230
|
+
- spec/controll/flow/master/macros_spec.rb
|
231
|
+
- spec/controll/flow/master_spec.rb
|
238
232
|
- spec/controll/helper/hash_access_spec.rb
|
239
|
-
- spec/controll/helper/notify_spec.rb
|
240
233
|
- spec/controll/helper/params_spec.rb
|
241
|
-
- spec/controll/helper/path_resolver_spec.rb
|
242
234
|
- spec/controll/helper/session_spec.rb
|
243
|
-
- spec/controll/helper_spec.rb
|
244
235
|
- spec/controll/notify/base_spec.rb
|
245
236
|
- spec/controll/notify/flash_spec.rb
|
246
|
-
- spec/controll/notify/
|
237
|
+
- spec/controll/notify/message/handler_spec.rb
|
238
|
+
- spec/controll/notify/message/resolver_spec.rb
|
239
|
+
- spec/controll/notify/message/translator_spec.rb
|
240
|
+
- spec/controll/notify/message_spec.rb
|
241
|
+
- spec/controll/notify/services_notifier.rb
|
247
242
|
- spec/controll/notify/typed_spec.rb
|
243
|
+
- spec/controll_app/.gitignore
|
244
|
+
- spec/controll_app/Gemfile
|
245
|
+
- spec/controll_app/Gemfile.lock
|
246
|
+
- spec/controll_app/README.rdoc
|
247
|
+
- spec/controll_app/Rakefile
|
248
|
+
- spec/controll_app/app/controll/commanders/services_commander.rb
|
249
|
+
- spec/controll_app/app/controll/executors/services_executor.rb
|
250
|
+
- spec/controll_app/app/controll/flows/create_services.rb
|
251
|
+
- spec/controll_app/app/controll/notifiers/services_notifier.rb
|
252
|
+
- spec/controll_app/app/controllers/application_controller.rb
|
253
|
+
- spec/controll_app/app/controllers/services_controller.rb
|
254
|
+
- spec/controll_app/app/models/.gitkeep
|
255
|
+
- spec/controll_app/app/models/post.rb
|
256
|
+
- spec/controll_app/app/views/layouts/application.html.erb
|
257
|
+
- spec/controll_app/app/views/posts/_form.html.erb
|
258
|
+
- spec/controll_app/app/views/posts/edit.html.erb
|
259
|
+
- spec/controll_app/app/views/posts/index.html.erb
|
260
|
+
- spec/controll_app/app/views/posts/new.html.erb
|
261
|
+
- spec/controll_app/app/views/posts/show.html.erb
|
262
|
+
- spec/controll_app/config.ru
|
263
|
+
- spec/controll_app/config/application.rb
|
264
|
+
- spec/controll_app/config/boot.rb
|
265
|
+
- spec/controll_app/config/environment.rb
|
266
|
+
- spec/controll_app/config/environments/development.rb
|
267
|
+
- spec/controll_app/config/environments/test.rb
|
268
|
+
- spec/controll_app/config/initializers/backtrace_silencers.rb
|
269
|
+
- spec/controll_app/config/initializers/inflections.rb
|
270
|
+
- spec/controll_app/config/initializers/mime_types.rb
|
271
|
+
- spec/controll_app/config/initializers/secret_token.rb
|
272
|
+
- spec/controll_app/config/initializers/session_store.rb
|
273
|
+
- spec/controll_app/config/locales/en.yml
|
274
|
+
- spec/controll_app/config/routes.rb
|
275
|
+
- spec/controll_app/db/seeds.rb
|
276
|
+
- spec/controll_app/log/.gitkeep
|
277
|
+
- spec/controll_app/public/404.html
|
278
|
+
- spec/controll_app/public/422.html
|
279
|
+
- spec/controll_app/public/500.html
|
280
|
+
- spec/controll_app/public/favicon.ico
|
281
|
+
- spec/controll_app/public/index.html
|
282
|
+
- spec/controll_app/public/javascripts/application.js
|
283
|
+
- spec/controll_app/public/robots.txt
|
284
|
+
- spec/controll_app/public/stylesheets/application.css
|
248
285
|
- spec/functional_test_helper.rb
|
249
286
|
- spec/helper.rb
|
250
287
|
- spec/rspec_controller_class.rb
|
@@ -273,7 +310,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
273
310
|
version: '0'
|
274
311
|
segments:
|
275
312
|
- 0
|
276
|
-
hash:
|
313
|
+
hash: 532525956414190300
|
277
314
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
315
|
none: false
|
279
316
|
requirements:
|