salesforcebulk 2.0.0 → 2.0.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
  SHA1:
3
- metadata.gz: 7b79868012c05ed38e161bcb12bb95eb0382e5b3
4
- data.tar.gz: c3a7e13b192b7b2ceafe17a2214935428d9ff3a9
3
+ metadata.gz: a5d3ee461dc1c0522e3986f4161d3926a693ef65
4
+ data.tar.gz: cd5944785cecb31f392b83631fab6d9715d0a512
5
5
  SHA512:
6
- metadata.gz: 0c14b55e95b378444129d266c48fafa0421f033f46250105504a0ac8f5b150e73b6873eedffc566d3abca5b1782e1cd469ac320165a0fb6ff7c28b53473bfa0a
7
- data.tar.gz: 8ec9210c38ab0ccb04fa341c85ba88cfd8ffe01631babfcf6ef30fed96a06e82634b3ac27bfbc981bc771f6c24b61d3cccf2dc562de3540d21a7b0b742a70ad2
6
+ metadata.gz: 164ffa572d5558d41e620e2584cc3af877121fa7d96c223d8b1583f0ddae9c50445e75f0aeca54ea2a1769aa412debcf988f21d682590a297b59c6d638390970
7
+ data.tar.gz: de37c885a10671bd8a9b913a17db73aa5a24d636a8aee2d2f38adc2a6dd5825bc9975fe6dfd14713ac58464bd5701c98c65bc538cf453cfc204e8d3160844774
data/README.md CHANGED
@@ -153,6 +153,10 @@ Query results are handled differently as its possible that a single batch could
153
153
 
154
154
  Note: By reviewing the API docs and response format my understanding was that the API would return multiple results sets for a single batch if the query was to large but this does not seem to be the case in my live testing. It seems to be capped at 10000 records (as it when inserting data) but I haven't been able to verify through the documentation. If you know anything about that your input is appreciated. In the meantime the gem was built to support multiple result sets for a query batch but seems that will change which will simplify that method.
155
155
 
156
+ ## Releasing
157
+
158
+ To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
159
+
156
160
  ## Contribution Suggestions/Ideas
157
161
 
158
162
  - Support for other Ruby platforms
@@ -161,6 +165,10 @@ Note: By reviewing the API docs and response format my understanding was that th
161
165
 
162
166
  ## Version History
163
167
 
168
+ **2.0.1** (January 24, 2017)
169
+
170
+ * Bug fix for response handling ([#17](https://github.com/javierjulio/salesforce_bulk/pull/17))
171
+
164
172
  **2.0.0** (April 25, 2015)
165
173
 
166
174
  * Dropped support for Ruby 1.8 and Ruby 1.9
@@ -142,7 +142,7 @@ module SalesforceBulk
142
142
  def batch_result(jobId, batchId)
143
143
  response = http_get("job/#{jobId}/batch/#{batchId}/result")
144
144
 
145
- if response.body =~ /<.*?>/m
145
+ if ['application/xml', 'text/xml'].include? response.content_type
146
146
  result = XmlSimple.xml_in(response.body)
147
147
 
148
148
  if result['result'].present?
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
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.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -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.4.6
197
+ rubygems_version: 2.6.8
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Full capability support for the Salesforce Bulk API.