moarspec 0.1.0 → 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: cbe02b386d8bb5096462151db51d932f06787af44b10f3710113ca27ce107d91
4
- data.tar.gz: 8329a3c29236662afa9614d31094389d13e2ddcc1611b1873dc2c48fa8053b50
3
+ metadata.gz: 6dfbd29f8a8dfe39d311e8a705a495b4aeb7db3ca1017f0dcead495b12e953b1
4
+ data.tar.gz: 368c60a4ca9acec4bfae01d18a4eb6639d8fdbd48946fe939fb5997ef187d556
5
5
  SHA512:
6
- metadata.gz: '000817d751bd76bd08cdb817f66f40fb57f93ac39cdf7c666c06fde4837aed7d3df21924e85a79a4932d79bece239315cdc50b3db201ab07a87876847de6132f'
7
- data.tar.gz: 4424ee10f7129fe955efb375d50607eb95ac291e58afda48f2f2425c2ca3657e0a37f10c00973239e15a5b1426aebe622aef064c499dc9aad46b5003597fb147
6
+ metadata.gz: d266be586b4471c7d5918dbb8bb8bc4526e3699b85ac729d56d248b46f886ab3dbcf36de0eb4a02f2ec6bf8d6ca453421ca27f55794c221b7b38935d02cbf0fa
7
+ data.tar.gz: c1ddd646b6b785f9bbf9af09e2201a790429854ba71f7c2dcd8dbd06bbd5c850c628d61c7a7ecfac647b646e6ce2781901c69cc83990e3aa0aa14b7e12a499b7
data/lib/moarspec/its.rb CHANGED
@@ -47,3 +47,5 @@ end
47
47
  require_relative 'its/map'
48
48
  require_relative 'its/block'
49
49
  require_relative 'its/call'
50
+ require_relative 'its/with'
51
+ require_relative 'its/block_with'
@@ -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 = 0
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Shepelev