hldslogs 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a33b286f41116655f1a56e31448fe5a405b0a1cb
4
- data.tar.gz: 6bffb46881cbc99cc3946413510e0e01a8b41547
3
+ metadata.gz: 1395e3dbebcd55f982fb3425c5d0d5cb7678a297
4
+ data.tar.gz: a0c45a1c5edee6b2afb6dbec56e4fc0ff7c2ba8d
5
5
  SHA512:
6
- metadata.gz: b911b0ce6164496c68dc04cc6108612abe44a01231b962ccade26e97c8c8c91168a3589618e10fca22e33a3d21783091263fd6edd639e9ffe5c0308e0f90279b
7
- data.tar.gz: 54a1a681f6c39b91b134a64dd96776b84e73807cb43fd5b4d017ce0ed21c8ca91dbb95f54b76e504ebfde7bf2db6be66d9a35db5bedfeb854dfef9595880c944
6
+ metadata.gz: fc6de4783fd6b13a955442c4722038ff99fda45faca4d2bb8b4982c99049fec14df1fdd6d82e4edb8607bb6be17bace6cb6343ab0cd01851fa88cf12d9211c33
7
+ data.tar.gz: 1065d46acd39713709401b65373c11fc6db73f99c5a27323de690a8d3aaf361ad813147c4e5f3c1294923c09643577b97692a7107d8374f08fb406dacdcd1572
data/README.md CHANGED
@@ -32,6 +32,18 @@ Use this example, create new ruby file logs.rb and put this in it:
32
32
  ```ruby
33
33
  require 'hldslogs'
34
34
 
35
+ @conn = LogsHlds.new("192.168.0.1", 27015, 28015)
36
+
37
+ until @conn.socket == nil do
38
+ logs = @conn.receve_data
39
+ puts logs
40
+ end
41
+ ```
42
+ For 0.2.2 version or below version make logs.rb file like this:
43
+
44
+ ```ruby
45
+ require 'hldslogs'
46
+
35
47
  @conn = HldsSocket.new("192.168.0.1", 27015, 28015)
36
48
 
37
49
  until @conn.socket == nil do
@@ -46,7 +58,7 @@ In your Counter-Strike 1.6 Server console add the ip and bind port from the sock
46
58
  logaddress_add 192.168.0.1 28015
47
59
  ```
48
60
 
49
- After this run the file in terminal, make sure that your terminal directory is where the file is located
61
+ After this run the logs.rb file in terminal, make sure that your terminal directory is where the file is located
50
62
  and after this run ruby logs.rb. If everything go well you should get the server logs in terminal.
51
63
 
52
64
  ## License
@@ -1,7 +1,7 @@
1
1
  # encoding: US-ASCII
2
2
  require "socket"
3
3
 
4
- class HldsSocket
4
+ class LogsHlds
5
5
  def initialize(ip_addr, port, bind_port)
6
6
  @socket = UDPSocket.new
7
7
  @socket.bind "", bind_port
@@ -1,3 +1,3 @@
1
1
  module Hldslogs
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/hldslogs.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "hldslogs/version"
2
- require "hldslogs/hldssocket"
2
+ require "hldslogs/logshlds"
3
3
 
4
4
 
5
5
  module Hldslogs
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hldslogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - freemanmax
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,7 +54,7 @@ files:
54
54
  - bin/setup
55
55
  - hldslogs.gemspec
56
56
  - lib/hldslogs.rb
57
- - lib/hldslogs/hldssocket.rb
57
+ - lib/hldslogs/logshlds.rb
58
58
  - lib/hldslogs/version.rb
59
59
  homepage: https://github.com/freemanmax/hldslogs
60
60
  licenses: