action-hero 0.2.0 → 0.2.1

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: 434b3671e7e32c30c300da0a69a343c8c06566ea
4
- data.tar.gz: 3abb0c879b821b3cfda7d762ed732d4ab8596212
3
+ metadata.gz: 6057b9222d7571f299d78e40cadd431c2ddbcaa3
4
+ data.tar.gz: ff3b6a775b8cd1f562de753884d1bbc243642c00
5
5
  SHA512:
6
- metadata.gz: 25ffffedc01886a86d605046f086604a0db2172b44965b713483b6e90dc71ef98ca842bedd51e674adce7178e076946225558d618f1230db1b9efaad861fce55
7
- data.tar.gz: 607d2cc784c0548b623e23b8d44882e929c298b5740f08d9f027e040929a70edf486041ecba8a37be31ce82138528693afd16bd41f7e712b02f54203c836a78e
6
+ metadata.gz: beb75d606792a82bfceb31f638512da2d1d050c3b9cf98d1a0e5d94fd7fa37a1ea84662673e4e3062199eb4501b1d5e87bf4383c0267dcbf9b5d8c9ac399c34f
7
+ data.tar.gz: 13bd2fd605606fe06bcac1e5b1f779b64ee9b67b22b444d695094c41ce43f58e90f7390580204f46c73ae4647faf6cc4ab339c2056c8953c935316d6b58d88a2
data/README.md CHANGED
@@ -153,7 +153,7 @@ Define a controller with a show action method and define an action class for the
153
153
  # app/actions/things/index.rb
154
154
  module Things
155
155
  class Index
156
- include ActionHero::action
156
+ include ActionHero::Action
157
157
 
158
158
  def call
159
159
  ...
@@ -163,7 +163,7 @@ Define a controller with a show action method and define an action class for the
163
163
 
164
164
  ### Controller Methods Available in Action Class
165
165
 
166
- The following methods forwarded from the the action class to the controller.
166
+ The following methods forward from the the action class to the controller.
167
167
 
168
168
  * action_name
169
169
  * env
@@ -1,5 +1,5 @@
1
1
  module ActionHero
2
2
 
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
 
5
5
  end
@@ -3,8 +3,6 @@ module ActionDispatch
3
3
  class RouteSet
4
4
  class Dispatcher
5
5
 
6
- private
7
-
8
6
  def controller(params, default_controller=true)
9
7
  if params && params.key?(:controller)
10
8
  controller_param = params[:controller]
@@ -15,6 +13,8 @@ module ActionDispatch
15
13
  raise ActionController::RoutingError, e.message, e.backtrace if default_controller
16
14
  end
17
15
 
16
+ private
17
+
18
18
  def controller_reference(controller_param, action_param)
19
19
  const_name = @controller_class_names[controller_param] ||= "#{controller_param.camelize}Controller"
20
20
  ActiveSupport::Dependencies.constantize(const_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action-hero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson