xbmc-remote 0.0.2 → 0.0.3

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: 675523a6c0aeb81da20ca387130ebb59212362f7
4
- data.tar.gz: 366e50083fe19539efba9df50913b8c8b546f129
3
+ metadata.gz: 9dcfa847ece505dbaac0ce5e03e3cfd8215694cf
4
+ data.tar.gz: bb4f83e66393018fdcebd995040553b7c18d1877
5
5
  SHA512:
6
- metadata.gz: 01cfc504d8ab4b0cce5829010415c37bd64c486080e9ff58931ee632a725815fd42186cd7abbe40fd12ba08db2124d384fc6e7270c432b912382d5f3672be944
7
- data.tar.gz: 35d61a7c8b205f52290954fb6bafed21dcbb6b3a4c93550aa1dac49b6f372b676ad86b2128449575ffc2ca7cf61b168581f78722b4e18a752996a3f14682a8eb
6
+ metadata.gz: e503ab236e548b09f7d7331a4a1bff4258731821e30ee5406ef8130e582e2f7042d1dae33bc6968649f12d1a8090dd6e58f83afa20e59c63818e0220dbbb0478
7
+ data.tar.gz: 789aa4186db9db2faca5955b9e38e5383ebb8bb8d8cba72836c551a2e32bdfedbd3b15263f266296569cf06e9f732ad957115e5da3ea0961fbe573238201bee5
@@ -10,7 +10,7 @@ module XBMC
10
10
 
11
11
  def send_command(method_name, params={})
12
12
  HTTParty.post(base_address,
13
- :body => {:method => method_name, :params => params, :jsonrpc => "2.0",}.to_json,
13
+ :body => {:id => get_id, :method => method_name, :params => params, :jsonrpc => "2.0",}.to_json,
14
14
  :headers => { 'Content-Type' => 'application/json' },
15
15
  )
16
16
  end
@@ -25,5 +25,9 @@ module XBMC
25
25
  return @base_address if defined? @base_address
26
26
  @base_address = URI.join(address, "jsonrpc")
27
27
  end
28
+
29
+ def get_id
30
+ rand(10**12)
31
+ end
28
32
  end
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module XBMC
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xbmc-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hurley