From 448e11e5516afe2bdd30d764ae7fb066509a8b9a Mon Sep 17 00:00:00 2001 From: Themba Date: Fri, 31 Jul 2015 15:12:41 +0200 Subject: [PATCH 01/10] Linking to Travis ci --- Gemfile | 4 ++++ Gemfile.lock | 1 + travis.yml | 7 +++++++ 3 files changed, 12 insertions(+) create mode 100644 travis.yml diff --git a/Gemfile b/Gemfile index 962491c..f262f96 100644 --- a/Gemfile +++ b/Gemfile @@ -10,3 +10,7 @@ group :development do gem 'vcr' gem 'webmock' end + +group :test do + gem 'rake' +end diff --git a/Gemfile.lock b/Gemfile.lock index 7c64987..a68d6c2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -88,6 +88,7 @@ DEPENDENCIES crack (> 0.1.7) httparty (>= 0.13.1) jeweler (> 1.4) + rake rspec vcr webmock diff --git a/travis.yml b/travis.yml new file mode 100644 index 0000000..6ea35dc --- /dev/null +++ b/travis.yml @@ -0,0 +1,7 @@ +language: ruby +rvm: + - 2.1.0 +notifications: + campfire: + rooms: + - secure: "Dy/OtCgChcv+AS6zrPce4vvJGUJstUSi8eE2s5x6ruDy2ZTNSHo0ITGPRQPYuM75hlUxhJLvJLEsbG/llldl96wihq2q2KeSb20Pzuma+TVe9B4QYIjodrTeudmFrrgWV3IpuXnrwkZeZJywBFM5kXWRIvROCK7aRNKTBWzsI/Y=" \ No newline at end of file From cd4f52dff9dee2d37e0b6a33824ad03ba9f82a89 Mon Sep 17 00:00:00 2001 From: Themba Date: Fri, 31 Jul 2015 15:27:12 +0200 Subject: [PATCH 02/10] Add travis yml --- .travis.yml | 7 +++++++ Gemfile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6ea35dc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: ruby +rvm: + - 2.1.0 +notifications: + campfire: + rooms: + - secure: "Dy/OtCgChcv+AS6zrPce4vvJGUJstUSi8eE2s5x6ruDy2ZTNSHo0ITGPRQPYuM75hlUxhJLvJLEsbG/llldl96wihq2q2KeSb20Pzuma+TVe9B4QYIjodrTeudmFrrgWV3IpuXnrwkZeZJywBFM5kXWRIvROCK7aRNKTBWzsI/Y=" \ No newline at end of file diff --git a/Gemfile b/Gemfile index f262f96..b3566b7 100644 --- a/Gemfile +++ b/Gemfile @@ -12,5 +12,5 @@ group :development do end group :test do - gem 'rake' + gem 'rake' end From 0f3191932fe00ac63ac1c072ee3855922de23be6 Mon Sep 17 00:00:00 2001 From: Themba Date: Fri, 31 Jul 2015 16:07:54 +0200 Subject: [PATCH 03/10] correct version of ruby gem --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6ea35dc..805e73d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: ruby rvm: - - 2.1.0 + - 2.2.0 notifications: campfire: rooms: From f6fa1a07fd5d7296d63a2c7049423436c66110c6 Mon Sep 17 00:00:00 2001 From: Themba Date: Fri, 31 Jul 2015 16:31:38 +0200 Subject: [PATCH 04/10] previous version of ruby gem --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 805e73d..6ea35dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: ruby rvm: - - 2.2.0 + - 2.1.0 notifications: campfire: rooms: From 8d93eba2651974329d4b053839944052a4471a84 Mon Sep 17 00:00:00 2001 From: Themba Date: Fri, 31 Jul 2015 16:45:50 +0200 Subject: [PATCH 05/10] Update README --- README.rdoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index f3230e7..a1bdd83 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,4 +1,4 @@ -= madmimi += madmimi [![Build Status](https://travis-ci.org/madmimi/madmimi-gem.svg)](https://travis-ci.org/madmimi/madmimi-gem) The power of Mad Mimi in your Ruby application. Deliver emails, track statistics, and manage your subscriber base with ease. @@ -64,6 +64,10 @@ You can set +verify_ssl+ to either true or false in initializer, if you wish ver mimi.list_members('Test List', 2, 50) # get audience members on the 2nd page in specific list (50 members per page) + mimi.list_size('Test List') # get audience count in a specific list + + mimi.list_size_since('Test List', 'unix timestamp') # get the count of audience members added to a specific list since a specified date + mimi.suppressed?('dave@example.com') # check if audience member is suppressed mimi.suppress_email('dave@example.com') # move email to suppressed list From ee0efdc0822c957715affdddd7355863c6c33e72 Mon Sep 17 00:00:00 2001 From: Themba Date: Sat, 1 Aug 2015 12:27:26 +0200 Subject: [PATCH 06/10] Build status badge markdown to rdoc --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index a1bdd83..aea3777 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,4 +1,4 @@ -= madmimi [![Build Status](https://travis-ci.org/madmimi/madmimi-gem.svg)](https://travis-ci.org/madmimi/madmimi-gem) += madmimi {Build Status}[https://travis-ci.org/madmimi/madmimi-gem] The power of Mad Mimi in your Ruby application. Deliver emails, track statistics, and manage your subscriber base with ease. From 7b0ef0750e989cdbe95438c2c534522b2d14af80 Mon Sep 17 00:00:00 2001 From: Themba Date: Fri, 21 Aug 2015 21:15:52 +0200 Subject: [PATCH 07/10] Delete unneeded travis.yml --- travis.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 travis.yml diff --git a/travis.yml b/travis.yml deleted file mode 100644 index 6ea35dc..0000000 --- a/travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: ruby -rvm: - - 2.1.0 -notifications: - campfire: - rooms: - - secure: "Dy/OtCgChcv+AS6zrPce4vvJGUJstUSi8eE2s5x6ruDy2ZTNSHo0ITGPRQPYuM75hlUxhJLvJLEsbG/llldl96wihq2q2KeSb20Pzuma+TVe9B4QYIjodrTeudmFrrgWV3IpuXnrwkZeZJywBFM5kXWRIvROCK7aRNKTBWzsI/Y=" \ No newline at end of file From d5c8e63f6705f235b00224a95364e1d953c93d35 Mon Sep 17 00:00:00 2001 From: Themba Date: Sat, 22 Aug 2015 17:13:57 +0200 Subject: [PATCH 08/10] bump back up to 2.2 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6ea35dc..05be6ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: ruby rvm: - - 2.1.0 + - 2.2.0 notifications: campfire: rooms: - - secure: "Dy/OtCgChcv+AS6zrPce4vvJGUJstUSi8eE2s5x6ruDy2ZTNSHo0ITGPRQPYuM75hlUxhJLvJLEsbG/llldl96wihq2q2KeSb20Pzuma+TVe9B4QYIjodrTeudmFrrgWV3IpuXnrwkZeZJywBFM5kXWRIvROCK7aRNKTBWzsI/Y=" \ No newline at end of file + - secure: "Dy/OtCgChcv+AS6zrPce4vvJGUJstUSi8eE2s5x6ruDy2ZTNSHo0ITGPRQPYuM75hlUxhJLvJLEsbG/llldl96wihq2q2KeSb20Pzuma+TVe9B4QYIjodrTeudmFrrgWV3IpuXnrwkZeZJywBFM5kXWRIvROCK7aRNKTBWzsI/Y=" From 7f502139583bab57a1b50699751b36cf489cbbaa Mon Sep 17 00:00:00 2001 From: Themba Date: Mon, 24 Aug 2015 01:37:02 +0200 Subject: [PATCH 09/10] doing it right this time --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 05be6ac..99cc3a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: ruby rvm: + - 2.1.0 - 2.2.0 notifications: campfire: From 0803c3f3a51887cbc86883a6387a7447936cd8ac Mon Sep 17 00:00:00 2001 From: Themba Date: Tue, 25 Aug 2015 16:23:33 +0200 Subject: [PATCH 10/10] use syck on 2.2 --- lib/madmimi.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/madmimi.rb b/lib/madmimi.rb index 6c76d57..06e4b17 100644 --- a/lib/madmimi.rb +++ b/lib/madmimi.rb @@ -33,6 +33,9 @@ require 'httparty' require 'csv' require 'yaml' +if RUBY_VERSION != '1.8.7' && RUBY_VERSION < '2.2.0' + YAML::ENGINE.yamler = "syck" +end require 'crack' class MadMimi