elasticsearch-client 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -183,17 +183,18 @@ module ElasticSearch
183
183
  # Create a new index in elasticsearch
184
184
  #
185
185
  # name - the name of the index to be created
186
+ # server - URL of the server to create the index on
186
187
  # create_options - a hash of index creation options
187
188
  #
188
189
  # Returns a new ElasticSearch::Index instance
189
- def self.create(name, create_options={})
190
- conn = ElasticSearch.get_connection
190
+ def self.create(name, server, create_options={})
191
+ conn = ElasticSearch.get_connection(server)
191
192
  conn.put do |req|
192
193
  req.url "/#{name}"
193
194
  req.body = create_options
194
195
  end
195
196
 
196
- new(name)
197
+ new(name, server)
197
198
  end
198
199
  end
199
200
  end
@@ -1,3 +1,3 @@
1
1
  module ElasticSearch
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Hoyt
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-06 00:00:00 Z
18
+ date: 2012-03-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: faraday