sonycam 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sonycam/cli.rb +2 -2
- data/lib/sonycam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 517e4d28a7d968b7c3211a8607ec8120e25d8221
|
4
|
+
data.tar.gz: 195ecb3e7bbf72add185dbd2c584ad7f722f86bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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')
|
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
|
data/lib/sonycam/version.rb
CHANGED