es-http-client 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/es-http-client.gemspec +1 -1
- data/lib/es_http_client/client.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a0cd4491c6662436ada6333382852819332607
|
4
|
+
data.tar.gz: d2fd019642bb39a794224fbf232949fed1dcf683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e854200bd028f35c06b3a60bdf510ebd0022456fda7e11912a023425933876aeb97a66b146d383448d160f7570fd23290e50a52f8e13617fc2059bda2b89b2
|
7
|
+
data.tar.gz: d542d2dcbdf049443059df95bac73b67bb57ce0cd3a0a6aef91a081ef5c1ef307714441580ff45a7c899fb08a9b8ab6adcc6c94b3dbb4a679575082e3bc0315c
|
data/es-http-client.gemspec
CHANGED
@@ -9,8 +9,12 @@ module EsHttpClient
|
|
9
9
|
@connection = connection
|
10
10
|
end
|
11
11
|
|
12
|
+
def resource(id)
|
13
|
+
WriteableStream.new(id, @connection)
|
14
|
+
end
|
15
|
+
|
12
16
|
def stream(type, id)
|
13
|
-
|
17
|
+
resource("#{type}-#{id}")
|
14
18
|
end
|
15
19
|
|
16
20
|
def all_events
|
@@ -20,3 +24,4 @@ module EsHttpClient
|
|
20
24
|
end
|
21
25
|
|
22
26
|
end
|
27
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: es-http-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Rutherford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|