leap_salesforce 1.2.0 → 1.2.2

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: c7d7840f64baf2e945a29ab4f022f5ff2191b3443e9068f9cbd32afafb7520bb
4
- data.tar.gz: fbe2a1d779b5605cd19c7eb79b2327fb673865170e2becc567bc587fa4d32798
3
+ metadata.gz: 5da0baf19ea7e71976cfeaf25f36c892ccadfb080f0753151cc8a79d17e1f0a0
4
+ data.tar.gz: 2c4c357f1350fd03bb462d682b7a3f85502763a05aade8e6f60df48d029cf9f6
5
5
  SHA512:
6
- metadata.gz: 861290a24fbb1575f0c3338690bd0aef6c65d3ee6a6d0e7a98c5b511e6bffc243891d927b08cd925fa819a09e9b9bcd523a6950729364c5597815f26b8f95bb9
7
- data.tar.gz: c027b01dc9606cb88d388d25ba3b8895f05c9d5ae47b1377efc42022887b8fa160999c870e078f3434383a1249f24e66951c72b84dcbd5fcaf3398ca22bcd683
6
+ metadata.gz: 76e282452781f8905f96810ae8f56e2862b9df511496fe0d0bef080d0aee43691e5f6069feaf049233c995b4af08cdf13dfd765ef76df93ee1cb5df0e6e2cac4
7
+ data.tar.gz: 9ddae61c0dc0cbc4e338e3fcf3bed22045a2afb9efd122c019ff08dda434d0dc9b2f476a76e81f7e329c192a6287c06de49fb19e646f20c355b1fd39ba8c01f7
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ Version 1.2.2
2
+ * Fix issue with sfdx logging in with new access token format
3
+
4
+ Version 1.2.1
5
+ * Debug SOAP login request so it can be debugged
6
+
1
7
  Version 1.2.0
2
8
  * Ability to set security token on leap_salesforce user by setting an environment variable with the format
3
9
  `ENV["#{key}_token"]``
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'config/credentials/token' if File.exist? 'config/credentials/token.rb'
3
4
  require 'bundler/gem_tasks'
4
5
  require 'rspec/core/rake_task'
5
6
  require 'rake/clean'
@@ -44,9 +45,10 @@ end
44
45
 
45
46
  desc 'Example of cleaning up data'
46
47
  task :remove_contacts do
48
+ require 'parallel'
47
49
  contacts = Contact.where first_name: '!null'
48
50
  puts "Deleting #{contacts.size} contacts"
49
- contacts.each do |contact|
51
+ Parallel.each(contacts) do |contact|
50
52
  contact.delete
51
53
  print '.'
52
54
  end
@@ -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'
@@ -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
@@ -27,12 +27,16 @@ module LeapSalesforce
27
27
  client = Savon.client do
28
28
  endpoint "#{SoqlHandler.instance_url}/services/Soap/u/51.0"
29
29
  namespace "urn:partner.soap.sforce.com"
30
+ log true # See request and response. (Put this in traffic file)
31
+ log_level :debug
32
+ logger Soaspec::SpecLogger.create
33
+ pretty_print_xml true # Prints XML pretty
30
34
  end
31
35
 
32
36
  response = client.call(:login, message:
33
37
  {
34
38
  username: username,
35
- password: password + security_token
39
+ password: password + security_token.to_s
36
40
  })
37
41
  response.body
38
42
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LeapSalesforce
4
4
  # @return [String] Version of leap salesforce
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.2'
6
6
  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.0
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-02-09 00:00:00.000000000 Z
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