salesforcebulk 2.0.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +15 -0
- data/lib/salesforce_bulk/client.rb +7 -0
- data/lib/salesforce_bulk/job.rb +1 -1
- data/lib/salesforce_bulk/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: aceb2e1e1f4bf2d5dae8113b8131d2378194fb9d49b6be5692782d077e7b8129
|
4
|
+
data.tar.gz: eea875e4951aabdad0f7be3f2346af0d716ea818dff2fcc171538daf39009669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df9d8c3b856594bf0ff565291d81f4162c54be74426be63a7eb15eec58054d6f02dfa30e11ae477c66c4a3c5a0ca182fcc5f568bd90ed335944c8700075194a9
|
7
|
+
data.tar.gz: 1d15a68c54bc8e27d651ade36b2df3fc730cee2b52b9b9ad5e86293105bd6fa0556fe6200f1e1a9997625f74e6c89d734180db1317fc1beecf3fc0ec15aaef5a
|
data/README.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# SalesforceBulk
|
2
2
|
|
3
|
+
[![Version][rubygems_badge]][rubygems]
|
4
|
+
[rubygems_badge]: http://img.shields.io/gem/v/salesforcebulk.svg
|
5
|
+
[rubygems]: https://rubygems.org/gems/salesforcebulk
|
6
|
+
|
7
|
+
[![Travis CI][travis_badge]][travis]
|
8
|
+
[travis_badge]: http://img.shields.io/travis/javierjulio/salesforce_bulk/master.svg
|
9
|
+
[travis]: https://travis-ci.org/javierjulio/salesforce_bulk
|
10
|
+
|
3
11
|
## Overview
|
4
12
|
|
5
13
|
SalesforceBulk is an easy to use Ruby gem for connecting to and using the [Salesforce Bulk API](http://www.salesforce.com/us/developer/docs/api_asynch/index.htm). This is a rewrite and separate release of Jorge Valdivia's salesforce_bulk gem (renamed `salesforcebulk`) with full unit tests and full API capability (e.g. adding multiple batches per job). This gem was built on Ruby 2.0.0, 2.1.6, and 2.2.2.
|
@@ -165,6 +173,13 @@ To release a new version, update the version number in `version.rb`, and then ru
|
|
165
173
|
|
166
174
|
## Version History
|
167
175
|
|
176
|
+
**3.0.0** (July 19, 2017)
|
177
|
+
|
178
|
+
* Dropped old Ruby support, now requires Ruby 2.3 and up
|
179
|
+
* Dropped Travis build for Rails 4.0
|
180
|
+
* Added support for re-authenticating ([#20]((https://github.com/javierjulio/salesforce_bulk/pull/20))
|
181
|
+
* Use the right tag name for total batches in job info ([#19]((https://github.com/javierjulio/salesforce_bulk/pull/19))
|
182
|
+
|
168
183
|
**2.0.2** (February 20, 2017)
|
169
184
|
|
170
185
|
* Rails 5 support by relaxing ActiveSupport dependency ([#18](https://github.com/javierjulio/salesforce_bulk/pull/18))
|
@@ -17,6 +17,9 @@ module SalesforceBulk
|
|
17
17
|
# The API version the client is using. Defaults to 24.0.
|
18
18
|
attr_accessor :version
|
19
19
|
|
20
|
+
# The ID for authenticated session
|
21
|
+
attr_reader :session_id
|
22
|
+
|
20
23
|
def initialize(options={})
|
21
24
|
if options.is_a?(String)
|
22
25
|
options = YAML.load_file(options)
|
@@ -38,6 +41,10 @@ module SalesforceBulk
|
|
38
41
|
end
|
39
42
|
|
40
43
|
def authenticate
|
44
|
+
# Clear session attributes just in case client already had a session
|
45
|
+
@session_id = nil
|
46
|
+
self.instance_host = nil
|
47
|
+
|
41
48
|
xml = '<?xml version="1.0" encoding="utf-8"?>'
|
42
49
|
xml += '<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
|
43
50
|
xml += ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
|
data/lib/salesforce_bulk/job.rb
CHANGED
@@ -40,7 +40,7 @@ module SalesforceBulk
|
|
40
40
|
job.in_progress_batches = data['numberBatchesInProgress'].to_i
|
41
41
|
job.completed_batches = data['numberBatchesCompleted'].to_i
|
42
42
|
job.failed_batches = data['numberBatchesFailed'].to_i
|
43
|
-
job.total_batches = data['
|
43
|
+
job.total_batches = data['numberBatchesTotal'].to_i
|
44
44
|
job.retries = data['retries'].to_i
|
45
45
|
job.processed_records = data['numberRecordsProcessed'].to_i
|
46
46
|
job.failed_records = data['numberRecordsFailed'].to_i
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salesforcebulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.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:
|
11
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: '4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6'
|
@@ -92,28 +92,28 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 3.5
|
95
|
+
version: '3.5'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 3.5
|
102
|
+
version: '3.5'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: webmock
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: '3.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: '3.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: minitest
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: '
|
189
|
+
version: '2.3'
|
190
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - ">="
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.6
|
197
|
+
rubygems_version: 2.7.6
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Full capability support for the Salesforce Bulk API.
|