rforce 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -1
- data/Manifest.txt +1 -0
- data/README.txt +6 -6
- data/Rakefile +1 -1
- data/lib/rforce/method_keys.rb +14 -0
- data/lib/rforce/soap_pullable.rb +1 -1
- data/lib/rforce/soap_response_expat.rb +1 -1
- data/lib/rforce/soap_response_rexml.rb +1 -1
- data/lib/rforce/version.rb +1 -1
- metadata +22 -12
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -26,22 +26,22 @@ Rather than enforcing adherence to the sforce.com schema, RForce assumes you are
|
|
26
26
|
'find {McFakerson Co} in name fields returning account(id)'
|
27
27
|
|
28
28
|
account = answer.searchResponse.result.searchRecords.record
|
29
|
-
account = account.first if account.is_a? Array
|
29
|
+
account = account.first if account.is_a? Array
|
30
30
|
|
31
31
|
account_id = account.Id
|
32
32
|
account_id = account_id.first if account_id.is_a? Array
|
33
33
|
|
34
34
|
opportunity = [
|
35
|
-
:type,
|
35
|
+
:type, 'Opportunity',
|
36
36
|
:accountId, account_id,
|
37
|
-
:amount,
|
38
|
-
:name,
|
37
|
+
:amount, '10.00',
|
38
|
+
:name, 'Fakey McFakerson',
|
39
39
|
:closeDate, '2008-07-04',
|
40
40
|
:stageName, 'Closed Won'
|
41
41
|
]
|
42
42
|
|
43
43
|
binding.create :sObject => opportunity
|
44
|
-
|
44
|
+
|
45
45
|
== REQUIREMENTS:
|
46
46
|
|
47
47
|
* Builder gem
|
@@ -49,7 +49,7 @@ Rather than enforcing adherence to the sforce.com schema, RForce assumes you are
|
|
49
49
|
|
50
50
|
== INSTALL:
|
51
51
|
|
52
|
-
*
|
52
|
+
* gem install rforce
|
53
53
|
|
54
54
|
== LICENSE:
|
55
55
|
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ require 'rforce/version'
|
|
8
8
|
|
9
9
|
Hoe.new('rforce', RForce::VERSION) do |p|
|
10
10
|
p.developer 'Ian Dees', 'undees@gmail.com'
|
11
|
-
p.extra_deps = [['builder', '~> 2.0']]
|
11
|
+
p.extra_deps = [['builder', '~> 2.0'], ['oauth', '~> 0.4']]
|
12
12
|
p.extra_dev_deps = [['rspec', '~> 1.3']]
|
13
13
|
p.remote_rdoc_dir = ''
|
14
14
|
p.rspec_options = ['-rubygems', '--options', 'spec/spec.opts']
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module RForce
|
2
|
+
# Allows indexing hashes like method calls: hash.key
|
3
|
+
# to supplement the traditional way of indexing: hash[key]
|
4
|
+
module MethodKeys
|
5
|
+
def method_missing(method, *args)
|
6
|
+
raise NoMethodError unless respond_to?('[]')
|
7
|
+
self[method]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class MethodHash < Hash
|
12
|
+
include MethodKeys
|
13
|
+
end
|
14
|
+
end
|
data/lib/rforce/soap_pullable.rb
CHANGED
data/lib/rforce/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 1
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 5
|
9
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ian Dees
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-21 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -25,7 +25,6 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
28
|
segments:
|
30
29
|
- 2
|
31
30
|
- 0
|
@@ -33,36 +32,48 @@ dependencies:
|
|
33
32
|
type: :runtime
|
34
33
|
version_requirements: *id001
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
35
|
+
name: oauth
|
37
36
|
prerelease: false
|
38
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
38
|
none: false
|
40
39
|
requirements:
|
41
40
|
- - ~>
|
42
41
|
- !ruby/object:Gem::Version
|
43
|
-
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
version: "0.4"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
44
56
|
segments:
|
45
57
|
- 1
|
46
58
|
- 3
|
47
59
|
version: "1.3"
|
48
60
|
type: :development
|
49
|
-
version_requirements: *
|
61
|
+
version_requirements: *id003
|
50
62
|
- !ruby/object:Gem::Dependency
|
51
63
|
name: hoe
|
52
64
|
prerelease: false
|
53
|
-
requirement: &
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
54
66
|
none: false
|
55
67
|
requirements:
|
56
68
|
- - ">="
|
57
69
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 47
|
59
70
|
segments:
|
60
71
|
- 2
|
61
72
|
- 8
|
62
73
|
- 0
|
63
74
|
version: 2.8.0
|
64
75
|
type: :development
|
65
|
-
version_requirements: *
|
76
|
+
version_requirements: *id004
|
66
77
|
description: RForce is a simple, usable binding to the SalesForce API.
|
67
78
|
email:
|
68
79
|
- undees@gmail.com
|
@@ -81,6 +92,7 @@ files:
|
|
81
92
|
- Rakefile
|
82
93
|
- lib/rforce.rb
|
83
94
|
- lib/rforce/binding.rb
|
95
|
+
- lib/rforce/method_keys.rb
|
84
96
|
- lib/rforce/soap_pullable.rb
|
85
97
|
- lib/rforce/soap_response.rb
|
86
98
|
- lib/rforce/soap_response_expat.rb
|
@@ -107,7 +119,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
119
|
requirements:
|
108
120
|
- - ">="
|
109
121
|
- !ruby/object:Gem::Version
|
110
|
-
hash: 3
|
111
122
|
segments:
|
112
123
|
- 0
|
113
124
|
version: "0"
|
@@ -116,7 +127,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
127
|
requirements:
|
117
128
|
- - ">="
|
118
129
|
- !ruby/object:Gem::Version
|
119
|
-
hash: 3
|
120
130
|
segments:
|
121
131
|
- 0
|
122
132
|
version: "0"
|