mandrill_queue 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Gemfile +8 -0
  2. data/README.md +26 -5
  3. data/lib/mandrill_queue/version.rb +1 -1
  4. metadata +3 -19
data/Gemfile CHANGED
@@ -12,6 +12,14 @@ group :test do
12
12
 
13
13
  gem 'ruby_gntp' if RUBY_PLATFORM =~ /darwin/i
14
14
  gem 'libnotify' if RUBY_PLATFORM =~ /linux/i
15
+
16
+ gem 'coveralls', require: false
17
+ end
18
+
19
+ platforms :rbx do
20
+ gem 'racc'
21
+ gem 'rubinius-coverage'
22
+ gem 'rubysl'
15
23
  end
16
24
 
17
25
  # group :development, :test do
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
  MandrillQueue::Mailer
3
3
  ==========================
4
4
  [![Build Status](https://travis-ci.org/fixate/mandrill_queue.png)](https://travis-ci.org/fixate/mandrill_queue)
5
+ [![Coverage Status](https://coveralls.io/repos/fixate/mandrill_queue/badge.png)](https://coveralls.io/r/fixate/mandrill_queue)
5
6
 
6
7
  DSL for sending mailers through Mailchimps Mandrill API. This gem enqueues the
7
8
  message on a background worker (`Resque` only for now, but I want to refactor
@@ -118,14 +119,34 @@ but didn't know this (but it's optional):
118
119
 
119
120
  rails g mandrill_queue:initializer
120
121
 
121
- Global configuration options are documented in the initializer
122
- but heres a taster:
122
+ Global configuration options are documented in the initializer,
123
+ but here's a taster:
123
124
 
124
125
  ```ruby
125
126
  MandrillQueue.configure do |config|
126
- config.queue = :hipster_queue
127
- # ...
128
- end
127
+ # Message defaults.
128
+ # A hash of application-wide default values for messages.
129
+ # These can be overriden by class level defaults and by method
130
+ # level defaults.
131
+ # e.g.
132
+ # {
133
+ # from_email: 'no-reply@example.com',
134
+ # preserve_recipients: false,
135
+ # global_merge_vars: {
136
+ # application_name: 'My super app!'
137
+ # }
138
+ # }
139
+ config.message_defaults = {
140
+ preserve_recipients: false,
141
+ from_email: 'no-reply@mysite.com'
142
+ }
143
+
144
+ # NEEDED FOR WORKER ONLY
145
+ # Mandrill api key needed for worker only
146
+ config.api_key = 'xxxxxx'
147
+ config.default_worker_class = MyWorker
148
+ config.default_queue = :hipster_queue
149
+ end
129
150
  ```
130
151
 
131
152
  ## Setting up the worker
@@ -1,3 +1,3 @@
1
1
  module MandrillQueue
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-19 00:00:00.000000000 Z
12
+ date: 2013-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -43,22 +43,6 @@ dependencies:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.0.49
46
- - !ruby/object:Gem::Dependency
47
- name: mime-types
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - '='
52
- - !ruby/object:Gem::Version
53
- version: '1.25'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: '1.25'
62
46
  - !ruby/object:Gem::Dependency
63
47
  name: bundler
64
48
  requirement: !ruby/object:Gem::Requirement
@@ -139,7 +123,7 @@ dependencies:
139
123
  - - ! '>='
140
124
  - !ruby/object:Gem::Version
141
125
  version: '0'
142
- description: Use MailChimps Mandrill to send mailers through a background worker queue.
126
+ description: An easy to use DSL to send mailers using Mailchimps Mandrill api.
143
127
  email:
144
128
  - stan@fixate.it
145
129
  executables: []