sonycam 1.2.0 → 1.2.1

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: 28c852472ba2fb6ca1b5e9cab86e394c895a98b6
4
- data.tar.gz: 590c2ce724bed81d0dd9b6960e7a0992ef54be0b
3
+ metadata.gz: 517e4d28a7d968b7c3211a8607ec8120e25d8221
4
+ data.tar.gz: 195ecb3e7bbf72add185dbd2c584ad7f722f86bb
5
5
  SHA512:
6
- metadata.gz: 80f41b1c7cfa0f57745f0f4230cc640ace9893e406645303db70d1839ac4f48b3ec2f45deb4db45658c25fc06ab946257bf042a35873edc4985429cf67c87552
7
- data.tar.gz: 5a4dcf499a2a94904f5c8976db8b071e19fd73c35ae869b9533869bbb99544d158a846537ef1f452281e163f34c63abb362cd628685262bbaad6580e955335d7
6
+ metadata.gz: bebebc883f013e9477e2a3848aae5b0c5141f4197eedfa15ee3140b1e13caf5f4723edb46653d64390896a3c1a4ea429a44c466df7467e459817c86c3b674055
7
+ data.tar.gz: c1d7afd13daaabde61354ddc06fef294defd0d7deb08f3aaa9a9cae002ba7130a08c7c2de712ed51877b202b405bd871439199a6c7e965923225bcfed69031de
data/lib/sonycam/cli.rb CHANGED
@@ -30,7 +30,7 @@ module Sonycam
30
30
  $ sonycam list act
31
31
  LONGDESC
32
32
  def list query = nil
33
- apis = api_client.request(:getAvailableApiList)['result'].first
33
+ apis = api_client.request(:getAvailableApiList).first
34
34
  apis.select!{|method| method =~ /#{query}/i } if query
35
35
  puts apis
36
36
  end
@@ -51,7 +51,7 @@ module Sonycam
51
51
 
52
52
  desc 'liveview', 'Start liveview and output to STDOUT, it should be used with pipe'
53
53
  def liveview
54
- liveview_url = api_client.request('startLiveview')['result'][0]
54
+ liveview_url = api_client.request('startLiveview').first
55
55
  Liveview.stream(liveview_url) do |packet|
56
56
  puts packet[:payload_data][:jpeg_data]
57
57
  end
@@ -1,3 +1,3 @@
1
1
  module Sonycam
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sonycam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Jian