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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8d4e74f4426873992d5371ba31740ffb4819250
4
- data.tar.gz: c2c5fcf60866177736fec900d189c22873a97e6d
3
+ metadata.gz: 90fb4f5958e878b3db469b9ec92124fdba0e0915
4
+ data.tar.gz: c39f85d71dddace37cb2c91666523a356920bf1d
5
5
  SHA512:
6
- metadata.gz: 1d8b38df5403eb958cecad92ddcb7b1b3cdb010215e80fcba9c67f8584027d38c2afa7108b476efb35874633a3bad0021b26a7db4514b2c8de10f0d447073a1e
7
- data.tar.gz: 9efe5b33fe493f9d1f689695b8daeb1bab201df7c29727b95ed54e555ab35e627b6de13d7bfd2b880154f8e080aecc2d92a17c3a18357414b15dc6f7496b10a5
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
- puts api_client.request(:getAvailableApiList)['result'].first.select{|method| method =~ /#{query}/i }
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'
@@ -1,3 +1,3 @@
1
1
  module Sonycam
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Jian