-
Notifications
You must be signed in to change notification settings - Fork 46
Extend 'Client' class with 'create_multiple' and 'bulk_delete' methods #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
karolkulesza
wants to merge
38
commits into
congaengr:master
Choose a base branch
from
karolkulesza:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
bc8d1ba
Improve define_region method
2c73b31
Create specs
ea4a242
Update version
cc4b4fe
- Extended 'Client' class with 'create_multiple' method, for bulk upl…
karolkulesza 9f7b98b
- Extended ‘client.rb’ in forked ‘dynamics_crm' gem with the ‘bulk_de…
karolkulesza bad527f
- Fixed Travis CI issue: "undefined method `spec' for nil:NilClass” b…
karolkulesza 8500100
- Extended ‘bulk_delete’ method in ‘client.rb’ with the option to wai…
karolkulesza a71ef9c
Widen curb and mimemagic dependencies.
jheth 4aba80f
Merge pull request #37 from lucaskds/improve-region-determination
jheth d3f03ad
- Trivial refactoring in 'bulk_delete' method, in 'client.rb';
karolkulesza 27d9322
Switch region hash to string keys.
jheth 8ab364a
Updated rspec syntax using transpec.
jheth 1a36004
Widen development dependencies and update ruby versions.
jheth 97312c7
Fix be_truthy error.
jheth 1c777b3
Remove ruby 2.2 for now.
jheth dea77f6
Update to version 0.7.0 with CHANGELOG.
jheth 9c0904d
Add max dependency
jheth e43c926
Avoid escaping nil values.
jheth 0a8ad2e
Support ArrayOfEntity so one can create bound entities like ActivityP…
d98a567
Test added
f9a9a4d
Merge pull request #41 from mbhnyc/master
jheth 81cbb31
Add special case for nil value
stephanvd 7faad5f
Merge pull request #43 from stephanvd/feature/support-nil
jheth 5f6f6ef
- Exposed 'security_token0', 'security_token1' and 'key_identifier' a…
karolkulesza 5609ad9
- Extended 'Fault' support to handle different format (as in case of …
karolkulesza dc1b0a0
- Extended 'Client' class with 'create_multiple' method, for bulk upl…
karolkulesza 46635e8
- Extended ‘client.rb’ in forked ‘dynamics_crm' gem with the ‘bulk_de…
karolkulesza 936bef6
- Fixed Travis CI issue: "undefined method `spec' for nil:NilClass” b…
karolkulesza 4a17009
- Extended ‘bulk_delete’ method in ‘client.rb’ with the option to wai…
karolkulesza 8122975
- Trivial refactoring in 'bulk_delete' method, in 'client.rb';
karolkulesza d13e1db
- Exposed 'security_token0', 'security_token1' and 'key_identifier' a…
karolkulesza ca71d21
- Extended 'Fault' support to handle different format (as in case of …
karolkulesza b50884b
Merge branch 'master' of https://github.com/karolkulesza/dynamics_crm
karolkulesza 89622e5
- Fixed the issue: "undefined method `blank?' for "S:Sender":REXML::T…
karolkulesza ca70a08
- Extended 'Client' class with 'update_multiple' method, for bulk upl…
karolkulesza d2ce044
- 'MessageBuilder' refactoring: Introduced 'execute_multiple_request'…
karolkulesza d98e0ec
- Extended 'Client' class with 'delete_multiple' method, for bulk del…
karolkulesza 2ac9f77
- Fixed the issue: "Required member 'LogicalName' missing for field '…
karolkulesza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
language: ruby | ||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.1.0 | ||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: never | ||
on_failure: always | ||
before_install: | ||
- gem install bundler | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module DynamicsCRM | ||
module Response | ||
class ExecuteMultipleResult < Result | ||
|
||
protected | ||
|
||
# Returns base element of the response document to parse. | ||
def response_element | ||
class_name = 'ExecuteResult' if self.is_a?(ExecuteMultipleResult) | ||
end | ||
|
||
# Invoked by Result constructor | ||
def parse_result_response(result) | ||
h = {} | ||
result.elements["b:Results"].each_element do |key_value_pair| | ||
if key_value_pair.elements["c:key"].text == "Responses" | ||
value_element = key_value_pair.elements["c:value"] | ||
h[:entities] = [] | ||
value_element.each_element do |response_item| | ||
itemResults = response_item.elements["d:Response"].elements["b:Results"] | ||
if !itemResults.nil? | ||
h[:entities] << XML::MessageParser.parse_key_value_pairs(itemResults) | ||
end | ||
end | ||
break | ||
end | ||
end | ||
|
||
h | ||
end | ||
|
||
end | ||
|
||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module DynamicsCRM | ||
VERSION = "0.6.0" | ||
VERSION = "0.7.1" | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build on Travis CI did not succeed, due to:
"In short, the bundler version that Travis uses is very outdated. Running a gem update and install for bundler as a prestep for the Travis build fixes it usually."
Please refer to the issues described here: