rspec-collection_matchers 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cffeb37567801d1dd72d4ed804de75004fd55c3f
4
- data.tar.gz: 92e24526866176b5a664d9c0f9f0cdd288671914
3
+ metadata.gz: 9d94581983b7d44a39df551b7f66f2ae28c00a32
4
+ data.tar.gz: aa1cff25eda40661701a3d4220f374e15e955169
5
5
  SHA512:
6
- metadata.gz: 8483fe9ef1382dd376c024f497b9ba3b521c874bf5394888ded1e5992507dce064dc8586b1434d51a1ef86a3e1017475b20561007cb972e8da3e206d274d1db5
7
- data.tar.gz: ad0db80a2bc2e57416d9466175ee1a3c0bfa8fb442d28918422561357492f14c2b96e26974d684d078b74c3d3f9d1cfd320447ea00ae8cb9de3f11183f3ed8bb
6
+ metadata.gz: 5c756c81ecbb2041a58583c8630f0daa752f6b6b017eae2acf105c06a3b4a1e34ac57d4f65acba1e1b2779a2b226783429eb7d1c923767e18d34070de0740fef
7
+ data.tar.gz: fd0ffd413ea9306c0f105d538584e7f0a9d62d70371994cfe929aa1838883b4f8efd906fc7ca5cfb022c1eadcacc1602fb586461407b566bc06ecf2b61416543
@@ -1,8 +1,13 @@
1
1
  language: ruby
2
2
  script: "script/test_all"
3
3
  bundler_args: "--standalone --binstubs --without documentation"
4
+ before_install:
5
+ - gem update --system
6
+ - gem install bundler
4
7
  rvm:
5
- - 2.1.0
8
+ - 2.3.3
9
+ - 2.2.5
10
+ - 2.1
6
11
  - 2.0.0
7
12
  - 1.9.3
8
13
  - 1.9.2
@@ -10,7 +15,6 @@ rvm:
10
15
  - ree
11
16
  - jruby-19mode
12
17
  - jruby-18mode
13
- - rbx
14
18
  env:
15
19
  - BRANCH=master
16
20
  - BRANCH=2-99-maintenance
@@ -1,5 +1,12 @@
1
1
  ### Development
2
2
 
3
+ Bug Fixes:
4
+
5
+ * Define `to_ary` on Ruby 1.9.2 to fix issue when diffing in compound expectations
6
+ (Jon Rowe, #34)
7
+ * Prevent warning being issued due to incorrect definition of `respond_to`.
8
+ (Matt Whipple, #33)
9
+
3
10
  ### 1.1.2 / 2014-11-11
4
11
 
5
12
  [full changelog](http://github.com/rspec/rspec-collection_matchers/compare/v1.1.1...v1.1.2)
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gemspec
4
4
 
5
5
  %w[rspec rspec-core rspec-expectations rspec-mocks].each do |lib|
6
6
  library_path = File.expand_path("../../#{lib}", __FILE__)
7
- if File.exist?(library_path)
7
+ if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
8
8
  gem lib, :path => library_path
9
9
  else
10
10
  gem lib, :git => "git://github.com/rspec/#{lib}.git",
@@ -15,8 +15,7 @@ end
15
15
  # only the master branch is supported on rspec-support
16
16
  gem "rspec-support", :git => "git://github.com/rspec/rspec-support.git"
17
17
 
18
- gem "cucumber", "~> 1.1.9"
19
- gem "aruba", "~> 0.5"
18
+ gem "aruba"
20
19
  gem "rake", "~> 10.0.0"
21
20
 
22
21
  version_file = File.expand_path("../.rails-version", __FILE__)
@@ -39,6 +38,18 @@ end
39
38
  gem "activesupport", *rails_gem_args
40
39
  gem "activemodel", *rails_gem_args
41
40
 
41
+ if RUBY_VERSION.to_f < 2
42
+ gem "cucumber", "< 2"
43
+ gem 'json', '< 2'
44
+ gem 'term-ansicolor', '< 1.4.0' # used by cucumber
45
+ gem 'tins', '~> 1.6.0' # used by term-ansicolor
46
+ else
47
+ gem "cucumber"
48
+ end
49
+
50
+ if RUBY_VERSION < '1.9.3'
51
+ gem 'i18n', '< 0.7.0'
52
+ end
42
53
 
43
54
  platform :rbx do
44
55
  gem 'rubysl'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RSpec::CollectionMatchers [![Build Status](https://secure.travis-ci.org/rspec/rspec-collection_matchers.png?branch=master)](http://travis-ci.org/rspec/rspec-collection_matchers)
1
+ # RSpec::CollectionMatchers [![Build Status](https://secure.travis-ci.org/rspec/rspec-collection_matchers.svg?branch=master)](http://travis-ci.org/rspec/rspec-collection_matchers)
2
2
 
3
3
  RSpec::CollectionMatchers lets you express expected outcomes on collections
4
4
  of an object in an example.
@@ -1,3 +1,18 @@
1
+ unless defined?(RSpec::Matchers.all)
2
+ module RSpec
3
+ module Matchers
4
+ # aruba assumes this is defined
5
+ def all
6
+ end
7
+
8
+ # aruba doesn't alias this itself on 2.99
9
+ def an_output_string_including(partial)
10
+ match partial
11
+ end
12
+ end
13
+ end
14
+ end
15
+
1
16
  require 'aruba/cucumber'
2
17
 
3
18
  Before do
@@ -24,6 +24,17 @@ module RSpec
24
24
  }
25
25
  end
26
26
 
27
+ if RUBY_VERSION == '1.9.2'
28
+ # On Ruby 1.9.2 items that don't return an array for `to_ary`
29
+ # can't be flattened in arrays, we need to be able to do this
30
+ # to produce diffs for compound matchers, so this corrects the
31
+ # default implementation. Note that rspec-support has code that
32
+ # directly checks for pattern and prevents infinite recursion.
33
+ def to_ary
34
+ [self]
35
+ end
36
+ end
37
+
27
38
  def matches?(collection_or_owner)
28
39
  collection = determine_collection(collection_or_owner)
29
40
  case collection
@@ -105,8 +116,8 @@ EOF
105
116
  "have #{relative_expectation} #{@collection_name}"
106
117
  end
107
118
 
108
- def respond_to?(m)
109
- @expected.respond_to?(m) || super
119
+ def respond_to?(m, include_all = false)
120
+ @expected.respond_to?(m, include_all) || super
110
121
  end
111
122
 
112
123
  private
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module CollectionMatchers
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-collection_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Baraúna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-11 00:00:00.000000000 Z
11
+ date: 2016-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-expectations
@@ -102,10 +102,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.2.2
105
+ rubygems_version: 2.6.8
106
106
  signing_key:
107
107
  specification_version: 4
108
- summary: rspec-collection_matchers-1.1.2
108
+ summary: rspec-collection_matchers-1.1.3
109
109
  test_files:
110
110
  - features/have.feature
111
111
  - features/support/env.rb