email_campaign 0.1.0 → 0.1.1

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.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- # Declare your gem's dependencies in imagine_cms.gemspec.
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
- attr_accessible :name, :mailer, :method, :params_yaml, :deliver_at
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 => 'EmailCampaignRecipient'
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 EmailCampaignRecipient < ActiveRecord::Base
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
@@ -1,3 +1,3 @@
1
1
  module EmailCampaign
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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/imagine_cms/engine', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/email_campaign/engine', __FILE__)
6
6
 
7
7
  require 'rails/all'
8
8
  require 'rails/engine/commands'
@@ -1,4 +1,3 @@
1
1
  Rails.application.routes.draw do
2
-
3
- mount ImagineCms::Engine => "/imagine_cms"
2
+ mount EmailCampaign::Engine => "/email_campaign"
4
3
  end
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.0
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/email_campaign_recipient.rb
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