rspec-support 3.8.0 → 3.8.2

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
- SHA1:
3
- metadata.gz: 631283161faf72604c2081235f9acbbda6ea980f
4
- data.tar.gz: 99170c1beccff1f998787873e0bd156af46ca9ef
2
+ SHA256:
3
+ metadata.gz: d86ac2e08f8c3e28d5791b4141f13dc961d7b1d03e2033835f543cccbe6d62a3
4
+ data.tar.gz: 0aaaa60e26ce665213893a5a5efaad71decd8d6c25414907aad232a21cdd1533
5
5
  SHA512:
6
- metadata.gz: 23464780384e45e24c4a8a8255dce0f78d0afd406723d817d68ef66d20a8c0d973d40bdc6bee54188e9714c6ffb20b116045a08bb9c90aa11cb2ec2bdea453a6
7
- data.tar.gz: 4b08b17ebd14c92b615d9d6838d1be78c32b9e695933c895bb99710693bec391736ce26864f139c0e22f794e085367aa5cf0081b659068994cffddbfea23f0bc
6
+ metadata.gz: 1de5425910668b5003f1619bfa65357405a246259c8a02a3d8821619dbb6cdf12ac3fc54380592ee9d26416752103471cc0a1087d7cfb2dc81fe007243ac9940
7
+ data.tar.gz: a17750299991e3c560aa5746f9bdddd1315c3b201d8631a8a4777fd3c9473af66dceeb505c3494b12eb435d7bc6e44dddabd9bc0a1054fd7af948f41a4051d9a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,23 @@
1
+ ### 3.8.2 / 2019-06-10
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Ensure that optional hash arguments are recognised correctly vs keyword
7
+ arguments. (Evgeni Dzhelyov, #366)
8
+ * Ensure that an empty hash is recognised as empty keyword arguments when
9
+ applicable. (Thomas Walpole, #375)
10
+ * Ensure that diffing truthy values produce diffs consistently.
11
+ (Lucas Nestor, #377)
12
+
13
+ ### 3.8.1 / 2019-03-03
14
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.0...v3.8.1)
15
+
16
+ Bug Fixes:
17
+
18
+ * Ensure that inspecting a `SimpleDelegator` based object works regardless of
19
+ visibilty of the `__getobj__` method. (Jon Rowe, #369)
20
+
1
21
  ### 3.8.0 / 2018-08-04
2
22
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.1...v3.8.0)
3
23
 
@@ -11,7 +11,7 @@ module RSpec
11
11
  def diff(actual, expected)
12
12
  diff = ""
13
13
 
14
- if actual && expected
14
+ unless actual.nil? || expected.nil?
15
15
  if all_strings?(actual, expected)
16
16
  if any_multiline_strings?(actual, expected)
17
17
  diff = diff_as_string(coerce_to_string(actual), coerce_to_string(expected))
@@ -78,7 +78,9 @@ module RSpec
78
78
  end
79
79
 
80
80
  def has_kw_args_in?(args)
81
- Hash === args.last && could_contain_kw_args?(args)
81
+ Hash === args.last &&
82
+ could_contain_kw_args?(args) &&
83
+ (args.last.empty? || args.last.keys.any? { |x| x.is_a?(Symbol) })
82
84
  end
83
85
 
84
86
  # Without considering what the last arg is, could it
@@ -225,7 +225,7 @@ module RSpec
225
225
  end
226
226
 
227
227
  def inspect
228
- "#<#{object.class}(#{formatter.format(object.__getobj__)})>"
228
+ "#<#{object.class}(#{formatter.format(object.send(:__getobj__))})>"
229
229
  end
230
230
  end
231
231
 
@@ -59,10 +59,15 @@ module RSpec
59
59
  l =~ %r{bundler/source/rubygems} ||
60
60
  # Ignore bundler + rubygems warning.
61
61
  l =~ %r{site_ruby/\d\.\d\.\d/rubygems} ||
62
+ l =~ %r{jruby-\d\.\d\.\d\.\d/lib/ruby/stdlib/rubygems} ||
62
63
  # This is required for windows for some reason
63
64
  l =~ %r{lib/bundler/rubygems} ||
64
65
  # This is a JRuby file that generates warnings on 9.0.3.0
65
- l =~ %r{lib/ruby/stdlib/jar}
66
+ l =~ %r{lib/ruby/stdlib/jar} ||
67
+ # This is a JRuby file that generates warnings on 9.1.7.0
68
+ l =~ %r{org/jruby/RubyKernel\.java} ||
69
+ # Remove blank lines
70
+ l == "" || l.nil?
66
71
  end.join("\n")
67
72
  end
68
73
 
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.8.0'
4
+ STRING = '3.8.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -48,22 +48,8 @@ cert_chain:
48
48
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
49
49
  F3MdtaDehhjC
50
50
  -----END CERTIFICATE-----
51
- date: 2018-08-04 00:00:00.000000000 Z
51
+ date: 2019-06-10 00:00:00.000000000 Z
52
52
  dependencies:
53
- - !ruby/object:Gem::Dependency
54
- name: bundler
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.3'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '1.3'
67
53
  - !ruby/object:Gem::Dependency
68
54
  name: rake
69
55
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +121,12 @@ files:
135
121
  homepage: https://github.com/rspec/rspec-support
136
122
  licenses:
137
123
  - MIT
138
- metadata: {}
124
+ metadata:
125
+ bug_tracker_uri: https://github.com/rspec/rspec-support/issues
126
+ changelog_uri: https://github.com/rspec/rspec-support/blob/v3.8.2/Changelog.md
127
+ documentation_uri: https://rspec.info/documentation/
128
+ mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
129
+ source_code_uri: https://github.com/rspec/rspec-support
139
130
  post_install_message:
140
131
  rdoc_options:
141
132
  - "--charset=UTF-8"
@@ -152,9 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
143
  - !ruby/object:Gem::Version
153
144
  version: '0'
154
145
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.6.13
146
+ rubygems_version: 3.0.3
157
147
  signing_key:
158
148
  specification_version: 4
159
- summary: rspec-support-3.8.0
149
+ summary: rspec-support-3.8.2
160
150
  test_files: []
metadata.gz.sig CHANGED
Binary file