rambler 0.1.2 → 0.1.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -25,18 +25,18 @@ module Rambler
25
25
  extend ActiveSupport::Concern
26
26
 
27
27
  def mount_controller(con)
28
+
29
+ controller_class = [@scope[:module],"#{con}_controller"].join("/").camelize.constantize
28
30
 
29
- if con.is_a?(String) || con.is_a?(Symbol)
30
- con = "#{con}_controller".camelize.constantize
31
- end
32
-
33
- self.controller "site/site" do
34
- con.mappings.each do |mapping|
31
+ self.controller(con) do
32
+ controller_class.mappings.each do |mapping|
35
33
  options = mapping[:options].merge({ :action => mapping[:name] })
36
34
  self.match mapping[:path], options
37
35
  end
38
36
  end
39
37
 
40
38
  end
39
+
40
+
41
41
  end
42
42
  end
data/rambler.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rambler"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
12
- s.date = "2012-07-29"
12
+ s.date = "2012-08-19"
13
13
  s.description = "Rambler provides a Sinatra-like DSL that makes easy to write and manage non-RESTful controllers."
14
14
  s.email = "maurizio.cas@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rambler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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-07-29 00:00:00.000000000 Z
12
+ date: 2012-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  segments:
96
96
  - 0
97
- hash: 3335744236890325196
97
+ hash: -1800226839117287513
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements: