rspec-core 3.1.5 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35ac596a199f064ae9b3002b53abd89c610828a0
4
- data.tar.gz: 79d6993acfd0a779f412dbaeb76fbd69a76c3fe6
3
+ metadata.gz: b2b3632b51db161f35c5b34de9edc51e46d9cf3d
4
+ data.tar.gz: 3c8b1ce86cafdcc09fe9dbca4cecc32c2b10efb7
5
5
  SHA512:
6
- metadata.gz: e8c9201434ac482cc45b97a9e9d879e4877879339c1cc13bf77fd14ec7c385e9c3ccb6c7ea3c8042d220f71fab8140102d57f3561e512037be7a038e382c034d
7
- data.tar.gz: 3325b9ab89c7aa273354e0db5c55ab17e2d1c1b92870cf2d3e6d90f7c81428ff68d024c515cf54c26440c43f43dd603a1e23c82d5f4428b773183610b55ad008
6
+ metadata.gz: cf9a1a0778774bc4f4c19b2ca537e9cc6a96e48e52e0d4ffb1de7254ec92338a9e103dea333a3b61050b040328518ee2ac77ffab82b35af357b6c863d2c71d46
7
+ data.tar.gz: 41557dacbba9ce26a55a7d04ff315664fa5d23c9a8d1d451cdd3812fc33c3cbd086b13fb2b13e51d97faa3fe8efc8fd52331a2e6c7a79b3894fd802f9a965707
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- sNU�꺂��")u��6����ڪ�g#����1B���o~�̣��������b���I��l�Ȥ��xm>wXIF�X6U�fp����m�0q�����z�}�ۀN��Gp��0?"E���/*U&\ع��Bf�J�mUP��|`����fY�y�=)���@�S@��zC����2�$�����ғ����բ�`�*�CA3v1"�ʸ�5
1
+ o,7௲ ��}wSJ̬ň1�A$ceGؕ\\&C�ek5&��,Μ��|�>Wc�~7�GOu ��V��NXY �%��W�8X�<��Y��PMDg
2
+ �8��L�L ���41����Υ���c��؅B�O*c`1]xD�KC�˝m������Z���U��H�41��~�hbNY2��L���d]�#��aN_�>p"$�����m� ]��K�E�u\$�n���j=�b�b�(G��
@@ -1,3 +1,14 @@
1
+ ### 3.1.6 / 2014-10-08
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.5...v3.1.6)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix regression in rake task pattern handling, that prevented patterns
7
+ that were relative from the current directory rather than from `spec`
8
+ from working properly. (Myron Marston, #1734)
9
+ * Prevent rake task from generating duplicate load path entries.
10
+ (Myron Marston, #1735)
11
+
1
12
  ### 3.1.5 / 2014-09-29
2
13
  [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.4...v3.1.5)
3
14
 
@@ -1323,10 +1323,19 @@ module RSpec
1323
1323
  private
1324
1324
 
1325
1325
  def get_files_to_run(paths)
1326
- FlatMap.flat_map(paths) do |path|
1326
+ FlatMap.flat_map(paths_to_check(paths)) do |path|
1327
1327
  path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
1328
1328
  File.directory?(path) ? gather_directories(path) : extract_location(path)
1329
- end.sort
1329
+ end.sort.uniq
1330
+ end
1331
+
1332
+ def paths_to_check(paths)
1333
+ return paths if pattern_might_load_specs_from_vendored_dirs?
1334
+ paths + ['.']
1335
+ end
1336
+
1337
+ def pattern_might_load_specs_from_vendored_dirs?
1338
+ pattern.split(File::SEPARATOR).first.include?('**')
1330
1339
  end
1331
1340
 
1332
1341
  def gather_directories(path)
@@ -1369,6 +1378,7 @@ module RSpec
1369
1378
  filter_manager.add_location path, lines
1370
1379
  end
1371
1380
 
1381
+ return [] if path == default_path
1372
1382
  path
1373
1383
  end
1374
1384
 
@@ -177,7 +177,7 @@ module RSpec
177
177
  @rspec_load_path ||= begin
178
178
  core_and_support = $LOAD_PATH.grep(
179
179
  /#{File::SEPARATOR}rspec-(core|support)[^#{File::SEPARATOR}]*#{File::SEPARATOR}lib/
180
- )
180
+ ).uniq
181
181
 
182
182
  "-I#{core_and_support.map { |file| escape file }.join(File::PATH_SEPARATOR)}"
183
183
  end
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Core.
4
4
  module Version
5
5
  # Current version of RSpec Core, in semantic versioning format.
6
- STRING = '3.1.5'
6
+ STRING = '3.1.6'
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-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.1.6
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-30 00:00:00.000000000 Z
37
+ date: 2014-10-09 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.5
269
+ summary: rspec-core-3.1.6
270
270
  test_files: []
271
271
  has_rdoc:
metadata.gz.sig CHANGED
Binary file