clickhouse 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/clickhouse/cli.rb +0 -9
- data/lib/clickhouse/cli/server.rb +2 -1
- data/lib/clickhouse/version.rb +1 -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: 035c2cc8df833a4c7e93296241b45779986bad16
|
4
|
+
data.tar.gz: d2bb95d8d94674bd339c734863afbc35de2c2a5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80eb438703f50fa8cb95e01974a20404082034430d2f0c20a7d9bb884328bfa7b98a906d5109ac213031cad18b72f7952bb66d8b929c6d978b2ab3e88362bc4e
|
7
|
+
data.tar.gz: e639d9cd702711c7294e76194a838d8af9c62c8cfaf0d610e254e6ba93c7c93763dd5ddd7e3959ab2bb7703287d6dcabe3b5063f4192e1fc72a075a778075577
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## Clickhouse CHANGELOG
|
2
2
|
|
3
|
+
### Version 0.1.10 (January 13, 2017)
|
4
|
+
|
5
|
+
* Fixed `erubis` dependency once and for all
|
6
|
+
|
3
7
|
### Version 0.1.9 (December 9, 2016)
|
4
8
|
|
5
9
|
* Added gem dependencies `sinatra` and `erubis` because excluding on purpose them did not really make sense
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/lib/clickhouse/cli.rb
CHANGED
@@ -5,7 +5,6 @@ require "clickhouse"
|
|
5
5
|
module Clickhouse
|
6
6
|
class CLI < Thor
|
7
7
|
|
8
|
-
DEPENDENCIES = {:server => "sinatra"}
|
9
8
|
DEFAULT_URLS = "http://localhost:8123"
|
10
9
|
|
11
10
|
desc "server [HOSTS]", "Start a Sinatra server as ClickHouse client (HOSTS should be comma separated URIs)"
|
@@ -28,20 +27,12 @@ module Clickhouse
|
|
28
27
|
private
|
29
28
|
|
30
29
|
def run!(const, urls, options, &block)
|
31
|
-
require! DEPENDENCIES[const]
|
32
30
|
require_relative "cli/client"
|
33
31
|
require_relative "cli/#{const}"
|
34
32
|
connect! urls, options
|
35
33
|
self.class.const_get(const.to_s.capitalize).run!(:port => options["port"], &block)
|
36
34
|
end
|
37
35
|
|
38
|
-
def require!(name)
|
39
|
-
require(name) if name
|
40
|
-
rescue LoadError
|
41
|
-
puts "fatal: #{name.capitalize} not available. Please run `gem install #{name}` first."
|
42
|
-
exit!
|
43
|
-
end
|
44
|
-
|
45
36
|
def connect!(urls, options)
|
46
37
|
config = options.merge(:urls => urls.split(",")).inject({}){|h, (k, v)| h[k.to_sym] = v; h}
|
47
38
|
Clickhouse.establish_connection config
|
data/lib/clickhouse/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clickhouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Engel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|