leap_salesforce 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/Rakefile +2 -1
- data/leap_salesforce.gemspec +1 -0
- data/lib/leap_salesforce/auth.rb +2 -2
- data/lib/leap_salesforce/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5da0baf19ea7e71976cfeaf25f36c892ccadfb080f0753151cc8a79d17e1f0a0
|
4
|
+
data.tar.gz: 2c4c357f1350fd03bb462d682b7a3f85502763a05aade8e6f60df48d029cf9f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76e282452781f8905f96810ae8f56e2862b9df511496fe0d0bef080d0aee43691e5f6069feaf049233c995b4af08cdf13dfd765ef76df93ee1cb5df0e6e2cac4
|
7
|
+
data.tar.gz: 9ddae61c0dc0cbc4e338e3fcf3bed22045a2afb9efd122c019ff08dda434d0dc9b2f476a76e81f7e329c192a6287c06de49fb19e646f20c355b1fd39ba8c01f7
|
data/ChangeLog
CHANGED
data/Rakefile
CHANGED
@@ -45,9 +45,10 @@ end
|
|
45
45
|
|
46
46
|
desc 'Example of cleaning up data'
|
47
47
|
task :remove_contacts do
|
48
|
+
require 'parallel'
|
48
49
|
contacts = Contact.where first_name: '!null'
|
49
50
|
puts "Deleting #{contacts.size} contacts"
|
50
|
-
|
51
|
+
Parallel.each(contacts) do |contact|
|
51
52
|
contact.delete
|
52
53
|
print '.'
|
53
54
|
end
|
data/leap_salesforce.gemspec
CHANGED
@@ -27,6 +27,7 @@ It reads the Metadata from Salesforce and creates the foundation for API tests.'
|
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
29
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
30
|
+
spec.add_development_dependency 'parallel'
|
30
31
|
spec.add_development_dependency 'pry'
|
31
32
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
32
33
|
spec.add_development_dependency 'semaphore_test_boosters'
|
data/lib/leap_salesforce/auth.rb
CHANGED
@@ -107,11 +107,11 @@ module LeapSalesforce
|
|
107
107
|
|
108
108
|
def from_output(variable)
|
109
109
|
var_line = sfdx_display_output.lines.find do |line|
|
110
|
-
line.start_with? variable
|
110
|
+
line.strip.start_with? variable
|
111
111
|
end
|
112
112
|
raise LeapSalesforce::SetupError, "Error retrieving from #{sfdx_display_output}" unless var_line
|
113
113
|
|
114
|
-
var_line.split[-1]
|
114
|
+
var_line.strip.split[-1]
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leap_salesforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IQA
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '2.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: parallel
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: pry
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|