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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93a57b2f462f431e22ab5afc2c2b01608b4398ce
4
- data.tar.gz: d5698b7cdc0eec8bd19b2de64ad7ce76fe3649ed
3
+ metadata.gz: 75c999fa3abfad43ced51d83807f2264bf23d2f3
4
+ data.tar.gz: a897d7fd70e55c6b0e64396db6f1dac823922b74
5
5
  SHA512:
6
- metadata.gz: 44465a337afad4a371bc047ae61b912a1f52100f3e94461be7b535b5cb26048b6631b35696a44f17f16c37aa60ac380e8ab387d3cce8746433e059074711a782
7
- data.tar.gz: caea25e1d5aefc5814e79113a5129c254f82cbcf750c71f6ad6a8376bc2304b94b53514b8c159ad5b81fd0f005bb5d379a4c26dd013cb11eb37631616e652f1c
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
@@ -7,8 +7,8 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
- TINY = 3
11
- PRE = nil
10
+ TINY = 4
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -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.autoload_paths += %W(#{config.root}/extras)"
81
+ # "config.action_controller.asset_host = 'cdn.provider.com'"
83
82
  # end
84
83
  #
85
84
  # environment(nil, env: "development") do
86
- # "config.autoload_paths += %W(#{config.root}/extras)"
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
@@ -1,10 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class NavigationTest < ActionDispatch::IntegrationTest
4
- <% unless options[:skip_active_record] -%>
5
- fixtures :all
6
- <% end -%>
7
-
8
4
  # test "the truth" do
9
5
  # assert true
10
6
  # end
@@ -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
@@ -2,7 +2,7 @@ require 'test_helper'
2
2
 
3
3
  <% module_namespacing do -%>
4
4
  class <%= class_name %>ControllerTest < ActionController::TestCase
5
- <% if defined?(ENGINE_ROOT) -%>
5
+ <% if mountable_engine? -%>
6
6
  setup do
7
7
  @routes = Engine.routes
8
8
  end
@@ -17,7 +17,7 @@ module TestUnit # :nodoc:
17
17
 
18
18
  def fixture_name
19
19
  @fixture_name ||=
20
- if defined?(ENGINE_ROOT)
20
+ if mountable_engine?
21
21
  "%s_%s" % [namespaced_path, table_name]
22
22
  else
23
23
  table_name
@@ -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 defined?(ENGINE_ROOT) -%>
7
+ <% if mountable_engine? -%>
8
8
  @routes = Engine.routes
9
9
  <% end -%>
10
10
  end
data/lib/rails/tasks.rb CHANGED
@@ -7,8 +7,9 @@
7
7
  middleware
8
8
  misc
9
9
  routes
10
- statistics
11
10
  tmp
12
- ).each do |task|
11
+ ).tap { |arr|
12
+ arr << 'statistics' if Rake.application.current_scope.empty?
13
+ }.each do |task|
13
14
  load "rails/tasks/#{task}.rake"
14
15
  end
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.3
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-06-25 00:00:00.000000000 Z
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.3
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.3
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.3
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.3
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.3
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.3
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: '0'
357
+ version: 1.3.1
358
358
  requirements: []
359
359
  rubyforge_project:
360
- rubygems_version: 2.4.5
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: