rd-salesforce 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e0ccff61ad3e03e3168e82a7dfd37b3da8aaa05
4
- data.tar.gz: 90f8a24f2c83e46cee04d52151f7dc8ec93de562
3
+ metadata.gz: 793b4399a6656d7316cbfe2b63ca10de4c555c1c
4
+ data.tar.gz: f51d11e96432c6296acfedf88312b66f2612a1a7
5
5
  SHA512:
6
- metadata.gz: 674d28b8ca99aaf8cf95a95b54127c487c8bdff474da1d6b5f566b1feda92c005a2167d81acc4907f3a8cf8ae586fe3eeaffbaff6b8edd66b0393ff009411b78
7
- data.tar.gz: 5999c4b43f99c270f148a2a3ae3eab7dbdb1bc0226648d243f24e8e3d49a893c915590b87fc4bdfa7e0287f68764ffc5a334a4549c50b1f8d5ff21b5d73bd6a6
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', git: "https://github.com/jonatas/rd-salesforce.git"
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 https://github.com/jonatas/rd-salesforce.git
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 => "First Name",
63
- :last_name => "Last Name",
62
+ :first_name => "FirstName",
63
+ :last_name => "LastName",
64
64
  :email => "Email",
65
65
  :company => "Company",
66
66
  :website => "Website",
@@ -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.salesforce_id, person.translate_attributes)
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
@@ -1,5 +1,5 @@
1
1
  module Rd
2
2
  module Salesforce
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  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.1
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-16 00:00:00.000000000 Z
11
+ date: 2015-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: restforce