rspec-core 3.1.0 → 3.1.1
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 +0 -0
- data/Changelog.md +10 -0
- data/lib/rspec/core/rake_task.rb +17 -7
- data/lib/rspec/core/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a9a15be489ed8cc9a0d6877e0ed6861db70e7ba
|
4
|
+
data.tar.gz: 5768b35b9e8a678a5d062ac78157a4bff738e5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae03bdb13bb6d53643fc746e5d1010710d9fd7fe142aad30dd975044f3cfadfe5a72e25c3fbb9dde4ef206545ef3e0663cb18fb4bd18b6eb6475b42a6e719b3e
|
7
|
+
data.tar.gz: a6778ff8bdbf5cf1cf8744c81b86e243d9965ecf9b6dcebef35bf64730b90dc943ce778346dfdde548542a492a355b57d21608c0070b210019380c836d633429
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### 3.1.1 / 2014-09-05
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.0...v3.1.1)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix a regression in rake task pattern handling, so that `rake_task.pattern = array`
|
7
|
+
works again. While we never intended to support array values (or even knew that worked!),
|
8
|
+
the implementation from 3.0 and earlier used `FileList` internally, which allows arrays.
|
9
|
+
The fix restores the old behavior. (Myron Marston, #1694)
|
10
|
+
|
1
11
|
### 3.1.0 / 2014-09-04
|
2
12
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.4...v3.1.0)
|
3
13
|
|
data/lib/rspec/core/rake_task.rb
CHANGED
@@ -114,15 +114,25 @@ module RSpec
|
|
114
114
|
def file_inclusion_specification
|
115
115
|
if ENV['SPEC']
|
116
116
|
FileList[ ENV['SPEC']].sort
|
117
|
-
elsif File.exist?(pattern)
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
117
|
+
elsif Array === pattern || File.exist?(pattern)
|
118
|
+
# Before RSpec 3.1, we used `FileList` to get the list of matched files, and
|
119
|
+
# then pass that along to the `rspec` command. Starting with 3.1, we prefer to
|
120
|
+
# pass along the pattern as-is to the `rspec` command, for 3 reasons:
|
121
|
+
#
|
122
|
+
# * It's *much* less verbose to pass one `--pattern` option than a long list of files.
|
123
|
+
# * It ensures `task.pattern` and `--pattern` have the same behavior.
|
124
|
+
# * It fixes a bug, where `task.pattern = pattern_that_matches_no_files` would run
|
125
|
+
# *all* files because it would cause no pattern or file args to get passed to `rspec`,
|
126
|
+
# which causes all files to get run.
|
127
|
+
#
|
128
|
+
# However, `FileList` is *far* more flexible than the `--pattern` option. Specifically, it
|
129
|
+
# supports individual files and directories, as well as arrays of files, directories and globs.
|
130
|
+
#
|
131
|
+
# For backwards compatibility, we have to fall back to using FileList if the user has passed
|
132
|
+
# a `pattern` option that will not work with `--pattern`.
|
123
133
|
#
|
124
134
|
# TODO: consider deprecating support for this and removing it in RSpec 4.
|
125
|
-
pattern.shellescape
|
135
|
+
FileList[pattern].sort.map(&:shellescape)
|
126
136
|
else
|
127
137
|
"--pattern #{pattern.shellescape}"
|
128
138
|
end
|
data/lib/rspec/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -266,6 +266,6 @@ rubyforge_project: rspec
|
|
266
266
|
rubygems_version: 2.2.2
|
267
267
|
signing_key:
|
268
268
|
specification_version: 4
|
269
|
-
summary: rspec-core-3.1.
|
269
|
+
summary: rspec-core-3.1.1
|
270
270
|
test_files: []
|
271
271
|
has_rdoc:
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
�2�9�ޏji_����K��>��h���YMp��Ɠ�)�s|a.���x/M��E���D26�7��B�#�j�̰�,��8*��͆���R\a��� ���^Ÿκ:<���r«��1��4���}A��EF�ff�.��&���J�i_<�:��Q�
|
2
|
+
��f%wR��JTJ�7m~^�92�����{pV��1.�5#[�S�.T��d!��L�O�L�Y�x�#v_b;E���=�9倭���m&,�}�B�r��Z
|