evt-event_source 0.18.1.0 → 0.18.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/event_source/stream.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 022f8f113948371da8dd7695fb3b06d8c0aab938
4
- data.tar.gz: 50233a6f270ba18f21b056b6243824f861a1623a
3
+ metadata.gz: 295dd6b361b4df19c972ad4799a2e9e2a47c5951
4
+ data.tar.gz: 298324f8c8276ac202bbaf826d7adca2f1ddfa18
5
5
  SHA512:
6
- metadata.gz: b108d324e67ba3b4ee57d062a1eb9690874bfd6e2f273df6f7bccdff5e2e26478b41b3a44fd77f2fb9a10d4cc651a511603f5a5f74628f748563746e7e08fe25
7
- data.tar.gz: 9c59ec5eebfeccae80456069c522d14c21eb3bba369d8539ff81d52b32c52c7f78c6fe340f57c7c3550d8dd95b780f73b50c15cd5deaaf978610b5364070e323
6
+ metadata.gz: b20e3d6f808f377f4b6972f88350e620ad3beceebd38abc7e1c7e73408484be423f4bdbbdfea2ee87c9726ec4961ab65cf4f5b3f7da24c8520191e17795cceb2
7
+ data.tar.gz: 7a5366d45e686ce15140d1bcf899ad52bf7b5afaa221e01be0131a73b15c85c6342f8364f212272ac43ef0de37aeabcb03a6b29b9700d4c9b40aba9e3ddd6d21
@@ -12,6 +12,12 @@ module EventSource
12
12
  end
13
13
  end
14
14
 
15
+ def self.canonize(stream)
16
+ return stream if stream.is_a? self
17
+
18
+ new stream
19
+ end
20
+
15
21
  def type
16
22
  @type ||= self.class.get_type(name)
17
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-event_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1.0
4
+ version: 0.18.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project