Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use echoe instead of hoe

  • Loading branch information...
commit 4418aff74a790ac678a28002701ba367768faf5b 1 parent bb8d6cb
@garygreyling garygreyling authored
View
3  .gitignore
@@ -2,4 +2,5 @@
.autotest
pkg/*
test/*
-bin/*
+bin/*
+*.gemspec
View
3  Manifest.txt → Manifest
@@ -1,5 +1,6 @@
History.txt
-Manifest.txt
+Manifest
README.txt
Rakefile
+campaign_monitor_subscriber.gemspec
lib/campaign_monitor_subscriber.rb
View
18 README.txt → README.rdoc
@@ -1,10 +1,10 @@
= campaign_monitor_subscriber
-http://www.github.com/mpowered
+http://github.com/mpowered/campaign_monitor_subscriber
== DESCRIPTION:
-Automatically push a model's email address to a Campaign Monitor mailing list on create and remove it on destroy.
+Automatically push/delete a model's email address to a Campaign Monitor mailing when the model is created or destroyed.
== FEATURES/PROBLEMS:
@@ -14,13 +14,13 @@ Automatically push a model's email address to a Campaign Monitor mailing list on
== SYNOPSIS:
Specify the model's email address field name:
-Class User < ActiveRecord::Base
- subscribe_me_using :email
-end
+ Class User < ActiveRecord::Base
+ subscribe_me_using :email
+ end
Set the list id & api key in config/campaign_monitor_subscriber_config.yml:
-list_id: 12oeu0089oe8gf9794oe498587o5
-api_key: 23rbmoe351sd123d12134hbi1234
+ list_id: 12oeu0089oe8gf9794oe498587o5
+ api_key: 23rbmoe351sd123d12134hbi1234
Thats it!
@@ -30,7 +30,7 @@ Thats it!
== INSTALL:
-sudo gem install campaign_monitor_subscriber
+ gem install campaign_monitor_subscriber
== LICENSE:
@@ -55,4 +55,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
20 Rakefile
@@ -1,13 +1,13 @@
# -*- ruby -*-
-
require 'rubygems'
-require 'hoe'
-
-Hoe.spec 'campaign_monitor_subscriber' do |p|
- # self.rubyforge_name = 'campaign_monitor_subscriberx' # if different than 'campaign_monitor_subscriber'
- p.developer('Gary Greyling', 'gary@mpowered.co.za')
- p.version = "1.0.0"
- p.extra_deps = [['campaigning', '>= 0.15.0']]
-end
+require 'rake'
+require 'echoe'
-# vim: syntax=ruby
+Echoe.new('campaign_monitor_subscriber', '0.5.0') do |p|
+ p.description = "Sync user emails with Campaign Monitor mailing lists"
+ p.url = "http://github.com/mpowered/campaign_monitor_subscriber"
+ p.author = "Gary Greyling"
+ p.email = "gary@mpowered.co.za"
+ p.ignore_pattern = ["tmp/*", "script/*"]
+ p.development_dependencies = [['campaigning', '>= 0.15.0']]
+end
View
2  lib/campaign_monitor_subscriber.rb
@@ -9,7 +9,7 @@ module ClassMethods
require 'campaigning'
def subcribe_me_using(email_field)
- # return unless RAILS_ENV == 'production'
+ return unless RAILS_ENV == 'production'
after_create do |record|
begin
Please sign in to comment.
Something went wrong with that request. Please try again.