cellect-server 2.0.0.beta1 → 2.0.0.beta2

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: 4ef80181a6f62fe2ba4b39b0377cc8805377da52
4
- data.tar.gz: 7a306ae04dbaa28fde48068f1d628dba47cb1c44
3
+ metadata.gz: c4f34223714dbc0e49082b11697ae478a253a2d7
4
+ data.tar.gz: 48dd7d06884e6e7cdffeb7e36347c6b72f8aa01d
5
5
  SHA512:
6
- metadata.gz: 2caf888d305d48e668d094e1216a438f4c6247968fba2991f89c1625121fda77641022320f714deb01ae5b90fbd980cc5290706f3bd9060327b0d4e16010fff1
7
- data.tar.gz: b3c37669fe2308f65b4b77957cd41fc72017763ba03a8d598afc00cb91b87ffcc13a80f98e48850eb7f23905234ee9d3579d0fdd3efcd2ec98338bb1178e17b8
6
+ metadata.gz: eefba17bf6f1d76fefb39ff34d773602ebd968e4078a2953e420546ac054615bd1202174913bbbcd6ab7a0a456dcf8c72a5dcd9044f846feb0bece80960f69e7
7
+ data.tar.gz: a4783af9edb468c07b7333ce3eef0621713e17cd9d7f880a8570a68221b26261142f3d9e0f7ddba0fdadd226f4c95d861fb0b84c9d98a6c6bbf0a63b494cf32e
@@ -0,0 +1,5 @@
1
+ require 'attention'
2
+
3
+ Attention.options[:namespace] = ENV.fetch('ATTENTION_NAMESPACE', 'cellect')
4
+ Attention.options[:redis_url] ||= ENV['REDIS_URL'] if ENV['REDIS_URL']
5
+ Attention.options[:ttl] = ENV.fetch('ATTENTION_TTL', 20).to_i
@@ -1,6 +1,7 @@
1
1
  require 'diff_set'
2
2
  require 'cellect'
3
3
  require 'celluloid/autostart'
4
+ require 'cellect/attention'
4
5
 
5
6
  module Cellect
6
7
  module Server
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '2.0.0.beta1'
2
+ VERSION = '2.0.0.beta2'
3
3
  end
data/lib/cellect.rb CHANGED
@@ -1,10 +1,6 @@
1
1
  require 'celluloid'
2
2
  require 'cellect/version'
3
- require 'attention'
3
+ require 'cellect/attention'
4
4
 
5
5
  module Cellect
6
6
  end
7
-
8
- Attention.options[:namespace] = 'cellect'
9
- Attention.options[:redis_url] = ENV['REDIS_URL'] if ENV['REDIS_URL']
10
- Attention.options[:ttl] = 20
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cellect-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta1
4
+ version: 2.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-20 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -257,6 +257,7 @@ files:
257
257
  - cellect.gemspec
258
258
  - data/.gitkeep
259
259
  - lib/cellect.rb
260
+ - lib/cellect/attention.rb
260
261
  - lib/cellect/server.rb
261
262
  - lib/cellect/server/adapters.rb
262
263
  - lib/cellect/server/adapters/default.rb