asperalm 0.8.5 → 0.8.6

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: f2c66f01ae100e447ea9260d48dcd55a620e30be983058ad2bd6a4aba441d944
4
- data.tar.gz: b8e13ebae470ad36e64220af49beeaffe4b1b2db83805b72df00e937b1d4a714
3
+ metadata.gz: 897ba17fd161f9405ce5d21ec833a7791273c684bba08e524f60a92d3ad8fe95
4
+ data.tar.gz: 543b8e2303439669d4c34f65455f23d7ec8c4287a861e792b03139b3a00e383b
5
5
  SHA512:
6
- metadata.gz: b1eb20f69ebf0070434aa48a7e83d382c7eb6e71234dce0294c2a4a35c1b1d687ac0d3283df6cb4daaf836cc965a03bf16fb1af56223ada2da8da787db9dcb97
7
- data.tar.gz: 17c92cb592d895a92cba970e6c92a594fb3221267f52eb3debf8dea5fcc68d49b77634356c9d660af0b12a1d0c14543e5639e505f95664fb29acd7b33fa0b8ab
6
+ metadata.gz: 9bd75c8d9d6de7dafb034988e41d577a248b1d0bc42b1b0470c003f5336fbf76a3e61ffdcc919b483dafc0236da40680c29fcf7642fd5ba9e027e547215026fb
7
+ data.tar.gz: 5fa2edcf1f9d92a15bc979985b6447fba7160fa1635880ff8cddfeb2ac51326e1e5fac1f4a596d7e4e5dd3a01176d5b7a245add58ccf9fb35f054a3f2d83794b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Asperalm - Laurent's Aspera Command Line Interface and Ruby Library
2
2
 
3
- Version : 0.8.5
3
+ Version : 0.8.6
4
4
 
5
5
 
6
6
  _Laurent/2016-2018_
@@ -35,7 +35,7 @@ Once the gem is installed, the `aslmcli` shall be accessible:
35
35
 
36
36
  ```bash
37
37
  $ aslmcli --version
38
- 0.8.5
38
+ 0.8.6
39
39
 
40
40
  ```
41
41
 
@@ -945,7 +945,7 @@ aslmcli sync start --parameters=@json:'{"sessions":[{"name":"test","reset":true,
945
945
  ```bash
946
946
  $ aslmcli -h
947
947
  NAME
948
- aslmcli -- a command line tool for Aspera Applications (v0.8.5)
948
+ aslmcli -- a command line tool for Aspera Applications (v0.8.6)
949
949
 
950
950
  SYNOPSIS
951
951
  aslmcli COMMANDS [OPTIONS] [ARGS]
@@ -993,6 +993,7 @@ OPTIONS: global
993
993
  --to-folder=VALUE destination folder for downloaded files
994
994
  --lock-port=VALUE prevent dual execution of a command, e.g. in cron
995
995
  --use-product=VALUE which local product to use for ascp, current=FIRST
996
+ --query=VALUE additional filter for API calls (extended value)
996
997
  --insecure=ENUM do not validate HTTPS certificate: yes, no
997
998
  --flat-hash=ENUM display hash values as additional keys: yes, no
998
999
  --override=ENUM override existing value: yes, no
@@ -1048,7 +1049,6 @@ OPTIONS:
1048
1049
  --title=VALUE package title
1049
1050
  --note=VALUE package note
1050
1051
  --secret=VALUE access key secret for node
1051
- --query=VALUE list filter (extended value: encode_www_form)
1052
1052
  --id=VALUE resource identifier
1053
1053
  --eid=VALUE identifier
1054
1054
  --name=VALUE resource name
data/lib/asperalm/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.5
1
+ 0.8.6
@@ -290,6 +290,7 @@ module Asperalm
290
290
  @opt_mgr.add_opt_simple(:to_folder,"destination folder for downloaded files")
291
291
  @opt_mgr.add_opt_simple(:lock_port,"prevent dual execution of a command, e.g. in cron")
292
292
  @opt_mgr.add_opt_simple(:use_product,"which local product to use for ascp, current=#{Fasp::Installation.instance.activated}")
293
+ @opt_mgr.add_opt_simple(:query,"additional filter for API calls (extended value)")
293
294
  @opt_mgr.add_opt_boolean(:insecure,"do not validate HTTPS certificate")
294
295
  @opt_mgr.add_opt_boolean(:flat_hash,"display hash values as additional keys")
295
296
  @opt_mgr.add_opt_boolean(:override,"override existing value")
@@ -30,7 +30,6 @@ module Asperalm
30
30
  Main.instance.options.add_opt_simple(:title,"package title")
31
31
  Main.instance.options.add_opt_simple(:note,"package note")
32
32
  Main.instance.options.add_opt_simple(:secret,"access key secret for node")
33
- Main.instance.options.add_opt_simple(:query,"list filter (extended value: encode_www_form)")
34
33
  Main.instance.options.add_opt_simple(:id,"resource identifier")
35
34
  Main.instance.options.add_opt_simple(:eid,"identifier")
36
35
  Main.instance.options.add_opt_simple(:name,"resource name")
@@ -123,7 +123,10 @@ module Asperalm
123
123
  return self.class.c_result_translate_rem_prefix(resp,'entry','moved',prefix_path)
124
124
  when :browse
125
125
  thepath=get_next_arg_add_prefix(prefix_path,"path")
126
- send_result=api_node.create('files/browse',{ :path => thepath} )
126
+ query={ :path => thepath}
127
+ additional_query=Main.instance.options.get_option(:query,:optional)
128
+ query.merge!(additional_query) unless additional_query.nil?
129
+ send_result=api_node.create('files/browse', query)
127
130
  #send_result={:data=>{'items'=>[{'file'=>"filename1","permissions"=>[{'name'=>'read'},{'name'=>'write'}]}]}}
128
131
  return Plugin.result_empty if !send_result[:data].has_key?('items')
129
132
  result={ :data => send_result[:data]['items'] , :type => :object_list, :textify => lambda { |table_data| self.class.c_textify_browse(table_data) } }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asperalm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Martin