route_downcaser 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.
data/README.rdoc CHANGED
@@ -8,7 +8,7 @@ This gem hooks into the Rack middleware of Rails. This way all paths are downcas
8
8
 
9
9
  == Requirements
10
10
 
11
- This gem has been tested with Rails 3.+ and Sinatra
11
+ This gem has been tested with Rails 3.+, Rails 4.0, and Sinatra
12
12
 
13
13
  If you want this functionality in a Rails 2.x application, please refer to {this blog post}[http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive].
14
14
 
@@ -76,6 +76,10 @@ All it really does is to take the path and downcase it before dispatching. Query
76
76
 
77
77
  == Changelog
78
78
 
79
+ === 0.2.1
80
+
81
+ The gem has now been tested to work with Rails 4.0 (it mostly involved changes in the test dummy-app because of deprecations between Rails 3.2 and 4.0)
82
+
79
83
  === 0.2.0
80
84
 
81
85
  Asset urls are now ignored - important since filesystems may be case sensitive. Thanks goes to {Casey Pugh}[https://github.com/caseypugh]
@@ -1,3 +1,3 @@
1
1
  module RouteDowncaser
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -2,7 +2,6 @@ require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  require "action_controller/railtie"
4
4
  require "action_mailer/railtie"
5
- require "active_resource/railtie"
6
5
  require "rails/test_unit/railtie"
7
6
  require "sprockets/railtie"
8
7
 
@@ -6,9 +6,6 @@ Dummy::Application.configure do
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
9
  # Show full error reports and disable caching
13
10
  config.consider_all_requests_local = true
14
11
  config.action_controller.perform_caching = false
@@ -34,4 +31,6 @@ Dummy::Application.configure do
34
31
 
35
32
  # Expands the lines which load the assets
36
33
  config.assets.debug = true
34
+
35
+ config.eager_load = false
37
36
  end
@@ -64,4 +64,6 @@ Dummy::Application.configure do
64
64
  # Log the query plan for queries taking more than this (works
65
65
  # with SQLite, MySQL, and PostgreSQL)
66
66
  # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+
68
+ config.eager_load = true
67
69
  end
@@ -11,9 +11,6 @@ Dummy::Application.configure do
11
11
  config.serve_static_assets = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
14
  # Show full error reports and disable caching
18
15
  config.consider_all_requests_local = true
19
16
  config.action_controller.perform_caching = false
@@ -34,4 +31,6 @@ Dummy::Application.configure do
34
31
 
35
32
  # Print deprecation notices to the stderr
36
33
  config.active_support.deprecation = :stderr
34
+
35
+ config.eager_load = false
37
36
  end
@@ -5,3 +5,4 @@
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
7
  Dummy::Application.config.secret_token = '74c0353f079452c53b67b6ba76d51f464857e09f98e220e35971deed9c73d3ea2d31ce655b3ffffda15df30605606a47dc32a519618557d9b0b7fd1f72c3d08a'
8
+ Dummy::Application.config.secret_key_base = 'theyretakingthehobbitstoisengard'
@@ -1,5 +1,5 @@
1
1
  Dummy::Application.routes.draw do
2
- match "hello/world"
2
+ get "hello/world"
3
3
 
4
4
  # The priority is based upon order of creation:
5
5
  # first created -> highest priority.
@@ -181,3 +181,59 @@ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-02-16 16:45:56 +0100
181
181
  Processing by HelloController#world as HTML
182
182
  Rendered text template (0.0ms)
183
183
  Completed 200 OK in 15ms (Views: 14.5ms)
184
+ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-09-02 09:32:51 +0200
185
+ Processing by HelloController#world as HTML
186
+ Rendered text template (0.0ms)
187
+ Completed 200 OK in 22ms (Views: 21.5ms)
188
+ -----------------------------------------------------------
189
+ RouteDowncaserTest: test_REQUEST_URI_path-part_is_downcased
190
+ -----------------------------------------------------------
191
+ ---------------------------------------------------------------------------
192
+ RouteDowncaserTest: test_REQUEST_URI_querystring_parameters_are_not_touched
193
+ ---------------------------------------------------------------------------
194
+ --------------------------------------------------------
195
+ RouteDowncaserTest: test_asset_filenames_are_not_touched
196
+ --------------------------------------------------------
197
+ ------------------------------------------------------
198
+ RouteDowncaserTest: test_entire_PATH_INFO_is_downcased
199
+ ------------------------------------------------------
200
+ -------------------------------------------------------------
201
+ RouteMiddlewareTest: test_Middleware_is_installed_and_working
202
+ -------------------------------------------------------------
203
+ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-09-02 09:41:04 +0200
204
+ Processing by HelloController#world as HTML
205
+ Rendered text template (0.1ms)
206
+ Completed 200 OK in 18ms (Views: 17.3ms)
207
+ -----------------------------------------------------------
208
+ RouteDowncaserTest: test_REQUEST_URI_path-part_is_downcased
209
+ -----------------------------------------------------------
210
+ ---------------------------------------------------------------------------
211
+ RouteDowncaserTest: test_REQUEST_URI_querystring_parameters_are_not_touched
212
+ ---------------------------------------------------------------------------
213
+ --------------------------------------------------------
214
+ RouteDowncaserTest: test_asset_filenames_are_not_touched
215
+ --------------------------------------------------------
216
+ ------------------------------------------------------
217
+ RouteDowncaserTest: test_entire_PATH_INFO_is_downcased
218
+ ------------------------------------------------------
219
+ -------------------------------------------------------------
220
+ RouteMiddlewareTest: test_Middleware_is_installed_and_working
221
+ -------------------------------------------------------------
222
+ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-09-02 09:42:52 +0200
223
+ Processing by HelloController#world as HTML
224
+ Rendered text template (0.1ms)
225
+ Completed 200 OK in 18ms (Views: 17.4ms)
226
+ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-09-02 09:43:18 +0200
227
+ Processing by HelloController#world as HTML
228
+ Rendered text template (0.0ms)
229
+ Completed 200 OK in 43ms (Views: 41.8ms)
230
+ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-09-02 09:49:56 +0200
231
+ Processing by HelloController#world as HTML
232
+ Rendered text template (0.0ms)
233
+ Completed 200 OK in 43ms (Views: 42.7ms)
234
+
235
+
236
+ Started GET "/HELLO/WORLD" for 127.0.0.1 at 2013-09-02 10:00:29 +0200
237
+ Processing by HelloController#world as HTML
238
+ Rendered text template (0.0ms)
239
+ Completed 200 OK in 47ms (Views: 45.9ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: route_downcaser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2013-02-16 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This gem hooks into the Rack middleware of Rails. This way all paths
15
15
  are downcased before dispatching to Rails' routing mechanism. Querystring parameters
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: -1435001433418053392
78
+ hash: 4407952237472228384
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  requirements:
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: -1435001433418053392
87
+ hash: 4407952237472228384
88
88
  requirements: []
89
89
  rubyforge_project:
90
90
  rubygems_version: 1.8.24