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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0670d19c3dd7ddead5953f361a3fd005a4814c31
4
- data.tar.gz: d0bd98562781b8ace2ee38c5966b52de3881d8ff
3
+ metadata.gz: 71a0cd4491c6662436ada6333382852819332607
4
+ data.tar.gz: d2fd019642bb39a794224fbf232949fed1dcf683
5
5
  SHA512:
6
- metadata.gz: 744905bfde085ea4f0cc21cc42939b38f1aa1a39a122cc6a7febcf314cdb7301a684e0244459b60bf1c38fd51461b62b8e0a6c33fc112712c914c57d197a043f
7
- data.tar.gz: 148b577537c9d706aae070a7565a4639698092cb7fc2b310f3c0b475993bbd3e0108e80e8272c8ded4f4345c8a154ca6eb58e2843c5e0d00be22890588257ac8
6
+ metadata.gz: d6e854200bd028f35c06b3a60bdf510ebd0022456fda7e11912a023425933876aeb97a66b146d383448d160f7570fd23290e50a52f8e13617fc2059bda2b89b2
7
+ data.tar.gz: d542d2dcbdf049443059df95bac73b67bb57ce0cd3a0a6aef91a081ef5c1ef307714441580ff45a7c899fb08a9b8ab6adcc6c94b3dbb4a679575082e3bc0315c
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'es-http-client'
5
- spec.version = '0.1.2'
5
+ spec.version = '0.2.0'
6
6
  spec.licenses = ['MIT']
7
7
  spec.authors = ['Kevin Rutherford']
8
8
  spec.email = ['kevin@rutherford-software.com']
@@ -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
- WriteableStream.new("#{type}-#{id}", @connection)
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.1.2
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: 2017-12-21 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec