leap_salesforce 1.4.3 → 1.5.0

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: 65554ee3c2903f5a1d49f2433d6ae95f89b98acd1d31c110b61f34eba61c2660
4
- data.tar.gz: f5bbc9c392441f97bfe3f38046f18c8e27529a8805ebdc6229f4a47a7f755b2d
3
+ metadata.gz: d915a273bc83301d1200ec02ea073e4422c3a181848270b331e8cb038b9fd497
4
+ data.tar.gz: 15e3f8b7dcb875992cccf917568d8d08639f8b3473733725faec31a1f3f598ed
5
5
  SHA512:
6
- metadata.gz: 30edbcffe1599ee7b1a8ac199e357b7b8143a10d697c623faf492704f5aa8450fd6f81694dd6a4be5ce5c59fa23c20e069fee1bac1a4f1b69c76c6feb93f04c6
7
- data.tar.gz: cfa46d6dc2f7e6a50c24fc5bfa1635985d823ea5fe20fb54dc5706d7acf6323fe6333c783b292fa9bd0ff7f7d08a19c9ae942c74bf4bbfe88201a15268ee96c2
6
+ metadata.gz: e8a8c03462d9bbc370c0bccd887641f309053a1f19a60f838fbfe24c044a07956a4c163a82a6487025d3ece9224dee1417fba0b05bd9362eb6214cea211d6b8a
7
+ data.tar.gz: c0e2258e7a5dfe937c0e95c929ef45e1136a6e4d581ba1a48cc93800447e1011e3c2aaff17e3fb1c819cf22f31e81f85c3c40afe2c83b2d51abe25c66089369f
data/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ Version 1.5.0
2
+ * Handle `'` in string using `\` to escape
3
+ * Use latest version of REST api `62.0`
4
+
5
+ Version 1.4.4
6
+ * Java POMO set boolean type when object type is 'boolean' instead of 'String'
7
+
1
8
  Version 1.4.3
2
9
  * Simplify Java POMO's created using Lombok
3
10
  * Add executable to create enum objects in Java with 'leap_salesforce create_soql_enums' and 'leap_salesforce create_all' that creates both objects and enums
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 IQA
3
+ Copyright (c) 2019 Sentify
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/config/general.rb CHANGED
@@ -8,6 +8,7 @@ module LeapSalesforce
8
8
  Users.add User.new :admin, 'samuel.garratt@brave-otter-ttxype.com'
9
9
  Users.add User.new :not_there, 'not.there@brave-otter-ttxype.com'
10
10
  Users.add User.new :cet, 'test.cet@brave-otter-ttxype.com'
11
+ Users.add User.new :extra, 'test.extra@brave-otter-ttxype.com'
11
12
  end
12
13
 
13
14
  ENV['SF_USERNAME'] = 'samuel.garratt@brave-otter-ttxype.com'
@@ -17,7 +17,7 @@ public class <%= @soql_object.class_name %> {
17
17
  * Label: '<%= field['label'] %>', Type: <%= field['type'] %><%= ", Relationship:" + field['relationshipName'] if field['relationshipName'] %>
18
18
  */
19
19
  @JsonProperty(value="<%= field['name'] %>")
20
- String <%= field['name'].camelize(:lower) %>;
20
+ <%= field['type'] == 'boolean' ? 'Boolean' : 'String' %> <%= field['name'].camelize(:lower) %>;
21
21
  <% end %>
22
22
  }
23
23
 
@@ -117,7 +117,7 @@ module LeapSalesforce
117
117
  # check. Object will be converted String if not already one
118
118
  # @return [String] Condition criteria to match value using SOQL
119
119
  def condition_for(field_name, value)
120
- value = value.nil? ? 'null' : value.to_s
120
+ value = value.nil? ? 'null' : value.to_s.gsub("'", "\'")
121
121
  operator, value = case value[0]
122
122
  when '>', '<', '!', 'I' then extract_comparator(value)
123
123
  when '~' then ['LIKE', value[1..]]
@@ -34,7 +34,7 @@ class SoqlHandler < Soaspec::RestHandler
34
34
  retry_on_exceptions [RestClient::ServerBrokeConnection], pause: 1, count: 5
35
35
 
36
36
  # @return [String] Version of Salesforce API to use
37
- @api_version = '45.0'
37
+ @api_version = '61.0'
38
38
 
39
39
  class << self
40
40
  # @return [String] The current Salesforce instance URL obtained from oauth call
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LeapSalesforce
4
4
  # @return [String] Version of leap salesforce
5
- VERSION = '1.4.3'
5
+ VERSION = '1.5.0'
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.4.3
4
+ version: 1.5.0
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-10-01 00:00:00.000000000 Z
12
+ date: 2024-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler