sinatra 1.4.0.b → 1.4.0.c

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sinatra might be problematic. Click here for more details.

data/CHANGES CHANGED
@@ -97,6 +97,9 @@
97
97
  * Recalculate Content-Length even if hard coded if body is reset. Relevant
98
98
  mostly for error handlers. (Nathan Esquenazi, Konstantin Haase)
99
99
 
100
+ * Plus sing is once again kept as such when used for URL matches. (Konstantin
101
+ Haase)
102
+
100
103
  * Take views option into account for template caching. (Konstantin Haase)
101
104
 
102
105
  = 1.3.5 / 2013-02-25
@@ -950,7 +950,7 @@ module Sinatra
950
950
  route = @request.path_info
951
951
  route = '/' if route.empty? and not settings.empty_path_info?
952
952
  return unless match = pattern.match(route)
953
- values += match.captures.to_a.map { |v| force_encoding URI.decode_www_form_component(v) if v }
953
+ values += match.captures.to_a.map { |v| force_encoding URI.decode(v) if v }
954
954
 
955
955
  if values.any?
956
956
  original, @params = params, params.merge('splat' => [], 'captures' => values)
@@ -1,3 +1,3 @@
1
1
  module Sinatra
2
- VERSION = '1.4.0.b'
2
+ VERSION = '1.4.0.c'
3
3
  end
@@ -359,15 +359,15 @@ class RoutingTest < Test::Unit::TestCase
359
359
  assert not_found?
360
360
  end
361
361
 
362
- it "converts plus sign into space as the value of a named param" do
363
- mock_app {
362
+ it "does not convert plus sign into space as the value of a named param" do
363
+ mock_app do
364
364
  get '/:test' do
365
365
  params["test"]
366
366
  end
367
- }
367
+ end
368
368
  get '/bob+ross'
369
369
  assert ok?
370
- assert_equal 'bob ross', body
370
+ assert_equal 'bob+ross', body
371
371
  end
372
372
 
373
373
  it "literally matches parens in paths" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.b
4
+ version: 1.4.0.c
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -230,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  segments:
232
232
  - 0
233
- hash: -3758604451509005806
233
+ hash: 1094328235790677527
234
234
  required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  none: false
236
236
  requirements: