csgolytics 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/csgolytics-import +10 -2
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afa9333d5b3d66a4c619982bae2993044d528f6f
|
4
|
+
data.tar.gz: 964f7aa6043b040d71b9023cebc6d7cc26041364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 776c48cc89ab9ec898b8e926f3719486b3f7be5cd1f136774084a022ec45d3f3810d62c2fd38fe85b7e38fb25e4fba3946f648c326d36e6bbd2ec9d2431e9365
|
7
|
+
data.tar.gz: c0f6bd8403caf12449d3c21104a995c579acd7806134b3adfde968bcf7bedabc4efbf39bc80e458f5b3ce6a1ec0bbf778291d518b997a588d89bb1313880b3a7
|
data/bin/csgolytics-import
CHANGED
@@ -5,13 +5,16 @@ require "rubygems"
|
|
5
5
|
require "yaml"
|
6
6
|
require 'optparse'
|
7
7
|
require 'eventql'
|
8
|
-
require 'webrick'
|
9
8
|
require "csgolytics/schema_manager"
|
10
9
|
require "csgolytics/feed_upload"
|
11
10
|
require "csgolytics/log_reader"
|
12
11
|
|
13
12
|
# parse flags
|
14
|
-
flags = {
|
13
|
+
flags = {
|
14
|
+
:eventql_host => "localhost",
|
15
|
+
:eventql_port => "9175",
|
16
|
+
:eventql_database => "csgolytics"
|
17
|
+
}
|
15
18
|
|
16
19
|
flag_parser = OptionParser.new do |opts|
|
17
20
|
opts.banner = "Usage: csgolytics [options]"
|
@@ -54,6 +57,11 @@ end
|
|
54
57
|
flag_parser.parse!
|
55
58
|
|
56
59
|
# check arguments
|
60
|
+
unless flags[:logdir]
|
61
|
+
$stderr.puts "ERROR: --logdir flag is required"
|
62
|
+
exit 1
|
63
|
+
end
|
64
|
+
|
57
65
|
unless File.directory?(flags[:logdir])
|
58
66
|
$stderr.puts "ERROR: #{flags[:logdir]} is not a directory"
|
59
67
|
exit 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csgolytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Asmuth
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-12-19 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: eventql
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.3
|
13
27
|
description: CS:GO Analaytics with EventQL
|
14
28
|
email: paul@eventql.io
|
15
29
|
executables:
|