welaika-suspenders 1.2.6 → 1.2.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: b0e6ecb59e8e4924c419fa339ad56b044967636a
4
- data.tar.gz: c7aee96129d547c2730e5772add9a41d7eca44a3
3
+ metadata.gz: 03cb97e9b728cf4650b99347308779168832570c
4
+ data.tar.gz: acdc088cee7979da5ba73691305bdc7e798edb5a
5
5
  SHA512:
6
- metadata.gz: 2a247c75302706b0dedf05fb74d7904cef7f2b38ca341b2112b897074e8e2498b00603af82209edc3089fce85497e427776785535c5587f312f67d6d4c42d067
7
- data.tar.gz: 5e5e110f6d9395bdb1602d89085157c5c340aa9ea6e0570f7317575b8c4f6a6495751d8cd5f57902ca43c2a15eea5740ded580cae37a76fc8029c737e83cd865
6
+ metadata.gz: a0392fb7b3d8a6b6f28f364a4bb215d43d82b533f7427b1ce0ddc784b5bdc3369848d56f7d4c4440a653febbf5d30d0044ab2569ab27c1fc558999c7dea05629
7
+ data.tar.gz: 3ecac02bb90616e9f50f1210c5ca5232ac6d7d6bcc4959a739feffc4538f00b6939fde9af1633008a48d8196e0712be3bcfa0611a79805266dd16c1cd060d144
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- welaika-suspenders (1.2.6)
4
+ welaika-suspenders (1.2.7)
5
5
  bundler
6
6
  hub
7
7
  rails
@@ -39,13 +39,25 @@ module WelaikaSuspenders
39
39
  prepend_file 'config/environments/production.rb',
40
40
  "require Rails.root.join('config/initializers/smtp')\n"
41
41
 
42
- config = <<-RUBY
42
+ production_config = <<-RUBY
43
43
  config.action_mailer.delivery_method = :smtp
44
44
  config.action_mailer.smtp_settings = SMTP_SETTINGS
45
45
  RUBY
46
46
 
47
- inject_into_file 'config/environments/production.rb', config,
47
+ development_config = <<-RUBY
48
+ RUBY
49
+
50
+ inject_into_file(
51
+ 'config/environments/production.rb',
52
+ production_config,
48
53
  :after => 'config.action_mailer.raise_delivery_errors = false'
54
+ )
55
+
56
+ inject_into_file(
57
+ 'config/environments/development.rb',
58
+ "\n\n config.action_mailer.delivery_method = :letter_opener",
59
+ :before => "\nend"
60
+ )
49
61
  end
50
62
 
51
63
  def setup_staging_environment
@@ -1,3 +1,3 @@
1
1
  module WelaikaSuspenders
2
- VERSION = '1.2.6'
2
+ VERSION = '1.2.7'
3
3
  end
@@ -24,6 +24,11 @@ group :development do
24
24
  gem 'foreman'
25
25
  gem 'better_errors'
26
26
  gem 'binding_of_caller'
27
+ gem 'letter_opener'
28
+ end
29
+
30
+ group :staging do
31
+ gem 'recipient_interceptor'
27
32
  end
28
33
 
29
34
  group :development, :test do
data/templates/sample.env CHANGED
@@ -1,3 +1,12 @@
1
1
  # http://ddollar.github.com/foreman/
2
2
  RACK_ENV=development
3
3
  PORT=3000
4
+
5
+ # required in production and staging
6
+ # SMTP_ADDRESS=smtp.sendgrid.net
7
+ # SMTP_DOMAIN=heroku.com
8
+ # SMTP_USERNAME=appXXX@heroku.com
9
+ # SMTP_PASSWORD=pass
10
+
11
+ # required in staging
12
+ # EMAIL_RECIPIENTS=black-hole@example.com
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: welaika-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot