gaptool-server 0.4.14 → 0.5.0
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 +4 -4
- data/config.ru +15 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4e37952b1aeb9e6097c6d75597c4d067a106c56
|
|
4
|
+
data.tar.gz: 1bb992a5df32f095dbc787b2487632f42e76b61b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
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
|