rspec-core 3.1.2 → 3.1.3

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: 2d7e1b50ad8c9298e889446902dd9baa3e2127b3
4
- data.tar.gz: ed66b3815cc180d4cdedee12ba437189f1195e6a
3
+ metadata.gz: de35fb8af71557f3b94da1039900a1f59dd369c7
4
+ data.tar.gz: 125f5fd4a44a2b725c10e7f6c7fcf27a5c5a519d
5
5
  SHA512:
6
- metadata.gz: 6cea9b2642cee662029723f22b3fa394a19ce8ce076ad3cacfbdfae9a085f0eb897d7487f0b6062e921b23a4996c1df141ff066556345fa155351af2370ab589
7
- data.tar.gz: b20f35ee607fb95bf36f4ecf17ccd27792101bca28505f67450ae7e7a58fe021684ee8db88e742613657267da1060267508451e17c856dd528354bd8980b4429
6
+ metadata.gz: f6b05499ca1958817b42849bb529dc94ae6d6b6d92ba4885f5d9b6cf7f956e28c6c871f7b85d794c65ca27617799797106fbeffbeb821574571135f19e88d4b1
7
+ data.tar.gz: f9b83d585f0913cc72c1bf167d107208658889c65de1eb93254554cee333faf5f517b5c4705a17ec6b0c950dd2b60d4ca55ee9c1fb1339b36d5470bafb422e9f
@@ -1 +1,2 @@
1
- YB�-������jg����Y�<�T��(7ЏB�0�L���g�r��Ǫ��f�1��%�sVI����0�� D�?�*�|ƣ��4t]��wt��mT��4vb24 n� _�ƒ��-xG�1�� �F8n�CX��-X�x�`泩4��pV*=;?P�O���*�S�� f�h3����D��� drZȶ�8(�Zl��Xb/��������V��;�ň��WL9�)������Yc��_�[`����
1
+ A�*_���=e�.CM&�S�>oc7��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
@@ -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)
@@ -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 Array === pattern || File.exist?(pattern)
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
 
@@ -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.2'
6
+ STRING = '3.1.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-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
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-08 00:00:00.000000000 Z
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.2
269
+ summary: rspec-core-3.1.3
270
270
  test_files: []
271
271
  has_rdoc:
metadata.gz.sig CHANGED
Binary file