music_cast 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ba0fe27dacbc0c4db860fbb944900440148a7ae74f351f46672f4b3d6528bbb
4
- data.tar.gz: 8f1f35ff25230e3cbbe1efe536c4ee371759077647ef4f389b46b57dcb2bec1a
3
+ metadata.gz: e4b104c95c87b9510875c6379b0ef5ade379f830b74e077bfd597a35fbd5e76b
4
+ data.tar.gz: f6567e040992ec6d6afeb299cb3a5670d79b2eb3160470f3352eff86169fb35c
5
5
  SHA512:
6
- metadata.gz: 676ee2860bf7b9a3a1db5f3ed4a47af2e617009e2ad580f6607f89fb1f35ec73bb617cc9b2a96d4dcf2b9c1c4d9b61793c8a573dedff100fa21d35b41be5ebd3
7
- data.tar.gz: d2671976f0d9e02abba31aaa82668b8ca87a27440a8d660ff85d2717f7b1d037cfece7a4950a5b84600ccf0448b70a1d437ead5c0cdfdf0cb5e924651e864f4e
6
+ metadata.gz: 6e54921dc5f94d7a93a26b7ec2ff2ab8d700df3f46e24c3b59616e976a0dc455eeef08930bb5b95793fb9d88c588584749bc1e357562e95b8148c827ab236feb
7
+ data.tar.gz: cf2b5ab552802b177cc22bfb5fb68ca14e71ceef7c17fc8b8d96e02c5b8d2d4e4f9296e9678c4e4a2b2875843def74e1ccb64b5d21bbb8fd603b16696bb04046
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- music_cast (0.3.1)
4
+ music_cast (0.3.2)
5
5
  faraday (~> 0.14.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -51,6 +51,7 @@ Get device status
51
51
  ```ruby
52
52
  status = MusicCast::GetStatus.new
53
53
  status.to_json # Current status as JSON
54
+ status.to_hash # Current status as Hash
54
55
  ```
55
56
 
56
57
  ### Power Functions
@@ -4,6 +4,10 @@ module MusicCast
4
4
  get.body
5
5
  end
6
6
 
7
+ def to_hash
8
+ JSON.parse(get.body)
9
+ end
10
+
7
11
  def get
8
12
  make_request('main/getStatus')
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module MusicCast
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_cast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Entwistle