actionpack 4.1.0.beta2 → 4.1.0.rc1

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

Potentially problematic release.


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

Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +241 -10
  3. data/MIT-LICENSE +1 -1
  4. data/lib/abstract_controller/rendering.rb +4 -3
  5. data/lib/action_controller/log_subscriber.rb +9 -0
  6. data/lib/action_controller/metal/head.rb +1 -1
  7. data/lib/action_controller/metal/live.rb +3 -1
  8. data/lib/action_controller/metal/mime_responds.rb +66 -27
  9. data/lib/action_controller/metal/params_wrapper.rb +11 -4
  10. data/lib/action_controller/metal/rack_delegation.rb +2 -2
  11. data/lib/action_controller/metal/renderers.rb +1 -1
  12. data/lib/action_controller/metal/rendering.rb +38 -8
  13. data/lib/action_controller/metal/strong_parameters.rb +26 -14
  14. data/lib/action_controller/railtie.rb +1 -0
  15. data/lib/action_controller/test_case.rb +3 -0
  16. data/lib/action_dispatch.rb +5 -7
  17. data/lib/action_dispatch/http/filter_redirect.rb +5 -4
  18. data/lib/action_dispatch/http/mime_negotiation.rb +5 -3
  19. data/lib/action_dispatch/http/mime_type.rb +1 -1
  20. data/lib/action_dispatch/http/response.rb +14 -2
  21. data/lib/action_dispatch/journey/formatter.rb +2 -2
  22. data/lib/action_dispatch/journey/router.rb +1 -7
  23. data/lib/action_dispatch/journey/visitors.rb +24 -4
  24. data/lib/action_dispatch/middleware/cookies.rb +85 -20
  25. data/lib/action_dispatch/middleware/flash.rb +20 -7
  26. data/lib/action_dispatch/middleware/reloader.rb +11 -2
  27. data/lib/action_dispatch/middleware/remote_ip.rb +2 -2
  28. data/lib/action_dispatch/middleware/static.rb +3 -3
  29. data/lib/action_dispatch/railtie.rb +2 -0
  30. data/lib/action_dispatch/request/utils.rb +15 -4
  31. data/lib/action_dispatch/routing/inspector.rb +4 -4
  32. data/lib/action_dispatch/routing/mapper.rb +27 -9
  33. data/lib/action_dispatch/routing/redirection.rb +18 -8
  34. data/lib/action_dispatch/routing/route_set.rb +24 -30
  35. data/lib/action_dispatch/testing/assertions/routing.rb +1 -1
  36. data/lib/action_dispatch/testing/integration.rb +2 -2
  37. data/lib/action_pack.rb +1 -1
  38. data/lib/action_pack/version.rb +1 -1
  39. metadata +7 -7
@@ -211,7 +211,7 @@ module ActionDispatch
211
211
  def fail_on(exception_class)
212
212
  yield
213
213
  rescue exception_class => e
214
- raise MiniTest::Assertion, e.message
214
+ raise Minitest::Assertion, e.message
215
215
  end
216
216
  end
217
217
  end
@@ -137,7 +137,7 @@ module ActionDispatch
137
137
  class Session
138
138
  DEFAULT_HOST = "www.example.com"
139
139
 
140
- include MiniTest::Assertions
140
+ include Minitest::Assertions
141
141
  include TestProcess, RequestHelpers, Assertions
142
142
 
143
143
  %w( status status_message headers body redirect? ).each do |method|
@@ -242,7 +242,7 @@ module ActionDispatch
242
242
  @https = flag
243
243
  end
244
244
 
245
- # Return +true+ if the session is mimicking a secure HTTPS request.
245
+ # Returns +true+ if the session is mimicking a secure HTTPS request.
246
246
  #
247
247
  # if session.https?
248
248
  # ...
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2004-2013 David Heinemeier Hansson
2
+ # Copyright (c) 2004-2014 David Heinemeier Hansson
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,7 +1,7 @@
1
1
  module ActionPack
2
2
  # Returns the version of the currently loaded ActionPack as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new "4.1.0.beta2"
4
+ Gem::Version.new "4.1.0.rc1"
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.beta2
4
+ version: 4.1.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.0.beta2
19
+ version: 4.1.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.0.beta2
26
+ version: 4.1.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 4.1.0.beta2
61
+ version: 4.1.0.rc1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 4.1.0.beta2
68
+ version: 4.1.0.rc1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 4.1.0.beta2
75
+ version: 4.1.0.rc1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 4.1.0.beta2
82
+ version: 4.1.0.rc1
83
83
  description: Web apps on Rails. Simple, battle-tested conventions for building and
84
84
  testing MVC web applications. Works with any Rack-compatible server.
85
85
  email: david@loudthinking.com