gd_salesforce 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Salesforce
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/salesforce.rb CHANGED
@@ -18,7 +18,9 @@ module Salesforce
18
18
  end
19
19
 
20
20
  def describe(mod)
21
- @rforce_binding.describeSObject(:sObject => mod)
21
+ response = @rforce_binding.describeSObject(:sObject => mod)
22
+ fail(response.to_s) if response.keys.first == :Fault
23
+ response
22
24
  end
23
25
 
24
26
  def modules
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gd_salesforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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-05-22 00:00:00.000000000 Z
12
+ date: 2013-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rforce