leap_salesforce 0.2.0 → 0.2.1

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: 77695ebdd7c343c96054ec7feddc3f7fad3d6cd88faef0cebdeffdae3b1ff6dc
4
- data.tar.gz: adccd0e5e0cc880e554fa0c7b8a3381fbf3a7e68142e23e59afdfef7846fdb2d
3
+ metadata.gz: 04efde59b716f0dffffb2e0d9f1accf68b74a63f65bb4f3da1cbc2c053218e51
4
+ data.tar.gz: c4e79f40d3016c9e410a6f93b2d8e66133db77f9dcfd7d81c7735e44e32cc7d5
5
5
  SHA512:
6
- metadata.gz: 04c59da4ce51c172fffdf7763dfaa6db9d3f6115016ec1afbd5dfd005b40d7592af0508c7b2d2317128f7c92118caa9349edf61fc1b4c544822ea02ea89bda9c
7
- data.tar.gz: 7a0c30ded8226117a3480730d02daf3a3582694e9d873b37417b542f8f3e581c17fda7d4a87a4eeb3a053a302090b0a7f20e469ee8ece55b9aec1f8f2f5352ce
6
+ metadata.gz: ef1e1e8dda712abac38a314d50472569bd4e9a4ea4b0c0d9e89e99d3e7bbea0c3b10c347363e61c7ea58842f15a40c6b30839651e0ae95210305bc74b70ee17d
7
+ data.tar.gz: 066f2566a5a3abfb333ed60015e5d6f58cd692c44be3343c812b912adbd320b9836cc33752d531110224b153bdaadead09fade63eba64cb029fd5399febdf9f0
data/.gitignore CHANGED
@@ -10,6 +10,7 @@ Gemfile.lock
10
10
  logs/
11
11
  stub/
12
12
  .idea/workspace.xml
13
+ .idea/.rakeTasks
13
14
 
14
15
  # Generated files for now
15
16
  spec/support/
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.2.1
2
+ * Bug fix
3
+ * Handle where value in filter is an exact date which was failing
4
+
1
5
  Version 0.2.0
2
6
  * Enhancements
3
7
  * Ability to use `sfdx` to authenticate allowing authentication against sandboxes
data/README.md CHANGED
@@ -7,6 +7,32 @@ In the future it will also planned to be used to create page objects based on me
7
7
 
8
8
  [![Build Status](https://gitlab.com/leap-dojo/leap_salesforce/badges/master/build.svg)](https://gitlab.com/leap-dojo/leap_salesforce/pipelines)
9
9
 
10
+ ## Is this for you?
11
+
12
+ This `gem` is an open source library aimed at making integrated test automation
13
+ for Salesforce easy. Using it does require you to use code so if you really must
14
+ have a `codeless` automation suite then you will need another tool
15
+ (e.g., [Provar](provartesting.com)). However if you have some engineers (dev
16
+ or test) who are keen to get their hands into some code this is worth trying.
17
+
18
+ The benefits of an open source tool like this are:
19
+
20
+ * Ease of use. Initialisation scripts make getting setup easy, code
21
+ examples demonstrate how to perform common actions
22
+ * Transparency. Nothing is hidden. Every piece of code can be seen by you
23
+ * Flexibility. Using Ruby you are able to customize and extend the code however
24
+ you like and if you want to share it, you can easily do so with a pull request
25
+ * Mutual growth. The hope is with many using this library, test automation
26
+ engineers can support each other and mutually create a library that makes
27
+ common test cases easy
28
+ * It itself is unit tested. You can have confidence of all the features shown
29
+ and can add extra unit tests if you need more confidence
30
+ * Built with and for CI in Gitlab. Designed to work within Docker containers
31
+ * Will integrate with `sfdx` leveraging all of it's benefits
32
+ * Supported by [IntegrationQA](www.integrationqa.com) who can provide
33
+ [support and training](https://gitlab.com/leap-dojo/leap_salesforce/wikis/SupportModel)
34
+ to help you get started and overcome challenges
35
+
10
36
  ## Table of Contents
11
37
 
12
38
  * [LeapSalesforce](#leapsalesforce)
@@ -247,10 +247,11 @@ module SoqlGlobalObjectData
247
247
  # Returns SOQL condition for value passed to be used in SOQL query
248
248
  # @example Greater than or equal to yesterday's date
249
249
  # condition_for("<=#{Time.mktime(2019,1,1)}") # => '<= 2019-01-01T00:00:00.000Z'
250
- # @param [String] value Value to search for. Certain characters modify this to be more of a complex
251
- # check
250
+ # @param [String, Object] value Value to search for. Certain characters modify this to be more of a complex
251
+ # check. Object will be converted String if not already one
252
252
  # @return [String] Condition criteria to match value using SOQL
253
253
  def condition_for(value)
254
+ value = value.to_s
254
255
  operator, value = case value[0]
255
256
  when '>', '<' then extract_comparator(value)
256
257
  when '~' then ['LIKE', value[1..-1]]
@@ -259,7 +260,6 @@ module SoqlGlobalObjectData
259
260
 
260
261
  return "= #{value.to_zulu_date_string}"
261
262
  end
262
-
263
263
  return "#{operator} #{value.to_zulu_date_string}" if value.type_of_time?
264
264
 
265
265
  "#{operator} '#{value}'"
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LeapSalesforce
4
4
  # @return [String] Version of leap salesforce
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
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: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - IQA
@@ -248,7 +248,6 @@ extra_rdoc_files: []
248
248
  files:
249
249
  - ".gitignore"
250
250
  - ".gitlab-ci.yml"
251
- - ".idea/.rakeTasks"
252
251
  - ".idea/dictionaries/iqa.xml"
253
252
  - ".idea/leap-salesforce.iml"
254
253
  - ".idea/markdown-exported-files.xml"
data/.idea/.rakeTasks DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build leap_salesforce-0.2.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Check Salesforce OAuth2 authentication is working" fullCmd="check_oauth" taksId="check_oauth" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install leap_salesforce-0.2.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install leap_salesforce-0.2.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="leaps"><RakeTask description="Create objects, fields, enums" fullCmd="leaps:create_all" taksId="create_all" /><RakeTask description="Create Enumeration objects for picklists from Salesforce Metadata" fullCmd="leaps:create_enums" taksId="create_enums" /><RakeTask description="Create Soql Data objects" fullCmd="leaps:create_soql_objects" taksId="create_soql_objects" /></RakeGroup><RakeTask description="Create tag v0.2.0 and build and push leap_salesforce-0.2.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="Create stubs for dynamic methods so they're picked up by the IDE" fullCmd="stub" taksId="stub" /><RakeGroup description="" fullCmd="" taksId="yard"><RakeTask description="Run YARD doctests" fullCmd="yard:doctest" taksId="doctest" /></RakeGroup><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>