lstash 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmYwMDgxYzJiMDQ5ZDM2YjgyMzg4NGNkYmYzYWQ2NTVkNGE0N2Y3Mw==
4
+ N2Y0MGRlYmVkZmM1OTRjOGU2YmVmMmY1ZTEzMDllNWNiMjBiMjVjNQ==
5
5
  data.tar.gz: !binary |-
6
- OWRjYzcxMzhjYjQ2NzQyZDMyYjMwNzc4NjA4ZTQ2ZGUzMDNkMjFmMw==
6
+ NTk3YWI4ZGM2MzNiMGFjMjUxMjYyMmM4ZGUyODkyZDBhZTQwZTNiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzU0ZjVjMjNkMTUzOWJkMDc3ZTYxNzY5MjUxNWFjMDIxZjhmYjk4M2JhNzJh
10
- MTA0NDYxYzkzNDAwNjMwNGU5MzI0NmE0ZDg1YTU0OTk3OGEyNTZiZWIzMDlj
11
- NTNkMzQ0NWM4OTUxZTNjYzJkNjdkYjA3ZWVhM2EwNzVmMzIyYjk=
9
+ NWUzNDc5ZTk3MTE0YmM0ZDlkZjExZjM4MGY4MGZjYzYyYzNmZDg3ZWZiMzgw
10
+ Y2YwZGJlYTA3YjgxNjYwMWU0MjRlMWFkZDcyMWE0MWUzMWU1ZGNiM2MzNTJi
11
+ YWUyOTBiZDJhNzY2ODg4OWM1ZTA4OWVlNjFhNDAyNjg5ZGUwYTA=
12
12
  data.tar.gz: !binary |-
13
- MDAyOWQyY2EzMTViOGYwYmEzZDY0MDE1NWIxMjkxMWQ2NzcxZTU1ZTY3M2Jk
14
- ZWVkZWM3NTBhOGJlMDAzNGY1NmE4OWIwMDg5MDNjNTQxMTM3YzJkYmFhZmEw
15
- Zjg0Njg4NzM1MWI0ZmQ2ZDRkYzdlZDA0NWU1NjVlZjU1MmZhOTU=
13
+ YzBkYWM3MjcyZDE0OGRiZDg4YTFhYzNmNDM0MzMxODVjMjRiY2FiNWIxNmU2
14
+ NWQxZmE4NWI4NWU4MGIyMWFlODgwMmUwMzUzN2FkZjFkZmFkZDNkYTQ5YjEy
15
+ MWNhOTU0ZmRkMTY0NDM5Yzk5NTE5OTNmMzI0MzNjMjlmNGJlODE=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 0.0.8 / 2014-09-01
2
+
3
+ Bug Fixes
4
+
5
+ * Require missing 'uri' (instead of using typhoed or patron HTTP transport clients).
6
+
1
7
  ### 0.0.7 / 2014-09-01
2
8
 
3
9
  Bug Fixes
data/lib/lstash/cli.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # external dependencies
2
2
  require 'thor'
3
- require 'typhoeus'
4
- require 'typhoeus/adapters/faraday'
3
+ require 'uri'
5
4
  require 'elasticsearch'
6
5
 
7
6
  # local files we need
@@ -1,3 +1,3 @@
1
1
  module Lstash
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -19,6 +19,18 @@ describe Lstash::CLI do
19
19
 
20
20
  context "count" do
21
21
 
22
+ context "with full URI" do
23
+ let(:args) { %w(count "*" --es-url http://localhost:9200) }
24
+ it "should succeed" do
25
+ client = double('client')
26
+
27
+ allow(Lstash::Client).to receive(:new).and_return(client)
28
+ allow(client).to receive(:count).and_return(100)
29
+
30
+ expect { Lstash::CLI.start(args) }.not_to raise_error
31
+ end
32
+ end
33
+
22
34
  context "with valid arguments" do
23
35
  let(:args) { %w(count "program:haproxy" --es-url localhost) }
24
36
 
@@ -67,7 +79,7 @@ describe Lstash::CLI do
67
79
  Time.parse('2014-07-01').to_i*1000,
68
80
  Time.parse('2014-08-01').to_i*1000
69
81
  ])
70
- })
82
+ }).exactly(32).times.and_return({count:1})
71
83
 
72
84
  Lstash::CLI.start(args)
73
85
  end
@@ -88,7 +100,7 @@ describe Lstash::CLI do
88
100
  Time.parse('2014-07-31').to_i*1000,
89
101
  Time.parse('2014-08-01').to_i*1000
90
102
  ])
91
- }).and_return([{count:1}])
103
+ }).exactly(2).times.and_return({count:1})
92
104
 
93
105
  Lstash::CLI.start(args)
94
106
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaas Jan Wierenga