railties 4.2.0.rc1 → 4.2.0.rc2

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: 519bfb3b0886ff84ec44b002f52d73222ecc9206
4
- data.tar.gz: 7e48cb155bb48412838653cb39be7d634a7589ef
3
+ metadata.gz: c91a103e181146147ef75a3af5e5df2146518897
4
+ data.tar.gz: 4beeae9fa736688642fe541a7db4619a7f4e3f0f
5
5
  SHA512:
6
- metadata.gz: 2fd29a2e7250ec1c3c95ecbca895f76947192a18181fcdffdc26b5738903efd7379aa7858e3bb947eff249492e4af3b3432e103690a003bb793bb1ad9e79a8b0
7
- data.tar.gz: f31a4de2be716c3bd057cd00106fbf174f589ebbdfc1b9d4fba78c2e8e60e50fb22233363722d09877e84092bba6d509b47f0e5f67ba18153c7e8b0559d163d4
6
+ metadata.gz: dd1220d34a987b2ad9cd67025bf17d41d70e4cd538eaba078877bcbcdcd13a02841e2f346dd67a976537c3cea8dd93123ad76ec961f39d3f8c177c68796c283c
7
+ data.tar.gz: c7b2de96b3b4bc986fc4bb0d446c594856467b05c0cd86d1bc2b3b9d92fe6db9b9a6c702f4ad3db8420315849557eb2766118de60d0106fc6cd11e14437ccd4b
data/README.rdoc CHANGED
@@ -17,7 +17,7 @@ The latest version of Railties can be installed with RubyGems:
17
17
 
18
18
  Source code can be downloaded as part of the Rails project on GitHub
19
19
 
20
- * https://github.com/rails/rails/tree/master/railties
20
+ * https://github.com/rails/rails/tree/4-2-stable/railties
21
21
 
22
22
  == License
23
23
 
data/lib/rails/engine.rb CHANGED
@@ -351,7 +351,7 @@ module Rails
351
351
 
352
352
  base.called_from = begin
353
353
  call_stack = if Kernel.respond_to?(:caller_locations)
354
- caller_locations.map(&:absolute_path)
354
+ caller_locations.map { |l| l.absolute_path || l.path }
355
355
  else
356
356
  # Remove the line number from backtraces making sure we don't leave anything behind
357
357
  caller.map { |p| p.sub(/:\d+.*/, '') }
@@ -8,7 +8,7 @@ module Rails
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
10
  TINY = 0
11
- PRE = "rc1"
11
+ PRE = "rc2"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -9,9 +9,11 @@ module Erb # :nodoc:
9
9
  view_base_path = File.join("app/views", class_path, file_name)
10
10
  empty_directory view_base_path
11
11
 
12
- formats.each do |format|
13
- layout_path = File.join("app/views/layouts", filename_with_extensions("mailer", format))
14
- template filename_with_extensions(:layout, format), layout_path
12
+ if self.behavior == :invoke
13
+ formats.each do |format|
14
+ layout_path = File.join("app/views/layouts", filename_with_extensions("mailer", format))
15
+ template filename_with_extensions(:layout, format), layout_path
16
+ end
15
17
  end
16
18
 
17
19
  actions.each do |action|
@@ -31,7 +31,7 @@ Rails.application.configure do
31
31
  # ActionMailer::Base.deliveries array.
32
32
  config.action_mailer.delivery_method = :test
33
33
 
34
- # Randomize the order test cases are executed
34
+ # Randomize the order test cases are executed.
35
35
  config.active_support.test_order = :random
36
36
 
37
37
  # Print deprecation notices to the stderr.
@@ -10,7 +10,9 @@ ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate',
10
10
  <% end -%>
11
11
  require "rails/test_help"
12
12
 
13
- Rails.backtrace_cleaner.remove_silencers!
13
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
14
+ # to be shown.
15
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
14
16
 
15
17
  # Load support files
16
18
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
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.0.rc1
4
+ version: 4.2.0.rc2
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: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,60 +16,60 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0.rc1
19
+ version: 4.2.0.rc2
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.0.rc1
26
+ version: 4.2.0.rc2
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.0.rc1
33
+ version: 4.2.0.rc2
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.0.rc1
40
+ version: 4.2.0.rc2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.8.7
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.8.7
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.18.1
62
- - - "<"
62
+ - - <
63
63
  - !ruby/object:Gem::Version
64
64
  version: '2.0'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">="
69
+ - - '>='
70
70
  - !ruby/object:Gem::Version
71
71
  version: 0.18.1
72
- - - "<"
72
+ - - <
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2.0'
75
75
  - !ruby/object:Gem::Dependency
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 4.2.0.rc1
81
+ version: 4.2.0.rc2
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.0.rc1
88
+ version: 4.2.0.rc2
89
89
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
90
90
  email: david@loudthinking.com
91
91
  executables:
@@ -341,23 +341,23 @@ licenses:
341
341
  metadata: {}
342
342
  post_install_message:
343
343
  rdoc_options:
344
- - "--exclude"
345
- - "."
344
+ - --exclude
345
+ - .
346
346
  require_paths:
347
347
  - lib
348
348
  required_ruby_version: !ruby/object:Gem::Requirement
349
349
  requirements:
350
- - - ">="
350
+ - - '>='
351
351
  - !ruby/object:Gem::Version
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
357
  version: 1.3.1
358
358
  requirements: []
359
359
  rubyforge_project:
360
- rubygems_version: 2.2.2
360
+ rubygems_version: 2.2.1
361
361
  signing_key:
362
362
  specification_version: 4
363
363
  summary: Tools for creating, working with, and running Rails applications.