salesforce_bulk 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -11,7 +11,9 @@ Using this gem is simple and straight forward.
11
11
  To initialize:
12
12
 
13
13
  require 'salesforce_bulk'
14
- salesforce = SalesforceBulk::Api.new("YOUR_SALESFORCE_USERNAME", "YOUR_SALESFORCE_PASSWORD")
14
+ salesforce = SalesforceBulk::Api.new("YOUR_SALESFORCE_USERNAME", "YOUR_SALESFORCE_PASSWORD+YOUR_SALESFORCE_TOKEN")
15
+
16
+ Note: the second parameter is a combination of your Salesforce token and password. So if your password is xxxx and your token is yyyy, the second parameter will be xxxxyyyy
15
17
 
16
18
  Sample operations:
17
19
 
@@ -44,7 +46,10 @@ Sample operations:
44
46
  res = salesforce.query("Account", "select id, name, createddate from Account limit 3") # We just need to pass the sobject name and the query string
45
47
 
46
48
  ==Installation
47
- [sudo] gem install salesforce_bulk
49
+ sudo gem install salesforce_bulk
50
+
51
+ ==TODO
52
+ This is a rough early version of the gem. Immediate plans include better error reporting as there currently is none.
48
53
 
49
54
  == Copyright
50
55
 
@@ -52,7 +52,7 @@ module SalesforceBulk
52
52
  while true
53
53
  state = job.check_batch_status()
54
54
  #puts "\nstate is #{state}\n"
55
- if state != "Queued"
55
+ if state != "Queued" && state != "InProgress"
56
56
  break
57
57
  end
58
58
  sleep(2) # wait x seconds and check again
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce_bulk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-18 00:00:00.000000000Z
12
+ date: 2012-01-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
16
- requirement: &24345852 !ruby/object:Gem::Requirement
16
+ requirement: &28876356 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *24345852
24
+ version_requirements: *28876356
25
25
  description: This gem provides a super simple interface for the Salesforce Bulk API.
26
26
  It provides support for insert, update, upsert, delete, and query.
27
27
  email: