steam-proto 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -1
- data/lib/steam/proto/csgo.rb +2 -0
- data/lib/steam/proto/version.rb +1 -1
- data/lib/steam/proto.rb +1 -1
- data/steam-proto.gemspec +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7529d11010a4de9004eb41aeb6283b6683a14c0
|
4
|
+
data.tar.gz: 40e2062f0511e5c01082b920fd1a395778885ad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1167560f02be83e6d93757359e2f85c4b0b90a89d081e75f6817f5a4bb51709bdbd9727e20bbdb9d174fe94820bba0c4c080005d2bd78d722dc3c556d4a07a6
|
7
|
+
data.tar.gz: cc0bc464fdc16f16d621cdb10f4f1937a02d12f99a194d183386294f329b6336de2edbf5119ef038d4ca9efb3094752387681c9c384bef2d09c5ecdf2477a4e9
|
data/README.md
CHANGED
@@ -1 +1,31 @@
|
|
1
|
-
|
1
|
+
# Steam::Proto
|
2
|
+
[![Build Status](https://travis-ci.org/fastpeek/steam-proto.svg?branch=0.1.0)](https://travis-ci.org/fastpeek/steam-proto)
|
3
|
+
![Gem Version](https://img.shields.io/gem/v/steam-proto.svg)
|
4
|
+
|
5
|
+
Ruby interface to the [Steam Protobufs](https://github.com/SteamRE/SteamKit/tree/master/Resources/Protobufs).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add `gem 'steam-proto'` to your Gemfile
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'steam/proto'
|
15
|
+
Steam::Proto.load_protobufs(:steamclient, :gc, :csgo)
|
16
|
+
```
|
17
|
+
|
18
|
+
## Documentation
|
19
|
+
|
20
|
+
You can view the documentation of the generated classes [here](google.com)
|
21
|
+
|
22
|
+
## Updating the source Protobuf definitions
|
23
|
+
|
24
|
+
If the upstream protobuf definitions change the code can be regenerated as
|
25
|
+
follows.
|
26
|
+
|
27
|
+
`bundle exec rake proto:install`
|
28
|
+
|
29
|
+
# Dependencies
|
30
|
+
|
31
|
+
Requires protoc 2.6.0.
|
data/lib/steam/proto/csgo.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'steam/proto/csgo/engine_gcmessages.pb'
|
2
2
|
require 'steam/proto/csgo/gcsdk_gcmessages.pb'
|
3
3
|
require 'steam/proto/csgo/gcsystemmsgs.pb'
|
4
|
+
require 'steam/proto/csgo/netmessages.pb'
|
4
5
|
require 'steam/proto/csgo/cstrike15_gcmessages.pb'
|
6
|
+
require 'steam/proto/csgo/cstrike15_usermessages.pb'
|
data/lib/steam/proto/version.rb
CHANGED
data/lib/steam/proto.rb
CHANGED
@@ -5,7 +5,7 @@ module Steam
|
|
5
5
|
# Access to the various Steam Protobuf definitions
|
6
6
|
module Proto
|
7
7
|
def self.load_protobufs(*args)
|
8
|
-
args = args.dup.map(&:to_sym)
|
8
|
+
args = args.flatten.dup.map(&:to_sym)
|
9
9
|
|
10
10
|
args.each do |arg|
|
11
11
|
raise "Failed to load protobufs for #{arg}" unless allowed?(arg)
|
data/steam-proto.gemspec
CHANGED
@@ -11,7 +11,8 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ['tmfinnell@gmail.com']
|
12
12
|
|
13
13
|
spec.summary = 'Ruby access to Steam\'s Protobufs.'
|
14
|
-
spec.description = 'Load Steam\'s Protobuf objects from the Steam Client
|
14
|
+
spec.description = 'Load Steam\'s Protobuf objects from the Steam Client'\
|
15
|
+
', CSGO, etc.'
|
15
16
|
spec.homepage = 'http://github.com/fastpeek/steam-proto.com'
|
16
17
|
spec.licenses = ['MIT']
|
17
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steam-proto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Finnell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|