metaforce-delivery_method 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Metaforce Delivery Method
2
2
 
3
+ [![Build Status](https://travis-ci.org/ejholmes/metaforce-delivery_method.png?branch=master)](https://travis-ci.org/ejholmes/metaforce-delivery_method)
4
+
3
5
  A delivery method for the [Mail](https://github.com/mikel/mail) gem using
4
6
  [Metaforce#send\_email](https://github.com/ejholmes/metaforce) as a backend.
5
7
 
@@ -11,17 +13,12 @@ Add the gem to your Gemfile:
11
13
  gem 'metaforce-delivery_method'
12
14
  ```
13
15
 
14
- Add the following to your config/application.rb:
16
+ Export your credentials:
15
17
 
16
- ```ruby
17
- config.action_mailer.metaforce_settings = {
18
- :client => Metaforce.new(
19
- username: 'username',
20
- password: 'passwrod',
21
- security_token: 'securty token'
22
- )
23
- }
24
- config.action_mailer.delivery_method = :metaforce
18
+ ```bash
19
+ export SALESFORCE_USERNAME="username"
20
+ export SALESFORCE_PASSWORD="password"
21
+ export SALESFORCE_SECURITY_TOKEN="security token"
25
22
  ```
26
23
 
27
24
  Then use mailers just like you would with any other delivery method:
@@ -1,5 +1,6 @@
1
1
  module Metaforce
2
2
  class DeliveryMethod::Railtie < Rails::Railtie
3
3
  ActionMailer::Base.add_delivery_method :metaforce, Metaforce::DeliveryMethod
4
+ config.action_mailer.metaforce_settings = { :client => Metaforce.new }
4
5
  end
5
6
  end
@@ -1,5 +1,5 @@
1
1
  module Metaforce
2
2
  class DeliveryMethod
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency 'metaforce', '~> 1.0.0'
20
+ gem.add_dependency 'metaforce', '~> 1.0.4'
21
21
 
22
22
  gem.add_development_dependency 'rspec'
23
23
  gem.add_development_dependency 'mail'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metaforce-delivery_method
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-12-28 00:00:00.000000000 Z
12
+ date: 2012-12-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: metaforce
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.0
21
+ version: 1.0.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.0.0
29
+ version: 1.0.4
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement