gaptool-server 0.4.14 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/config.ru +15 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4438725ee040e587e69c0ed33fa6392d1296a8d6
4
- data.tar.gz: 1245aed75de37b9f483e3dc56299c67b9eae4b6c
3
+ metadata.gz: c4e37952b1aeb9e6097c6d75597c4d067a106c56
4
+ data.tar.gz: 1bb992a5df32f095dbc787b2487632f42e76b61b
5
5
  SHA512:
6
- metadata.gz: da43276993074df11e5531c55c923d3c982d090b70cabe779d828fc1a53d3ab12ea1e1c1075831805c6b9116e32bdcc29ea7c576f0ddc527950dae3a555889df
7
- data.tar.gz: baf01a34b4bbb210d4fd712b07fd28056b6fd9ac8f9cfda8e2b02f5b9499e583be4779e835df929920357f029289161fdb3f87a3161400caf1712fbe4ef79b1b
6
+ metadata.gz: b54978df0beef6e699879fa440d5e6cee9d7305dae09c4d28ac30261eff6bd9ab5c2847ddb6783560955e8dc2d17f64b0ee75d77219b9f7df556c3c4c0913adc
7
+ data.tar.gz: 634b1e0923a771b73afda77449390e0c4eebbe0a4fa7d026070f8546c7250acfce81bb9beb6914a66b006fcebafab31ed081e2790f8d2428834fbe136be6ccb7
data/config.ru ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'redis'
4
+
5
+ ENV['REDIS_HOST'] = 'localhost' unless ENV['REDIS_HOST']
6
+ ENV['REDIS_PORT'] = '6379' unless ENV['REDIS_PORT']
7
+ ENV['REDIS_PASS'] = nil unless ENV['REDIS_PASS']
8
+ $redis = Redis.new(:host => ENV['REDIS_HOST'], :port => ENV['REDIS_PORT'], :password => ENV['REDIS_PASS'])
9
+
10
+ libpath = File.expand_path(File.join(File.dirname(__FILE__), "lib"))
11
+ $:.unshift(libpath)
12
+ require "#{libpath}/app.rb"
13
+
14
+ instance = GaptoolServer.new
15
+ run instance
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.14
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bailey
@@ -205,6 +205,7 @@ files:
205
205
  - LICENSE.txt
206
206
  - README.rdoc
207
207
  - bin/gaptool-server
208
+ - config.ru
208
209
  - lib/app.rb
209
210
  - lib/helpers/gaptool-base.rb
210
211
  - lib/helpers/init.rb