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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b60fb84b150303c1dc91eb621c40d5c155f439ecd7047911a321d65129259943
4
- data.tar.gz: '0966f9cb9274d9f5d7f3d9f2cc85391bf57b909eb6c2d63792452a70e5f690f3'
3
+ metadata.gz: 727cda791511d2d4114ed478b5686cdcdf194d57d38b43258180f1e9edf2dda8
4
+ data.tar.gz: 3ee6582c6ec6365ea2e64fb1fe8368047171414086c2278689e0bd3c7de7f274
5
5
  SHA512:
6
- metadata.gz: dc9ae149d641d926b3d165c28356a39655b5bc1376488db5526b4b61dffe351d7212a05b800b0e932796fcb40296f39face2cd68e67347987925d74c6eae56b6
7
- data.tar.gz: 8a7de04ea12fa03beaf419a756f4a9bc5acdba392b9162d7e920aa29652c882034488e69ee2d569b095e0e57f9266ca8002a5b95544be7e2c716ffdfbdb094f4
6
+ metadata.gz: 7382790fba0ca2416cd50d4a547c46572e16ac575b9e989b27dbbf921e8074507b8627db3daf0acbdb60533c02a65aaeeac35ed4475ad64c166ac1ee263f1b86
7
+ data.tar.gz: 431a449bec6a0989ec7188b2dbd2a24fbe5d806b941c5b62dad86c1db027f559d8397545d17f3765d190ffe56ccab91a7f1b1cbd31d2769ac6fddbb5a704e476
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ Version 1.4.2
2
+ * Fixed leap_salesforce version method
3
+
1
4
  Version 1.4.1
2
5
  * Fixed method names that need to match types
3
6
  * Fixed file name created. Needs to be with '.java' in lower case
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 'dotenv'
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/error'
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
 
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'error'
4
+ require 'dotenv'
5
+ Dotenv.load
4
6
 
5
7
  module LeapSalesforce
6
8
  # Code related to authorising in LeapSalesforce
@@ -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 == "java"
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
@@ -2,6 +2,5 @@
2
2
 
3
3
  # Create a Leaps alias to LeapSalesforce as it's faster to type.
4
4
  # This will not be automatically required in case as 'Leaps' may be defined elsewhere
5
-
6
5
  require 'leap_salesforce'
7
6
  Leaps = LeapSalesforce
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LeapSalesforce
4
4
  # @return [String] Version of leap salesforce
5
- VERSION = '1.4.1'
5
+ VERSION = '1.4.2'
6
6
  end
@@ -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.1
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-27 00:00:00.000000000 Z
12
+ date: 2024-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler