email_campaign 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
# Declare your gem's dependencies in
|
3
|
+
# Declare your gem's dependencies in email_campaign.gemspec.
|
4
4
|
# Bundler will treat runtime dependencies like base dependencies, and
|
5
5
|
# development dependencies will be added by default to the :development group.
|
6
6
|
gemspec
|
@@ -1,8 +1,10 @@
|
|
1
|
-
class EmailCampaign < ActiveRecord::Base
|
2
|
-
|
1
|
+
class EmailCampaign::Campaign < ActiveRecord::Base
|
2
|
+
set_table_name "email_campaigns"
|
3
|
+
|
4
|
+
attr_accessible :name, :mailer, :method, :params_yaml, :deliver_at,
|
3
5
|
:finalized, :queued, :delivered
|
4
6
|
|
5
|
-
has_many :recipients, :class_name => '
|
7
|
+
has_many :recipients, :class_name => 'EmailCampaign::Recipient'
|
6
8
|
|
7
9
|
# new_recipients should be an Array of objects that respond to #email, #name, and #subscriber_id
|
8
10
|
# (falls back to #id if #subscriber_id doesn't exist; either way, this id should be unique)
|
@@ -1,4 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class EmailCampaign::Recipient < ActiveRecord::Base
|
2
|
+
set_table_name "email_campaign_recipients"
|
3
|
+
|
2
4
|
attr_accessible :name, :email_address,
|
3
5
|
:ready, :duplicate, :invalid_email, :unsubscribed,
|
4
6
|
:subscriber_class_name, :subscriber_id
|
data/script/rails
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
3
|
|
4
4
|
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
-
ENGINE_PATH = File.expand_path('../../lib/
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/email_campaign/engine', __FILE__)
|
6
6
|
|
7
7
|
require 'rails/all'
|
8
8
|
require 'rails/engine/commands'
|
data/test/dummy/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_campaign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -92,8 +92,8 @@ files:
|
|
92
92
|
- app/assets/stylesheets/application.css
|
93
93
|
- app/controllers/email_campaigns_controller.rb
|
94
94
|
- app/helpers/.gitkeep
|
95
|
-
- app/models/email_campaign.rb
|
96
|
-
- app/models/
|
95
|
+
- app/models/email_campaign/campaign.rb
|
96
|
+
- app/models/email_campaign/recipient.rb
|
97
97
|
- app/views/email_campaigns/index.html.erb
|
98
98
|
- config/routes.rb
|
99
99
|
- db/migrate/20130111224331_create_email_campaigns.rb
|