evt-event_source-event_store-http 0.2.0.0.pre3 → 0.2.0.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: 31a40f93e507825b512dfdc9888f92084341899b
4
- data.tar.gz: 047d36269233003f428bc63d792a8431e57cec64
3
+ metadata.gz: 2025e86eb955cf9dd473e6c37926b060a69381ad
4
+ data.tar.gz: 65b06cf4026cd00047828ae408adf537736e3f83
5
5
  SHA512:
6
- metadata.gz: 70ecd424f58eb004c16748b150ff0067bb54fe85a4c12467a412c3f3c923e57ea60a710a8bec0352aeac31d0b8166c58d2579d8c674e14ddda8768b7afef17c1
7
- data.tar.gz: 944bd74d27628d59e92c67f00b96e00419ecd253eecec9314def4bdeb32aa708b0aabb21245c3cb83a5f9708acfb689f6174b23ba7e96bcdcff7cb8e797c7a6a
6
+ metadata.gz: b6462d550f3eea7c2765f72e0d0fbd09c146edb8c1d6373b52f98109e668e1ec0f129cf98378f54184fa180161315c04d2d9da85af28bc70df4388bdcd7d8343
7
+ data.tar.gz: 3d57ea9a962f4abea3f7f8b69790f92694552ad3edb00a31c6f4100d3cda51362cc638af5e2edb55168bf230fb8370416d4cf42078c7f3bf93fa5d8e6eab6b15
@@ -15,12 +15,12 @@ module EventSource
15
15
 
16
16
  module NoStream
17
17
  def self.example
18
- :no_stream
18
+ EventSource::NoStream.name
19
19
  end
20
20
 
21
21
  module Header
22
22
  def self.example
23
- '-1'
23
+ EventSource::NoStream.version.to_s
24
24
  end
25
25
  end
26
26
  end
@@ -6,7 +6,7 @@ module EventSource
6
6
  include Log::Dependency
7
7
 
8
8
  def call(path, request_body, expected_version: nil, &probe)
9
- expected_version = -1 if expected_version == Post.no_stream_version
9
+ expected_version = EventSource::ExpectedVersion.canonize expected_version
10
10
 
11
11
  log_attributes = "Path: #{path}, ContentLength: #{request_body.bytesize}, MediaType: #{media_type}, Headers: #{headers.inspect}"
12
12
  logger.trace { "Performing GET request (#{log_attributes}" }
@@ -68,10 +68,6 @@ module EventSource
68
68
  Error = Class.new StandardError
69
69
  ExpectedVersionError = Class.new Error
70
70
  WriteTimeoutError = Class.new Error
71
-
72
- def self.no_stream_version
73
- :no_stream
74
- end
75
71
  end
76
72
  end
77
73
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.2.0.0.pre3
4
+ version: 0.2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
@@ -108,9 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: 2.3.3
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ">"
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: 1.3.1
113
+ version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
116
  rubygems_version: 2.6.8