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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/Changelog.md +9 -0
- data/lib/rspec-rails.rb +12 -9
- data/lib/rspec/rails/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b253eb3b0e3dec76470a3b9539138bff0a8b33c
|
4
|
+
data.tar.gz: 06602ed978e71e6c85feb573bdc1e86978380cf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d430a2897898c07a2b03f8721b60c6786793a65a90c9e3ea8b0ae8a16267e8d99dc279a6420e225fc0940e2576c96139239d14a2a43120596a28d1057ab71e09
|
7
|
+
data.tar.gz: edafde8fc964cb4a06165f51c5ab8bb726f915bce743e488a036e40516cf1fe1dc9c02ab48f8ec208b9a7bead6a66b7ac4e8e8a7089b7097156fe80315be6fc8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
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��` *
|
data/Changelog.md
CHANGED
@@ -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
|
|
data/lib/rspec-rails.rb
CHANGED
@@ -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
|
-
|
63
|
-
|
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
|
data/lib/rspec/rails/version.rb
CHANGED
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.
|
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-
|
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.
|
322
|
+
summary: rspec-rails-3.2.3
|
323
323
|
test_files: []
|
324
324
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|