rd-salesforce 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/rd/salesforce/client.rb +1 -1
- data/lib/rd/salesforce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 793b4399a6656d7316cbfe2b63ca10de4c555c1c
|
|
4
|
+
data.tar.gz: f51d11e96432c6296acfedf88312b66f2612a1a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ccc09d9a10d0af2044c0293aeb5fb15707739689e6f63d113cf9061f38d7595065be2b0a052cc0dcda211cf34f1b9b1adda3c86dc89371f0a479ef514193996
|
|
7
|
+
data.tar.gz: e1165dec279ca1e687870b8e473077f3e8c6d3480984393699616c3b362f72649b6a2cd6cd19702ccdf7fb34aa5307b6f53a752588af882bbcf61c98b093966f
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Integrates with salesforce allowing to add people as leads.
|
|
|
7
7
|
Add this line to your application's Gemfile:
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem 'rd-salesforce'
|
|
10
|
+
gem 'rd-salesforce'
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
@@ -16,7 +16,7 @@ And then execute:
|
|
|
16
16
|
|
|
17
17
|
Or install it yourself as:
|
|
18
18
|
|
|
19
|
-
$ gem install rd-salesforce
|
|
19
|
+
$ gem install rd-salesforce
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
@@ -59,8 +59,8 @@ You can manage/override the fields connection that will be sent to salesforce vi
|
|
|
59
59
|
|
|
60
60
|
```ruby
|
|
61
61
|
Rd::Salesforce::Person.translate = {
|
|
62
|
-
:first_name => "
|
|
63
|
-
:last_name => "
|
|
62
|
+
:first_name => "FirstName",
|
|
63
|
+
:last_name => "LastName",
|
|
64
64
|
:email => "Email",
|
|
65
65
|
:company => "Company",
|
|
66
66
|
:website => "Website",
|
data/lib/rd/salesforce/client.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Rd
|
|
|
14
14
|
raise ArgumentError.new("can't upload an invalid record to sales force. person is invalid: #{person.inspect}\n #{person.errors.inspect}")
|
|
15
15
|
end
|
|
16
16
|
if person.salesforce_id
|
|
17
|
-
@api.update!("Lead", person.
|
|
17
|
+
@api.update!("Lead", person.translate_attributes.merge(Id: person.salesforce_id))
|
|
18
18
|
else
|
|
19
19
|
person.salesforce_id = @api.create!("Lead", person.translate_attributes)
|
|
20
20
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rd-salesforce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jônatas Paganini
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: restforce
|