databasedotcom 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -147,6 +147,12 @@ module Databasedotcom
147
147
  classes.length == 1 ? classes.first : classes
148
148
  end
149
149
 
150
+ # Returns an Array of Hashes listing the properties for every type of _Sobject_ in the database. Raises SalesForceError if an error occurs.
151
+ def describe_sobjects
152
+ result = http_get("/services/data/v#{self.version}/sobjects")
153
+ JSON.parse(result.body)["sobjects"]
154
+ end
155
+
150
156
  # Returns a description of the Sobject specified by _class_name_. The description includes all fields and their properties for the Sobject.
151
157
  def describe_sobject(class_name)
152
158
  result = http_get("/services/data/v#{self.version}/sobjects/#{class_name}/describe")
@@ -1,3 +1,3 @@
1
1
  module Databasedotcom
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: databasedotcom
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.6
5
+ version: 1.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Glenn Gillen, Danny Burkes & Richard Zhao
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-01 00:00:00 Z
13
+ date: 2011-09-02 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multipart-post