ffcrm_cloudfuji 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_development_dependency 'capybara'
17
17
  s.add_development_dependency 'combustion'
18
18
 
19
- s.add_dependency 'cloudfuji', '>= 0.0.42'
19
+ s.add_dependency 'cloudfuji', '>= 0.0.45'
20
20
  s.add_dependency 'authlogic_cloudfuji', '~> 0.9'
21
21
 
22
22
  end
@@ -30,12 +30,18 @@ module FatFreeCRM
30
30
  end
31
31
 
32
32
  puts "No pre-existing records found, creating a lead"
33
- lead = Lead.create!(
33
+ lead = Lead.new(
34
34
  :email => email,
35
35
  :ido_id => data['customer_ido_id'],
36
36
  :first_name => email.split("@").first,
37
37
  :last_name => email.split("@").last,
38
38
  :user => User.first)
39
+
40
+ lead.first_name = data['first_name'] if data['first_name'].present?
41
+ lead.first_name = data['last_name'] if data['last_name'].present?
42
+
43
+ lead.save!
44
+
39
45
  lead
40
46
  end
41
47
 
@@ -1,5 +1,5 @@
1
1
  module FatFreeCRM
2
2
  module Cloudfuji
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,103 +1,82 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ffcrm_cloudfuji
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.6
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.2.7
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Sean Grove
9
9
  - Nathan Broadbent
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-29 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
13
+
14
+ date: 2012-06-03 00:00:00 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
16
17
  name: rspec-rails
17
- requirement: !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
18
19
  none: false
19
- requirements:
20
+ requirements:
20
21
  - - ~>
21
- - !ruby/object:Gem::Version
22
- version: '2.6'
22
+ - !ruby/object:Gem::Version
23
+ version: "2.6"
23
24
  type: :development
24
25
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: '2.6'
31
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
32
28
  name: capybara
33
- requirement: !ruby/object:Gem::Requirement
29
+ requirement: &id002 !ruby/object:Gem::Requirement
34
30
  none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
39
35
  type: :development
40
36
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
48
39
  name: combustion
49
- requirement: !ruby/object:Gem::Requirement
40
+ requirement: &id003 !ruby/object:Gem::Requirement
50
41
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
55
46
  type: :development
56
47
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
64
50
  name: cloudfuji
65
- requirement: !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
66
52
  none: false
67
- requirements:
68
- - - ! '>='
69
- - !ruby/object:Gem::Version
70
- version: 0.0.42
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.0.45
71
57
  type: :runtime
72
58
  prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: 0.0.42
79
- - !ruby/object:Gem::Dependency
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
80
61
  name: authlogic_cloudfuji
81
- requirement: !ruby/object:Gem::Requirement
62
+ requirement: &id005 !ruby/object:Gem::Requirement
82
63
  none: false
83
- requirements:
64
+ requirements:
84
65
  - - ~>
85
- - !ruby/object:Gem::Version
86
- version: '0.9'
66
+ - !ruby/object:Gem::Version
67
+ version: "0.9"
87
68
  type: :runtime
88
69
  prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ~>
93
- - !ruby/object:Gem::Version
94
- version: '0.9'
70
+ version_requirements: *id005
95
71
  description: Integrates Fat Free CRM with the Cloudfuji hosting platform.
96
72
  email: s@cloudfuji.com
97
73
  executables: []
74
+
98
75
  extensions: []
76
+
99
77
  extra_rdoc_files: []
100
- files:
78
+
79
+ files:
101
80
  - .gitignore
102
81
  - .travis.yml
103
82
  - Gemfile
@@ -156,32 +135,36 @@ files:
156
135
  - uninstall.rb
157
136
  homepage: http://cloudfuji.com
158
137
  licenses: []
138
+
159
139
  post_install_message:
160
140
  rdoc_options: []
161
- require_paths:
141
+
142
+ require_paths:
162
143
  - lib
163
- required_ruby_version: !ruby/object:Gem::Requirement
144
+ required_ruby_version: !ruby/object:Gem::Requirement
164
145
  none: false
165
- requirements:
166
- - - ! '>='
167
- - !ruby/object:Gem::Version
168
- version: '0'
169
- segments:
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ hash: 60016838870962612
150
+ segments:
170
151
  - 0
171
- hash: 529527583371072573
172
- required_rubygems_version: !ruby/object:Gem::Requirement
152
+ version: "0"
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
173
154
  none: false
174
- requirements:
175
- - - ! '>='
176
- - !ruby/object:Gem::Version
177
- version: '0'
178
- segments:
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ hash: 60016838870962612
159
+ segments:
179
160
  - 0
180
- hash: 529527583371072573
161
+ version: "0"
181
162
  requirements: []
163
+
182
164
  rubyforge_project:
183
- rubygems_version: 1.8.24
165
+ rubygems_version: 1.8.17
184
166
  signing_key:
185
167
  specification_version: 3
186
168
  summary: Fat Free CRM - Cloudfuji Integration
187
169
  test_files: []
170
+