restforce 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of restforce might be problematic. Click here for more details.

data/README.md CHANGED
@@ -168,8 +168,7 @@ _See also: http://www.salesforce.com/us/developer/docs/api_rest/Content/dome_sob
168
168
 
169
169
  ### update(sobject, attrs)
170
170
 
171
- Takes an sobject name and a hash of attributes to update a record. The
172
- 'Id' field is required to update. Returns true if the record was successfully
171
+ Takes an sobject name and a hash of attributes to update a record. An 'Id' key is required in attrs (either a string or symbol). Returns true if the record was successfully
173
172
  updated.
174
173
 
175
174
  ```ruby
@@ -280,6 +279,10 @@ Restforce supports the [Streaming API](http://wiki.developerforce.com/page/Getti
280
279
  pub/sub with Salesforce a trivial task:
281
280
 
282
281
  ```ruby
282
+ # Restforce uses faye as the underlying implementation for CometD. I recommend
283
+ # using faye 0.8.3.
284
+ require 'faye'
285
+
283
286
  # Initialize a client with your username/password/oauth token/etc.
284
287
  client = Restforce.new
285
288
 
@@ -394,7 +394,6 @@ module Restforce
394
394
  def username_password?
395
395
  @options[:username] &&
396
396
  @options[:password] &&
397
- @options[:security_token] &&
398
397
  @options[:client_id] &&
399
398
  @options[:client_secret]
400
399
  end
@@ -1,3 +1,3 @@
1
1
  module Restforce
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
@@ -20,9 +20,9 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency 'faraday_middleware', '~> 0.8.8'
21
21
  gem.add_dependency 'json', '~> 1.7.5'
22
22
  gem.add_dependency 'hashie', '~> 1.2.0'
23
- gem.add_dependency 'faye', '0.8.3'
24
23
 
25
24
  gem.add_development_dependency 'rspec'
26
25
  gem.add_development_dependency 'webmock'
27
26
  gem.add_development_dependency 'simplecov'
27
+ gem.add_development_dependency 'faye', '0.8.3'
28
28
  end
@@ -28,7 +28,7 @@ shared_context 'basic client' do
28
28
  end
29
29
 
30
30
  let(:password_options) do
31
- base_options.merge(:oauth_token => nil, :refresh_token => nil, :instance_url => nil)
31
+ base_options.merge(:oauth_token => nil, :refresh_token => nil, :instance_url => nil, :security_token => nil)
32
32
  end
33
33
 
34
34
  let(:client_options) { base_options }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
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: 2012-10-18 00:00:00.000000000 Z
12
+ date: 2012-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -92,23 +92,23 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  version: 1.2.0
94
94
  - !ruby/object:Gem::Dependency
95
- name: faye
95
+ name: rspec
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
- - - '='
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
- version: 0.8.3
102
- type: :runtime
101
+ version: '0'
102
+ type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - '='
107
+ - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
- version: 0.8.3
109
+ version: '0'
110
110
  - !ruby/object:Gem::Dependency
111
- name: rspec
111
+ name: webmock
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -124,7 +124,7 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: webmock
127
+ name: simplecov
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
@@ -140,21 +140,21 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: simplecov
143
+ name: faye
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
- - - ! '>='
147
+ - - '='
148
148
  - !ruby/object:Gem::Version
149
- version: '0'
149
+ version: 0.8.3
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
155
- - - ! '>='
155
+ - - '='
156
156
  - !ruby/object:Gem::Version
157
- version: '0'
157
+ version: 0.8.3
158
158
  description: A lightweight ruby client for the Salesforce REST api.
159
159
  email:
160
160
  - eric@ejholmes.net