salesforce_bulk 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,17 +55,17 @@ Sample operations:
55
55
 
56
56
  # Query
57
57
  res = salesforce.query("Account", "select id, name, createddate from Account limit 3") # We just need to pass the sobject name and the query string
58
- puts res.records.inspect
58
+ puts res.result.records.inspect
59
59
 
60
60
  Result reporting:
61
61
 
62
62
  new_account = Hash["type" => "Other"] # Missing required field "name."
63
63
  records_to_insert = Array.new
64
64
  records_to_insert.push(new_account) # You can add as many records as you want here, just keep in mind that Salesforce has governor limits.
65
- result = salesforce.create("Account", records_to_insert)
65
+ result = salesforce.create("Account", records_to_insert, true) # Result reporting can only be used if wait is set to true
66
66
  puts result.success? # false
67
67
  puts result.has_errors? # true
68
- puts result.errors # An indexed hash detailing the errors
68
+ puts result.result.errors # An indexed hash detailing the errors
69
69
 
70
70
  == Copyright
71
71
 
@@ -81,7 +81,7 @@ module SalesforceBulk
81
81
  end
82
82
 
83
83
  def parse_instance()
84
- @server_url =~ /https:\/\/([a-z]{2,2}[0-9]{1,2})-api/
84
+ @server_url =~ /https:\/\/([a-z]{2,2}[0-9]{1,2})(-api)?/
85
85
  @instance = $~.captures[0]
86
86
  end
87
87
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-24 00:00:00.000000000 Z
12
+ date: 2013-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple