actionpack 5.0.0.rc2 → 5.0.0

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6726cfe03bb6979be6b223595d45593f3e2bdcad
4
- data.tar.gz: 6ba6ce511d37cf3402201f04b4aefa213f6c43c2
3
+ metadata.gz: 8239e3ff098205eff79538d15996287139df3fcf
4
+ data.tar.gz: ed9f876f38cfe7f6761ecd5e324c59e75ac6f7e1
5
5
  SHA512:
6
- metadata.gz: 68bf94b57261623153d59d7b8febcb5089681a2fb713ed2a0f59ce5da36d53f4f8f0d39f1a6020763ad4a172149645d2fc84da1adf3e16922cf2407ac376f543
7
- data.tar.gz: ae1832ea0ad9301e782cdacb4965d517f89b66b48d9974a5bd824fc3f861caf3c7f07019bda58bf2bb7cfd8014f4152f795db2b3bb02a01669143f12d2e36bbf
6
+ metadata.gz: 58e80527e7cd5b58317a12f71ce9bfb588fe88ea875a784e8a6550201b69a3243a6834f5690134a88dfe228a4d8d10b7fcf509c1664c770f375de1fd4d4483da
7
+ data.tar.gz: 65129fd8ebdb9dab225db3377b9aece51b1bad4c5404cf2c461827c3d7d3b623ba4c996f574ceedae8c4add1a15157e5f817dc1753ce9e8188adb239ac2dbd0f
@@ -1,18 +1,10 @@
1
- ## Rails 5.0.0.rc2 (June 22, 2016) ##
2
-
3
- * No changes.
4
-
5
-
6
- ## Rails 5.0.0.rc1 (May 06, 2016) ##
1
+ ## Rails 5.0.0 (June 30, 2016) ##
7
2
 
8
3
  * Add `ActionController#helpers` to get access to the view context at the controller
9
4
  level.
10
5
 
11
6
  *Rafael Mendonça França*
12
7
 
13
-
14
- ## Rails 5.0.0.beta4 (April 27, 2016) ##
15
-
16
8
  * Routing: Refactor `:action` default handling to ensure that path
17
9
  parameters are not mutated during route generation.
18
10
 
@@ -109,8 +101,6 @@
109
101
 
110
102
  *Godfrey Chan*, *Jon Moss*, *Kasper Timm Hansen*, *Mike Clark*, *Matthew Draper*
111
103
 
112
- ## Rails 5.0.0.beta3 (February 24, 2016) ##
113
-
114
104
  * Add "application/gzip" as a default mime type.
115
105
 
116
106
  *Mehmet Emin İNAÇ*
@@ -166,8 +156,6 @@
166
156
 
167
157
  *DHH*
168
158
 
169
- ## Rails 5.0.0.beta2 (February 01, 2016) ##
170
-
171
159
  * Add `-g` and `-c` options to `bin/rails routes`. These options return the url `name`, `verb` and
172
160
  `path` field that match the pattern or match a specific controller.
173
161
 
@@ -221,8 +209,6 @@
221
209
 
222
210
  *Justin Coyne*
223
211
 
224
- ## Rails 5.0.0.beta1 (December 18, 2015) ##
225
-
226
212
  * Deprecate `redirect_to :back` in favor of `redirect_back`, which accepts a
227
213
  required `fallback_location` argument, thus eliminating the possibility of a
228
214
  `RedirectBackError`.
@@ -1071,6 +1071,10 @@ module ActionDispatch
1071
1071
  def merge_shallow_scope(parent, child) #:nodoc:
1072
1072
  child ? true : false
1073
1073
  end
1074
+
1075
+ def merge_to_scope(parent, child)
1076
+ child
1077
+ end
1074
1078
  end
1075
1079
 
1076
1080
  # Resource routing allows you to quickly declare all of the common routes
@@ -1591,6 +1595,10 @@ module ActionDispatch
1591
1595
  raise ArgumentError, "Unknown scope #{on.inspect} given to :on"
1592
1596
  end
1593
1597
 
1598
+ if @scope[:to]
1599
+ options[:to] ||= @scope[:to]
1600
+ end
1601
+
1594
1602
  if @scope[:controller] && @scope[:action]
1595
1603
  options[:to] ||= "#{@scope[:controller]}##{@scope[:action]}"
1596
1604
  end
@@ -2030,7 +2038,7 @@ to this:
2030
2038
  class Scope # :nodoc:
2031
2039
  OPTIONS = [:path, :shallow_path, :as, :shallow_prefix, :module,
2032
2040
  :controller, :action, :path_names, :constraints,
2033
- :shallow, :blocks, :defaults, :via, :format, :options]
2041
+ :shallow, :blocks, :defaults, :via, :format, :options, :to]
2034
2042
 
2035
2043
  RESOURCE_SCOPES = [:resource, :resources]
2036
2044
  RESOURCE_METHOD_SCOPES = [:collection, :member, :new]
@@ -8,7 +8,7 @@ module ActionPack
8
8
  MAJOR = 5
9
9
  MINOR = 0
10
10
  TINY = 0
11
- PRE = "rc2"
11
+ PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.rc2
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0.rc2
19
+ version: 5.0.0
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: 5.0.0.rc2
26
+ version: 5.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.x
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.x
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rack-test
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -78,48 +78,42 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.0'
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: 1.0.5
81
+ version: '2.0'
85
82
  type: :runtime
86
83
  prerelease: false
87
84
  version_requirements: !ruby/object:Gem::Requirement
88
85
  requirements:
89
86
  - - "~>"
90
87
  - !ruby/object:Gem::Version
91
- version: '1.0'
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: 1.0.5
88
+ version: '2.0'
95
89
  - !ruby/object:Gem::Dependency
96
90
  name: actionview
97
91
  requirement: !ruby/object:Gem::Requirement
98
92
  requirements:
99
93
  - - '='
100
94
  - !ruby/object:Gem::Version
101
- version: 5.0.0.rc2
95
+ version: 5.0.0
102
96
  type: :runtime
103
97
  prerelease: false
104
98
  version_requirements: !ruby/object:Gem::Requirement
105
99
  requirements:
106
100
  - - '='
107
101
  - !ruby/object:Gem::Version
108
- version: 5.0.0.rc2
102
+ version: 5.0.0
109
103
  - !ruby/object:Gem::Dependency
110
104
  name: activemodel
111
105
  requirement: !ruby/object:Gem::Requirement
112
106
  requirements:
113
107
  - - '='
114
108
  - !ruby/object:Gem::Version
115
- version: 5.0.0.rc2
109
+ version: 5.0.0
116
110
  type: :development
117
111
  prerelease: false
118
112
  version_requirements: !ruby/object:Gem::Requirement
119
113
  requirements:
120
114
  - - '='
121
115
  - !ruby/object:Gem::Version
122
- version: 5.0.0.rc2
116
+ version: 5.0.0
123
117
  description: Web apps on Rails. Simple, battle-tested conventions for building and
124
118
  testing MVC web applications. Works with any Rack-compatible server.
125
119
  email: david@loudthinking.com
@@ -296,9 +290,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
290
  version: 2.2.2
297
291
  required_rubygems_version: !ruby/object:Gem::Requirement
298
292
  requirements:
299
- - - ">"
293
+ - - ">="
300
294
  - !ruby/object:Gem::Version
301
- version: 1.3.1
295
+ version: '0'
302
296
  requirements:
303
297
  - none
304
298
  rubyforge_project: