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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f253fe7ce0299620badd91af39884850f54150a
4
- data.tar.gz: 1566ae09a9cfe701aba3a3581a51b25bfd62bc58
3
+ metadata.gz: 3cc63ac449d0d608f266599c427ee85af2900e7c
4
+ data.tar.gz: e548fcd0f04d5d10d248e7e468325145bc64f191
5
5
  SHA512:
6
- metadata.gz: 1dd3552d3839b1c1e76a22caa690ccbaf232fa06de1c528978470c0697e3071416fe483dbe25e2e4b5e0be253793899aa0e6a12d8a52c62e2e44db75d981cb49
7
- data.tar.gz: 3c3213a5241499cf52cc78ea167f5c4fbcfb96fca0082b407d201ea357c2fd1b1f02be4da3902efdca9baa2997ada5dfb5ae016264d95ae76352cdee7366ea65
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, :salt
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) }
@@ -1,5 +1,5 @@
1
1
  module Minecraft
2
2
  module JSONAPI
3
- VERSION = "0.0.8"
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
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.8
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-07-01 00:00:00.000000000 Z
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