cybrid_api_id_ruby 0.37.41 → 0.37.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +5 -5
  4. data/cybrid_api_id_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_id_ruby/api/bank_applications_idp_api.rb +1 -1
  6. data/lib/cybrid_api_id_ruby/api/organization_applications_idp_api.rb +1 -1
  7. data/lib/cybrid_api_id_ruby/api_client.rb +1 -1
  8. data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
  9. data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
  10. data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
  11. data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
  12. data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
  13. data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
  14. data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
  15. data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
  16. data/lib/cybrid_api_id_ruby/version.rb +2 -2
  17. data/lib/cybrid_api_id_ruby.rb +1 -1
  18. data/spec/api/bank_applications_idp_api_spec.rb +1 -1
  19. data/spec/api/organization_applications_idp_api_spec.rb +1 -1
  20. data/spec/api_client_spec.rb +1 -1
  21. data/spec/configuration_spec.rb +1 -1
  22. data/spec/models/application_idp_model_spec.rb +1 -1
  23. data/spec/models/application_list_idp_model_spec.rb +1 -1
  24. data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
  25. data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
  26. data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
  27. data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
  28. data/spec/spec_helper.rb +1 -1
  29. data/vendor/bundle/ruby/3.1.0/cache/rspec-expectations-3.11.1.gem +0 -0
  30. data/vendor/bundle/ruby/3.1.0/cache/rspec-support-3.11.1.gem +0 -0
  31. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/byebug-11.1.3/gem_make.out +2 -2
  32. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/ffi-1.15.5/gem_make.out +2 -2
  33. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/jaro_winkler-1.5.4/gem_make.out +2 -2
  34. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/psych-4.0.5/gem_make.out +2 -2
  35. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/stringio-3.0.2/gem_make.out +2 -2
  36. data/vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  37. data/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  38. data/vendor/bundle/ruby/3.1.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  39. data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.5/ext/psych/Makefile +2 -2
  40. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/.document +0 -0
  41. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/.yardopts +0 -0
  42. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/Changelog.md +11 -1
  43. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/LICENSE.md +0 -0
  44. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/README.md +0 -0
  45. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  46. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/configuration.rb +0 -0
  47. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/expectation_target.rb +0 -0
  48. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/fail_with.rb +0 -0
  49. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/failure_aggregator.rb +0 -0
  50. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/handler.rb +0 -0
  51. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/minitest_integration.rb +0 -0
  52. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/syntax.rb +0 -0
  53. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/version.rb +1 -1
  54. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations.rb +0 -0
  55. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  56. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/all.rb +0 -0
  57. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  58. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be.rb +0 -0
  59. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  60. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  61. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  62. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  63. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/change.rb +0 -0
  64. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/compound.rb +0 -0
  65. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/contain_exactly.rb +10 -2
  66. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/count_expectation.rb +1 -1
  67. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/cover.rb +0 -0
  68. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/eq.rb +0 -0
  69. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/eql.rb +0 -0
  70. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/equal.rb +0 -0
  71. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/exist.rb +1 -1
  72. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/has.rb +0 -0
  73. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  74. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/include.rb +0 -0
  75. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/match.rb +0 -0
  76. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/operators.rb +0 -0
  77. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/output.rb +0 -0
  78. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/raise_error.rb +6 -6
  79. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  80. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  81. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  82. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/throw_symbol.rb +4 -4
  83. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/yield.rb +0 -0
  84. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in.rb +0 -0
  85. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/composable.rb +0 -0
  86. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/dsl.rb +2 -2
  87. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/english_phrasing.rb +0 -0
  88. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  89. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/fail_matchers.rb +0 -0
  90. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  91. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  92. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  93. data/vendor/bundle/ruby/3.1.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers.rb +3 -3
  94. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/Changelog.md +8 -1
  95. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/LICENSE.md +0 -0
  96. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/README.md +0 -0
  97. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/caller_filter.rb +2 -2
  98. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/comparable_version.rb +1 -1
  99. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/differ.rb +4 -4
  100. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/directory_maker.rb +0 -0
  101. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/encoded_string.rb +3 -3
  102. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  103. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/hunk_generator.rb +0 -0
  104. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/matcher_definition.rb +0 -0
  105. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/method_signature_verifier.rb +2 -2
  106. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/mutex.rb +1 -1
  107. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/object_formatter.rb +0 -0
  108. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/recursive_const_methods.rb +0 -0
  109. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/reentrant_mutex.rb +0 -0
  110. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/ruby_features.rb +3 -0
  111. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source/location.rb +0 -0
  112. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source/node.rb +0 -0
  113. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source/token.rb +0 -0
  114. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source.rb +0 -0
  115. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  116. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  117. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/formatting_support.rb +0 -0
  118. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/in_sub_process.rb +1 -1
  119. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  120. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/shell_out.rb +0 -0
  121. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/stderr_splitter.rb +1 -1
  122. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/string_matcher.rb +0 -0
  123. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  124. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  125. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec.rb +0 -0
  126. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/version.rb +1 -1
  127. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/warnings.rb +0 -0
  128. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/with_keywords_when_needed.rb +1 -1
  129. data/vendor/bundle/ruby/3.1.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support.rb +0 -0
  130. data/vendor/bundle/ruby/3.1.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
  131. data/vendor/bundle/ruby/3.1.0/specifications/{rspec-expectations-3.11.0.gemspec → rspec-expectations-3.11.1.gemspec} +5 -5
  132. data/vendor/bundle/ruby/3.1.0/specifications/{rspec-support-3.11.0.gemspec → rspec-support-3.11.1.gemspec} +5 -5
  133. metadata +96 -96
  134. data/vendor/bundle/ruby/3.1.0/cache/rspec-expectations-3.11.0.gem +0 -0
  135. data/vendor/bundle/ruby/3.1.0/cache/rspec-support-3.11.0.gem +0 -0
@@ -32,8 +32,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
32
32
  vendorarchdir = $(vendorlibdir)/$(sitearch)
33
33
  vendorlibdir = $(vendordir)/$(ruby_version)
34
34
  vendordir = $(rubylibprefix)/vendor_ruby
35
- sitearchdir = $(DESTDIR)./.gem.20220909-3332-qemn2g
36
- sitelibdir = $(DESTDIR)./.gem.20220909-3332-qemn2g
35
+ sitearchdir = $(DESTDIR)./.gem.20220912-3431-2texd6
36
+ sitelibdir = $(DESTDIR)./.gem.20220912-3431-2texd6
37
37
  sitedir = $(rubylibprefix)/site_ruby
38
38
  rubyarchdir = $(rubylibdir)/$(arch)
39
39
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,5 +1,15 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.0...3-11-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.1...3-11-maintenance)
3
+
4
+ ### 3.11.1 / 2022-09-12
5
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.0...v3.11.1)
6
+
7
+ Bug Fixes:
8
+
9
+ * Allow the `contain_exactly` matcher to be reused by resetting its
10
+ internals on `matches?` (@bclayman-sq, #1326)
11
+ * Using the exist matcher on `FileTest` no longer produces a deprecation warning.
12
+ (Ryo Nakamura, #1383)
3
13
 
4
14
  ### 3.11.0 / 2022-02-09
5
15
  [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.2...v3.11.0)
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.11.0'
5
+ STRING = '3.11.1'
6
6
  end
7
7
  end
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Matchers
3
3
  module BuiltIn
4
- # rubocop:disable ClassLength
4
+ # rubocop:disable Metrics/ClassLength
5
5
  # @api private
6
6
  # Provides the implementation for `contain_exactly` and `match_array`.
7
7
  # Not intended to be instantiated directly.
@@ -31,6 +31,14 @@ module RSpec
31
31
  "contain exactly#{list}"
32
32
  end
33
33
 
34
+ def matches?(actual)
35
+ @pairings_maximizer = nil
36
+ @best_solution = nil
37
+ @extra_items = nil
38
+ @missing_items = nil
39
+ super(actual)
40
+ end
41
+
34
42
  private
35
43
 
36
44
  def generate_failure_message
@@ -296,7 +304,7 @@ module RSpec
296
304
  end
297
305
  end
298
306
  end
299
- # rubocop:enable ClassLength
307
+ # rubocop:enable Metrics/ClassLength
300
308
  end
301
309
  end
302
310
  end
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Matchers
3
3
  module BuiltIn
4
4
  # @api private
5
- # Asbtract class to implement `once`, `at_least` and other
5
+ # Abstract class to implement `once`, `at_least` and other
6
6
  # count constraints.
7
7
  module CountExpectation
8
8
  # @api public
@@ -81,7 +81,7 @@ module RSpec
81
81
  end
82
82
 
83
83
  def deprecated(predicate, actual)
84
- predicate == :exists? && File == actual
84
+ predicate == :exists? && (File == actual || FileTest == actual)
85
85
  end
86
86
  end
87
87
  end
@@ -4,8 +4,8 @@ module RSpec
4
4
  # @api private
5
5
  # Provides the implementation for `raise_error`.
6
6
  # Not intended to be instantiated directly.
7
- # rubocop:disable ClassLength
8
- # rubocop:disable RescueException
7
+ # rubocop:disable Metrics/ClassLength
8
+ # rubocop:disable Lint/RescueException
9
9
  class RaiseError
10
10
  include Composable
11
11
 
@@ -43,7 +43,7 @@ module RSpec
43
43
  self
44
44
  end
45
45
 
46
- # rubocop:disable MethodLength
46
+ # rubocop:disable Metrics/MethodLength
47
47
  # @private
48
48
  def matches?(given_proc, negative_expectation=false, &block)
49
49
  @given_proc = given_proc
@@ -73,7 +73,7 @@ module RSpec
73
73
 
74
74
  expectation_matched?
75
75
  end
76
- # rubocop:enable MethodLength
76
+ # rubocop:enable Metrics/MethodLength
77
77
 
78
78
  # @private
79
79
  def does_not_match?(given_proc)
@@ -264,8 +264,8 @@ module RSpec
264
264
  warning if @actual_error
265
265
  end
266
266
  end
267
- # rubocop:enable RescueException
268
- # rubocop:enable ClassLength
267
+ # rubocop:enable Lint/RescueException
268
+ # rubocop:enable Metrics/ClassLength
269
269
  end
270
270
  end
271
271
  end
@@ -13,7 +13,7 @@ module RSpec
13
13
  @caught_symbol = @caught_arg = nil
14
14
  end
15
15
 
16
- # rubocop:disable MethodLength
16
+ # rubocop:disable Metrics/MethodLength
17
17
  # @private
18
18
  def matches?(given_proc)
19
19
  @block = given_proc
@@ -48,7 +48,7 @@ module RSpec
48
48
  rescue => other_exception
49
49
  raise
50
50
  ensure
51
- # rubocop:disable EnsureReturn
51
+ # rubocop:disable Lint/EnsureReturn
52
52
  unless other_exception
53
53
  if @expected_symbol.nil?
54
54
  return !!@caught_symbol
@@ -60,10 +60,10 @@ module RSpec
60
60
  end
61
61
  end
62
62
  end
63
- # rubocop:enable EnsureReturn
63
+ # rubocop:enable Lint/EnsureReturn
64
64
  end
65
65
  end
66
- # rubocop:enable MethodLength
66
+ # rubocop:enable Metrics/MethodLength
67
67
 
68
68
  def does_not_match?(given_proc)
69
69
  !matches?(given_proc) && Proc === given_proc
@@ -122,7 +122,7 @@ module RSpec
122
122
  #
123
123
  # By default the match block will swallow expectation errors (e.g.
124
124
  # caused by using an expectation such as `expect(1).to eq 2`), if you
125
- # with to allow these to bubble up, pass in the option
125
+ # wish to allow these to bubble up, pass in the option
126
126
  # `:notify_expectation_failures => true`.
127
127
  #
128
128
  # @param [Hash] options for defining the behavior of the match block.
@@ -151,7 +151,7 @@ module RSpec
151
151
  #
152
152
  # By default the match block will swallow expectation errors (e.g.
153
153
  # caused by using an expectation such as `expect(1).to eq 2`), if you
154
- # with to allow these to bubble up, pass in the option
154
+ # wish to allow these to bubble up, pass in the option
155
155
  # `:notify_expectation_failures => true`.
156
156
  #
157
157
  # @param [Hash] options for defining the behavior of the match block.
@@ -36,7 +36,7 @@ module RSpec
36
36
  # expect([]).to be_empty # => [].empty?() | passes
37
37
  # expect([]).not_to be_empty # => [].empty?() | fails
38
38
  #
39
- # In addtion to prefixing the predicate matchers with "be_", you can also use "be_a_"
39
+ # In addition to prefixing the predicate matchers with "be_", you can also use "be_a_"
40
40
  # and "be_an_", making your specs read much more naturally:
41
41
  #
42
42
  # expect("a string").to be_an_instance_of(String) # =>"a string".instance_of?(String) # passes
@@ -753,8 +753,8 @@ module RSpec
753
753
 
754
754
  # With no args, matches if any error is raised.
755
755
  # With a named error, matches only if that specific error is raised.
756
- # With a named error and messsage specified as a String, matches only if both match.
757
- # With a named error and messsage specified as a Regexp, matches only if both match.
756
+ # With a named error and message specified as a String, matches only if both match.
757
+ # With a named error and message specified as a Regexp, matches only if both match.
758
758
  # Pass an optional block to perform extra verifications on the exception matched
759
759
  #
760
760
  # @example
@@ -1,5 +1,12 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.0...3-11-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.1...3-11-maintenance)
3
+
4
+ ### 3.11.1 / 2022-09-12
5
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.0...v3.11.1)
6
+
7
+ Bug Fixes:
8
+
9
+ * Fix ripper detection on TruffleRuby. (Brandon Fish, #541)
3
10
 
4
11
  ### 3.11.0 / 2022-02-09
5
12
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.3...v3.11.0)
@@ -25,7 +25,7 @@ module RSpec
25
25
  # when `CallerFilter.first_non_rspec_line` is called from the top level of a required
26
26
  # file, but it depends on if rubygems is loaded or not. We don't want to have to deal
27
27
  # with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
28
- IGNORE_REGEX = Regexp.union(LIB_REGEX, "rubygems/core_ext/kernel_require.rb")
28
+ IGNORE_REGEX = Regexp.union(LIB_REGEX, "rubygems/core_ext/kernel_require.rb", "<internal:")
29
29
 
30
30
  if RSpec::Support::RubyFeatures.caller_locations_supported?
31
31
  # This supports args because it's more efficient when the caller specifies
@@ -34,7 +34,7 @@ module RSpec
34
34
  # be found in a small number of stack frames from `skip_frames`.
35
35
  #
36
36
  # Note that there is a risk to passing a `skip_frames` value that is too high:
37
- # If it skippped the first non-rspec line, then this method would return the
37
+ # If it skipped the first non-rspec line, then this method would return the
38
38
  # 2nd or 3rd (or whatever) non-rspec line. Thus, you generally shouldn't pass
39
39
  # values for these parameters, particularly since most places that use this are
40
40
  # not hot spots (generally it gets used for deprecation warnings). However,
@@ -10,7 +10,7 @@ module RSpec
10
10
  @string = string
11
11
  end
12
12
 
13
- def <=>(other) # rubocop:disable Metrics/AbcSize
13
+ def <=>(other)
14
14
  other = self.class.new(other) unless other.is_a?(self.class)
15
15
 
16
16
  return 0 if string == other.string
@@ -6,7 +6,7 @@ require 'pp'
6
6
 
7
7
  module RSpec
8
8
  module Support
9
- # rubocop:disable ClassLength
9
+ # rubocop:disable Metrics/ClassLength
10
10
  class Differ
11
11
  def diff(actual, expected)
12
12
  diff = ""
@@ -24,7 +24,7 @@ module RSpec
24
24
  diff.to_s
25
25
  end
26
26
 
27
- # rubocop:disable MethodLength
27
+ # rubocop:disable Metrics/MethodLength
28
28
  def diff_as_string(actual, expected)
29
29
  encoding = EncodedString.pick_encoding(actual, expected)
30
30
 
@@ -52,7 +52,7 @@ module RSpec
52
52
  rescue Encoding::CompatibilityError
53
53
  handle_encoding_errors(actual, expected)
54
54
  end
55
- # rubocop:enable MethodLength
55
+ # rubocop:enable Metrics/MethodLength
56
56
 
57
57
  def diff_as_object(actual, expected)
58
58
  actual_as_string = object_to_string(actual)
@@ -210,6 +210,6 @@ module RSpec
210
210
  end
211
211
  end
212
212
  end
213
- # rubocop:enable ClassLength
213
+ # rubocop:enable Metrics/ClassLength
214
214
  end
215
215
  end
@@ -60,7 +60,7 @@ module RSpec
60
60
  # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '<undef>')
61
61
  # # => '<undef>'
62
62
  # Encoding::CompatibilityError
63
- # when Encoding.compatibile?(str1, str2) is nil
63
+ # when Encoding.compatible?(str1, str2) is nil
64
64
  # e.g. utf_16le_emoji_string.split("\n")
65
65
  # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string
66
66
  # Encoding::InvalidByteSequenceError:
@@ -92,7 +92,7 @@ module RSpec
92
92
  string = remove_invalid_bytes(string)
93
93
  string.encode(@encoding)
94
94
  rescue Encoding::UndefinedConversionError, Encoding::InvalidByteSequenceError
95
- # Originally defined as a constant to avoid uneeded allocations, this hash must
95
+ # Originally defined as a constant to avoid unneeded allocations, this hash must
96
96
  # be defined inline (without {}) to avoid warnings on Ruby 2.7
97
97
  #
98
98
  # In MRI 2.1 'invalid: :replace' changed to also replace an invalid byte sequence
@@ -108,7 +108,7 @@ module RSpec
108
108
  #
109
109
  string.encode(@encoding, :invalid => :replace, :undef => :replace, :replace => REPLACE)
110
110
  rescue Encoding::ConverterNotFoundError
111
- # Originally defined as a constant to avoid uneeded allocations, this hash must
111
+ # Originally defined as a constant to avoid unneeded allocations, this hash must
112
112
  # be defined inline (without {}) to avoid warnings on Ruby 2.7
113
113
  string.dup.force_encoding(@encoding).encode(:invalid => :replace, :replace => REPLACE)
114
114
  end
@@ -8,7 +8,7 @@ module RSpec
8
8
  # keyword args of a given method.
9
9
  #
10
10
  # @private
11
- class MethodSignature # rubocop:disable ClassLength
11
+ class MethodSignature # rubocop:disable Metrics/ClassLength
12
12
  attr_reader :min_non_kw_args, :max_non_kw_args, :optional_kw_args, :required_kw_args
13
13
 
14
14
  def initialize(method)
@@ -285,7 +285,7 @@ module RSpec
285
285
  @arbitrary_kw_args = @unlimited_args = false
286
286
  end
287
287
 
288
- def with_expectation(expectation) # rubocop:disable MethodLength, Metrics/PerceivedComplexity
288
+ def with_expectation(expectation) # rubocop:disable Metrics/MethodLength
289
289
  return self unless MethodSignatureExpectation === expectation
290
290
 
291
291
  if expectation.empty?
@@ -9,7 +9,7 @@ module RSpec
9
9
  # Some methods we don't need are deleted. Anything I don't
10
10
  # understand (there's quite a bit, actually) is left in.
11
11
  #
12
- # Some formating changes are made to appease the robot overlord:
12
+ # Some formatting changes are made to appease the robot overlord:
13
13
  # https://travis-ci.org/rspec/rspec-core/jobs/54410874
14
14
  # @private
15
15
  class Mutex
@@ -116,6 +116,9 @@ module RSpec
116
116
  ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.2.0.0'))
117
117
  end
118
118
 
119
+ # TruffleRuby disables ripper due to low performance
120
+ ripper_requirements.push(false) if Ruby.truffleruby?
121
+
119
122
  if ripper_requirements.all?
120
123
  def ripper_supported?
121
124
  true
@@ -7,7 +7,7 @@ module RSpec
7
7
 
8
8
  # Useful as a way to isolate a global change to a subprocess.
9
9
 
10
- def in_sub_process(prevent_warnings=true) # rubocop:disable MethodLength, Metrics/AbcSize
10
+ def in_sub_process(prevent_warnings=true) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
11
11
  exception_reader, exception_writer = IO.pipe
12
12
  result_reader, result_writer = IO.pipe
13
13
 
@@ -39,7 +39,7 @@ module RSpec
39
39
  def write(line)
40
40
  return if line =~ %r{^\S+/gems/\S+:\d+: warning:} # http://rubular.com/r/kqeUIZOfPG
41
41
 
42
- # Ruby 2.7.0 warnings from keyword argments span multiple lines, extend check above
42
+ # Ruby 2.7.0 warnings from keyword arguments span multiple lines, extend check above
43
43
  # to look for the next line.
44
44
  return if @last_line =~ %r{^\S+/gems/\S+:\d+: warning:} &&
45
45
  line =~ %r{warning: The called method .* is defined here}
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.11.0'
4
+ STRING = '3.11.1'
5
5
  end
6
6
  end
7
7
  end
@@ -9,7 +9,7 @@ module RSpec
9
9
  module_function
10
10
 
11
11
  if RSpec::Support::RubyFeatures.kw_args_supported?
12
- # Remove this in RSpec 4 in favour of explictly passed in kwargs where
12
+ # Remove this in RSpec 4 in favour of explicitly passed in kwargs where
13
13
  # this is used. Works around a warning in Ruby 2.7
14
14
 
15
15
  def class_exec(klass, *args, &block)
@@ -32,8 +32,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
32
32
  vendorarchdir = $(vendorlibdir)/$(sitearch)
33
33
  vendorlibdir = $(vendordir)/$(ruby_version)
34
34
  vendordir = $(rubylibprefix)/vendor_ruby
35
- sitearchdir = $(DESTDIR)./.gem.20220909-3332-rzmx5m
36
- sitelibdir = $(DESTDIR)./.gem.20220909-3332-rzmx5m
35
+ sitearchdir = $(DESTDIR)./.gem.20220912-3431-gsr5z1
36
+ sitelibdir = $(DESTDIR)./.gem.20220912-3431-gsr5z1
37
37
  sitedir = $(rubylibprefix)/site_ruby
38
38
  rubyarchdir = $(rubylibdir)/$(arch)
39
39
  rubylibdir = $(rubylibprefix)/$(ruby_version)