salesforce_bulk 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,7 +82,11 @@ module SalesforceBulk
82
82
 
83
83
  def parse_instance()
84
84
  @server_url =~ /https:\/\/([a-z]{2,2}[0-9]{1,2})(-api)?/
85
- @instance = $~.captures[0]
85
+ if $~.nil?
86
+ raise "Unable to parse Salesforce instance from server url (#{@server_url})."
87
+ else
88
+ @instance = $~.captures[0]
89
+ end
86
90
  end
87
91
 
88
92
  def parse_response response
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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.1
4
+ version: 1.0.2
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: 2013-07-01 00:00:00.000000000 Z
12
+ date: 2013-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple