salesforcebulk 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -15
  3. data/lib/salesforce_bulk.rb +1 -5
  4. data/lib/salesforce_bulk/client.rb +56 -59
  5. data/lib/salesforce_bulk/version.rb +1 -1
  6. metadata +46 -76
  7. data/.gitignore +0 -4
  8. data/.travis.yml +0 -10
  9. data/Gemfile +0 -3
  10. data/LICENSE +0 -20
  11. data/Rakefile +0 -22
  12. data/salesforcebulk.gemspec +0 -30
  13. data/test/fixtures/batch_create_request.csv +0 -3
  14. data/test/fixtures/batch_create_response.xml +0 -13
  15. data/test/fixtures/batch_info_list_response.xml +0 -27
  16. data/test/fixtures/batch_info_response.xml +0 -14
  17. data/test/fixtures/batch_result_list_response.csv +0 -3
  18. data/test/fixtures/config.yml +0 -5
  19. data/test/fixtures/invalid_batch_error.xml +0 -5
  20. data/test/fixtures/invalid_error.xml +0 -5
  21. data/test/fixtures/invalid_job_error.xml +0 -5
  22. data/test/fixtures/invalid_session_error.xml +0 -5
  23. data/test/fixtures/job_abort_request.xml +0 -1
  24. data/test/fixtures/job_abort_response.xml +0 -25
  25. data/test/fixtures/job_close_request.xml +0 -1
  26. data/test/fixtures/job_close_response.xml +0 -25
  27. data/test/fixtures/job_create_request.xml +0 -1
  28. data/test/fixtures/job_create_response.xml +0 -25
  29. data/test/fixtures/job_info_response.xml +0 -25
  30. data/test/fixtures/login_error.xml +0 -1
  31. data/test/fixtures/login_request.xml +0 -1
  32. data/test/fixtures/login_response.xml +0 -39
  33. data/test/fixtures/query_result_list_response.xml +0 -1
  34. data/test/fixtures/query_result_response.csv +0 -5
  35. data/test/lib/test_batch.rb +0 -252
  36. data/test/lib/test_batch_result.rb +0 -36
  37. data/test/lib/test_core_extensions.rb +0 -15
  38. data/test/lib/test_initialization.rb +0 -80
  39. data/test/lib/test_job.rb +0 -247
  40. data/test/lib/test_query_result_collection.rb +0 -86
  41. data/test/test_helper.rb +0 -32
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "1.4.0"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforcebulk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-03 00:00:00.000000000 Z
11
+ date: 2015-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 3.2.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: xml-simple
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +92,14 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 3.3.0
95
+ version: 3.5.0
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: 3.3.0
102
+ version: 3.5.0
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: webmock
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +118,44 @@ dependencies:
112
118
  name: minitest
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
- - - "~>"
121
+ - - ">="
116
122
  - !ruby/object:Gem::Version
117
- version: '4.3'
123
+ version: '0'
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
- - - "~>"
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: bump
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
123
143
  - !ruby/object:Gem::Version
124
- version: '4.3'
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: wwtd
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
125
159
  description: This gem is a simple interface to the Salesforce Bulk API providing full
126
160
  support for insert, update, upsert, delete, and query actions while allowing you
127
161
  to specify multiple batches per job to process data fast. Gem includes unit tests.
@@ -130,12 +164,7 @@ executables: []
130
164
  extensions: []
131
165
  extra_rdoc_files: []
132
166
  files:
133
- - ".gitignore"
134
- - ".travis.yml"
135
- - Gemfile
136
- - LICENSE
137
167
  - README.md
138
- - Rakefile
139
168
  - lib/salesforce_bulk.rb
140
169
  - lib/salesforce_bulk/batch.rb
141
170
  - lib/salesforce_bulk/batch_result.rb
@@ -146,36 +175,6 @@ files:
146
175
  - lib/salesforce_bulk/query_result_collection.rb
147
176
  - lib/salesforce_bulk/salesforce_error.rb
148
177
  - lib/salesforce_bulk/version.rb
149
- - salesforcebulk.gemspec
150
- - test/fixtures/batch_create_request.csv
151
- - test/fixtures/batch_create_response.xml
152
- - test/fixtures/batch_info_list_response.xml
153
- - test/fixtures/batch_info_response.xml
154
- - test/fixtures/batch_result_list_response.csv
155
- - test/fixtures/config.yml
156
- - test/fixtures/invalid_batch_error.xml
157
- - test/fixtures/invalid_error.xml
158
- - test/fixtures/invalid_job_error.xml
159
- - test/fixtures/invalid_session_error.xml
160
- - test/fixtures/job_abort_request.xml
161
- - test/fixtures/job_abort_response.xml
162
- - test/fixtures/job_close_request.xml
163
- - test/fixtures/job_close_response.xml
164
- - test/fixtures/job_create_request.xml
165
- - test/fixtures/job_create_response.xml
166
- - test/fixtures/job_info_response.xml
167
- - test/fixtures/login_error.xml
168
- - test/fixtures/login_request.xml
169
- - test/fixtures/login_response.xml
170
- - test/fixtures/query_result_list_response.xml
171
- - test/fixtures/query_result_response.csv
172
- - test/lib/test_batch.rb
173
- - test/lib/test_batch_result.rb
174
- - test/lib/test_core_extensions.rb
175
- - test/lib/test_initialization.rb
176
- - test/lib/test_job.rb
177
- - test/lib/test_query_result_collection.rb
178
- - test/test_helper.rb
179
178
  homepage: https://github.com/javierjulio/salesforce_bulk
180
179
  licenses: []
181
180
  metadata: {}
@@ -195,37 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
194
  version: '0'
196
195
  requirements: []
197
196
  rubyforge_project:
198
- rubygems_version: 2.2.2
197
+ rubygems_version: 2.4.6
199
198
  signing_key:
200
199
  specification_version: 4
201
200
  summary: Full capability support for the Salesforce Bulk API.
202
- test_files:
203
- - test/fixtures/batch_create_request.csv
204
- - test/fixtures/batch_create_response.xml
205
- - test/fixtures/batch_info_list_response.xml
206
- - test/fixtures/batch_info_response.xml
207
- - test/fixtures/batch_result_list_response.csv
208
- - test/fixtures/config.yml
209
- - test/fixtures/invalid_batch_error.xml
210
- - test/fixtures/invalid_error.xml
211
- - test/fixtures/invalid_job_error.xml
212
- - test/fixtures/invalid_session_error.xml
213
- - test/fixtures/job_abort_request.xml
214
- - test/fixtures/job_abort_response.xml
215
- - test/fixtures/job_close_request.xml
216
- - test/fixtures/job_close_response.xml
217
- - test/fixtures/job_create_request.xml
218
- - test/fixtures/job_create_response.xml
219
- - test/fixtures/job_info_response.xml
220
- - test/fixtures/login_error.xml
221
- - test/fixtures/login_request.xml
222
- - test/fixtures/login_response.xml
223
- - test/fixtures/query_result_list_response.xml
224
- - test/fixtures/query_result_response.csv
225
- - test/lib/test_batch.rb
226
- - test/lib/test_batch_result.rb
227
- - test/lib/test_core_extensions.rb
228
- - test/lib/test_initialization.rb
229
- - test/lib/test_job.rb
230
- - test/lib/test_query_result_collection.rb
231
- - test/test_helper.rb
201
+ test_files: []
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
@@ -1,10 +0,0 @@
1
- language: ruby
2
- script: "bundle exec rake test"
3
- rvm:
4
- - 1.8.7
5
- - 1.9.3
6
- - 1.9.2
7
- notifications:
8
- email:
9
- on_success: always
10
- on_failure: always
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "http://rubygems.org"
2
- gem 'fastercsv', :platforms => :ruby_18
3
- gemspec
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2012 Javier Julio
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,22 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
-
4
- require 'rake/testtask'
5
- Rake::TestTask.new(:test) do |test|
6
- test.libs << 'lib' << 'test'
7
- test.pattern = 'test/**/test_*.rb'
8
- test.verbose = true
9
- end
10
-
11
- task :default => :test
12
-
13
- namespace :doc do
14
- require 'rdoc/task'
15
- require File.expand_path('../lib/salesforce_bulk/version', __FILE__)
16
- RDoc::Task.new do |rdoc|
17
- rdoc.rdoc_dir = 'rdoc'
18
- rdoc.title = "SalesforceBulk #{SalesforceBulk::VERSION}"
19
- rdoc.main = 'README.md'
20
- rdoc.rdoc_files.include('README.md', 'LICENSE.md', 'lib/**/*.rb')
21
- end
22
- end
@@ -1,30 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "salesforce_bulk/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.platform = Gem::Platform::RUBY
7
- s.name = 'salesforcebulk'
8
- s.version = SalesforceBulk::VERSION
9
- s.summary = %q{Full capability support for the Salesforce Bulk API.}
10
- s.description = %q{This gem is a simple interface to the Salesforce Bulk API providing full support for insert, update, upsert, delete, and query actions while allowing you to specify multiple batches per job to process data fast. Gem includes unit tests.}
11
-
12
- s.author = 'Javier Julio'
13
- s.email = 'jjfutbol@gmail.com'
14
- s.homepage = 'https://github.com/javierjulio/salesforce_bulk'
15
-
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
20
-
21
- s.add_dependency "activesupport", '~> 3.2.0'
22
- s.add_dependency "xml-simple"
23
-
24
- s.add_development_dependency "rake"
25
- s.add_development_dependency "rdoc"
26
- s.add_development_dependency "mocha", '~> 0.13.0'
27
- s.add_development_dependency "shoulda", '~> 3.3.0'
28
- s.add_development_dependency "webmock", '~> 1.8.11'
29
- s.add_development_dependency 'minitest', '~> 4.3'
30
- end
@@ -1,3 +0,0 @@
1
- Id__c,Title__c,IsPreview__c
2
- 12345,This is a test video,
3
- 23456,A second test!,true
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><batchInfo
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <id>751E00000004ZmUIAU</id>
4
- <jobId>750E00000004NRfIAM</jobId>
5
- <state>Queued</state>
6
- <createdDate>2012-06-02T21:03:56.000Z</createdDate>
7
- <systemModstamp>2012-06-02T21:03:56.000Z</systemModstamp>
8
- <numberRecordsProcessed>0</numberRecordsProcessed>
9
- <numberRecordsFailed>0</numberRecordsFailed>
10
- <totalProcessingTime>0</totalProcessingTime>
11
- <apiActiveProcessingTime>0</apiActiveProcessingTime>
12
- <apexProcessingTime>0</apexProcessingTime>
13
- </batchInfo>
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><batchInfoList
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <batchInfo>
4
- <id>751E00000004ZRbIAM</id>
5
- <jobId>750E00000004N97IAE</jobId>
6
- <state>Completed</state>
7
- <createdDate>2012-05-31T01:22:47.000Z</createdDate>
8
- <systemModstamp>2012-05-31T01:22:47.000Z</systemModstamp>
9
- <numberRecordsProcessed>2</numberRecordsProcessed>
10
- <numberRecordsFailed>0</numberRecordsFailed>
11
- <totalProcessingTime>72</totalProcessingTime>
12
- <apiActiveProcessingTime>28</apiActiveProcessingTime>
13
- <apexProcessingTime>0</apexProcessingTime>
14
- </batchInfo>
15
- <batchInfo>
16
- <id>751E00000004ZQsIAM</id>
17
- <jobId>750E00000004N97IAE</jobId>
18
- <state>Completed</state>
19
- <createdDate>2012-05-31T01:23:20.000Z</createdDate>
20
- <systemModstamp>2012-05-31T01:23:20.000Z</systemModstamp>
21
- <numberRecordsProcessed>2</numberRecordsProcessed>
22
- <numberRecordsFailed>0</numberRecordsFailed>
23
- <totalProcessingTime>72</totalProcessingTime>
24
- <apiActiveProcessingTime>28</apiActiveProcessingTime>
25
- <apexProcessingTime>0</apexProcessingTime>
26
- </batchInfo>
27
- </batchInfoList>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><batchInfo
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <id>751E00000004ZRbIAM</id>
4
- <jobId>750E00000004N97IAE</jobId>
5
- <state>Completed</state>
6
- <stateMessage>Success</stateMessage>
7
- <createdDate>2012-05-31T01:22:47.000Z</createdDate>
8
- <systemModstamp>2012-05-31T01:22:47.000Z</systemModstamp>
9
- <numberRecordsProcessed>2</numberRecordsProcessed>
10
- <numberRecordsFailed>0</numberRecordsFailed>
11
- <totalProcessingTime>72</totalProcessingTime>
12
- <apiActiveProcessingTime>28</apiActiveProcessingTime>
13
- <apexProcessingTime>0</apexProcessingTime>
14
- </batchInfo>
@@ -1,3 +0,0 @@
1
- "Id","Success","Created","Error"
2
- "a00E0000002V30LIAS","true","false",""
3
- "a00E0000002V30MIAS","true","false",""
@@ -1,5 +0,0 @@
1
- ---
2
- username: MyUsername
3
- password: MyPassword
4
- login_host: myhost.mydomain.com
5
- version: 88.0
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <error xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <exceptionCode>InvalidBatch</exceptionCode>
4
- <exceptionMessage>Records not processed</exceptionMessage>
5
- </error>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><error
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <exceptionCode>UnsupportedContentType</exceptionCode>
4
- <exceptionMessage>Unsupported content type: text/cs; charset=UTF-8</exceptionMessage>
5
- </error>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><error
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <exceptionCode>InvalidJob</exceptionCode>
4
- <exceptionMessage>Unable to find object: Video__c</exceptionMessage>
5
- </error>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><error
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <exceptionCode>InvalidSessionId</exceptionCode>
4
- <exceptionMessage>Invalid session id</exceptionMessage>
5
- </error>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?><jobInfo xmlns="http://www.force.com/2009/06/asyncapi/dataload"><state>Aborted</state></jobInfo>
@@ -1,25 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><jobInfo
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <id>750E00000004N1NIAU</id>
4
- <operation>upsert</operation>
5
- <object>VideoEvent__c</object>
6
- <createdById>005E00000017spfIAA</createdById>
7
- <createdDate>2012-05-30T00:16:04.000Z</createdDate>
8
- <systemModstamp>2012-05-30T00:16:04.000Z</systemModstamp>
9
- <state>Aborted</state>
10
- <externalIdFieldName>Id__c</externalIdFieldName>
11
- <concurrencyMode>Parallel</concurrencyMode>
12
- <contentType>CSV</contentType>
13
- <numberBatchesQueued>0</numberBatchesQueued>
14
- <numberBatchesInProgress>0</numberBatchesInProgress>
15
- <numberBatchesCompleted>0</numberBatchesCompleted>
16
- <numberBatchesFailed>0</numberBatchesFailed>
17
- <numberBatchesTotal>0</numberBatchesTotal>
18
- <numberRecordsProcessed>0</numberRecordsProcessed>
19
- <numberRetries>0</numberRetries>
20
- <apiVersion>24.0</apiVersion>
21
- <numberRecordsFailed>0</numberRecordsFailed>
22
- <totalProcessingTime>0</totalProcessingTime>
23
- <apiActiveProcessingTime>0</apiActiveProcessingTime>
24
- <apexProcessingTime>0</apexProcessingTime>
25
- </jobInfo>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?><jobInfo xmlns="http://www.force.com/2009/06/asyncapi/dataload"><state>Closed</state></jobInfo>
@@ -1,25 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><jobInfo
2
- xmlns="http://www.force.com/2009/06/asyncapi/dataload">
3
- <id>750E00000004MzbIAE</id>
4
- <operation>upsert</operation>
5
- <object>VideoEvent__c</object>
6
- <createdById>005E00000017spfIAA</createdById>
7
- <createdDate>2012-05-29T23:51:53.000Z</createdDate>
8
- <systemModstamp>2012-05-29T23:51:53.000Z</systemModstamp>
9
- <state>Closed</state>
10
- <externalIdFieldName>Id__c</externalIdFieldName>
11
- <concurrencyMode>Parallel</concurrencyMode>
12
- <contentType>CSV</contentType>
13
- <numberBatchesQueued>0</numberBatchesQueued>
14
- <numberBatchesInProgress>0</numberBatchesInProgress>
15
- <numberBatchesCompleted>0</numberBatchesCompleted>
16
- <numberBatchesFailed>0</numberBatchesFailed>
17
- <numberBatchesTotal>0</numberBatchesTotal>
18
- <numberRecordsProcessed>0</numberRecordsProcessed>
19
- <numberRetries>0</numberRetries>
20
- <apiVersion>24.0</apiVersion>
21
- <numberRecordsFailed>0</numberRecordsFailed>
22
- <totalProcessingTime>0</totalProcessingTime>
23
- <apiActiveProcessingTime>0</apiActiveProcessingTime>
24
- <apexProcessingTime>0</apexProcessingTime>
25
- </jobInfo>