coffee_table 0.2.0 → 0.2.1

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: 5096de8fb62f3418eb4a02a02d460245b828ce4d
4
- data.tar.gz: dee65858546fbc737b5340a821203dcc3309e0d6
3
+ metadata.gz: 0a500c15b47d59719b545a05f0202fff9520233c
4
+ data.tar.gz: 7e3af3f690eeea5312797da412e3cb240037fbf5
5
5
  SHA512:
6
- metadata.gz: 36db338c9a66794aaf55b9ae72f2cb9d2d9a01aafd23919947fbde22d907ce2cc8a7fe84b0a555e509cf19ee9677a725916aea7358333946c7b417603e5c223e
7
- data.tar.gz: 2ab2325828a57a1be2a1666fd03ae6fb8e79b1bbb00f33c219c91c506bcf21bee3fe6cbcd08167675eb9dcf26a452dff6ce1a2f6844f4beb2f5302b91ccf803e
6
+ metadata.gz: 53e13c4b868600c6870af3468ced06ec976e5f89eccf29260b1b8f33a7fde61b64235e88760f1559ba97b13d6728065f3e2fe0331512afedefcca4c470465e3e
7
+ data.tar.gz: f2084d4c0b148073490192953eb32c188eefd8ede78e83a5ecb551aa53fcc70a729bbd2e8eede03543652964f1f486c40896a2004a0d6aad8f1f3208979bb756
@@ -1,3 +1,3 @@
1
1
  module CoffeeTable
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/coffee_table.rb CHANGED
@@ -27,7 +27,12 @@ module CoffeeTable
27
27
  default_ignore_code_changes_to false
28
28
  default_compress_content_to true
29
29
  default_compress_min_size_to 10240
30
- @redis = Redis.new({:server => @options[:redis_server], :port => @options[:redis_port]})
30
+
31
+ if @options.has_key?(:redis_url)
32
+ @redis = Redis.new({:url => @options[:redis_url]})
33
+ else
34
+ @redis = Redis.new({:server => @options[:redis_server], :port => @options[:redis_port]})
35
+ end
31
36
  rufus_version = Gem::Version.new(Rufus::Scheduler::VERSION)
32
37
  if rufus_version >= Gem::Version.new('3.0.0')
33
38
  @scheduler = Rufus::Scheduler.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffee_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stewart McKee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec