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 CHANGED
@@ -1,4 +1,10 @@
1
- == 0.5.1 2010-12-11
1
+ == 0.5.1 2010-12-21
2
+
3
+ * 2 minor enhancements
4
+ * Added missing file to manifest (reported by Tyler Jennings)
5
+ * Added dependency on OAuth gem
6
+
7
+ == 0.5.0 2010-12-11
2
8
 
3
9
  * 2 minor enhancements:
4
10
  * Increase batch size (Raymond Gao)
data/Manifest.txt CHANGED
@@ -4,6 +4,7 @@ README.txt
4
4
  Rakefile
5
5
  lib/rforce.rb
6
6
  lib/rforce/binding.rb
7
+ lib/rforce/method_keys.rb
7
8
  lib/rforce/soap_pullable.rb
8
9
  lib/rforce/soap_response.rb
9
10
  lib/rforce/soap_response_expat.rb
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, 'Opportunity',
35
+ :type, 'Opportunity',
36
36
  :accountId, account_id,
37
- :amount, '10.00',
38
- :name, 'Fakey McFakerson',
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
- * sudo gem install rforce
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
@@ -19,7 +19,7 @@ module RForce
19
19
  return
20
20
  end
21
21
 
22
- @stack.push(MethodHash.new)
22
+ @stack.push MethodHash.new
23
23
  end
24
24
 
25
25
  def text(data)
@@ -13,7 +13,7 @@ module RForce
13
13
  def parse
14
14
  @current_value = nil
15
15
  @stack = []
16
- @parsed = {}
16
+ @parsed = MethodHash.new
17
17
  @done = false
18
18
  @namespaces = []
19
19
 
@@ -23,7 +23,7 @@ module RForce
23
23
  def parse
24
24
  @current_value = nil
25
25
  @stack = []
26
- @parsed = {}
26
+ @parsed = MethodHash.new
27
27
  @done = false
28
28
  @namespaces = []
29
29
 
@@ -1,3 +1,3 @@
1
1
  module RForce
2
- VERSION = '0.5'
2
+ VERSION = '0.5.1'
3
3
  end
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
- version: "0.5"
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-11 00:00:00 -08:00
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: rspec
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
- hash: 9
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: *id002
61
+ version_requirements: *id003
50
62
  - !ruby/object:Gem::Dependency
51
63
  name: hoe
52
64
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::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: *id003
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"