minecraft-jsonapi 0.0.8 → 0.0.9
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 +4 -4
- data/lib/minecraft-jsonapi/jsonapi.rb +5 -1
- data/lib/minecraft-jsonapi/version.rb +1 -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: 3cc63ac449d0d608f266599c427ee85af2900e7c
|
4
|
+
data.tar.gz: e548fcd0f04d5d10d248e7e468325145bc64f191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e59356d6a60eec49ad4494f6d859a58549eddb6d7d527c25ccf6d02e0438f369cb164b9c9f82f17770cfb49a97034391c4d153cb1a2110c5331247a7938bea3a
|
7
|
+
data.tar.gz: d3c8a6f21fd8574a3cf34ebf34b2f3a5b988e9cb8b6fd47f041257b1c13e8b2816775ac4b3d72b40d7a615d64aba7189d52ebcc974d466aaec15238da75f22a0
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Minecraft
|
2
2
|
module JSONAPI
|
3
3
|
class JSONAPI
|
4
|
-
attr_reader :host, :port, :username
|
4
|
+
attr_reader :host, :port, :username
|
5
5
|
|
6
6
|
def initialize(options = {})
|
7
7
|
raise "A username must be provided." if options[:username].nil?
|
@@ -15,6 +15,10 @@ module Minecraft
|
|
15
15
|
@salt = options[:salt]
|
16
16
|
end
|
17
17
|
|
18
|
+
def inspect
|
19
|
+
%Q{#<Minecraft::JSONAPI::JSONAPI:#{object_id} @host="#{@host}", @port=#{@port}, @username="#{@username}">}
|
20
|
+
end
|
21
|
+
|
18
22
|
def make_url(method, args)
|
19
23
|
if method.is_a? Array
|
20
24
|
Minecraft::JSONAPI::CALL_MULTIPLE_URL % { host: @host, port: @port, method: Minecraft::JSONAPI.url_encoded_json(method), args: Minecraft::JSONAPI.url_encoded_json(args), key: create_key(method) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minecraft-jsonapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Hoffman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple Ruby gem to interact with a Minecraft server running the JSONAPI
|
14
14
|
mod
|