steam_mist 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +19 -0
- data/README.md +29 -0
- data/lib/steam_mist/connector.rb +167 -0
- data/lib/steam_mist/connectors/eager_connector.rb +24 -0
- data/lib/steam_mist/connectors/lazy_connector.rb +33 -0
- data/lib/steam_mist/connectors.rb +11 -0
- data/lib/steam_mist/pseudo_interface/pseudo_method.rb +187 -0
- data/lib/steam_mist/pseudo_interface.rb +75 -0
- data/lib/steam_mist/rcon/listener.rb +114 -0
- data/lib/steam_mist/rcon/packet.rb +146 -0
- data/lib/steam_mist/rcon/packet_factory.rb +45 -0
- data/lib/steam_mist/rcon/pass.rb +123 -0
- data/lib/steam_mist/rcon.rb +47 -0
- data/lib/steam_mist/request_uri.rb +77 -0
- data/lib/steam_mist/schema.rb +42 -0
- data/lib/steam_mist/session.rb +60 -0
- data/lib/steam_mist/version.rb +5 -0
- data/lib/steam_mist.rb +7 -0
- data/spec/cache_spec.rb +25 -0
- data/spec/packet_factory_spec.rb +8 -0
- data/spec/packet_spec.rb +26 -0
- data/spec/pseudo_interface_spec.rb +15 -0
- data/spec/pseudo_method_spec.rb +37 -0
- data/spec/request_uri_spec.rb +19 -0
- data/spec/schema_spec.rb +17 -0
- data/spec/session_spec.rb +9 -0
- metadata +97 -0
data/spec/schema_spec.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
describe SteamMist::Schema do
|
2
|
+
|
3
|
+
subject { SteamMist::Schema.new(api_key, app_id, lang) }
|
4
|
+
|
5
|
+
context "no language" do
|
6
|
+
|
7
|
+
let(:api_key) { "" } # sorry, cant really figure out how to handle this
|
8
|
+
let(:app_id) { 440 }
|
9
|
+
let(:lang) { nil }
|
10
|
+
|
11
|
+
it "retrieves data" do
|
12
|
+
expect {
|
13
|
+
subject.data
|
14
|
+
}.to raise_error(OpenURI::HTTPError)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: steam_mist
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- redjazz96
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: oj
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hashie
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
description: |2
|
42
|
+
An interface for the Steam API.
|
43
|
+
email: redjazz96@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- README.md
|
49
|
+
- LICENSE
|
50
|
+
- lib/steam_mist/rcon.rb
|
51
|
+
- lib/steam_mist/request_uri.rb
|
52
|
+
- lib/steam_mist/pseudo_interface/pseudo_method.rb
|
53
|
+
- lib/steam_mist/session.rb
|
54
|
+
- lib/steam_mist/version.rb
|
55
|
+
- lib/steam_mist/connectors.rb
|
56
|
+
- lib/steam_mist/connector.rb
|
57
|
+
- lib/steam_mist/pseudo_interface.rb
|
58
|
+
- lib/steam_mist/schema.rb
|
59
|
+
- lib/steam_mist/connectors/lazy_connector.rb
|
60
|
+
- lib/steam_mist/connectors/eager_connector.rb
|
61
|
+
- lib/steam_mist/rcon/pass.rb
|
62
|
+
- lib/steam_mist/rcon/listener.rb
|
63
|
+
- lib/steam_mist/rcon/packet_factory.rb
|
64
|
+
- lib/steam_mist/rcon/packet.rb
|
65
|
+
- lib/steam_mist.rb
|
66
|
+
- spec/pseudo_method_spec.rb
|
67
|
+
- spec/request_uri_spec.rb
|
68
|
+
- spec/packet_spec.rb
|
69
|
+
- spec/session_spec.rb
|
70
|
+
- spec/cache_spec.rb
|
71
|
+
- spec/packet_factory_spec.rb
|
72
|
+
- spec/pseudo_interface_spec.rb
|
73
|
+
- spec/schema_spec.rb
|
74
|
+
homepage: http://github.com/redjazz96/steam_mist
|
75
|
+
licenses: []
|
76
|
+
metadata: {}
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.0.0.rc.2
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: An interface to the Steam API.
|
97
|
+
test_files: []
|