salesflip-lead_notifications 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg/*
data/.rvmrc ADDED
@@ -0,0 +1,3 @@
1
+ rvm_gemset_create_on_use_flag=1
2
+ rvm use 1.8.7
3
+ rvm gemset use lead_notifications
data/README ADDED
File without changes
@@ -0,0 +1,14 @@
1
+ begin
2
+ require 'jeweler'
3
+ Jeweler::Tasks.new do |gemspec|
4
+ gemspec.name = "salesflip-lead_notifications"
5
+ gemspec.summary = "Add lead notifications to Salesflip"
6
+ gemspec.description = "A notification email is sent to all users when a new lead arrives"
7
+ gemspec.email = "matt.beedle@1000jobboersen.de"
8
+ gemspec.homepage = "http://github.com/mattbeedle/salesflip-lead_notifications"
9
+ gemspec.authors = ["Matt Beedle"]
10
+ end
11
+ Jeweler::GemcutterTasks.new
12
+ rescue LoadError
13
+ puts "Jeweler not available. Install it with: gem install jeweler"
14
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.0
@@ -0,0 +1,9 @@
1
+ module LeadNotifications
2
+ class LeadNotificationMailer < ActionMailer::Base
3
+
4
+ def lead_notification( lead )
5
+ @lead = lead
6
+ mail(:to => lead.user.company.users.map(&:email), :subject => 'New Lead')
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ A new lead has arrived
2
+
3
+ <%= lead_url(@lead) %>
@@ -0,0 +1 @@
1
+ require 'lead_notifications/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
@@ -0,0 +1,8 @@
1
+ require 'lead_notifications'
2
+ require 'rails'
3
+
4
+ module LeadNotifications
5
+ class Engine < Rails::Engine
6
+ engine_name :lead_notifications
7
+ end
8
+ end
@@ -0,0 +1,46 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{salesflip-lead_notifications}
8
+ s.version = "0.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Matt Beedle"]
12
+ s.date = %q{2010-08-27}
13
+ s.description = %q{A notification email is sent to all users when a new lead arrives}
14
+ s.email = %q{matt.beedle@1000jobboersen.de}
15
+ s.extra_rdoc_files = [
16
+ "README"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ ".rvmrc",
21
+ "README",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "lib/app/lead_notifications/mailers/lead_notification_mailer.rb",
25
+ "lib/app/lead_notifications/views/lead_notification_mailer/lead_notification.text.erb",
26
+ "lib/lead_notifications.rb",
27
+ "lib/lead_notifications/engine.rb",
28
+ "salesflip-lead_notifications.gemspec"
29
+ ]
30
+ s.homepage = %q{http://github.com/mattbeedle/salesflip-lead_notifications}
31
+ s.rdoc_options = ["--charset=UTF-8"]
32
+ s.require_paths = ["lib"]
33
+ s.rubygems_version = %q{1.3.7}
34
+ s.summary = %q{Add lead notifications to Salesflip}
35
+
36
+ if s.respond_to? :specification_version then
37
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
+ else
42
+ end
43
+ else
44
+ end
45
+ end
46
+
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: salesflip-lead_notifications
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 0
10
+ version: 0.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Matt Beedle
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-08-27 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: A notification email is sent to all users when a new lead arrives
23
+ email: matt.beedle@1000jobboersen.de
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README
30
+ files:
31
+ - .gitignore
32
+ - .rvmrc
33
+ - README
34
+ - Rakefile
35
+ - VERSION
36
+ - lib/app/lead_notifications/mailers/lead_notification_mailer.rb
37
+ - lib/app/lead_notifications/views/lead_notification_mailer/lead_notification.text.erb
38
+ - lib/lead_notifications.rb
39
+ - lib/lead_notifications/engine.rb
40
+ - salesflip-lead_notifications.gemspec
41
+ has_rdoc: true
42
+ homepage: http://github.com/mattbeedle/salesflip-lead_notifications
43
+ licenses: []
44
+
45
+ post_install_message:
46
+ rdoc_options:
47
+ - --charset=UTF-8
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
58
+ version: "0"
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ hash: 3
65
+ segments:
66
+ - 0
67
+ version: "0"
68
+ requirements: []
69
+
70
+ rubyforge_project:
71
+ rubygems_version: 1.3.7
72
+ signing_key:
73
+ specification_version: 3
74
+ summary: Add lead notifications to Salesflip
75
+ test_files: []
76
+