elastomer-cli 0.2.0 → 0.2.2

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: cc4804402a958ef07aaf1c4854976b858778ea08
4
- data.tar.gz: 07a5c10fbd445371766246493c60ea458c007b57
3
+ metadata.gz: 5d18eff5e75b895c06c49cebc0b63cc1cf0178b8
4
+ data.tar.gz: 98c890b586b9fb012ef6aea147ef7524e3b81369
5
5
  SHA512:
6
- metadata.gz: f3908d0181de8b06d12c9461daa22422142621f321ba19131d26c76695171b50fffa5c2d17bb775711083a00a03f7cda0310984eda7db33d34513a6b6baaf8ef
7
- data.tar.gz: 327710d6d1e0cdf9b40c4dea0b7e95498bc99e0acfc697667a8b5616300560969a7ee36d10d87c986d62fdb10bc29c9d5a4537c5441234a33667b1d470efc17b
6
+ metadata.gz: a3d24db9d0994429e920ad616dc219c8d0befc4f59800554c9822191a91a123f6c457a8c82c33805c031d819f061f9c1c20cfffd89d5c6bdcaa3e3ef51dccdf6
7
+ data.tar.gz: 222fd7a12c90a8487cae69d95fdfaecfc058ecdfeb41913db68c08fde10fb167ed0be081b3cf72732cce535b0d60069229c8c62ec53a5a20976977828418a2b6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.2.2 (2014-10-08)
2
+ - Fix tests
3
+
4
+ ## 0.2.1 (yanked) (2014-10-08)
5
+ - Use elastomer-client 0.4
6
+
1
7
  ## 0.2.0 (2014-08-13)
2
8
  - Add node name to cluster health header
3
9
  - List all nodes in the cluster instead of just local
@@ -5,6 +11,7 @@
5
11
  - New commands:
6
12
  - `index list`
7
13
  - `cat`
14
+
8
15
  ## 0.1.0 (2014-06-24)
9
16
  - First rubygems release
10
17
  - New commands
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency "thor"
22
22
  spec.add_runtime_dependency "terminal-table"
23
- spec.add_runtime_dependency "elastomer-client", "~> 0.3.1"
23
+ spec.add_runtime_dependency "elastomer-client", "~> 0.4.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.5"
26
26
  spec.add_development_dependency "rake"
@@ -1,5 +1,5 @@
1
1
  module Elastomer
2
2
  module Cli
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ http_interactions:
25
25
  body:
26
26
  encoding: UTF-8
27
27
  string: "{\"cluster_name\":\"elasticsearch\",\"status\":\"green\",\"timed_out\":false,\"number_of_nodes\":1,\"number_of_data_nodes\":1,\"active_primary_shards\":0,\"active_shards\":0,\"relocating_shards\":0,\"initializing_shards\":0,\"unassigned_shards\":0}"
28
- http_version:
28
+ http_version:
29
29
  recorded_at: Sat, 07 Jun 2014 19:57:26 GMT
30
30
  - request:
31
31
  method: get
@@ -71,7 +71,7 @@ http_interactions:
71
71
  of 500ms) cpu usage by thread 'elasticsearch[Bug][[timer]]'\n 10/10 snapshots
72
72
  sharing following 2 elements\n java.lang.Thread.sleep(Native Method)\n
73
73
  \ org.elasticsearch.threadpool.ThreadPool$EstimatedTimeThread.run(ThreadPool.java:518)\n\n"
74
- http_version:
74
+ http_version:
75
75
  recorded_at: Wed, 18 Jun 2014 01:14:57 GMT
76
76
  - request:
77
77
  method: get
@@ -103,7 +103,7 @@ http_interactions:
103
103
  Cache\",\"Par Eden Space\",\"Par Survivor Space\",\"CMS Old Gen\",\"CMS Perm
104
104
  Gen\"]},\"thread_pool\":{\"generic\":{\"type\":\"cached\",\"keep_alive\":\"30s\"},\"index\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"200\"},\"snapshot_data\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"bench\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"get\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"snapshot\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"merge\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"suggest\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"bulk\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"50\"},\"optimize\":{\"type\":\"fixed\",\"min\":1,\"max\":1},\"warmer\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"flush\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"search\":{\"type\":\"fixed\",\"min\":24,\"max\":24,\"queue_size\":\"1k\"},\"percolate\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"management\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"refresh\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"}},\"network\":{\"refresh_interval_in_millis\":5000,\"primary_interface\":{\"address\":\"192.168.1.185\",\"name\":\"en0\",\"mac_address\":\"28:CF:E9:12:EB:D3\"}},\"transport\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9300]\",\"publish_address\":\"inet[/192.168.1.185:9300]\"},\"http\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9200]\",\"publish_address\":\"inet[/192.168.1.185:9200]\",\"max_content_length_in_bytes\":104857600},\"plugins\":[{\"name\":\"cloud-aws\",\"version\":\"2.1.1\",\"description\":\"Cloud
105
105
  AWS Plugin\",\"jvm\":true,\"site\":false}]}}}"
106
- http_version:
106
+ http_version:
107
107
  recorded_at: Wed, 18 Jun 2014 01:28:06 GMT
108
108
  - request:
109
109
  method: get
@@ -130,7 +130,7 @@ http_interactions:
130
130
  body:
131
131
  encoding: UTF-8
132
132
  string: "{\"persistent\":{\"indices.ttl.interval\":\"50\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
133
- http_version:
133
+ http_version:
134
134
  recorded_at: Wed, 18 Jun 2014 01:48:45 GMT
135
135
  - request:
136
136
  method: get
@@ -169,7 +169,7 @@ http_interactions:
169
169
  },
170
170
  "tagline" : "You Know, for Search"
171
171
  }
172
- http_version:
172
+ http_version:
173
173
  recorded_at: Wed, 18 Jun 2014 02:19:40 GMT
174
174
  - request:
175
175
  method: get
@@ -208,7 +208,7 @@ http_interactions:
208
208
  },
209
209
  "tagline" : "You Know, for Search"
210
210
  }
211
- http_version:
211
+ http_version:
212
212
  recorded_at: Wed, 18 Jun 2014 02:19:40 GMT
213
213
  - request:
214
214
  method: get
@@ -240,7 +240,7 @@ http_interactions:
240
240
  Cache\",\"Par Eden Space\",\"Par Survivor Space\",\"CMS Old Gen\",\"CMS Perm
241
241
  Gen\"]},\"thread_pool\":{\"generic\":{\"type\":\"cached\",\"keep_alive\":\"30s\"},\"index\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"200\"},\"snapshot_data\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"bench\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"get\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"snapshot\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"merge\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"suggest\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"bulk\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"50\"},\"optimize\":{\"type\":\"fixed\",\"min\":1,\"max\":1},\"warmer\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"flush\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"search\":{\"type\":\"fixed\",\"min\":24,\"max\":24,\"queue_size\":\"1k\"},\"percolate\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"management\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"refresh\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"}},\"network\":{\"refresh_interval_in_millis\":5000,\"primary_interface\":{\"address\":\"192.168.1.185\",\"name\":\"en0\",\"mac_address\":\"28:CF:E9:12:EB:D3\"}},\"transport\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9300]\",\"publish_address\":\"inet[/192.168.1.185:9300]\"},\"http\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9200]\",\"publish_address\":\"inet[/192.168.1.185:9200]\",\"max_content_length_in_bytes\":104857600},\"plugins\":[{\"name\":\"cloud-aws\",\"version\":\"2.2.0\",\"description\":\"Cloud
242
242
  AWS Plugin\",\"jvm\":true,\"site\":false}]}}}"
243
- http_version:
243
+ http_version:
244
244
  recorded_at: Wed, 13 Aug 2014 17:06:59 GMT
245
245
  - request:
246
246
  method: get
@@ -329,7 +329,7 @@ http_interactions:
329
329
  \ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n
330
330
  \ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
331
331
  \ java.lang.Thread.run(Thread.java:745)\n\n"
332
- http_version:
332
+ http_version:
333
333
  recorded_at: Wed, 13 Aug 2014 17:10:40 GMT
334
334
  - request:
335
335
  method: get
@@ -356,6 +356,33 @@ http_interactions:
356
356
  body:
357
357
  encoding: UTF-8
358
358
  string: "{\"cluster_name\":\"elasticsearch\",\"version\":9,\"master_node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"blocks\":{},\"nodes\":{\"oH7pQrL0SByxwCa18LCV_Q\":{\"name\":\"Korg\",\"transport_address\":\"inet[Grants-MacBook-Pro-2.local/127.0.0.1:9300]\",\"attributes\":{}}},\"metadata\":{\"templates\":{},\"indices\":{\"test2\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"ExLq1IfcQeOXnEGLa5OY5g\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1030199\"}}},\"mappings\":{},\"aliases\":[]},\"test1\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"NZ5l0In9TX6jCOYnUkUcsw\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1030199\"}}},\"mappings\":{},\"aliases\":[]}}},\"routing_table\":{\"indices\":{\"test1\":{\"shards\":{\"4\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"}],\"0\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"}],\"3\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"}],\"1\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"}],\"2\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"}]}},\"test2\":{\"shards\":{\"4\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"}],\"0\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"}],\"3\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"}],\"1\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"}],\"2\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"}]}}}},\"routing_nodes\":{\"unassigned\":[{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"}],\"nodes\":{\"oH7pQrL0SByxwCa18LCV_Q\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"}]}},\"allocations\":[]}"
359
- http_version:
359
+ http_version:
360
360
  recorded_at: Sat, 09 Aug 2014 02:25:03 GMT
361
+ - request:
362
+ method: get
363
+ uri: http://localhost:9200/_cluster/state/metadata
364
+ body:
365
+ encoding: US-ASCII
366
+ string: ''
367
+ headers:
368
+ User-Agent:
369
+ - Faraday v0.9.0
370
+ Accept-Encoding:
371
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
372
+ Accept:
373
+ - "*/*"
374
+ response:
375
+ status:
376
+ code: 200
377
+ message: OK
378
+ headers:
379
+ Content-Type:
380
+ - application/json; charset=UTF-8
381
+ Content-Length:
382
+ - '464'
383
+ body:
384
+ encoding: UTF-8
385
+ string: "{\"cluster_name\":\"elasticsearch\",\"metadata\":{\"templates\":{},\"indices\":{\"test2\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"zwbWk_BfRDKa6vUOTsIJ_g\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1020199\"}}},\"mappings\":{},\"aliases\":[]},\"test1\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"_ULwHACTRlK6HhcBjaIyBQ\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1020199\"}}},\"mappings\":{},\"aliases\":[]}},\"repositories\":{}}}"
386
+ http_version:
387
+ recorded_at: Wed, 08 Oct 2014 22:56:07 GMT
361
388
  recorded_with: VCR 2.9.2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastomer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Rodgers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-15 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.1
47
+ version: 0.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.1
54
+ version: 0.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement