sf_cli 1.2.4 → 1.2.5

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: e22af218b203252c97bf0021671105be00d1af29161b2a087e23256cc81d8505
4
- data.tar.gz: a8a84e90555ebd665651137ea7d339768f68cb211ab9d1c10df328bbb2f28842
3
+ metadata.gz: 9eaa5b952281b6d65ee9985c4627ed2e28cdca208bc8a9de215bfe933ae71d2a
4
+ data.tar.gz: 7ee7b1020b429e05edc68fed332267e24a3d3806ff2fffd2dfaf7279a3e00759
5
5
  SHA512:
6
- metadata.gz: 64e83911a17efb2b59760c52e5722e9437c83888dea7a05c4a56477c24f919b6c35b43a96fb19e20dfec15cdea0ade7c501d8f40b214971b6da2263dc393ee20
7
- data.tar.gz: f1b8fc98e0c1f3f429b9cc6af47a50bdb32b71014dc530c430225591d8ea08ae238347fe293d141870c51fa5608c06113bc52f9a8c953728317ff456fa119cc5
6
+ metadata.gz: 27ad97ba8c8478f9e75b50c446101ebf7a1045772d4734ac8b89a4ef0a4f0195ff849be5694dce36e5bc9033906f5754a4936355d5181910db55a5fec02ec546
7
+ data.tar.gz: a986236aa5b63bfb86202148df5a2fc5251d9f125a3bc9fb795578137a6d180af2f8f4edcbd61cd2065d1c7f532b7b21e5807b35b268368007016f83a04e7d03
@@ -47,8 +47,11 @@ module SfCli
47
47
  if format.to_sym == :json
48
48
  ' ' + {json: true}.merge(hash).each_with_object([]){|(k,v), arr| arr << %(--#{k}) if v}.join(' ')
49
49
  else
50
- return '' if hash.empty?
51
- hash.each_with_object([]){|(k,v), arr| arr << %(--#{k}) if v}.join(' ')
50
+ options = hash.each_with_object([]){|(k,v), arr| arr << %(--#{k}) if v}.join(' ')
51
+ return '' if options.empty?
52
+
53
+ options = ' ' + options unless options.start_with?(' ')
54
+ return options
52
55
  end
53
56
  end
54
57
 
@@ -1,3 +1,3 @@
1
1
  module SfCli
2
- VERSION = '1.2.4'
2
+ VERSION = '1.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sf_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takanobu Maekawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-04 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for introducing Salesforce CLI to Ruby scripting.
14
14
  email: