leap_salesforce 1.4.1 → 1.4.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/README.md +2 -1
- data/exe/leap_salesforce +7 -4
- data/lib/leap_salesforce/auth.rb +2 -0
- data/lib/leap_salesforce/generator/soql_objects.rb +1 -1
- data/lib/leap_salesforce/leaps.rb +0 -1
- data/lib/leap_salesforce/version.rb +1 -1
- data/lib/leap_salesforce.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 727cda791511d2d4114ed478b5686cdcdf194d57d38b43258180f1e9edf2dda8
|
4
|
+
data.tar.gz: 3ee6582c6ec6365ea2e64fb1fe8368047171414086c2278689e0bd3c7de7f274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7382790fba0ca2416cd50d4a547c46572e16ac575b9e989b27dbbf921e8074507b8627db3daf0acbdb60533c02a65aaeeac35ed4475ad64c166ac1ee263f1b86
|
7
|
+
data.tar.gz: 431a449bec6a0989ec7188b2dbd2a24fbe5d806b941c5b62dad86c1db027f559d8397545d17f3765d190ffe56ccab91a7f1b1cbd31d2769ac6fddbb5a704e476
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
Welcome to LeapSalesforce gem. This gem helps ones to perform integration tests on Salesforce. It reads the Metadata
|
4
4
|
from Salesforce and creates the foundation for API tests.
|
5
5
|
|
6
|
-
Support for UI testing is being worked on in another gem [leap_salesforce_ui](https://gitlab.com/leap-dojo/leap_salesforce_ui)
|
6
|
+
Support for UI testing is being worked on in another gem [leap_salesforce_ui](https://gitlab.com/leap-dojo/leap_salesforce_ui).
|
7
|
+
An example using this and the learnings it involved are in a Java Project [Leap Salesforce Java](https://gitlab.com/leap-dojo/leap_salesforce_java)
|
7
8
|
|
8
9
|
## Is this for you?
|
9
10
|
|
data/exe/leap_salesforce
CHANGED
@@ -4,11 +4,10 @@
|
|
4
4
|
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
5
5
|
|
6
6
|
require 'thor'
|
7
|
-
require '
|
8
|
-
Dotenv.load
|
7
|
+
require 'leap_salesforce/error'
|
9
8
|
require 'leap_salesforce/parameters'
|
10
9
|
require 'leap_salesforce/generator/generator'
|
11
|
-
require 'leap_salesforce/
|
10
|
+
require 'leap_salesforce/version'
|
12
11
|
require 'colorize'
|
13
12
|
|
14
13
|
module LeapSalesforce
|
@@ -65,7 +64,7 @@ Please ignore "config/credentials/" and "logs/"'.colorize :red
|
|
65
64
|
option :language
|
66
65
|
def create_soql_objects
|
67
66
|
LeapSalesforce.language = options[:language] if options[:language]
|
68
|
-
require 'leap_salesforce/generator/soql_objects'
|
67
|
+
require 'leap_salesforce/generator/soql_objects'
|
69
68
|
LeapSalesforce.oauth_working?
|
70
69
|
LeapSalesforce::Users.execute_as_if_present key: :admin do
|
71
70
|
LeapSalesforce::Generator::SoqlObjects.new.create_all
|
@@ -76,6 +75,10 @@ Please ignore "config/credentials/" and "logs/"'.colorize :red
|
|
76
75
|
def version
|
77
76
|
puts LeapSalesforce::VERSION
|
78
77
|
end
|
78
|
+
|
79
|
+
def self.exit_on_failure?
|
80
|
+
true
|
81
|
+
end
|
79
82
|
end
|
80
83
|
end
|
81
84
|
|
data/lib/leap_salesforce/auth.rb
CHANGED
@@ -44,7 +44,7 @@ module LeapSalesforce
|
|
44
44
|
if LeapSalesforce.language == 'ruby'
|
45
45
|
field_content = read_template 'soql_object_field_names.rb.erb', binding
|
46
46
|
field_file = File.join(SOQL_OBJECT_FOLDER, "#{@field_name_file}.rb")
|
47
|
-
elsif LeapSalesforce.language ==
|
47
|
+
elsif LeapSalesforce.language == 'java'
|
48
48
|
field_content = read_template 'soql_object_field_names.java.erb', binding
|
49
49
|
field_file = File.join(SOQL_OBJECT_FOLDER, "#{@soql_object.class_name}.java")
|
50
50
|
else
|
data/lib/leap_salesforce.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'leap_salesforce/version'
|
4
|
-
|
5
4
|
require 'facets/string/snakecase'
|
6
5
|
require 'soaspec'
|
7
6
|
Soaspec::OAuth2.refresh_token = :once # Save access token and reuse it
|
@@ -21,8 +20,6 @@ require 'faker' # For fake data
|
|
21
20
|
require 'leap_salesforce/error'
|
22
21
|
require 'leap_salesforce/loader'
|
23
22
|
require 'leap_salesforce/session'
|
24
|
-
require 'dotenv'
|
25
|
-
Dotenv.load
|
26
23
|
|
27
24
|
# If variable is present within LeapSalesforce set it
|
28
25
|
def load_variables_from(file)
|
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.4.
|
4
|
+
version: 1.4.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: 2024-09-
|
12
|
+
date: 2024-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|