moarspec 0.1.1 → 0.1.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: fcd749e032ac8749e719d9e2e5052f205a99c66ef38c5e1b8991898174b5c5e8
4
- data.tar.gz: e5d25d1a1435043743b328f93c70384eef76abac3848ac5533d2bd8912aac968
3
+ metadata.gz: 6dfbd29f8a8dfe39d311e8a705a495b4aeb7db3ca1017f0dcead495b12e953b1
4
+ data.tar.gz: 368c60a4ca9acec4bfae01d18a4eb6639d8fdbd48946fe939fb5997ef187d556
5
5
  SHA512:
6
- metadata.gz: bb6831cdafecc84168202a4903244caadabcd5a95918681282785594b5cb664ff681d43ee44efb4ffa7e8ab30409cc316b4080af26ff2ae5fb2b3d81396ce558
7
- data.tar.gz: a704306c10a382dc811624666b962802fbdf8e8b0161828c383e9de37e55cec5b4a80086b780471593a0c75dcae8599ad52990611d25b45970d482ae2c645681
6
+ metadata.gz: d266be586b4471c7d5918dbb8bb8bc4526e3699b85ac729d56d248b46f886ab3dbcf36de0eb4a02f2ec6bf8d6ca453421ca27f55794c221b7b38935d02cbf0fa
7
+ data.tar.gz: c1ddd646b6b785f9bbf9af09e2201a790429854ba71f7c2dcd8dbd06bbd5c850c628d61c7a7ecfac647b646e6ce2781901c69cc83990e3aa0aa14b7e12a499b7
@@ -60,7 +60,13 @@ module Moarspec
60
60
  # This is dirty, but I don't see another way.
61
61
  if Object.instance_methods.include?(:with)
62
62
  def with(...)
63
- @matcher.with(...)
63
+ if @matcher
64
+ @matcher.with(...)
65
+ else
66
+ @matcher = @delegator.with(...)
67
+ end
68
+
69
+ self
64
70
  end
65
71
  end
66
72
 
@@ -3,6 +3,6 @@
3
3
  module Moarspec
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 1
6
+ PATCH = 2
7
7
  VERSION = [MAJOR, MINOR, PATCH].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moarspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Shepelev