steam_hlds_log_parser 0.4.7 → 0.4.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA512:
3
- metadata.gz: d2bd1ead06fc2e944fe5444330d664cdf1b7417163c9f62c4e9a40f86bd5ace016a660d5bb4b7f7f7ddeaae175af51e4c140721dc24c6d6f44f8d856cf0dd05d
4
- data.tar.gz: f1d9c090409ddca6135103ddaea5c8c4275bd385e7dd67e79bedec33b3da262df42a09080a505cf21d9ce872915b7d8322bce522c258414ce3fee53c7c48c430
5
2
  SHA1:
6
- metadata.gz: dea6da3483d539c6275bb19b4814913eb8674f84
7
- data.tar.gz: d76a18c57ee1aadd6193dcec1ac66a48776683a7
3
+ data.tar.gz: c21e53f6bd94b23ad5582b87c01f2a68d685cf27
4
+ metadata.gz: c9a67a46076e2f653ef5a0136ea125eda5f43e79
5
+ SHA512:
6
+ data.tar.gz: 3da85caafdd06a416b7bebd2c20d1e138c6de0019c826507b2ce6333ecb3360e430a8e18173770c1fc33f1881a4d06af56a454261c6c17c875b21f5b1af92390
7
+ metadata.gz: 7cc9bf51c3cde527da2c372f23918f0e184aeadca3de04cc14a96dc2188ddeb2ae4c5e703f69652bd22266e34e438e5f09e3b2779152c1e782f88fb1de7350d9
data/README.md CHANGED
@@ -39,13 +39,13 @@ By default, Steam HLDS Log Parser runs on `0.0.0.0:27115` _(+100 than default HL
39
39
  1 - On your game server, send logs to your Ruby server (in this example, same machine).
40
40
 
41
41
  ```
42
- logaddres 0.0.0.0 27115
42
+ logaddress 0.0.0.0 27115
43
43
  ```
44
44
 
45
45
  or
46
46
 
47
47
  ```
48
- logaddres_add 0.0.0.0 27115
48
+ logaddress_add 0.0.0.0 27115
49
49
  ```
50
50
 
51
51
  2 - Create a file named, for example, `hlds_parser.rb` with this content:
@@ -0,0 +1,23 @@
1
+ require "rubygems"
2
+ require "steam_hlds_log_parser"
3
+ require "flowdock"
4
+
5
+ ## The displayer class that will be used to send content to Flowdock
6
+ class FlowdockPusher
7
+ def initialize(data)
8
+ # Get translated data
9
+ content = SteamHldsLogParser::Displayer.new(data).get_translation
10
+ # Source: https://github.com/flowdock/flowdock-api
11
+ flow = Flowdock::Flow.new(:api_token => "12345678901234567890123456789012", :external_user_name => "HLDS-Live")
12
+ flow.push_to_chat(:content => content)
13
+ end
14
+ end
15
+
16
+ # Custom options for a basic match stream on Flowdock
17
+ options = {
18
+ :display_kills => false,
19
+ :display_chat => false,
20
+ :display_team_chat => false
21
+ }
22
+
23
+ SteamHldsLogParser::Client.new(FlowdockPusher, options).start
@@ -1,4 +1,4 @@
1
1
  module SteamHldsLogParser
2
2
  # Gem Version
3
- VERSION = "0.4.7"
3
+ VERSION = "0.4.8"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam_hlds_log_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas VIAL
@@ -102,6 +102,7 @@ files:
102
102
  - Rakefile
103
103
  - examples/example-1.rb
104
104
  - examples/example-2.rb
105
+ - examples/example-3.rb
105
106
  - lib/locales/en.yml
106
107
  - lib/locales/fr.yml
107
108
  - lib/steam_hlds_log_parser.rb