sf_cli 1.2.3 → 1.2.4

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: 283b8eacee628f3be4e587040bd604bdbb669b8f0139e5f5a8963690f2f7605a
4
- data.tar.gz: 9d2303cefa7684784a9505df8692cd0bbce74951f53ec28bd520d1f8c61c5041
3
+ metadata.gz: e22af218b203252c97bf0021671105be00d1af29161b2a087e23256cc81d8505
4
+ data.tar.gz: a8a84e90555ebd665651137ea7d339768f68cb211ab9d1c10df328bbb2f28842
5
5
  SHA512:
6
- metadata.gz: 2abcf466629177011a6d4847e3646cb033cdb34fdf40c9792ea9844678f5de0fdcd2f930cb12ad9e132300aa88ab33d59762caac39322d784af06fc768b6d51d
7
- data.tar.gz: 4304ff0ee17be410ce5970dd917726e51a1013dfb7e9c7553df0848c4c780f9a4dbbaa4fee0f2eac33907732e37865188cfc0afbd36caa9506828d0d1ceed149
6
+ metadata.gz: 64e83911a17efb2b59760c52e5722e9437c83888dea7a05c4a56477c24f919b6c35b43a96fb19e20dfec15cdea0ade7c501d8f40b214971b6da2263dc393ee20
7
+ data.tar.gz: f1b8fc98e0c1f3f429b9cc6af47a50bdb32b71014dc530c430225591d8ea08ae238347fe293d141870c51fa5608c06113bc52f9a8c953728317ff456fa119cc5
@@ -44,6 +44,10 @@ module SfCli
44
44
  @relations ||= Relations.new(children_relations + parent_relations)
45
45
  end
46
46
 
47
+ def relation_names
48
+ relations.names
49
+ end
50
+
47
51
  def to_h
48
52
  schema
49
53
  end
@@ -169,7 +173,7 @@ module SfCli
169
173
  end
170
174
 
171
175
  def record_types
172
- schema["recordTypeInfos"]
176
+ @record_types = schema["recordTypeInfos"].map{|rt| RecordType.new(**rt)}
173
177
  end
174
178
 
175
179
  def replicateable?
@@ -219,6 +223,7 @@ module SfCli
219
223
  end
220
224
 
221
225
  Relation = Struct.new(:name, :field, :class_name)
226
+ RecordType = Struct.new(:active, :available, :defaultRecordTypeMapping, :developerName, :master, :name, :recordTypeId, :urls)
222
227
 
223
228
  class Relations
224
229
  include Enumerable
@@ -278,6 +283,14 @@ module SfCli
278
283
  map{|field| [field.name, field.label]}
279
284
  end
280
285
 
286
+ def names
287
+ map(&:name)
288
+ end
289
+
290
+ def labels
291
+ map(&:label)
292
+ end
293
+
281
294
  private
282
295
 
283
296
  def fields
@@ -1,3 +1,3 @@
1
1
  module SfCli
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sf_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
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-02 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A class library for introducing Salesforce CLI to Ruby scripting. Currenty
14
- only sf command is the target of development.
13
+ description: A library for introducing Salesforce CLI to Ruby scripting.
15
14
  email:
16
15
  executables:
17
16
  - sf_cli
@@ -80,16 +79,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - ">="
82
81
  - !ruby/object:Gem::Version
83
- version: 3.3.3
82
+ version: 3.3.4
84
83
  required_rubygems_version: !ruby/object:Gem::Requirement
85
84
  requirements:
86
85
  - - ">="
87
86
  - !ruby/object:Gem::Version
88
87
  version: '0'
89
88
  requirements:
90
- - 'Salesforce CLI ( >= 2.56.7): https://developer.salesforce.com/tools/salesforcecli'
89
+ - 'Salesforce CLI ( >= 2.64.8): https://developer.salesforce.com/tools/salesforcecli'
91
90
  rubygems_version: 3.5.11
92
91
  signing_key:
93
92
  specification_version: 4
94
- summary: A library for Salesforce CLI in Ruby
93
+ summary: A library for introducing Salesforce CLI to Ruby scripting.
95
94
  test_files: []