leads_to_highrise 0.2.10 → 0.2.11

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGQ2ZjJmNTA2OGJiOWViMzQ1ZjA5OTE5MWVmNDg0OTc5OTEyYzVlNg==
4
+ OTI1NWYyYmU0ZTZhOWVlNzdiNmEwYzQ2ODNlOWJmMTNiOGVhODg0YQ==
5
5
  data.tar.gz: !binary |-
6
- ZWI0YjM1NzFlOThkMWJjYjVkZGJmZjc3MGU0NjRjODE0N2ZiMTFmYw==
6
+ OGU2MTJiNzg4NjZiYzE3MjMyMDdhYzU3MDJkZmUzMmViY2Q1MTkzMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTc4Yjg2YjRhNDAxODYxOWM4YzgwMGE5NTBmZTZmY2M4YmMzNWM4NmFjM2Zk
10
- YWRlOTRiOTYyMjlhYTI3Yjg1YTNkNmFiYWQwYzM1ODdlYjdiYjQ2YTk2MzNi
11
- MjA4Y2RhMDQ1YjNhN2FiOGRhNzE4ZjE2MTVhMTVlZTViYzllNjc=
9
+ NjA5ODQxNzU5N2E5ZTgxNjBiNDZhZWUxMTVkNGRjMDcyMzFlNzU1NDQxMWUw
10
+ ZGRkMjI2MTNjNjQ5MDk4ODBhMjAyOWNlZjc2ZjlkZmVlNzk2MDljZTEyMTdm
11
+ YzdkZWExNTBiZjQ2ZjA4YjczZWIwZmFkZGUwOWE0MjhlZmZiODU=
12
12
  data.tar.gz: !binary |-
13
- MmFiYzU2MTk2ZWU2NzhhYWEzZmMxNjliOTczYWZhMjc4MjJmZDg5Y2VjZDJl
14
- NTU5OWEyODg3M2UwYWIyMzY4ZjYwN2NmODk3ZTViMWI3YzU0ZGE0ZDllNWVj
15
- NjRkNjFmNDI0MzVjYTA0MjA5NTRmMmU1NzRmYTk3MzlkZDE0MGU=
13
+ ZGUyNzMzZTEwYTU2YTE1YWJiY2U0NmU5NTBiNTE0YWI5ZDAwOWEwY2ZiYzUw
14
+ MDRjZDIwOWM4YjNmNTg1NjY3OThmOWJlYjYzOGY5M2YzNDRlYmU0ODMyMjI5
15
+ MTM3YmRjNTQ3YTkxMTI1ZGYxNjhhZGNmODBkODIwYzg4OGNjOGQ=
@@ -57,21 +57,20 @@ class LeadsController < ApplicationController
57
57
  Highrise::Base.user = current_user.highrise_user
58
58
  Highrise::Base.format = :xml
59
59
 
60
- #p = Highrise::Person.new( first_name: 'lead[:name]',
61
- # last_name: 'lead[:last_name]',
62
- # title: 'lead[:job_title]',
63
- # company_name: 'lead[:company]',
64
- # contact_data: { email_addresses: [ { address: 'lead[:emial]'} ],
65
- # phone: 'lead[:phone]',
66
- # website: 'lead[:website]' })
60
+ p = Highrise::Person.new( first_name: lead[:name].to_s,
61
+ last_name: lead[:last_name].to_s,
62
+ title: lead[:job_title].to_s,
63
+ company_name: lead[:company].to_s,
64
+ contact_data: { email_addresses: [ { address: lead[:emial].to_s} ],
65
+ phone: lead[:phone].to_s,
66
+ website: lead[:website].to_s })
67
67
  #p.save
68
- #if p.save
69
- # redirect_to '/', notice: 'The contact has been sended to highrise'
68
+ if p.save
69
+ redirect_to root_path, notice: 'The contact has been sended to highrise'
70
70
 
71
- #else
72
- # redirect_to '/', notice: 'error.'
73
-
74
- #end
71
+ else
72
+ redirect_to root_path, notice: 'error.'
73
+ end
75
74
 
76
75
  end
77
76
 
@@ -1,3 +1,3 @@
1
1
  module LeadsToHighrise
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leads_to_highrise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Tripoloni