trestle_generator 1.1.7.1 → 1.1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +10 -0
  2. data/templates/routes.rb +3 -4
  3. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,6 +1,16 @@
1
1
  *SVN*
2
2
 
3
3
 
4
+ *1.1.7.2* (August 2nd, 2006)
5
+
6
+ * Fix bug in routes that substitutes /:controller/:id/show for /:controller/:id. [carl@youngbloods.org]
7
+
8
+
9
+ *1.1.7.1* (July 19th, 2006)
10
+
11
+ * Assert bare template names instead of forcing a plural-model-name prefix. [njonsson]
12
+
13
+
4
14
  *1.1.7* (July 1st, 2006)
5
15
 
6
16
  * Add CHANGELOG to gemspec. [njonsson]
data/templates/routes.rb CHANGED
@@ -18,12 +18,11 @@ ActionController::Routing::Routes.draw do |map|
18
18
  map.connect ':controller/service.wsdl', :action => 'wsdl'
19
19
 
20
20
  # Install the default route as the lowest priority.
21
- id_requirement = /[\d]+/
21
+ id_requirement = /\d+/
22
22
  action_requirement = /[A-Za-z]\S*/
23
23
  map.connect ':controller/:action', :action => 'list<%= suffix %>',
24
24
  :requirements => { :action => action_requirement }
25
- map.connect ':controller/:id', :action => 'show<%= suffix %>',
26
- :requirements => { :id => id_requirement }
27
- map.connect ':controller/:id/:action', :requirements => { :id => id_requirement,
25
+ map.connect ':controller/:id/:action', :action => 'show<%= suffix %>',
26
+ :requirements => { :id => id_requirement,
28
27
  :action => action_requirement }
29
28
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: trestle_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.7.1
7
- date: 2006-07-19 00:00:00 -05:00
6
+ version: 1.1.7.2
7
+ date: 2006-08-02 00:00:00 -05:00
8
8
  summary: "[Rails] A drop-in replacement for the scaffold generator that produces production-ready controllers that are safe from state-changing HTTP GET requests and that have streamlined URLs."
9
9
  require_paths:
10
10
  - templates