railties 4.2.3 → 4.2.4.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/actions.rb +2 -3
- data/lib/rails/generators/named_base.rb +4 -0
- data/lib/rails/generators/rails/app/templates/Gemfile +4 -2
- data/lib/rails/generators/rails/plugin/templates/test/integration/navigation_test.rb +0 -4
- data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb +1 -0
- data/lib/rails/generators/test_unit/controller/templates/functional_test.rb +1 -1
- data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +1 -1
- data/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +1 -1
- data/lib/rails/tasks.rb +3 -2
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75c999fa3abfad43ced51d83807f2264bf23d2f3
|
4
|
+
data.tar.gz: a897d7fd70e55c6b0e64396db6f1dac823922b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 615ff4ea4a3cb3b149d9a54dea2d2ae5c76106d73a910b7c4d425e3e0a67e8569a9497814f4e53089e52af430e146de11765a3e49566bf1ecff9a8775556d0f8
|
7
|
+
data.tar.gz: a0a9c66315029360631718bdf62d7d63789ff27a2e6a6aec63e87fa88b48b58fd35559b7abac410eaf346cc77ad16f4d8ad5d4280730220627e01656ebbb8de8
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## Rails 4.2.4 (August 14, 2015) ##
|
2
|
+
|
3
|
+
* Fix STATS_DIRECTORIES already defined warning when running rake from within
|
4
|
+
the top level directory of an engine that has a test app.
|
5
|
+
|
6
|
+
Fixes #20510
|
7
|
+
|
8
|
+
*Ersin Akinci*
|
9
|
+
|
10
|
+
* Fix `NoMethodError` when generating a scaffold inside a full engine.
|
11
|
+
|
12
|
+
*Yuji Yaginuma*
|
13
|
+
|
14
|
+
|
1
15
|
## Rails 4.2.3 (June 25, 2015) ##
|
2
16
|
|
3
17
|
* `assert_file` understands paths with special characters
|
data/lib/rails/gem_version.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'open-uri'
|
2
1
|
require 'rbconfig'
|
3
2
|
|
4
3
|
module Rails
|
@@ -79,11 +78,11 @@ module Rails
|
|
79
78
|
# file in <tt>config/environments</tt>.
|
80
79
|
#
|
81
80
|
# environment do
|
82
|
-
# "config.
|
81
|
+
# "config.action_controller.asset_host = 'cdn.provider.com'"
|
83
82
|
# end
|
84
83
|
#
|
85
84
|
# environment(nil, env: "development") do
|
86
|
-
# "config.
|
85
|
+
# "config.action_controller.asset_host = 'localhost:3000'"
|
87
86
|
# end
|
88
87
|
def environment(data=nil, options={})
|
89
88
|
sentinel = /class [a-z_:]+ < Rails::Application/i
|
@@ -179,6 +179,10 @@ module Rails
|
|
179
179
|
!defined?(ActiveRecord::Base) || ActiveRecord::Base.pluralize_table_names
|
180
180
|
end
|
181
181
|
|
182
|
+
def mountable_engine?
|
183
|
+
defined?(ENGINE_ROOT) && namespaced?
|
184
|
+
end
|
185
|
+
|
182
186
|
# Add a class collisions name to be checked on class initialization. You
|
183
187
|
# can supply a hash with a :prefix or :suffix to be tested.
|
184
188
|
#
|
@@ -21,8 +21,8 @@ source 'https://rubygems.org'
|
|
21
21
|
# Use Capistrano for deployment
|
22
22
|
# gem 'capistrano-rails', group: :development
|
23
23
|
|
24
|
-
group :development, :test do
|
25
24
|
<% unless defined?(JRUBY_VERSION) -%>
|
25
|
+
group :development, :test do
|
26
26
|
<%- if RUBY_VERSION < '2.0.0' -%>
|
27
27
|
# Call 'debugger' anywhere in the code to stop execution and get a debugger console
|
28
28
|
gem 'debugger'
|
@@ -30,15 +30,17 @@ group :development, :test do
|
|
30
30
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
31
31
|
gem 'byebug'
|
32
32
|
<%- end -%>
|
33
|
+
end
|
33
34
|
|
35
|
+
group :development do
|
34
36
|
# Access an IRB console on exception pages or by using <%%= console %> in views
|
35
37
|
gem 'web-console', '~> 2.0'
|
36
38
|
<%- if spring_install? %>
|
37
39
|
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
38
40
|
gem 'spring'
|
39
41
|
<% end -%>
|
40
|
-
<% end -%>
|
41
42
|
end
|
43
|
+
<% end -%>
|
42
44
|
|
43
45
|
<% if RUBY_PLATFORM.match(/bccwin|cygwin|emx|mingw|mswin|wince|java/) -%>
|
44
46
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
@@ -20,5 +20,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
20
20
|
# Load fixtures from the engine
|
21
21
|
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
22
22
|
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
23
|
+
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
23
24
|
ActiveSupport::TestCase.fixtures :all
|
24
25
|
end
|
@@ -4,7 +4,7 @@ require 'test_helper'
|
|
4
4
|
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
|
5
5
|
setup do
|
6
6
|
@<%= singular_table_name %> = <%= fixture_name %>(:one)
|
7
|
-
<% if
|
7
|
+
<% if mountable_engine? -%>
|
8
8
|
@routes = Engine.routes
|
9
9
|
<% end -%>
|
10
10
|
end
|
data/lib/rails/tasks.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.4.rc1
|
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: 2015-
|
11
|
+
date: 2015-08-14 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: 4.2.
|
19
|
+
version: 4.2.4.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.2.
|
26
|
+
version: 4.2.4.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.2.
|
33
|
+
version: 4.2.4.rc1
|
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: 4.2.
|
40
|
+
version: 4.2.4.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - '='
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 4.2.
|
81
|
+
version: 4.2.4.rc1
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - '='
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 4.2.
|
88
|
+
version: 4.2.4.rc1
|
89
89
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
90
90
|
email: david@loudthinking.com
|
91
91
|
executables:
|
@@ -352,13 +352,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
352
352
|
version: 1.9.3
|
353
353
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
354
354
|
requirements:
|
355
|
-
- - "
|
355
|
+
- - ">"
|
356
356
|
- !ruby/object:Gem::Version
|
357
|
-
version:
|
357
|
+
version: 1.3.1
|
358
358
|
requirements: []
|
359
359
|
rubyforge_project:
|
360
|
-
rubygems_version: 2.4.
|
360
|
+
rubygems_version: 2.4.7
|
361
361
|
signing_key:
|
362
362
|
specification_version: 4
|
363
363
|
summary: Tools for creating, working with, and running Rails applications.
|
364
364
|
test_files: []
|
365
|
+
has_rdoc:
|