pah 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +15 -1
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/features/commands.feature +4 -4
- data/features/env.feature +1 -1
- data/features/gemfile.feature +1 -1
- data/features/readme.feature +1 -1
- data/features/runner.feature +4 -4
- data/features/{mandrill.feature → sendgrid.feature} +0 -0
- data/lib/pah/files/Gemfile +24 -25
- data/lib/pah/rails_template.rb +1 -2
- data/lib/pah/templates/heroku.rb +3 -3
- data/lib/pah/templates/sendgrid.rb +27 -0
- data/lib/pah/version.rb +3 -3
- data/pah.gemspec +1 -1
- metadata +13 -17
- data/features/rack_timeout.feature +0 -8
- data/lib/pah/files/config/initializers/rack_timeout.rb +0 -3
- data/lib/pah/templates/mandrill.rb +0 -26
- data/lib/pah/templates/rack_timeout.rb +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 414dcaac0cbbb31384535d2102c70ebdfc56f6ee
|
|
4
|
+
data.tar.gz: d935551a14c8ccef0ce2588182a8b9d5c386dd87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b67278d94f1e6eae7de75f8b0f6227c275e6d44da5d1bd0da1e49e3dee7c9455922fd0efba61b57d0e4f9389a12ed4d55ff224d9e404719c15a10eb74a50feaf
|
|
7
|
+
data.tar.gz: 46f1d92417c7499ee526dfc621d45f25ec0bb9100caed2596ff066696374da96e08f01a8ae7e6858cccb456099cd69cb0e1417a0c76150aa7c397b88a9ad763f
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.2.
|
|
1
|
+
2.2.2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.0.
|
|
3
|
+
## 0.0.25 (Unreleased)
|
|
4
4
|
|
|
5
5
|
### features
|
|
6
6
|
|
|
@@ -8,6 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
### bug fixes
|
|
10
10
|
|
|
11
|
+
## 0.0.24 (August 10, 2015)
|
|
12
|
+
|
|
13
|
+
### features
|
|
14
|
+
|
|
15
|
+
### improvements
|
|
16
|
+
- Remove rack-timeout (ref.: https://github.com/heroku/rack-timeout/issues/73#issuecomment-89170627)
|
|
17
|
+
- Change Ruby version to 2.2.2
|
|
18
|
+
- Update the Gemfile to most recent gems
|
|
19
|
+
|
|
20
|
+
### bug fixes
|
|
21
|
+
- Fix Heroku addon names
|
|
22
|
+
- Replace to Mandrill addon with Sendgrid
|
|
23
|
+
- Fix `pg:backups schedule` task which requires --at param
|
|
24
|
+
|
|
11
25
|
## 0.0.23 (June 12,2015)
|
|
12
26
|
|
|
13
27
|
### improvements
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Run:
|
|
|
37
37
|
$ pah projectname
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
This will create a Rails 4.2.
|
|
40
|
+
This will create a Rails 4.2.3 app with Ruby 2.2.2. This script creates a new git repository in the folder `projectname`.
|
|
41
41
|
|
|
42
42
|
:warning: PAH is not meant to be used against an existing repo.
|
|
43
43
|
|
data/features/commands.feature
CHANGED
|
@@ -5,16 +5,16 @@ Feature: Commands
|
|
|
5
5
|
Then the output should contain:
|
|
6
6
|
"""
|
|
7
7
|
Pah version: 0.0.23
|
|
8
|
-
Rails version: 4.2.
|
|
9
|
-
Ruby version: 2.2.
|
|
8
|
+
Rails version: 4.2.3
|
|
9
|
+
Ruby version: 2.2.2
|
|
10
10
|
"""
|
|
11
11
|
Scenario: -v prompts the versions
|
|
12
12
|
When I run `pah -v`
|
|
13
13
|
Then the output should contain:
|
|
14
14
|
"""
|
|
15
15
|
Pah version: 0.0.23
|
|
16
|
-
Rails version: 4.2.
|
|
17
|
-
Ruby version: 2.2.
|
|
16
|
+
Rails version: 4.2.3
|
|
17
|
+
Ruby version: 2.2.2
|
|
18
18
|
"""
|
|
19
19
|
Scenario: without args prompt help
|
|
20
20
|
When I run `pah`
|
data/features/env.feature
CHANGED
data/features/gemfile.feature
CHANGED
data/features/readme.feature
CHANGED
data/features/runner.feature
CHANGED
|
@@ -30,7 +30,7 @@ Feature: Run without errors
|
|
|
30
30
|
"""
|
|
31
31
|
Then the stdout should contain:
|
|
32
32
|
"""
|
|
33
|
-
running heroku addons:create heroku-postgresql
|
|
33
|
+
running heroku addons:create heroku-postgresql --app myapponheroku
|
|
34
34
|
"""
|
|
35
35
|
Then the stdout should contain:
|
|
36
36
|
"""
|
|
@@ -38,7 +38,7 @@ Feature: Run without errors
|
|
|
38
38
|
"""
|
|
39
39
|
Then the stdout should contain:
|
|
40
40
|
"""
|
|
41
|
-
running heroku addons:create
|
|
41
|
+
running heroku addons:create sendgrid --app myapponheroku
|
|
42
42
|
"""
|
|
43
43
|
Then the stdout should contain:
|
|
44
44
|
"""
|
|
@@ -46,7 +46,7 @@ Feature: Run without errors
|
|
|
46
46
|
"""
|
|
47
47
|
Then the stdout should contain:
|
|
48
48
|
"""
|
|
49
|
-
running heroku addons:create newrelic
|
|
49
|
+
running heroku addons:create newrelic --app myapponheroku
|
|
50
50
|
"""
|
|
51
51
|
Then the stdout should contain:
|
|
52
52
|
"""
|
|
@@ -58,7 +58,7 @@ Feature: Run without errors
|
|
|
58
58
|
"""
|
|
59
59
|
Then the stdout should contain:
|
|
60
60
|
"""
|
|
61
|
-
running heroku pg:backups schedule DATABASE_URL --app myapponheroku
|
|
61
|
+
running heroku pg:backups schedule DATABASE_URL --at 02:00 America/Sao_Paulo --app myapponheroku
|
|
62
62
|
"""
|
|
63
63
|
Then the output should contain:
|
|
64
64
|
"""
|
|
File without changes
|
data/lib/pah/files/Gemfile
CHANGED
|
@@ -2,63 +2,62 @@ source 'https://rubygems.org'
|
|
|
2
2
|
ruby 'RUBY_VERSION'
|
|
3
3
|
|
|
4
4
|
gem 'rails', 'RAILS_VERSION'
|
|
5
|
-
gem 'puma', '2.11.
|
|
6
|
-
gem 'secure_headers', '
|
|
7
|
-
gem 'jquery-rails', '4.0.
|
|
5
|
+
gem 'puma', '2.11.3'
|
|
6
|
+
gem 'secure_headers', '2.2.2'
|
|
7
|
+
gem 'jquery-rails', '4.0.4'
|
|
8
8
|
gem 'turbolinks', '2.5.3'
|
|
9
|
-
gem 'jbuilder', '2.
|
|
9
|
+
gem 'jbuilder', '2.3.1'
|
|
10
10
|
gem 'slim-rails', '3.0.1'
|
|
11
|
-
gem 'pg', '0.18.
|
|
11
|
+
gem 'pg', '0.18.2'
|
|
12
12
|
gem 'sass-rails', '5.0.3'
|
|
13
13
|
gem 'coffee-rails', '4.1.0'
|
|
14
|
-
gem 'uglifier', '2.7.
|
|
14
|
+
gem 'uglifier', '2.7.1'
|
|
15
15
|
gem 'simple_form', '3.1.0'
|
|
16
16
|
gem 'flutie', '2.0.0'
|
|
17
|
-
gem 'bourbon', '4.
|
|
18
|
-
gem 'neat', '1.7.
|
|
17
|
+
gem 'bourbon', '4.2.3'
|
|
18
|
+
gem 'neat', '1.7.2'
|
|
19
19
|
gem 'bitters', '1.0.0'
|
|
20
20
|
gem 'refills', '0.1.0'
|
|
21
|
-
gem 'normalize-rails', '3.0.
|
|
21
|
+
gem 'normalize-rails', '3.0.3'
|
|
22
22
|
|
|
23
23
|
group :production, :staging do
|
|
24
24
|
gem 'rails_12factor', '0.0.3'
|
|
25
25
|
gem 'rack-canonical-host', '0.1.0'
|
|
26
|
-
gem '
|
|
27
|
-
gem '
|
|
28
|
-
gem 'rollbar', '1.4.0'
|
|
26
|
+
gem 'newrelic_rpm', '~> 3.12'
|
|
27
|
+
gem 'rollbar', '2.1.1'
|
|
29
28
|
gem 'librato-rails', '0.11.1'
|
|
30
29
|
end
|
|
31
30
|
|
|
32
31
|
group :development do
|
|
33
|
-
gem 'foreman', '0.
|
|
32
|
+
gem 'foreman', '0.78.0'
|
|
34
33
|
gem 'jumpup', '0.0.8'
|
|
35
34
|
gem 'jumpup-heroku', '0.0.6'
|
|
36
35
|
gem 'better_errors', '2.1.1'
|
|
37
36
|
gem 'binding_of_caller', '0.7.2'
|
|
38
|
-
gem 'letter_opener', '1.
|
|
39
|
-
gem 'bullet', '4.14.
|
|
37
|
+
gem 'letter_opener', '1.4.1'
|
|
38
|
+
gem 'bullet', '4.14.7'
|
|
40
39
|
gem 'quiet_assets', '1.1.0'
|
|
41
40
|
end
|
|
42
41
|
|
|
43
42
|
group :test do
|
|
44
|
-
gem 'shoulda-matchers', '2.
|
|
45
|
-
gem 'simplecov', '0.
|
|
43
|
+
gem 'shoulda-matchers', '2.8.0', require: false
|
|
44
|
+
gem 'simplecov', '0.10.0', require: false
|
|
46
45
|
gem 'email_spec', '1.6.0'
|
|
47
46
|
gem 'capybara', '2.4.4'
|
|
48
|
-
gem 'poltergeist', '1.
|
|
47
|
+
gem 'poltergeist', '1.6.0'
|
|
49
48
|
gem 'vcr', '2.9.3'
|
|
50
|
-
gem 'webmock', '1.
|
|
51
|
-
gem 'database_cleaner', '1.4.
|
|
49
|
+
gem 'webmock', '1.21.0'
|
|
50
|
+
gem 'database_cleaner', '1.4.1'
|
|
52
51
|
end
|
|
53
52
|
|
|
54
53
|
group :development, :test do
|
|
55
|
-
gem 'rspec-rails', '3.
|
|
54
|
+
gem 'rspec-rails', '3.3.3'
|
|
56
55
|
gem 'factory_girl_rails', '4.5.0'
|
|
57
|
-
gem 'pry-rails', '0.3.
|
|
56
|
+
gem 'pry-rails', '0.3.4'
|
|
58
57
|
gem 'dotenv-rails', '1.0.2'
|
|
59
58
|
gem 'awesome_print', '1.6.1'
|
|
60
59
|
gem 'spring-commands-rspec', '1.0.4'
|
|
61
|
-
gem 'byebug', '
|
|
62
|
-
gem 'web-console', '2.
|
|
63
|
-
gem 'spring', '1.
|
|
60
|
+
gem 'byebug', '5.0.0'
|
|
61
|
+
gem 'web-console', '2.2.1'
|
|
62
|
+
gem 'spring', '1.3.6'
|
|
64
63
|
end
|
data/lib/pah/rails_template.rb
CHANGED
|
@@ -22,12 +22,11 @@ runner.apply_n :capybara, "Adding capybara helpers\n"
|
|
|
22
22
|
runner.apply_n :generators, "Adding generators\n"
|
|
23
23
|
runner.apply_n :simple_form, "Configuring simple_form\n"
|
|
24
24
|
runner.apply_n :letter_opener, "Adding letter_opener\n"
|
|
25
|
-
runner.apply_n :
|
|
25
|
+
runner.apply_n :sendgrid, "Adding sendgrid\n"
|
|
26
26
|
runner.apply_n :bullet, "Setting up bullet\n"
|
|
27
27
|
runner.apply_n :locale, "Adding locale\n"
|
|
28
28
|
runner.apply_n :canonical_host, "Configuring canonical hosts\n"
|
|
29
29
|
runner.apply_n :puma, "Configuring Puma\n"
|
|
30
|
-
runner.apply_n :rack_timeout, "Setting up Rack::Timeout\n"
|
|
31
30
|
runner.apply_n :rack_deflater, "Setting up Rack::Deflater\n"
|
|
32
31
|
runner.apply_n :jumpup, "Setting up Jumpup\n"
|
|
33
32
|
runner.apply_n :newrelic, "Setting up New Relic\n"
|
data/lib/pah/templates/heroku.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class HerokuApp < Rails::Generators::AppGenerator
|
|
2
|
-
DEFAULT_ADDONS = %w(heroku-postgresql
|
|
3
|
-
|
|
2
|
+
DEFAULT_ADDONS = %w(heroku-postgresql logentries sendgrid rollbar newrelic
|
|
3
|
+
librato)
|
|
4
4
|
|
|
5
5
|
attr_reader :name, :description, :config
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ class HerokuApp < Rails::Generators::AppGenerator
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def schedule_backup
|
|
60
|
-
run "heroku pg:backups schedule DATABASE_URL --app #{name}"
|
|
60
|
+
run "heroku pg:backups schedule DATABASE_URL --at '02:00 America/Sao_Paulo' --app #{name}"
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def open
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Pah
|
|
2
|
+
module Templates
|
|
3
|
+
class Sendgrid < Pah::Template
|
|
4
|
+
def call
|
|
5
|
+
sendgrid_config = <<SENDGRID
|
|
6
|
+
|
|
7
|
+
# SendGrid config
|
|
8
|
+
config.action_mailer.default_url_options = { host: ENV['CANONICAL_HOST'] }
|
|
9
|
+
config.action_mailer.smtp_settings = {
|
|
10
|
+
address: 'smtp.sendgrid.net',
|
|
11
|
+
port: '587',
|
|
12
|
+
authentication: :plain,
|
|
13
|
+
user_name: ENV['SENDGRID_USERNAME'],
|
|
14
|
+
password: ENV['SENDGRID_PASSWORD'],
|
|
15
|
+
domain: 'heroku.com',
|
|
16
|
+
enable_starttls_auto: true
|
|
17
|
+
}
|
|
18
|
+
SENDGRID
|
|
19
|
+
|
|
20
|
+
inject_into_file 'config/environments/production.rb', sendgrid_config, before: /^end/, verbose: false
|
|
21
|
+
|
|
22
|
+
git add: 'config/environments/production.rb'
|
|
23
|
+
git_commit 'Add Sendgrid config.'
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
data/lib/pah/version.rb
CHANGED
data/pah.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
|
26
26
|
spec.add_development_dependency 'rake'
|
|
27
|
-
spec.add_development_dependency 'aruba'
|
|
27
|
+
spec.add_development_dependency 'aruba', '0.7.4'
|
|
28
28
|
spec.add_development_dependency 'thor'
|
|
29
29
|
spec.add_development_dependency 'pry'
|
|
30
30
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pah
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- HE:labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 4.2.
|
|
19
|
+
version: 4.2.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 4.2.
|
|
26
|
+
version: 4.2.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: colored
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -70,16 +70,16 @@ dependencies:
|
|
|
70
70
|
name: aruba
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - '='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
75
|
+
version: 0.7.4
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - '='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
82
|
+
version: 0.7.4
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: thor
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -145,12 +145,10 @@ files:
|
|
|
145
145
|
- features/layout.feature
|
|
146
146
|
- features/letter_opener.feature
|
|
147
147
|
- features/locale.feature
|
|
148
|
-
- features/mandrill.feature
|
|
149
148
|
- features/newrelic.feature
|
|
150
149
|
- features/public.feature
|
|
151
150
|
- features/puma.feature
|
|
152
151
|
- features/rack_deflater.feature
|
|
153
|
-
- features/rack_timeout.feature
|
|
154
152
|
- features/rails_works.feature
|
|
155
153
|
- features/readme.feature
|
|
156
154
|
- features/remove_unused_files.feature
|
|
@@ -160,6 +158,7 @@ files:
|
|
|
160
158
|
- features/runner.feature
|
|
161
159
|
- features/secret_token.feature
|
|
162
160
|
- features/secure_headers.feature
|
|
161
|
+
- features/sendgrid.feature
|
|
163
162
|
- features/simple_form.feature
|
|
164
163
|
- features/step_definitions/create_simple_app.rb
|
|
165
164
|
- features/step_definitions/file.rb
|
|
@@ -188,7 +187,6 @@ files:
|
|
|
188
187
|
- lib/pah/files/config/initializers/bullet.rb
|
|
189
188
|
- lib/pah/files/config/initializers/database_connection.rb
|
|
190
189
|
- lib/pah/files/config/initializers/jumpup_heroku.rb
|
|
191
|
-
- lib/pah/files/config/initializers/rack_timeout.rb
|
|
192
190
|
- lib/pah/files/config/locales/app.pt-BR.yml
|
|
193
191
|
- lib/pah/files/config/locales/pt-BR.yml
|
|
194
192
|
- lib/pah/files/config/locales/simple_form.pt-BR.yml
|
|
@@ -226,18 +224,17 @@ files:
|
|
|
226
224
|
- lib/pah/templates/layout.rb
|
|
227
225
|
- lib/pah/templates/letter_opener.rb
|
|
228
226
|
- lib/pah/templates/locale.rb
|
|
229
|
-
- lib/pah/templates/mandrill.rb
|
|
230
227
|
- lib/pah/templates/newrelic.rb
|
|
231
228
|
- lib/pah/templates/public.rb
|
|
232
229
|
- lib/pah/templates/puma.rb
|
|
233
230
|
- lib/pah/templates/rack_deflater.rb
|
|
234
|
-
- lib/pah/templates/rack_timeout.rb
|
|
235
231
|
- lib/pah/templates/readme.rb
|
|
236
232
|
- lib/pah/templates/rollbar.rb
|
|
237
233
|
- lib/pah/templates/rspec.rb
|
|
238
234
|
- lib/pah/templates/ruby_env.rb
|
|
239
235
|
- lib/pah/templates/secret_token.rb
|
|
240
236
|
- lib/pah/templates/secure_headers.rb
|
|
237
|
+
- lib/pah/templates/sendgrid.rb
|
|
241
238
|
- lib/pah/templates/simple_form.rb
|
|
242
239
|
- lib/pah/version.rb
|
|
243
240
|
- pah.gemspec
|
|
@@ -253,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
253
250
|
requirements:
|
|
254
251
|
- - ">="
|
|
255
252
|
- !ruby/object:Gem::Version
|
|
256
|
-
version: 2.2.
|
|
253
|
+
version: 2.2.2
|
|
257
254
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
255
|
requirements:
|
|
259
256
|
- - ">="
|
|
@@ -261,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
261
258
|
version: '0'
|
|
262
259
|
requirements: []
|
|
263
260
|
rubyforge_project:
|
|
264
|
-
rubygems_version: 2.4.
|
|
261
|
+
rubygems_version: 2.4.8
|
|
265
262
|
signing_key:
|
|
266
263
|
specification_version: 4
|
|
267
264
|
summary: A rails application template which born from Startup DEV and now is used
|
|
@@ -284,12 +281,10 @@ test_files:
|
|
|
284
281
|
- features/layout.feature
|
|
285
282
|
- features/letter_opener.feature
|
|
286
283
|
- features/locale.feature
|
|
287
|
-
- features/mandrill.feature
|
|
288
284
|
- features/newrelic.feature
|
|
289
285
|
- features/public.feature
|
|
290
286
|
- features/puma.feature
|
|
291
287
|
- features/rack_deflater.feature
|
|
292
|
-
- features/rack_timeout.feature
|
|
293
288
|
- features/rails_works.feature
|
|
294
289
|
- features/readme.feature
|
|
295
290
|
- features/remove_unused_files.feature
|
|
@@ -299,6 +294,7 @@ test_files:
|
|
|
299
294
|
- features/runner.feature
|
|
300
295
|
- features/secret_token.feature
|
|
301
296
|
- features/secure_headers.feature
|
|
297
|
+
- features/sendgrid.feature
|
|
302
298
|
- features/simple_form.feature
|
|
303
299
|
- features/step_definitions/create_simple_app.rb
|
|
304
300
|
- features/step_definitions/file.rb
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module Pah
|
|
2
|
-
module Templates
|
|
3
|
-
class Mandrill < Pah::Template
|
|
4
|
-
def call
|
|
5
|
-
mandrill_config = <<MANDRILL
|
|
6
|
-
|
|
7
|
-
# Mandrill config
|
|
8
|
-
config.action_mailer.default_url_options = { host: ENV['CANONICAL_HOST'] }
|
|
9
|
-
config.action_mailer.smtp_settings = {
|
|
10
|
-
address: 'smtp.mandrillapp.com',
|
|
11
|
-
port: '587',
|
|
12
|
-
authentication: :plain,
|
|
13
|
-
user_name: ENV['MANDRILL_USERNAME'],
|
|
14
|
-
password: ENV['MANDRILL_APIKEY'],
|
|
15
|
-
domain: 'heroku.com'
|
|
16
|
-
}
|
|
17
|
-
MANDRILL
|
|
18
|
-
|
|
19
|
-
inject_into_file 'config/environments/production.rb', mandrill_config, before: /^end/, verbose: false
|
|
20
|
-
|
|
21
|
-
git add: 'config/environments/production.rb'
|
|
22
|
-
git_commit 'Add Mandrill config.'
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module Pah
|
|
2
|
-
module Templates
|
|
3
|
-
class RackTimeout < Pah::Template
|
|
4
|
-
def call
|
|
5
|
-
copy_static_file 'config/initializers/rack_timeout.rb'
|
|
6
|
-
|
|
7
|
-
git add: 'config/initializers/rack_timeout.rb'
|
|
8
|
-
git_commit 'Add Rack::Timeout configuration.'
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|