Skip to content
Browse files

renamed flow_handler to flow

  • Loading branch information...
1 parent 2cb02bd commit c265e4cad73f3dfb49151d7d1cb7665841479875 @kristianmandrup committed Aug 22, 2012
Showing with 167 additions and 274 deletions.
  1. +16 −16 README.md
  2. +1 −1 Rakefile
  3. +15 −15 controll.gemspec
  4. +1 −1 lib/controll.rb
  5. +5 −5 lib/controll/enabler/macros.rb
  6. +3 −3 lib/controll/enabler/path_resolver.rb
  7. +14 −0 lib/controll/flow.rb
  8. +10 −0 lib/controll/flow/action_mapper.rb
  9. +1 −1 lib/controll/{flow_handler → flow}/action_mapper/action.rb
  10. +2 −2 lib/controll/{flow_handler → flow}/action_mapper/complex.rb
  11. +1 −1 lib/controll/{flow_handler → flow}/action_mapper/fallback.rb
  12. +1 −1 lib/controll/{flow_handler → flow}/action_mapper/path_action.rb
  13. +3 −3 lib/controll/{flow_handler → flow}/action_mapper/simple.rb
  14. +1 −1 lib/controll/{flow_handler → flow}/errors.rb
  15. +6 −0 lib/controll/flow/event_mapper.rb
  16. +4 −4 lib/controll/{flow_handler → flow}/event_mapper/path_finder.rb
  17. +2 −2 lib/controll/{flow_handler → flow}/event_mapper/util.rb
  18. +4 −4 lib/controll/{flow_handler → flow}/master.rb
  19. +5 −5 lib/controll/{flow_handler → flow}/master/executor.rb
  20. +3 −3 lib/controll/{flow_handler → flow}/master/macros.rb
  21. +0 −13 lib/controll/flow_handler.rb
  22. +0 −10 lib/controll/flow_handler/action_mapper.rb
  23. +0 −6 lib/controll/flow_handler/event_mapper.rb
  24. +5 −5 lib/controll/focused/enabler.rb
  25. +2 −1 lib/controll/notify.rb
  26. +4 −4 lib/generators/controll/flow_handler_generator.rb
  27. +1 −1 lib/generators/controll/setup_generator.rb
  28. +1 −1 lib/generators/controll/templates/flow_handler.tt
  29. +1 −1 spec/acceptance/app_test.rb
  30. +0 −52 spec/controll-app/app/controllers/posts_controller.rb
  31. +0 −62 spec/controll-app/config/routes.rb
  32. +4 −4 spec/controll/enabler/macros_spec.rb
  33. +1 −1 spec/controll/enabler/path_resolver_spec.rb
  34. +7 −7 spec/controll/{flow_handler → flow}/action_mapper/complex_spec.rb
  35. +3 −3 spec/controll/{flow_handler → flow}/action_mapper/fallback_spec.rb
  36. +8 −8 spec/controll/{flow_handler → flow}/action_mapper/simlple_spec.rb
  37. +3 −3 spec/controll/{flow_handler → flow}/event_mapper/path_finder_spec.rb
  38. +2 −2 spec/controll/{flow_handler → flow}/event_mapper/util_spec.rb
  39. +19 −19 spec/controll/{flow_handler → flow}/master_spec.rb
  40. 0 spec/{controll-app → controll_app}/.gitignore
  41. 0 spec/{controll-app → controll_app}/Gemfile
  42. 0 spec/{controll-app → controll_app}/Gemfile.lock
  43. 0 spec/{controll-app → controll_app}/README.rdoc
  44. 0 spec/{controll-app → controll_app}/Rakefile
  45. 0 spec/{controll-app → controll_app}/app/controll/commanders/services_commander.rb
  46. 0 spec/{controll-app → controll_app}/app/controll/executors/services_executor.rb
  47. +2 −2 spec/{controll-app/app/controll/flow_handlers → controll_app/app/controll/flows}/create_services.rb
  48. 0 spec/{controll-app → controll_app}/app/controll/notifiers/services_notifier.rb
  49. 0 spec/{controll-app → controll_app}/app/controllers/application_controller.rb
  50. 0 spec/{controll-app → controll_app}/app/controllers/services_controller.rb
  51. 0 spec/{controll-app/vendor/plugins → controll_app/app/models}/.gitkeep
  52. 0 spec/{controll-app → controll_app}/app/models/post.rb
  53. 0 spec/{controll-app → controll_app}/app/views/layouts/application.html.erb
  54. 0 spec/{controll-app → controll_app}/app/views/posts/_form.html.erb
  55. 0 spec/{controll-app → controll_app}/app/views/posts/edit.html.erb
  56. 0 spec/{controll-app → controll_app}/app/views/posts/index.html.erb
  57. 0 spec/{controll-app → controll_app}/app/views/posts/new.html.erb
  58. 0 spec/{controll-app → controll_app}/app/views/posts/show.html.erb
  59. 0 spec/{controll-app → controll_app}/config.ru
  60. +1 −1 spec/{controll-app → controll_app}/config/application.rb
  61. 0 spec/{controll-app → controll_app}/config/boot.rb
  62. 0 spec/{controll-app → controll_app}/config/environment.rb
  63. 0 spec/{controll-app → controll_app}/config/environments/development.rb
  64. 0 spec/{controll-app → controll_app}/config/environments/test.rb
  65. 0 spec/{controll-app → controll_app}/config/initializers/backtrace_silencers.rb
  66. 0 spec/{controll-app → controll_app}/config/initializers/inflections.rb
  67. 0 spec/{controll-app → controll_app}/config/initializers/mime_types.rb
  68. 0 spec/{controll-app → controll_app}/config/initializers/secret_token.rb
  69. 0 spec/{controll-app → controll_app}/config/initializers/session_store.rb
  70. 0 spec/{controll-app → controll_app}/config/locales/en.yml
  71. +5 −0 spec/controll_app/config/routes.rb
  72. 0 spec/{controll-app → controll_app}/db/seeds.rb
  73. 0 spec/{controll-app/vendor/assets/stylesheets → controll_app/lib/assets}/.gitkeep
  74. 0 spec/{controll-app/vendor/assets/javascripts → controll_app/lib/tasks}/.gitkeep
  75. 0 spec/{controll-app/test/unit → controll_app/log}/.gitkeep
  76. 0 spec/{controll-app → controll_app}/public/404.html
  77. 0 spec/{controll-app → controll_app}/public/422.html
  78. 0 spec/{controll-app → controll_app}/public/500.html
  79. 0 spec/{controll-app → controll_app}/public/favicon.ico
  80. 0 spec/{controll-app → controll_app}/public/index.html
  81. 0 spec/{controll-app → controll_app}/public/javascripts/application.js
  82. 0 spec/{controll-app → controll_app}/public/robots.txt
  83. 0 spec/{controll-app → controll_app}/public/stylesheets/application.css
  84. 0 spec/{controll-app → controll_app}/script/rails
  85. 0 spec/{controll-app → controll_app}/spec/controllers/posts_controller_spec.rb
  86. 0 spec/{controll-app → controll_app}/spec/isolated_spec_helper.rb
  87. 0 spec/{controll-app → controll_app}/spec/spec_helper.rb
  88. 0 spec/{controll-app → controll_app}/spec/unit/controllers/posts_controller_isolated_spec.rb
  89. 0 spec/{controll-app → controll_app}/spec/unit/controllers/posts_controller_spec.rb
  90. 0 spec/{controll-app → controll_app}/test/functional/.gitkeep
  91. 0 spec/{controll-app → controll_app}/test/functional/posts_controller_test.rb
  92. 0 spec/{controll-app → controll_app}/test/isolated_test_helper.rb
  93. 0 spec/{controll-app → controll_app}/test/test_helper.rb
  94. 0 spec/{controll-app/log → controll_app/test/unit}/.gitkeep
  95. 0 spec/{controll-app → controll_app}/test/unit/controllers/posts_controller_isolated_test.rb
  96. 0 spec/{controll-app → controll_app}/test/unit/controllers/posts_controller_test.rb
  97. 0 spec/{controll-app/lib/tasks → controll_app/vendor/assets/javascripts}/.gitkeep
  98. 0 spec/{controll-app/lib/assets → controll_app/vendor/assets/stylesheets}/.gitkeep
  99. 0 spec/{controll-app/app/models → controll_app/vendor/plugins}/.gitkeep
View
32 README.md
@@ -96,9 +96,9 @@ class ServicesController < ApplicationController
end
```
-A `FlowHandler` can use Executors to encapsulate execution logic, which again can execute Commands that encapsulate business logic related to the user Session or models (data).
+A `Flow` can use Executors to encapsulate execution logic, which again can execute Commands that encapsulate business logic related to the user Session or models (data).
-The FlowHandler takes the last event on the event stack and consults the ActionPaths registered, usually a Redirecter and Renderer. An ActionPath is a type of Action which can return a path. The FlowHandler initiates an Executor which iterates the ActionPaths to find the first one which can match the event.
+The Flow takes the last event on the event stack and consults the ActionPaths registered, usually a Redirecter and Renderer. An ActionPath is a type of Action which can return a path. The Flow initiates an Executor which iterates the ActionPaths to find the first one which can match the event.
The first one with a match is returned as the Action, which the controller can then perform in order to either render or redirect.
@@ -117,14 +117,14 @@ Using these Controll artifacts/systems, you can avoid the typical Rails anti-pat
The recommended approach to handle complex Controller logic using Controll:
* Enable Controll on Controller
-* Configure Controller with FlowHandler, Commander and Notifier
+* Configure Controller with Flow, Commander and Notifier
* Create Commands for Commander
* Define events corresponding to commands
* Configure Commander with Command methods
-* Create FlowHandler
-* Configure FlowHandler with Render and Redirect event mappings
+* Create Flow
+* Configure Flow with Render and Redirect event mappings
* Create Notifier
* Configure Notifier with Event handlers and event -> message mappings
@@ -192,7 +192,7 @@ class ServicesController < ApplicationController
protected
def create_action
- @create_action ||= FlowHandlers::CreateService.new(self)
+ @create_action ||= Flows::CreateService.new(self)
end
fallback do |event|
@@ -217,7 +217,7 @@ class ServicesController
extend ActiveSupport::Concern
included do
- controll :notifier, :commander, :flow_handler
+ controll :notifier, :commander, :flow
end
def fallback_action
@@ -274,12 +274,12 @@ The `Commander class extends `Imperator::Command::MethodFactory` making `#comman
For how to implement the Commands themselves, see the [imperator-ext](https://github.com/kristianmandrup/imperator-ext) gem.
-## FlowHandlers
+## Flows
-For Controller actions that require complex flow control, use a FlowHandler:
+For Controller actions that require complex flow control, use a Flow:
```ruby
-module FlowHandlers
+module Flows
class CreateService < Master
# event method that returns the event to be processed by the flow handler
@@ -314,22 +314,22 @@ module FlowHandlers
end
```
-The `#renderer` and `#redirector` macros will each create a Class of the same name that inherit from Controll::FlowHandler::ActionMapper::Simple or Controll::FlowHandler::ActionMapper::Complex.
+The `#renderer` and `#redirector` macros will each create a Class of the same name that inherit from Controll::Flow::ActionMapper::Simple or Controll::Flow::ActionMapper::Complex.
You can also define these classes directly yourself instead of using the macros.
The *simple* action mapper maps a list of events to a single path and otherwise falls back.
The complex action mapper maps the event to an event hash for each registered event type.
In the `Redirecter` class we are setting up a mapping for various paths, for each path specifying which events should cause a redirect to that path.
-If you are rendering or redirecting to paths that take arguments, you can either extend the `#action` class method of your Redirect or Render class implementation or you can define a `#use_alternatives` method in your `FlowHandler` that contains this particular flow logic.
+If you are rendering or redirecting to paths that take arguments, you can either extend the `#action` class method of your Redirect or Render class implementation or you can define a `#use_alternatives` method in your `Flow` that contains this particular flow logic.
Note: For mapping paths that take arguments, there should be an option to take a block (closure) to be late-evaluated on the controller context ;)
## The Executor
-The `Authenticator` class shown below inherits from `Executor::Notificator` which uses `#method_missing` in order to delegate any missing method back to the controller of the Executor. The FlowHandler passed in the controller. This means that calls can be executed directly on the controller, such as making notifications etc.
+The `Authenticator` class shown below inherits from `Executor::Notificator` which uses `#method_missing` in order to delegate any missing method back to the controller of the Executor. The Flow passed in the controller. This means that calls can be executed directly on the controller, such as making notifications etc.
-The `#result` call at the end of `#execute` ensures that the last notification event is returned, to be used for deciding what to render or where to redirect (see FlowHandler).
+The `#result` call at the end of `#execute` ensures that the last notification event is returned, to be used for deciding what to render or where to redirect (see Flow).
```ruby
module Executors
@@ -450,12 +450,12 @@ Generate only specific controll folders
* assistant
* executor
-* flow_handler
+* flow
* notifier
Example usage:
-`$ rails g controll:flow_handler create_service`
+`$ rails g controll:flow create_service`
Use `-h` for help on any specific controller for more usage options and info.
View
2 Rakefile
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
gem.homepage = "http://github.com/kristianmandrup/controll"
gem.license = "MIT"
gem.summary = %Q{Utils for handling complex Controller/Business logic}
- gem.description = %Q{FlowHandler, Executor, Notifier and more, all tied together tool pack}
+ gem.description = %Q{Flow, Executor, Notifier and more, all tied together tool pack}
gem.email = "kmandrup@gmail.com"
gem.authors = ["Kristian Mandrup"]
# dependencies defined in Gemfile
View
30 controll.gemspec
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kristian Mandrup"]
s.date = "2012-08-16"
- s.description = "FlowHandler, Executor, Notifier and more, all tied together tool pack"
+ s.description = "Flow, Executor, Notifier and more, all tied together tool pack"
s.email = "kmandrup@gmail.com"
s.extra_rdoc_files = [
"LICENSE.txt",
@@ -34,15 +34,15 @@ Gem::Specification.new do |s|
"lib/controll/executor.rb",
"lib/controll/executor/base.rb",
"lib/controll/executor/notificator.rb",
- "lib/controll/flow_handler.rb",
- "lib/controll/flow_handler/base.rb",
- "lib/controll/flow_handler/control.rb",
- "lib/controll/flow_handler/errors.rb",
- "lib/controll/flow_handler/event_helper.rb",
- "lib/controll/flow_handler/redirect.rb",
- "lib/controll/flow_handler/redirect/action.rb",
- "lib/controll/flow_handler/redirect/mapper.rb",
- "lib/controll/flow_handler/render.rb",
+ "lib/controll/flow.rb",
+ "lib/controll/flow/base.rb",
+ "lib/controll/flow/control.rb",
+ "lib/controll/flow/errors.rb",
+ "lib/controll/flow/event_helper.rb",
+ "lib/controll/flow/redirect.rb",
+ "lib/controll/flow/redirect/action.rb",
+ "lib/controll/flow/redirect/mapper.rb",
+ "lib/controll/flow/render.rb",
"lib/controll/helper.rb",
"lib/controll/helper/event_matcher.rb",
"lib/controll/helper/hash_access.rb",
@@ -115,11 +115,11 @@ Gem::Specification.new do |s|
"spec/controll/command_spec.rb",
"spec/controll/commander_spec.rb",
"spec/controll/executor/notificator_spec.rb",
- "spec/controll/flow_handler/control_spec.rb",
- "spec/controll/flow_handler/redirect/action_spec.rb",
- "spec/controll/flow_handler/redirect/mapper_spec.rb",
- "spec/controll/flow_handler/redirect_spec.rb",
- "spec/controll/flow_handler/render_spec.rb",
+ "spec/controll/flow/control_spec.rb",
+ "spec/controll/flow/redirect/action_spec.rb",
+ "spec/controll/flow/redirect/mapper_spec.rb",
+ "spec/controll/flow/redirect_spec.rb",
+ "spec/controll/flow/render_spec.rb",
"spec/controll/helper/event_matcher_spec.rb",
"spec/controll/helper/hash_access_spec.rb",
"spec/controll/helper/notify_spec.rb",
View
2 lib/controll.rb
@@ -9,7 +9,7 @@ module Controll
require 'controll/assistant'
require 'controll/executor'
require 'controll/notify'
-require 'controll/flow_handler'
+require 'controll/flow'
require 'controll/helper'
require 'controll/enabler'
require 'controll/command'
View
10 lib/controll/enabler/macros.rb
@@ -46,11 +46,11 @@ def notifier name, options = {}
end
end
- def flow_handler name, options = {}
- define_method :flow_handler do
- unless instance_variable_get("@flow_handler")
- clazz = "FlowHandlers::#{name.to_s.camelize}".constantize
- instance_variable_set "@flow_handler", clazz.new(self, options)
+ def flow name, options = {}
+ define_method :flow do
+ unless instance_variable_get("@flow")
+ clazz = "Flows::#{name.to_s.camelize}".constantize
+ instance_variable_set "@flow", clazz.new(self, options)
end
end
end
View
6 lib/controll/enabler/path_resolver.rb
@@ -2,7 +2,7 @@ module Controll::Enabler
class PathResolver
attr_reader :caller, :event_map
- ActionMapper = Controll::FlowHandler::ActionMapper
+ ActionMapper = Controll::Flow::ActionMapper
def initialize caller, event_map
@caller = caller
@@ -30,7 +30,7 @@ def handle action
else
resolve_event
end
- rescue Controll::FlowHandler::PathActionError
+ rescue Controll::Flow::PathActionError
nil
end
@@ -40,7 +40,7 @@ def resolve_event event = nil
end
def mapper
- @mapper ||= Controll::FlowHandler::EventMapper::Util.new main_event, event_map
+ @mapper ||= Controll::Flow::EventMapper::Util.new main_event, event_map
end
end
end
View
14 lib/controll/flow.rb
@@ -0,0 +1,14 @@
+require 'controll/flow/errors'
+
+module Controll
+ module Flow
+ autoload :Master, 'controll/flow/master'
+ autoload :EventMapper, 'controll/flow/event_mapper'
+ autoload :ActionMapper, 'controll/flow/action_mapper'
+ end
+end
+
+module Flows
+ Master = Controll::Flow::Master
+ Flow = Controll::Flow::Master
+end
View
10 lib/controll/flow/action_mapper.rb
@@ -0,0 +1,10 @@
+module Controll::Flow
+ module ActionMapper
+ autoload :Action, 'controll/flow/action_mapper/action'
+ autoload :PathAction, 'controll/flow/action_mapper/path_action'
+ autoload :Fallback, 'controll/flow/action_mapper/fallback'
+
+ autoload :Simple, 'controll/flow/action_mapper/simple'
+ autoload :Complex, 'controll/flow/action_mapper/complex'
+ end
+end
View
2 ...roll/flow_handler/action_mapper/action.rb → lib/controll/flow/action_mapper/action.rb
@@ -1,4 +1,4 @@
-module Controll::FlowHandler::ActionMapper
+module Controll::Flow::ActionMapper
class Action
attr_reader :path, :controller, :errors
View
4 ...oll/flow_handler/action_mapper/complex.rb → lib/controll/flow/action_mapper/complex.rb
@@ -1,4 +1,4 @@
-module Controll::FlowHandler::ActionMapper
+module Controll::Flow::ActionMapper
class Complex < PathAction
attr_reader :maps
@@ -43,7 +43,7 @@ def path_finder event
end
def path_finder_class
- Controll::FlowHandler::EventMapper::PathFinder
+ Controll::Flow::EventMapper::PathFinder
end
end
end
View
2 ...ll/flow_handler/action_mapper/fallback.rb → lib/controll/flow/action_mapper/fallback.rb
@@ -1,4 +1,4 @@
-module Controll::FlowHandler::ActionMapper
+module Controll::Flow::ActionMapper
class Fallback < Action
attr_reader :controller, :event
View
2 ...flow_handler/action_mapper/path_action.rb → ...ontroll/flow/action_mapper/path_action.rb
@@ -1,4 +1,4 @@
-module Controll::FlowHandler::ActionMapper
+module Controll::Flow::ActionMapper
class PathAction < Action
def perform
raise BadPathError, "Bad path: #{path}" if path.blank?
View
6 ...roll/flow_handler/action_mapper/simple.rb → lib/controll/flow/action_mapper/simple.rb
@@ -1,7 +1,7 @@
-module Controll::FlowHandler::ActionMapper
+module Controll::Flow::ActionMapper
class Simple < PathAction
- NoEventsDefinedError = Controll::FlowHandler::NoEventsDefinedError
- NoDefaultPathDefinedError = Controll::FlowHandler::NoDefaultPathDefinedError
+ NoEventsDefinedError = Controll::Flow::NoEventsDefinedError
+ NoDefaultPathDefinedError = Controll::Flow::NoDefaultPathDefinedError
# TODO: Should combine with Redirecter style, allowing for multiple render path mappings!
# This is fx useful for Wizards etc. where one Controller can render to many views, depending on state
View
2 lib/controll/flow_handler/errors.rb → lib/controll/flow/errors.rb
@@ -1,4 +1,4 @@
-module Controll::FlowHandler
+module Controll::Flow
class ActionEventError < StandardError; end
class EventNotImplementedError < StandardError; end
View
6 lib/controll/flow/event_mapper.rb
@@ -0,0 +1,6 @@
+module Controll::Flow
+ module EventMapper
+ autoload :Util, 'controll/flow/event_mapper/util'
+ autoload :PathFinder, 'controll/flow/event_mapper/path_finder'
+ end
+end
View
8 .../flow_handler/event_mapper/path_finder.rb → ...controll/flow/event_mapper/path_finder.rb
@@ -1,9 +1,9 @@
-module Controll::FlowHandler
+module Controll::Flow
class EventMapper
class PathFinder
attr_accessor :event, :maps, :types
- NoMappingFoundError = Controll::FlowHandler::NoMappingFoundError
+ NoMappingFoundError = Controll::Flow::NoMappingFoundError
# event <Event>
def initialize event, maps, types = []
@@ -22,14 +22,14 @@ def path
protected
- include Controll::FlowHandler::EventHelper
+ include Controll::Flow::EventHelper
def event_map
@event_map ||= maps[event.type] || {}
end
def mapper
- @mapper ||= Controll::FlowHandler::EventMapper::Util.new event, event_map
+ @mapper ||= Controll::Flow::EventMapper::Util.new event, event_map
end
end
end
View
4 ...ontroll/flow_handler/event_mapper/util.rb → lib/controll/flow/event_mapper/util.rb
@@ -1,9 +1,9 @@
-module Controll::FlowHandler
+module Controll::Flow
module EventMapper
class Util
attr_reader :event_map, :event
- NoMappingFoundError = Controll::FlowHandler::NoMappingFoundError
+ NoMappingFoundError = Controll::Flow::NoMappingFoundError
def initialize event, event_map
@event ||= normalize event
View
8 lib/controll/flow_handler/master.rb → lib/controll/flow/master.rb
@@ -1,7 +1,7 @@
-module Controll::FlowHandler
+module Controll::Flow
class Master
- autoload :Macros, 'controll/flow_handler/master/macros'
- autoload :Executor, 'controll/flow_handler/master/executor'
+ autoload :Macros, 'controll/flow/master/macros'
+ autoload :Executor, 'controll/flow/master/executor'
include Macros
@@ -64,7 +64,7 @@ def action_handlers
end
def event
- raise Controll::FlowHandler::EventNotImplementedError, 'You must define an #event method that returns an event (or Symbol). You can use an Executor for this.'
+ raise Controll::Flow::EventNotImplementedError, 'You must define an #event method that returns an event (or Symbol). You can use an Executor for this.'
end
end
end
View
10 lib/controll/flow_handler/master/executor.rb → lib/controll/flow/master/executor.rb
@@ -1,10 +1,10 @@
-module Controll::FlowHandler
+module Controll::Flow
class Master
class Executor < Controll::Executor::Base
- FlowHandler = Controll::FlowHandler
+ Flow = Controll::Flow
- NoEventsDefinedError = FlowHandler::NoEventsDefinedError
- NoMappingFoundError = FlowHandler::NoMappingFoundError
+ NoEventsDefinedError = Flow::NoEventsDefinedError
+ NoMappingFoundError = Flow::NoMappingFoundError
def initialize initiator, options = {}
super
@@ -40,7 +40,7 @@ def fallback
end
def fallback_class
- FlowHandler::ActionMapper::Fallback
+ Flow::ActionMapper::Fallback
end
def action_handlers
View
6 lib/controll/flow_handler/master/macros.rb → lib/controll/flow/master/macros.rb
@@ -1,4 +1,4 @@
-module Controll::FlowHandler
+module Controll::Flow
class Master
module Macros
extend ActiveSupport::Concern
@@ -8,7 +8,7 @@ def handler options = {}, &block
mapper_type = :simple if options[:simple]
mapper_type ||= :complex if options[:complex]
- master_clazz = Controll::FlowHandler::Master
+ master_clazz = Controll::Flow::Master
unless mapper_type
raise ArgumentError, "You must specify mapper type, one of: #{master_clazz.mapper_types} in: #{options}"
@@ -20,7 +20,7 @@ def handler options = {}, &block
raise ArgumentError, "Must one of: #{master_clazz.valid_handlers} was: #{handler_type}"
end
- parent = "Controll::FlowHandler::ActionMapper::#{mapper_type.to_s.camelize}".constantize
+ parent = "Controll::Flow::ActionMapper::#{mapper_type.to_s.camelize}".constantize
clazz_name = handler_type.to_s.camelize
context = self.kind_of?(Class) ? self : self.class
View
13 lib/controll/flow_handler.rb
@@ -1,13 +0,0 @@
-require 'controll/flow_handler/errors'
-
-module Controll
- module FlowHandler
- autoload :Master, 'controll/flow_handler/master'
- autoload :EventMapper, 'controll/flow_handler/event_mapper'
- autoload :ActionMapper, 'controll/flow_handler/action_mapper'
- end
-end
-
-module FlowHandlers
- Master = Controll::FlowHandler::Master
-end
View
10 lib/controll/flow_handler/action_mapper.rb
@@ -1,10 +0,0 @@
-module Controll::FlowHandler
- module ActionMapper
- autoload :Action, 'controll/flow_handler/action_mapper/action'
- autoload :PathAction, 'controll/flow_handler/action_mapper/path_action'
- autoload :Fallback, 'controll/flow_handler/action_mapper/fallback'
-
- autoload :Simple, 'controll/flow_handler/action_mapper/simple'
- autoload :Complex, 'controll/flow_handler/action_mapper/complex'
- end
-end
View
6 lib/controll/flow_handler/event_mapper.rb
@@ -1,6 +0,0 @@
-module Controll::FlowHandler
- module EventMapper
- autoload :Util, 'controll/flow_handler/event_mapper/util'
- autoload :PathFinder, 'controll/flow_handler/event_mapper/path_finder'
- end
-end
View
10 lib/controll/focused/enabler.rb
@@ -13,18 +13,18 @@ def self.assistant_methods *names
protected
- # the action resulting from executing the flow_handler.
+ # the action resulting from executing the flow.
# Should be an instance of either:
# - Fallback
# - Redirecter
# - Renderer
def action
- @action ||= flow_handler.execute
+ @action ||= flow.execute
end
- # @flowhandler ||= Controll::FlowHandler::Master.new self
- def flow_handler
- raise NotImplementedError, '#flow_handler must return the Controll::FlowHandler::Master instance to be used'
+ # @flowhandler ||= Controll::Flow::Master.new self
+ def flow
+ raise NotImplementedError, '#flow must return the Controll::Flow::Master instance to be used'
end
end
end
View
3 lib/controll/notify.rb
@@ -9,5 +9,6 @@ module Notify
end
module Notifiers
- Typed = Controll::Notify::Typed
+ Typed = Controll::Notify::Typed
+ Notifier = Controll::Notify::Typed
end
View
8 lib/generators/controll/flow_handler_generator.rb
@@ -1,16 +1,16 @@
module Controll
module Generators
- class FlowHandlerGenerator < ::Rails::Generators::NamedBase
- desc 'Generates a FlowHandler'
+ class FlowGenerator < ::Rails::Generators::NamedBase
+ desc 'Generates a Flow'
def main_flow
- template 'flow_handler.tt', "app/controll/flow_handlers/#{file_name}.rb"
+ template 'flow.tt', "app/controll/flows/#{file_name}.rb"
end
protected
def parent_class
- name.include?('::') ? "::Controll::FlowHandler::#{parent_class_name}" : parent_class_name
+ name.include?('::') ? "::Controll::Flow::#{parent_class_name}" : parent_class_name
end
def parent_class_name
View
2 lib/generators/controll/setup_generator.rb
@@ -30,7 +30,7 @@ def valid_folder? folder
end
def valid_folders
- %w{executors flow_handlers notifiers commanders assistants}
+ %w{executors flows notifiers commanders assistants}
end
end
end
View
2 lib/generators/controll/templates/flow_handler.tt
@@ -1,4 +1,4 @@
-module FlowHandlers
+module Flows
class <%= class_name %> < <%= parent_class %>
fallback do
# event == :no_auth ? do_render(:text => omniauth.to_yaml) : fallback_action
View
2 spec/acceptance/app_test.rb
@@ -22,7 +22,7 @@ def self.port
describe 'acceptance test' do
def app_root
- TEST_ROOT + '/controll-app'
+ TEST_ROOT + '/controll_app'
end
def within_test_app
View
52 spec/controll-app/app/controllers/posts_controller.rb
@@ -1,52 +0,0 @@
-module PostsController
- class Action < ApplicationController
- end
-
- class Index < Action
- expose(:posts) { Post.all }
- end
-
- class Initializer < Action
- expose(:post) { Post.new params[:post] }
- end
-
- class New < Initializer
- end
-
- class Create < Initializer
- def run
- if post.save
- redirect_to post, :notice => 'Post was successfully created.'
- else
- render :action => "new"
- end
- end
- end
-
- class Finder < Action
- expose(:post) { Post.find params[:id] }
- end
-
- class Show < Finder
- end
-
- class Edit < Finder
- end
-
- class Update < Finder
- def run
- if post.update_attributes(params[:post])
- redirect_to post, :notice => 'Post was successfully updated.'
- else
- render :action => "edit"
- end
- end
- end
-
- class Destroy < Finder
- def run
- post.destroy
- redirect_to posts_url
- end
- end
-end
View
62 spec/controll-app/config/routes.rb
@@ -1,62 +0,0 @@
-App::Application.routes.draw do
- focused_controller_routes do
- resources :posts
- end
-
- # The priority is based upon order of creation:
- # first created -> highest priority.
-
- # Sample of regular route:
- # match 'products/:id' => 'catalog#view'
- # Keep in mind you can assign values other than :controller and :action
-
- # Sample of named route:
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
- # This route can be invoked with purchase_url(:id => product.id)
-
- # Sample resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
-
- # Sample resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
- #
- # collection do
- # get 'sold'
- # end
- # end
-
- # Sample resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
-
- # Sample resource route with more complex sub-resources
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', :on => :collection
- # end
- # end
-
- # Sample resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
-
- # You can have the root of your site routed with "root"
- # just remember to delete public/index.html.
- # root :to => 'welcome#index'
-
- # See how all your routes lay out with "rake routes"
-
- # This is a legacy wild controller route that's not recommended for RESTful applications.
- # Note: This route will make all actions in every controller accessible via GET requests.
- # match ':controller(/:action(/:id))(.:format)'
-end
View
8 spec/controll/enabler/macros_spec.rb
@@ -30,7 +30,7 @@ class Services < Assistant
end
end
-module FlowHandlers
+module Flows
class Services < Master
end
end
@@ -65,12 +65,12 @@ class Services < Master
its(:assistant) { should be_a Assistants::Services }
end
- describe '.flow_handler name, options = {}' do
+ describe '.flow name, options = {}' do
before :all do
- controller.flow_handler :services
+ controller.flow :services
end
- its(:flow_handler) { should be_a FlowHandlers::Services }
+ its(:flow) { should be_a Flows::Services }
end
end
end
View
2 spec/controll/enabler/path_resolver_spec.rb
@@ -16,7 +16,7 @@ def perfect
end
end
-ActionMapper = Controll::FlowHandler::ActionMapper
+ActionMapper = Controll::Flow::ActionMapper
class Redirecter < ActionMapper::Complex
end
View
14 ...low_handler/action_mapper/complex_spec.rb → ...ntroll/flow/action_mapper/complex_spec.rb
@@ -1,10 +1,10 @@
require 'spec_helper'
-class HelloToWelcomeRedirect < Controll::FlowHandler::Redirect
+class HelloToWelcomeRedirect < Controll::Flow::Redirect
set_redirections :welcome => [:hello, :hi]
end
-class ErrorBadRedirect < Controll::FlowHandler::Redirect
+class ErrorBadRedirect < Controll::Flow::Redirect
set_redirections :error, bad: ['bad_payment', 'wrong_payment']
end
@@ -16,7 +16,7 @@ def error name
Hashie::Mash.new(name: name.to_sym, type: :error)
end
-describe Controll::FlowHandler::Redirect do
+describe Controll::Flow::Redirect do
describe 'class macros' do
before :all do
@@ -35,13 +35,13 @@ def error name
context 'use directly without subclassing' do
subject { clazz.new '/' }
- let(:clazz) { Controll::FlowHandler::Redirect }
+ let(:clazz) { Controll::Flow::Redirect }
let(:hello) { notification :hello }
describe '.action event' do
specify do
- expect { clazz.action(:hello) }.to raise_error(Controll::FlowHandler::Redirect::NoRedirectionFoundError)
+ expect { clazz.action(:hello) }.to raise_error(Controll::Flow::Redirect::NoRedirectionFoundError)
end
end
end
@@ -54,7 +54,7 @@ def error name
context 'has redirections' do
describe '.action event' do
specify do
- expect { clazz.action(:hello) }.to_not raise_error(Controll::FlowHandler::Redirect::NoRedirectionFoundError)
+ expect { clazz.action(:hello) }.to_not raise_error(Controll::Flow::Redirect::NoRedirectionFoundError)
end
specify do
@@ -76,7 +76,7 @@ def error name
context 'has error redirections' do
describe '.action event' do
specify do
- expect { clazz.action(:hello) }.to raise_error(Controll::FlowHandler::NoRedirectionFoundError)
+ expect { clazz.action(:hello) }.to raise_error(Controll::Flow::NoRedirectionFoundError)
end
specify do
View
6 ...ow_handler/action_mapper/fallback_spec.rb → ...troll/flow/action_mapper/fallback_spec.rb
@@ -6,10 +6,10 @@ def do_fallback fallback
end
end
-class BasicFallback < Controll::FlowHandler::Fallback
+class BasicFallback < Controll::Flow::Fallback
end
-describe Controll::FlowHandler::Fallback do
+describe Controll::Flow::Fallback do
context 'Basic default fallback' do
subject { clazz.new controller, event }
@@ -21,7 +21,7 @@ class BasicFallback < Controll::FlowHandler::Fallback
describe '.action controller, event' do
specify do
- clazz.action(controller, event).should be_a Controll::FlowHandler::Fallback
+ clazz.action(controller, event).should be_a Controll::Flow::Fallback
end
end
View
16 ...low_handler/action_mapper/simlple_spec.rb → ...ntroll/flow/action_mapper/simlple_spec.rb
@@ -1,18 +1,18 @@
require 'spec_helper'
-class NoEventsRender < Controll::FlowHandler::Render
+class NoEventsRender < Controll::Flow::Render
def self.events
[]
end
end
-class HiRender < Controll::FlowHandler::Render
+class HiRender < Controll::Flow::Render
def self.events
[:hi]
end
end
-class HelloRender < Controll::FlowHandler::Render
+class HelloRender < Controll::Flow::Render
events :hello, :damn
set_default_path '/default'
end
@@ -21,18 +21,18 @@ def notification name
Hashie::Mash.new(name: name.to_sym, type: :notification)
end
-describe Controll::FlowHandler::Render do
+describe Controll::Flow::Render do
context 'use directly without sublclassing' do
subject { clazz.new '/' }
- let(:clazz) { Controll::FlowHandler::Render }
+ let(:clazz) { Controll::Flow::Render }
let(:hello) { notification :hello }
describe '.action event' do
specify do
- expect { clazz.action(:hello) }.to raise_error(Controll::FlowHandler::NoEventsDefinedError)
+ expect { clazz.action(:hello) }.to raise_error(Controll::Flow::NoEventsDefinedError)
end
end
end
@@ -45,7 +45,7 @@ def notification name
context 'empty events' do
describe '.action event' do
specify do
- expect { clazz.action(:hello) }.to raise_error(Controll::FlowHandler::NoEventsDefinedError)
+ expect { clazz.action(:hello) }.to raise_error(Controll::Flow::NoEventsDefinedError)
end
end
end
@@ -62,7 +62,7 @@ def notification name
describe 'does not respond to hello' do
specify do
- expect { clazz.action(:hello) }.to_not raise_error(Controll::FlowHandler::Render::NoEventsDefinedError)
+ expect { clazz.action(:hello) }.to_not raise_error(Controll::Flow::Render::NoEventsDefinedError)
end
specify do
View
6 ..._handler/event_mapper/path_finder_spec.rb → ...oll/flow/event_mapper/path_finder_spec.rb
@@ -8,7 +8,7 @@ def error name
Hashie::Mash.new(name: name.to_sym, type: :error)
end
-describe Controll::FlowHandler::Redirect::Action do
+describe Controll::Flow::Redirect::Action do
let(:redirections) do
{
:error => error_map, :notice => notice_map
@@ -29,15 +29,15 @@ def error name
let(:types) { [:notice, :error] }
context 'use' do
- let(:clazz) { Controll::FlowHandler::Redirect::Action }
+ let(:clazz) { Controll::Flow::Redirect::Action }
let(:hello) { notice :hello }
let(:bad_payment) { error :bad_payment }
describe '.action event' do
subject { clazz.new hello, redirections, types }
specify do
- expect { subject.map }.to_not raise_error(Controll::FlowHandler::NoRedirectionFoundError)
+ expect { subject.map }.to_not raise_error(Controll::Flow::NoRedirectionFoundError)
end
specify do
View
4 ...ll/flow_handler/event_mapper/util_spec.rb → spec/controll/flow/event_mapper/util_spec.rb
@@ -8,7 +8,7 @@ def error name
Hashie::Mash.new(name: name.to_sym, type: :error)
end
-describe Controll::FlowHandler::Redirect::Mapper do
+describe Controll::Flow::Redirect::Mapper do
let(:redirections) do
{
:error => error_map, :notice => notice_map
@@ -31,7 +31,7 @@ def error name
context 'use' do
subject { clazz.new hello, notice_map }
- let(:clazz) { Controll::FlowHandler::Redirect::Mapper }
+ let(:clazz) { Controll::Flow::Redirect::Mapper }
let(:hello) { notice :hello }
let(:bad_payment) { error :bad_payment }
View
38 spec/controll/flow_handler/master_spec.rb → spec/controll/flow/master_spec.rb
@@ -12,7 +12,7 @@ def default
end
end
-module FlowHandlers
+module Flows
class EmptyEvent < Master
def event
end
@@ -48,19 +48,19 @@ def event
end
end
-ActionMapper = Controll::FlowHandler::ActionMapper
+ActionMapper = Controll::Flow::ActionMapper
Action = ActionMapper::Action
PathAction = ActionMapper::PathAction
Fallback = ActionMapper::Fallback
Simple = ActionMapper::Simple
Complex = ActionMapper::Complex
-describe Controll::FlowHandler::Master do
+describe Controll::Flow::Master do
context 'use directly without sublclassing' do
- subject { flow_handler.new controller }
+ subject { flow.new controller }
- let(:flow_handler) { Controll::FlowHandler::Master }
+ let(:flow) { Controll::Flow::Master }
let(:controller) { MyController::Update.new }
describe '.initialize' do
@@ -71,15 +71,15 @@ def event
describe '.execute' do
specify do
- expect { subject.execute }.to raise_error(Controll::FlowHandler::EventNotImplementedError)
+ expect { subject.execute }.to raise_error(Controll::Flow::EventNotImplementedError)
end
end
end
- context 'A Control FlowHandler with empty #event method' do
- subject { flow_handler.new controller }
+ context 'A Control Flow with empty #event method' do
+ subject { flow.new controller }
- let(:flow_handler) { FlowHandlers::EmptyEvent }
+ let(:flow) { Flows::EmptyEvent }
let(:controller) { MyController::Update.new }
describe '.initialize' do
@@ -100,10 +100,10 @@ def event
end
end
- context 'A Control FlowHandler where #event returns :update notice event' do
- subject { flow_handler.new controller }
+ context 'A Control Flow where #event returns :update notice event' do
+ subject { flow.new controller }
- let(:flow_handler) { FlowHandlers::UpdateEventWithoutHandler }
+ let(:flow) { Flows::UpdateEventWithoutHandler }
let(:controller) { MyController::Update.new }
describe '.initialize' do
@@ -120,10 +120,10 @@ def event
end
end
- context 'A Control FlowHandler where #event returns :update notice event and has a Render class with matching mapping' do
- subject { flow_handler.new controller }
+ context 'A Control Flow where #event returns :update notice event and has a Render class with matching mapping' do
+ subject { flow.new controller }
- let(:flow_handler) { FlowHandlers::UpdateEvent }
+ let(:flow) { Flows::UpdateEvent }
let(:controller) { MyController::Update.new }
describe '.initialize' do
@@ -135,7 +135,7 @@ def event
describe '.execute' do
# since event returns nil
specify do
- expect { subject.execute }.to_not raise_error(Controll::FlowHandler::ActionEventError)
+ expect { subject.execute }.to_not raise_error(Controll::Flow::ActionEventError)
end
specify do
@@ -144,10 +144,10 @@ def event
end
end
- context 'A Control FlowHandler where #event returns :update notice event and has a Render class with NO matching mapping' do
- subject { flow_handler.new controller }
+ context 'A Control Flow where #event returns :update notice event and has a Render class with NO matching mapping' do
+ subject { flow.new controller }
- let(:flow_handler) { FlowHandlers::UpdateEventNoMatch }
+ let(:flow) { Flows::UpdateEventNoMatch }
let(:controller) { MyController::Update.new }
describe '.initialize' do
View
0 spec/controll-app/.gitignore → spec/controll_app/.gitignore
File renamed without changes.
View
0 spec/controll-app/Gemfile → spec/controll_app/Gemfile
File renamed without changes.
View
0 spec/controll-app/Gemfile.lock → spec/controll_app/Gemfile.lock
File renamed without changes.
View
0 spec/controll-app/README.rdoc → spec/controll_app/README.rdoc
File renamed without changes.
View
0 spec/controll-app/Rakefile → spec/controll_app/Rakefile
File renamed without changes.
View
0 ...controll/commanders/services_commander.rb → ...controll/commanders/services_commander.rb
File renamed without changes.
View
0 ...p/controll/executors/services_executor.rb → ...p/controll/executors/services_executor.rb
File renamed without changes.
View
4 ...controll/flow_handlers/create_services.rb → ...app/app/controll/flows/create_services.rb
@@ -1,5 +1,5 @@
-module FlowHandlers
- class CreateServices < FlowHandler
+module Flows
+ class CreateServices < Flow
renderer :simple do
end
View
0 ...p/controll/notifiers/services_notifier.rb → ...p/controll/notifiers/services_notifier.rb
File renamed without changes.
View
0 ...app/controllers/application_controller.rb → ...app/controllers/application_controller.rb
File renamed without changes.
View
0 ...pp/app/controllers/services_controller.rb → ...pp/app/controllers/services_controller.rb
File renamed without changes.
View
0 spec/controll-app/vendor/plugins/.gitkeep → spec/controll_app/app/models/.gitkeep
File renamed without changes.
View
0 spec/controll-app/app/models/post.rb → spec/controll_app/app/models/post.rb
File renamed without changes.
View
0 ...pp/app/views/layouts/application.html.erb → ...pp/app/views/layouts/application.html.erb
File renamed without changes.
View
0 ...ntroll-app/app/views/posts/_form.html.erb → ...ntroll_app/app/views/posts/_form.html.erb
File renamed without changes.
View
0 ...ontroll-app/app/views/posts/edit.html.erb → ...ontroll_app/app/views/posts/edit.html.erb
File renamed without changes.
View
0 ...ntroll-app/app/views/posts/index.html.erb → ...ntroll_app/app/views/posts/index.html.erb
File renamed without changes.
View
0 ...controll-app/app/views/posts/new.html.erb → ...controll_app/app/views/posts/new.html.erb
File renamed without changes.
View
0 ...ontroll-app/app/views/posts/show.html.erb → ...ontroll_app/app/views/posts/show.html.erb
File renamed without changes.
View
0 spec/controll-app/config.ru → spec/controll_app/config.ru
File renamed without changes.
View
2 spec/controll-app/config/application.rb → spec/controll_app/config/application.rb
@@ -5,7 +5,7 @@
Bundler.require
-module App
+module ControllApp
class Application < Rails::Application
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
View
0 spec/controll-app/config/boot.rb → spec/controll_app/config/boot.rb
File renamed without changes.
View
0 spec/controll-app/config/environment.rb → spec/controll_app/config/environment.rb
File renamed without changes.
View
0 ...ll-app/config/environments/development.rb → ...ll_app/config/environments/development.rb
File renamed without changes.
View
0 .../controll-app/config/environments/test.rb → .../controll_app/config/environments/test.rb
File renamed without changes.
View
0 ...onfig/initializers/backtrace_silencers.rb → ...onfig/initializers/backtrace_silencers.rb
File renamed without changes.
View
0 ...ll-app/config/initializers/inflections.rb → ...ll_app/config/initializers/inflections.rb
File renamed without changes.
View
0 ...oll-app/config/initializers/mime_types.rb → ...oll_app/config/initializers/mime_types.rb
File renamed without changes.
View
0 ...l-app/config/initializers/secret_token.rb → ...l_app/config/initializers/secret_token.rb
File renamed without changes.
View
0 ...-app/config/initializers/session_store.rb → ..._app/config/initializers/session_store.rb
File renamed without changes.
View
0 spec/controll-app/config/locales/en.yml → spec/controll_app/config/locales/en.yml
File renamed without changes.
View
5 spec/controll_app/config/routes.rb
@@ -0,0 +1,5 @@
+ControllApp::Application.routes.draw do
+ focused_controller_routes do
+ resources :services
+ end
+end
View
0 spec/controll-app/db/seeds.rb → spec/controll_app/db/seeds.rb
File renamed without changes.
View
0 ...ll-app/vendor/assets/stylesheets/.gitkeep → spec/controll_app/lib/assets/.gitkeep
File renamed without changes.
View
0 ...ll-app/vendor/assets/javascripts/.gitkeep → spec/controll_app/lib/tasks/.gitkeep
File renamed without changes.
View
0 spec/controll-app/test/unit/.gitkeep → spec/controll_app/log/.gitkeep
File renamed without changes.
View
0 spec/controll-app/public/404.html → spec/controll_app/public/404.html
File renamed without changes.
View
0 spec/controll-app/public/422.html → spec/controll_app/public/422.html
File renamed without changes.
View
0 spec/controll-app/public/500.html → spec/controll_app/public/500.html
File renamed without changes.
View
0 spec/controll-app/public/favicon.ico → spec/controll_app/public/favicon.ico
File renamed without changes.
View
0 spec/controll-app/public/index.html → spec/controll_app/public/index.html
File renamed without changes.
View
0 ...oll-app/public/javascripts/application.js → ...oll_app/public/javascripts/application.js
File renamed without changes.
View
0 spec/controll-app/public/robots.txt → spec/controll_app/public/robots.txt
File renamed without changes.
View
0 ...ll-app/public/stylesheets/application.css → ...ll_app/public/stylesheets/application.css
File renamed without changes.
View
0 spec/controll-app/script/rails → spec/controll_app/script/rails
File renamed without changes.
View
0 ...spec/controllers/posts_controller_spec.rb → ...spec/controllers/posts_controller_spec.rb
File renamed without changes.
View
0 ...controll-app/spec/isolated_spec_helper.rb → ...controll_app/spec/isolated_spec_helper.rb
File renamed without changes.
View
0 spec/controll-app/spec/spec_helper.rb → spec/controll_app/spec/spec_helper.rb
File renamed without changes.
View
0 ...rollers/posts_controller_isolated_spec.rb → ...rollers/posts_controller_isolated_spec.rb
File renamed without changes.
View
0 ...unit/controllers/posts_controller_spec.rb → ...unit/controllers/posts_controller_spec.rb
File renamed without changes.
View
0 spec/controll-app/test/functional/.gitkeep → spec/controll_app/test/functional/.gitkeep
File renamed without changes.
View
0 .../test/functional/posts_controller_test.rb → .../test/functional/posts_controller_test.rb
File renamed without changes.
View
0 ...controll-app/test/isolated_test_helper.rb → ...controll_app/test/isolated_test_helper.rb
File renamed without changes.
View
0 spec/controll-app/test/test_helper.rb → spec/controll_app/test/test_helper.rb
File renamed without changes.
View
0 spec/controll-app/log/.gitkeep → spec/controll_app/test/unit/.gitkeep
File renamed without changes.
View
0 ...rollers/posts_controller_isolated_test.rb → ...rollers/posts_controller_isolated_test.rb
File renamed without changes.
View
0 ...unit/controllers/posts_controller_test.rb → ...unit/controllers/posts_controller_test.rb
File renamed without changes.
View
0 spec/controll-app/lib/tasks/.gitkeep → ...ll_app/vendor/assets/javascripts/.gitkeep
File renamed without changes.
View
0 spec/controll-app/lib/assets/.gitkeep → ...ll_app/vendor/assets/stylesheets/.gitkeep
File renamed without changes.
View
0 spec/controll-app/app/models/.gitkeep → spec/controll_app/vendor/plugins/.gitkeep
File renamed without changes.

0 comments on commit c265e4c

Please sign in to comment.
Something went wrong with that request. Please try again.