fizx-collapsed_routes 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{collapsed_routes}
5
- s.version = "1.0.2"
5
+ s.version = "1.1.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Kyle Maxwell"]
9
- s.date = %q{2009-06-23}
9
+ s.date = %q{2009-06-25}
10
10
  s.email = %q{kyle@kylemaxwell.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -19,6 +19,7 @@ private
19
19
  end
20
20
 
21
21
  def collapse(names)
22
+ logger = ActionController::Base.logger
22
23
  base = names[-1].singularize
23
24
  parent = names[-2].singularize
24
25
  series = names.map(&:singularize).join("_")
@@ -29,6 +30,11 @@ private
29
30
  backtrack_parent = backtrack reversed
30
31
 
31
32
  %w[path url].each do |path|
33
+ logger.info "Defining route: #{base}_#{path}(#{base} = @#{base})"
34
+ logger.info "Defining route: edit_#{base}_#{path}(#{base} = @#{base})"
35
+ logger.info "Defining route: new_#{base}_#{path}(#{parent} = @#{parent})"
36
+ logger.info "Defining route: #{base.pluralize}_#{path}(#{parent} = @#{parent})"
37
+
32
38
  ActionController::UrlWriter.module_eval <<-RUBY
33
39
  def #{base}_#{path}(#{base} = @#{base})
34
40
  #{series}_#{path}(#{backtrack_base})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fizx-collapsed_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Maxwell
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-23 00:00:00 -07:00
12
+ date: 2009-06-25 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15