rspice 0.20.0.1 → 0.20.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
2
  SHA256:
3
- metadata.gz: c80707c6a3fe1354ea62b89475c69930844412540b51c4daa217fcfe38c7771e
4
- data.tar.gz: 1291a0e4a1b45dfca0df00e4ad526e12b98487684938807f3dc53bd6343a3f2c
3
+ metadata.gz: c38b906b7a9aa1a693ed2f4cc3baf202a0d52719f7e8d5a4bc3495aebbf71a2f
4
+ data.tar.gz: 6659c794832cbffd2cb93842ea92f79c5183a4777007b2d3843cb35bf44314b0
5
5
  SHA512:
6
- metadata.gz: 540dcf25323a8381f6761e34925e9aad7b5e61e7bcb69d761b580791c14d5a4e5ac0a4629542416d053a09f80295ccd552591617ae4ad6442c4422b61b1cf866
7
- data.tar.gz: 77ca20be070cecc3c634141686db055d21115ac0c2441823b29cf43203b7080e03af4ee7ab201c738e03e4fd4fa5fc75c75e2e850fe8dfe32b71c6aba8f69738
6
+ metadata.gz: c089e84f9440da9496aa586540c746f67b5a4ecc43e3ceee1889ef7c519a455afe5a134439ce94ed604d72407a171b526023691ce072196a442ca3ce4b60e753
7
+ data.tar.gz: 4cc56b4a7a3b9d8fd9e6f8cfa36266f26690ec749075a07ab876128d52ce5a51973f59867c41d23ffba0d72ac1bc15463a5fcf8e9a16a9e2666cdbd298857075
@@ -11,13 +11,20 @@
11
11
  # it { is_expected.to include_module Nodule }
12
12
  # end
13
13
 
14
- RSpec::Matchers.define :include_module do |module_class|
15
- match { test_subject.included_modules.include? module_class }
16
- description { "included the module #{module_class}" }
17
- failure_message { |described_class| "expected #{described_class} to include module #{module_class}" }
18
- failure_message_when_negated { |described_class| "expected #{described_class} not to include module #{module_class}" }
14
+ RSpec::Matchers.define :include_module do |expected_module|
15
+ attr_reader :target
16
+
17
+ description { "included the module #{expected_module}" }
18
+ failure_message { |described_class| "expected #{described_class} to include module #{expected_module}" }
19
+ failure_message_when_negated { |described_class| "expected #{described_class} not to include module #{expected_module}" }
20
+
21
+ match do |target|
22
+ @target = target
23
+
24
+ test_subject.included_modules.include? expected_module
25
+ end
19
26
 
20
27
  def test_subject
21
- subject.is_a?(Class) ? subject : subject.class
28
+ target.is_a?(Class) ? target : target.class
22
29
  end
23
30
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Rspice
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.20.0.1"
5
+ VERSION = "0.20.2"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-01-03 00:00:00.000000000 Z
14
+ date: 2020-01-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
@@ -92,7 +92,7 @@ metadata:
92
92
  homepage_uri: https://github.com/Freshly/spicerack/tree/master/rspice
93
93
  source_code_uri: https://github.com/Freshly/spicerack/tree/master/rspice
94
94
  changelog_uri: https://github.com/Freshly/spicerack/blob/master/rspice/CHANGELOG.md
95
- documentation_uri: https://www.rubydoc.info/gems/rspice/0.20.0.1
95
+ documentation_uri: https://www.rubydoc.info/gems/rspice/0.20.2
96
96
  post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths: