clickhouse 0.1.9 → 0.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bb3d58d22ccf1992902839f25ac22076ccc2b0e
4
- data.tar.gz: 278d3fadcf6f36ac0c238725b210e79b51f18894
3
+ metadata.gz: 035c2cc8df833a4c7e93296241b45779986bad16
4
+ data.tar.gz: d2bb95d8d94674bd339c734863afbc35de2c2a5e
5
5
  SHA512:
6
- metadata.gz: e45aaf378689e4d8407fa727e1b2d9a6995550844e56488180a589b8f4b9d5d2ea320520692a093f82ea953998abd3a06eb1e51055ebd90fe756395be5518488
7
- data.tar.gz: 7ba4011545062938f45a1ecd21c89f2aaec6e09a970fb8566bfbda28abe77dad85bae04c16338fea395e265fd1781a7fd0f43ecabb7a61a15f936dbc75e1a9c1
6
+ metadata.gz: 80eb438703f50fa8cb95e01974a20404082034430d2f0c20a7d9bb884328bfa7b98a906d5109ac213031cad18b72f7952bb66d8b929c6d978b2ab3e88362bc4e
7
+ data.tar.gz: e639d9cd702711c7294e76194a838d8af9c62c8cfaf0d610e254e6ba93c7c93763dd5ddd7e3959ab2bb7703287d6dcabe3b5063f4192e1fc72a075a778075577
@@ -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.9
1
+ 0.1.10
@@ -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
@@ -1,4 +1,5 @@
1
- require "tilt/erubis"
1
+ require "sinatra"
2
+ require "erubis"
2
3
 
3
4
  module Clickhouse
4
5
  class CLI < Thor
@@ -1,7 +1,7 @@
1
1
  module Clickhouse
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 9
4
+ TINY = 10
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
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.9
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: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler