evt-event_source-event_store-http 0.5.0.1 → 0.5.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: d17fab60f4225c7c1ed63a068bd5e3f7c0540f5e
4
- data.tar.gz: 90e14ca711836ec32b8a1693e6ad2af2d32a7c94
3
+ metadata.gz: b3dd011965cb7857c1269dde1ce3b96ac049726a
4
+ data.tar.gz: 73b296e27fcad034fffb17362f2d0d39da43e384
5
5
  SHA512:
6
- metadata.gz: a38ed154d8e14a055baba38d0d26e7c23d0171676e5a6eb00cda18774eef176bb07fd833796ff62773ef2224b4d35a42ecf934a825f0197e5f99a400f64fed44
7
- data.tar.gz: 6a56fcae6ae3c9e5c6a5537257c1fccbfa008fab8e5820cd490d1321d00ab899f5fb028e1c574ca80bbc0beb78d6e77cc34bb588a55a82b10b1b565af00ee1d5
6
+ metadata.gz: 38a05abb854f2f5e9c949bd543e534f5b8e3b4a642cd5b0880b1cee577e84cb261554e44144868d26691a28db16082d69e23bec77c40eec6a80777f3a678fd42
7
+ data.tar.gz: f369522acb65f296662f6c02710326d76afca66abae630e6272cab5eaf4c5fc24d507260ea114aee5246b80a9a698383258ea90a838a763170477abcd54b7058
@@ -3,6 +3,10 @@ module EventSource
3
3
  module HTTP
4
4
  class Get
5
5
  module Assertions
6
+ def self.extended(get)
7
+ get.read_stream.extend ::EventStore::HTTP::Request::Assertions
8
+ end
9
+
6
10
  def long_poll_enabled?(value=nil)
7
11
  duration = read_stream.long_poll_duration
8
12
 
@@ -15,8 +19,8 @@ module EventSource
15
19
  end
16
20
  end
17
21
 
18
- def session?(session)
19
- read_stream.connection.equal? session
22
+ def session?(session, copy: nil)
23
+ read_stream.session? session, copy: copy
20
24
  end
21
25
  end
22
26
  end
@@ -48,6 +48,16 @@ module EventSource
48
48
 
49
49
  position.to_i
50
50
  end
51
+
52
+ module Assertions
53
+ def self.extended(put)
54
+ put.write.extend ::EventStore::HTTP::Request::Assertions
55
+ end
56
+
57
+ def session?(session, copy: nil)
58
+ write.session? session, copy: copy
59
+ end
60
+ end
51
61
  end
52
62
  end
53
63
  end
@@ -23,8 +23,12 @@ module EventSource
23
23
  end
24
24
 
25
25
  module Assertions
26
- def session?(session)
27
- put.write.connection.equal? session
26
+ def self.extended(write)
27
+ write.put.extend Put::Assertions
28
+ end
29
+
30
+ def session?(session, copy: nil)
31
+ put.session? session, copy: copy
28
32
  end
29
33
  end
30
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-event_source-event_store-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.1
4
+ version: 0.5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-event_source