sonycam 1.1.0 → 1.1.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 +4 -4
- data/lib/sonycam/cli.rb +4 -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: 90fb4f5958e878b3db469b9ec92124fdba0e0915
|
|
4
|
+
data.tar.gz: c39f85d71dddace37cb2c91666523a356920bf1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4324b2c364f8d4887878e5d6674501cc6f41a7e148aa2db29a775cd13280537c34ff303265c2b3493abb1e0b14620bb1c62202543e295708f7e332296173640
|
|
7
|
+
data.tar.gz: 6fc12dcd8b5618e348a261983e202a8677ac33d7f7e91dbe5df6950d3f63535d65a89a22fc14465a88e9663dcb6d7b9a6f0042e02aa7f977bb7ba7ceeaa650a4
|
data/lib/sonycam/cli.rb
CHANGED
|
@@ -15,8 +15,10 @@ module Sonycam
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
desc 'list [QUERY]', 'List all API or search'
|
|
18
|
-
def list query
|
|
19
|
-
|
|
18
|
+
def list query = nil
|
|
19
|
+
apis = api_client.request(:getAvailableApiList)['result'].first
|
|
20
|
+
apis.select!{|method| method =~ /#{query}/i } if query
|
|
21
|
+
puts apis
|
|
20
22
|
end
|
|
21
23
|
|
|
22
24
|
desc 'api method [PARAMETER ...]', 'Send API request'
|
data/lib/sonycam/version.rb
CHANGED