evt-event_store-http 0.1.0.4 → 0.1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c67475ec347e53c35aa0b901573f2bdbba594a7c
4
- data.tar.gz: a33092fc4b2eee84c8107f4fd9456874b3caf58e
3
+ metadata.gz: ed6319a53ade148fe7b3c18b1a36fc92ea805bf9
4
+ data.tar.gz: 7ceb22dc954c090ebf6014c0b8bd0db0fa0baac3
5
5
  SHA512:
6
- metadata.gz: 584090dea2da4c8b5f88a99f0346866dcc62bead9aa318d548fccf6eba41e53f97f81b609b32aad09ab43386b4ee3d93bdf25610bb19562748ce97fc66e2df66
7
- data.tar.gz: 014f11e8dd3dcf65d90e643d1ab00ac4cc2a49650de61627832f159c519ac9b9b5f5212686ad5781a3e7e9f0be9b75a04d1c7d26ddc1b29124d0fd3ee26839ad
6
+ metadata.gz: cc1e6685fb6c3b70f9621e524d471a62b179c4b0f0c555135757f9256f7eb7452c59f246f39a9cdf00f6357c22ab08165c5768261cbedca43802adec14d93e0c
7
+ data.tar.gz: bbbf26514cb9bdfa85d6442e3807b519bd323fd70b9f1ddbfd850cfb41e7923263611dba64276795cc0226595ac9e783926b307360467ba4bee07031274f9781
@@ -6,6 +6,7 @@ module EventStore
6
6
  net_http.instance_exec do
7
7
  extend DefaultHostHeader
8
8
  extend IPAddress
9
+ extend IO
9
10
  end
10
11
  end
11
12
 
@@ -15,6 +16,12 @@ module EventStore
15
16
  end
16
17
  end
17
18
 
19
+ module IO
20
+ def io
21
+ @socket&.io
22
+ end
23
+ end
24
+
18
25
  module IPAddress
19
26
  def ip_address
20
27
  if @socket.instance_of? Net::BufferedIO
@@ -43,6 +43,21 @@ module EventStore
43
43
  end
44
44
  end
45
45
  end
46
+
47
+ module Assertions
48
+ def session?(session, copy: nil)
49
+ return false unless connection.is_a? Session
50
+ return false unless connection.connect == session.connect
51
+
52
+ instancy_equality = connection.equal? session
53
+
54
+ if copy
55
+ !instancy_equality
56
+ else
57
+ instancy_equality
58
+ end
59
+ end
60
+ end
46
61
  end
47
62
  end
48
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-event_store-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.4
4
+ version: 0.1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project