ish_manager 0.1.8.341 → 0.1.8.342

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61c49a3cad8ca5b12bf89eb573cbca98aefc12c42d3e144ba3fc0d033cda4b23
4
- data.tar.gz: f282ccadc49c6a9d75f11446c81aa15dbc85af7bbf4cb11e9dbb8b0114e758a3
3
+ metadata.gz: 31dc721f8085acc082c40407f49b1d43d5e2fdea662ec65baab7518d05e59bc6
4
+ data.tar.gz: 92623cdaabf812aa4949bb91f8316fd9173cc6553df79cb04f5027c4d46da49b
5
5
  SHA512:
6
- metadata.gz: 0bed7e802a94b55d10992e3622e3a2083b30074ff8551b4fda9a68922277bef41a85faa155f5f12ce667119db73fafa52b0dd22503c9749ac64625b91cac8bbd
7
- data.tar.gz: d34937d2aac5a9922974963e49ca47a459c161891bb4044d96915497448ad50bf88defcfa88cfc5b12f228ef423f61aa7a51365c812ffe30275f210d5386c4a8
6
+ metadata.gz: 747bafb898ed79e8d7a8fd09a381221745733082b69214a1512d100d4ce5997daef0d4f9261d0311991d93d02483c4f8917648be5241915217d1b09188d7e438
7
+ data.tar.gz: 31e72f77b079430987187711798a1b0744739cd3d73958757c2c393277aae95ae85f569fff846b0213d2b5c94f13db0bf37e248537edd022c17fd32bbe67bdbd
@@ -46,9 +46,9 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
46
46
  flags = []
47
47
  errors = []
48
48
  CSV.read(file.path, headers: true).each do |row|
49
- puts! row, 'row'
50
- puts! row[3], 'email?'
51
- company = ::Leadset.find_or_create_by({ company_url: row[4] })
49
+ company_url = row[4].presence
50
+ company_url ||= "https://#{row[3].split('@')[1]}"
51
+ company = ::Leadset.find_or_create_by({ company_url: company_url })
52
52
  lead = ::Lead.new({
53
53
  name: row[2] || 'there',
54
54
  full_name: row[2] || 'there',
@@ -27,7 +27,7 @@
27
27
  %tr
28
28
  %td= check_box_tag 'lead_ids[]', lead.id
29
29
  %td= link_to lead.name, lead_path( lead )
30
- %td= lead.leadset&.name
30
+ %td= lead.leadset&.id
31
31
  %td= lead.email
32
32
  %td= lead.tag
33
33
  %td= lead.created_at.to_s[0..10]
@@ -2,41 +2,19 @@
2
2
  - url = leadset.persisted? ? leadset_path( leadset.id ) : leadsets_path
3
3
 
4
4
  = form_for leadset, :as => :leadset, :url => url do |f|
5
- .input-field
6
- = f.label :email
7
- = f.text_field :email
8
5
 
9
- .input-field
10
- = f.label :job_url
11
- = f.text_field :job_url
12
6
  .input-field
13
7
  = f.label :company_url
14
8
  = f.text_field :company_url
15
9
  .input-field
16
- = f.label :yelp_url
17
- = f.text_field :yelp_url
18
-
19
- .input-field
20
- = f.label :company
21
- = f.text_field :company
10
+ = f.label :name
11
+ = f.text_field :name
22
12
  .input-field
23
13
  = f.label :tag
24
14
  = f.text_field :tag
25
15
  .input-field
26
16
  = f.label :location
27
17
  = f.text_field :location
28
- .input-field
29
- = f.label :description
30
- = f.text_area :description
31
- .input-field
32
- = f.label :address
33
- = f.text_area :address
34
- .field
35
- = f.check_box :is_done
36
- = f.label :is_done
37
- .field
38
- = f.check_box :is_trash
39
- = f.label :is_trash
40
18
  .actions{ :style => "margin-top: 1em;" }
41
19
  = f.submit
42
20
 
@@ -10,7 +10,7 @@
10
10
  %thead
11
11
  %tr
12
12
  %th &nbsp;
13
-
13
+ %th created at
14
14
  %th Name
15
15
  %th Tag
16
16
  %th.company-url Company Url
@@ -19,8 +19,8 @@
19
19
  - @leadsets.each do |leadset|
20
20
  %tr
21
21
  %td= check_box_tag leadset.id
22
-
22
+ %td= leadset.created_at.strftime("%Y-%m-%d %H:%M")
23
23
  %td= link_to leadset.name, leadset_path( leadset )
24
24
  %td= leadset.tag
25
- %td= link_to 'B', leadset.company_url if leadset.company_url.present?
25
+ %td= link_to leadset.company_url, leadset.company_url
26
26
  %td= leadset.location
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.341
4
+ version: 0.1.8.342
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox