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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7df12178d5ce0c7fdc772e68bbed3cadcd9c6271
4
- data.tar.gz: 869afe0c44b55e072642227154100b973b973c5b
2
+ SHA256:
3
+ metadata.gz: aceb2e1e1f4bf2d5dae8113b8131d2378194fb9d49b6be5692782d077e7b8129
4
+ data.tar.gz: eea875e4951aabdad0f7be3f2346af0d716ea818dff2fcc171538daf39009669
5
5
  SHA512:
6
- metadata.gz: cd35a0038d206623ee467830aded46a6445823bc53057274940c6399e991305897853a139aae511c4eecdd69e2848176453980ec75b7c199fee56ce4deae0f05
7
- data.tar.gz: 28553ed199801e1606e9ffe54d5b4d17ed274f1df7c1d5e7a2a77a914de3e218961dd3eeda9e3b3815f578c2fed6d1fc28c8eb3608386cfc002a055877885ca2
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"'
@@ -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['totalBatches'].to_i
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
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "2.0.2"
2
+ VERSION = "3.0.0"
3
3
  end
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: 2.0.2
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: 2017-02-20 00:00:00.000000000 Z
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: 3.2.0
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: 3.2.0
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.0
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.0
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: 1.8.11
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: 1.8.11
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: '0'
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.8
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.