rspec-core 3.1.0 → 3.1.1

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: ee058acded3da2b270f4643a7cbf909f86a708ce
4
- data.tar.gz: 88eaf5e071b90d31c28ce0d9ec9f92722a25bc88
3
+ metadata.gz: 4a9a15be489ed8cc9a0d6877e0ed6861db70e7ba
4
+ data.tar.gz: 5768b35b9e8a678a5d062ac78157a4bff738e5d9
5
5
  SHA512:
6
- metadata.gz: 3ce2c03aa04796bc5fd6414bd84ebde8b80ba3f0e7ec379b00fdb1fc53210c953b6758ee618e16b6969658a15536c217cc02b952263215df4a398d85b128e789
7
- data.tar.gz: 7c554927f21c2eb43b24b423950ffeb0c7239943f3871be8b2f86cb5beb433693bfa252f97ac7fc574246f8e97f10e3064a13658a6ec2acb20933d2b13bd2f70
6
+ metadata.gz: ae03bdb13bb6d53643fc746e5d1010710d9fd7fe142aad30dd975044f3cfadfe5a72e25c3fbb9dde4ef206545ef3e0663cb18fb4bd18b6eb6475b42a6e719b3e
7
+ data.tar.gz: a6778ff8bdbf5cf1cf8744c81b86e243d9965ecf9b6dcebef35bf64730b90dc943ce778346dfdde548542a492a355b57d21608c0070b210019380c836d633429
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -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
- # The provided pattern is a directory or a file, not a file glob. Historically, this
119
- # worked because `FileList[some_dir]` would return `[some_dir]` which would
120
- # get passed to `rspec` and cause it to load files under that dir that match
121
- # the default pattern. To continue working, we need to pass it on to `rspec`
122
- # directly rather than treating it as a `--pattern` option.
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
@@ -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.0'
6
+ STRING = '3.1.1'
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.0
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.0
269
+ summary: rspec-core-3.1.1
270
270
  test_files: []
271
271
  has_rdoc:
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- aƯ��9tg"e�s��TG(��ك�G���?L*���� b
2
- ��V�����@��sD.��㱖,6�s��1ן�,ͥ�I�� ��Y��/S Ph�`><!�.L�醒���t��)]%���"��6<A† 5d1@m}�D���I�hրRkIu/Cr�=�A�����N:%�L��D"�%~z>h=ӽ�K�r)=�i$.�-���IT��v�~�i�{�!S���z�'��/.�����7D@�
1
+ �2�9�ޏji_����K��>��h���YMp��Ɠ�)�s|a.���x/M��E���D267��B�#�j�̰�,��8*��͆���R\a��� ���^Ÿκ:<���r«��1��4���}A��EFff�.��&���J�i_<�:��Q�
2
+ ��f%wR��JTJ7𵫳m~^�92�����{pV��1.�5 #[�S�.T��d!��L�O�L�Y�x�#v_b;E���=�9倭���m&,�}�Br��Z