spree_sendwithus 2.0.11.6 → 2.0.11.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c7664f03f26e070210c76f8e8c0b75aec249647
4
- data.tar.gz: d5c2fe5679354c9a31af8522cb26deb358b78218
3
+ metadata.gz: d484f3e6d7964c40dee992a49773171a682246b2
4
+ data.tar.gz: 19177744e9d737990a7a2313fc9f50de24d7e021
5
5
  SHA512:
6
- metadata.gz: 6df471f940e3cbf8384e6cf47484e7f1be3672ad4a57418d1b8a466602cc5365200a4d0849c48ec672aaf3476770945a63dd7814c85881672e923472b43d0878
7
- data.tar.gz: 67a7e8012b5c5a17e46196908cb4076fcea5654397a339ca2e959e3e2c0955281ea8705d0980495fd5de492e7c553ae66280f818d5ad6688d3d038c7fc1e43f4
6
+ metadata.gz: 8d4e22fb7cdeeded75e8385e115ee0e7c15c9e3cec46c536b70b3c473753d1a240ae0a0e08081da4b06ad9d22b942e6c3829574ed0e070766b0b2e661b0d1cf8
7
+ data.tar.gz: af682c229be2eae7c725b4aecb8000c04072840f8cc46ca3efd53fcec7d554cbe0cab7e79e486ba24d5a55dd57211cef1c8fb2474ab484d1f52af94c8dec5f93
data/README.md CHANGED
@@ -28,6 +28,13 @@ SendWithUs::Api.configure do |config|
28
28
  end
29
29
  ```
30
30
 
31
+ If you want to globally configure the email service provider SendWithUs will use, say for sending staging emails to something like [mailtrap.io](https://mailtrap.io/), then simply add the following to an initializer:
32
+ ```ruby
33
+ Spree::SendWithUs::Base.configure do |config|
34
+ config.esp_account = ENV['SEND_WITH_US_ESP_ACCOUNT']
35
+ end
36
+ ```
37
+
31
38
  Now you can configure any of your mailers to use SendWithUs by making them a subclass of `Spree::SendWithUsMailer::Base`. For example:
32
39
  ```ruby
33
40
  # app/mailers/spree/quality_control_mailer.rb
@@ -56,7 +56,7 @@ module Spree
56
56
  @cc,
57
57
  @bcc,
58
58
  @files,
59
- @esp_acount
59
+ @esp_account
60
60
  )
61
61
  end
62
62
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_sendwithus'
5
- s.version = '2.0.11.6'
5
+ s.version = '2.0.11.7'
6
6
  s.summary = 'SendWithUs integration'
7
7
  s.license = 'BSD-3'
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_sendwithus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11.6
4
+ version: 2.0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - FreeRunning Technologies