gts 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gts +13 -1
- data/gts.gemspec +2 -2
- data/lib/gts/version.rb +1 -1
- metadata +4 -4
data/bin/gts
CHANGED
@@ -19,6 +19,10 @@ opt_parser = OptionParser.new do |opt|
|
|
19
19
|
options[:port] = port
|
20
20
|
end
|
21
21
|
|
22
|
+
opt.on("-r", "--redis [HOST:PORT]", "Redis connection string") do |host|
|
23
|
+
options[:redis] = host
|
24
|
+
end
|
25
|
+
|
22
26
|
opt.on("-o","--output FILENAME","output file name; if given csv file with captured data is created") do |filename|
|
23
27
|
options[:output_file] = File.expand_path(filename)
|
24
28
|
end
|
@@ -65,5 +69,13 @@ if options[:daemon]
|
|
65
69
|
Gts.daemonize
|
66
70
|
Gts.set_logger
|
67
71
|
end
|
68
|
-
|
72
|
+
|
73
|
+
if options[:redis]
|
74
|
+
redis_host, redis_port = options[:redis].split(":")
|
75
|
+
else
|
76
|
+
redis_host = "0.0.0.0"
|
77
|
+
redis_port = 6379
|
78
|
+
end
|
79
|
+
Gts.storage = Gts::RedisStorage.new(:host => redis_host, :port => redis_port) # we use just this one so far, TODO should be configurable
|
80
|
+
|
69
81
|
Gts.server.start!(:address => options[:address], :port => options[:port], :output_file => options[:output_file])
|
data/gts.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/gts/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Milan Novota"]
|
6
6
|
gem.email = ["milan.novota@gmail.com"]
|
7
|
-
gem.description =
|
8
|
-
gem.summary =
|
7
|
+
gem.description = %{ GPS Tracking Server }
|
8
|
+
gem.summary = %{ GPS Tracking Server }
|
9
9
|
gem.homepage = "http://github.com/milann/gts"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
data/lib/gts/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
-
description: ! '
|
78
|
+
description: ! ' GPS Tracking Server '
|
79
79
|
email:
|
80
80
|
- milan.novota@gmail.com
|
81
81
|
executables:
|
@@ -133,7 +133,7 @@ rubyforge_project:
|
|
133
133
|
rubygems_version: 1.8.19
|
134
134
|
signing_key:
|
135
135
|
specification_version: 3
|
136
|
-
summary:
|
136
|
+
summary: GPS Tracking Server
|
137
137
|
test_files:
|
138
138
|
- spec/command_spec.rb
|
139
139
|
- spec/test_data/tk102_sample_data.txt
|