rspec-rails 3.2.2 → 3.2.3

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: 32d2e246a1000916e4c0eeaa3e5df27115c0d253
4
- data.tar.gz: feed9967eb41264226b18f21ca7068ae1a35bed7
3
+ metadata.gz: 8b253eb3b0e3dec76470a3b9539138bff0a8b33c
4
+ data.tar.gz: 06602ed978e71e6c85feb573bdc1e86978380cf1
5
5
  SHA512:
6
- metadata.gz: b3d482989d7aad1d9fe4a100513bae38b38972bf45f5c165717d3bd8b6fca0b4e3522df43c3c151d099821b1677cc782c77be6d067612d52d8ca15370ceced03
7
- data.tar.gz: e523716b7ec418eb786f638e9c91dd0f0b671bdfe20e7b3d1836b3ca5dfaf459585bbdf7ebb83d6a4fd408751e44ba1b494c7e10ac59cb988ad2d4581caf64a3
6
+ metadata.gz: d430a2897898c07a2b03f8721b60c6786793a65a90c9e3ea8b0ae8a16267e8d99dc279a6420e225fc0940e2576c96139239d14a2a43120596a28d1057ab71e09
7
+ data.tar.gz: edafde8fc964cb4a06165f51c5ab8bb726f915bce743e488a036e40516cf1fe1dc9c02ab48f8ec208b9a7bead6a66b7ac4e8e8a7089b7097156fe80315be6fc8
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- 'n�䵏-&��PK{f+�BzYKɖ���ZNܖ�_] ���{H����[=V
1
+ ��e+��8S�4E���8���!$ެ��C��F�I;p�P��i�����$Ő+ G
2
+ �0�V-�Ѣ�<૊D$B}L��L��]c���[�Ɠ[P�T�(��{�N��es}C:�w�e!�E���P�=�� I&6�H����}�q�|�1��a��H���Z�_qP�k�T�]���m�[f��@[�ǣ�����oS��/�bk� �I� d�;�_�]d������(��7�@�gi��+t������(��z�޲�� ��z��,����J�H���d��K,}����ʱJ�J68k�Hn�GR:�=ɓ}��s�կ�~l�4Q�m��9��b@�3[���xq�f�v^��2P}p����=��2����fl�L��[ܔ�B�n���߈0�WH��-�3�t�͒� B�(7f�d���|#'(��m[Ô��=���K��_ؤ�Ꞛ��O�ʼ�hI��_W:�'�fRu~�+wDs}��!�p���[����6��e�!�{��ā��o����FA��` *
@@ -1,4 +1,13 @@
1
+ ### 3.2.3 / 2015-06-06
2
+ [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix regression with the railtie resulting in undefined method `preview_path=`
7
+ on Rails 3.x and 4.0 (Aaron Kromer, #1388)
8
+
1
9
  ### 3.2.2 / 2015-06-03
10
+ [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
2
11
 
3
12
  Bug Fixes:
4
13
 
@@ -29,19 +29,12 @@ module RSpec
29
29
  private
30
30
 
31
31
  def setup_preview_path(app)
32
- # If the action mailer railtie isn't loaded the config will not respond
33
32
  return unless supports_action_mailer_previews?(app.config)
34
33
  options = app.config.action_mailer
35
34
  config_default_preview_path(options) if config_preview_path?(options)
36
35
  end
37
36
 
38
37
  def config_preview_path?(options)
39
- # This string version check avoids loading the ActionMailer class, as
40
- # would happen using `defined?`. This is necessary because the
41
- # ActionMailer class only loads it's settings once, at load time. If we
42
- # load the class now any settings declared in a config block in an
43
- # initializer will be ignored.
44
- #
45
38
  # We cannot use `respond_to?(:show_previews)` here as it will always
46
39
  # return `true`.
47
40
  if ::Rails::VERSION::STRING < '4.2'
@@ -59,8 +52,18 @@ module RSpec
59
52
  end
60
53
 
61
54
  def supports_action_mailer_previews?(config)
62
- config.respond_to?(:action_mailer) &&
63
- config.action_mailer.respond_to?(:preview_path)
55
+ # These checks avoid loading `ActionMailer`. Using `defined?` has the
56
+ # side-effect of the class getting loaded if it is available. This is
57
+ # problematic because loading `ActionMailer::Base` will cause it to
58
+ # read the config settings; this is the only time the config is read.
59
+ # If the config is loaded now, any settings declared in a config block
60
+ # in an initializer will be ignored.
61
+ #
62
+ # If the action mailer railtie has not been loaded then `config` will
63
+ # not respond to the method. However, we cannot use
64
+ # `config.action_mailer.respond_to?(:preview_path)` here as it will
65
+ # always return `true`.
66
+ config.respond_to?(:action_mailer) && ::Rails::VERSION::STRING > '4.1'
64
67
  end
65
68
  end
66
69
  end
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '3.2.2'
6
+ STRING = '3.2.3'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -44,7 +44,7 @@ cert_chain:
44
44
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
45
45
  F3MdtaDehhjC
46
46
  -----END CERTIFICATE-----
47
- date: 2015-06-03 00:00:00.000000000 Z
47
+ date: 2015-06-06 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: activesupport
@@ -319,6 +319,6 @@ rubyforge_project: rspec
319
319
  rubygems_version: 2.2.2
320
320
  signing_key:
321
321
  specification_version: 4
322
- summary: rspec-rails-3.2.2
322
+ summary: rspec-rails-3.2.3
323
323
  test_files: []
324
324
  has_rdoc:
metadata.gz.sig CHANGED
Binary file