rspec-core 3.1.2 → 3.1.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 +2 -1
- data.tar.gz.sig +0 -0
- data/Changelog.md +15 -0
- data/lib/rspec/core/configuration.rb +2 -1
- data/lib/rspec/core/rake_task.rb +5 -4
- data/lib/rspec/core/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: de35fb8af71557f3b94da1039900a1f59dd369c7
|
4
|
+
data.tar.gz: 125f5fd4a44a2b725c10e7f6c7fcf27a5c5a519d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b05499ca1958817b42849bb529dc94ae6d6b6d92ba4885f5d9b6cf7f956e28c6c871f7b85d794c65ca27617799797106fbeffbeb821574571135f19e88d4b1
|
7
|
+
data.tar.gz: f9b83d585f0913cc72c1bf167d107208658889c65de1eb93254554cee333faf5f517b5c4705a17ec6b0c950dd2b60d4ca55ee9c1fb1339b36d5470bafb422e9f
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
A�*_���=e�.CM&�S�>oc�7��d��;
|
2
|
+
9���a��I5n�A�N�L�Կ�E"~f@�X\V���O#q)y���[�KѯO�(��أ�wIca���m]�4^�ͬ�&�*���n O#�ʮ���#�;����rPr_��VjqE˂��� �a
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
### 3.1.3 / 2014-09-15
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.2...v3.1.3)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix yet another regression in rake task pattern handling, to allow
|
7
|
+
`task.pattern = FileList["..."]` to work. That was never intended
|
8
|
+
to be supported but accidentally worked in 3.0 and earlier.
|
9
|
+
(Myron Marston, #1701)
|
10
|
+
* Fix pattern handling so that files are normalized to absolute paths
|
11
|
+
before subtracting the `--exclude-pattern` matched files from the
|
12
|
+
`--pattern` matched files so that it still works even if the patterns
|
13
|
+
are in slightly different forms (e.g. one starting with `./`).
|
14
|
+
(Christian Nelson, #1698)
|
15
|
+
|
1
16
|
### 3.1.2 / 2014-09-08
|
2
17
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.1...v3.1.2)
|
3
18
|
|
@@ -1337,7 +1337,8 @@ module RSpec
|
|
1337
1337
|
|
1338
1338
|
def get_matching_files(path, pattern)
|
1339
1339
|
stripped = "{#{pattern.gsub(/\s*,\s*/, ',')}}"
|
1340
|
-
pattern =~ /^(\.\/)?#{Regexp.escape path}/ ? Dir[stripped] : Dir["#{path}/#{stripped}"]
|
1340
|
+
files = (pattern =~ /^(\.\/)?#{Regexp.escape path}/) ? Dir[stripped] : Dir["#{path}/#{stripped}"]
|
1341
|
+
files.map { |file| File.expand_path(file) }
|
1341
1342
|
end
|
1342
1343
|
|
1343
1344
|
def extract_location(path)
|
data/lib/rspec/core/rake_task.rb
CHANGED
@@ -114,7 +114,9 @@ module RSpec
|
|
114
114
|
def file_inclusion_specification
|
115
115
|
if ENV['SPEC']
|
116
116
|
FileList[ ENV['SPEC']].sort
|
117
|
-
elsif
|
117
|
+
elsif String === pattern && !File.exist?(pattern)
|
118
|
+
"--pattern #{pattern.shellescape}"
|
119
|
+
else
|
118
120
|
# Before RSpec 3.1, we used `FileList` to get the list of matched files, and
|
119
121
|
# then pass that along to the `rspec` command. Starting with 3.1, we prefer to
|
120
122
|
# pass along the pattern as-is to the `rspec` command, for 3 reasons:
|
@@ -126,15 +128,14 @@ module RSpec
|
|
126
128
|
# which causes all files to get run.
|
127
129
|
#
|
128
130
|
# 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
|
131
|
+
# supports individual files and directories, as well as arrays of files, directories and globs,
|
132
|
+
# as well as other `FileList` objects.
|
130
133
|
#
|
131
134
|
# For backwards compatibility, we have to fall back to using FileList if the user has passed
|
132
135
|
# a `pattern` option that will not work with `--pattern`.
|
133
136
|
#
|
134
137
|
# TODO: consider deprecating support for this and removing it in RSpec 4.
|
135
138
|
FileList[pattern].sort.map(&:shellescape)
|
136
|
-
else
|
137
|
-
"--pattern #{pattern.shellescape}"
|
138
139
|
end
|
139
140
|
end
|
140
141
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
|
35
35
|
muA=
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2014-09-
|
37
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: rspec-support
|
@@ -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.3
|
270
270
|
test_files: []
|
271
271
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|