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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 972b6d870ebb28ab6d2961182423d7f80a8a4233
4
- data.tar.gz: 2fd33d8f15d13884f5504419bb7fa79b4b9e7e47
3
+ metadata.gz: 414dcaac0cbbb31384535d2102c70ebdfc56f6ee
4
+ data.tar.gz: d935551a14c8ccef0ce2588182a8b9d5c386dd87
5
5
  SHA512:
6
- metadata.gz: 2e34e37fb95cefe7114379a3b3f2f67908c8409f568a035c38453da5d3a10d853fdeb74284b9784d89d46318404fd83a86dfd7c71e9833948206a0a5abf196db
7
- data.tar.gz: aa3909a76296a02667d7003332347ddbadd6733b6ac4422a7797dc0286d74bea025ed3d41920b15091d9e22f4d5cadba6c9ab8c6c49d8e2fbc278bd045c96299
6
+ metadata.gz: b67278d94f1e6eae7de75f8b0f6227c275e6d44da5d1bd0da1e49e3dee7c9455922fd0efba61b57d0e4f9389a12ed4d55ff224d9e404719c15a10eb74a50feaf
7
+ data.tar.gz: 46f1d92417c7499ee526dfc621d45f25ec0bb9100caed2596ff066696374da96e08f01a8ae7e6858cccb456099cd69cb0e1417a0c76150aa7c397b88a9ad763f
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.2
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
3
+ - 2.2.2
4
4
  before_script:
5
5
  - git config --global user.email "johndoe@example.com"
6
6
  - git config --global user.name "John Doe"
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.0.24 (Unreleased)
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2014 HE:labs
1
+ Copyright (c) 2013-2015 HE:labs
2
2
 
3
3
  MIT License
4
4
 
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.0 app with Ruby 2.2.1. This script creates a new git repository in the folder `projectname`.
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
 
@@ -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.0
9
- Ruby version: 2.2.1
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.0
17
- Ruby version: 2.2.1
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`
@@ -6,7 +6,7 @@ Feature: Env files
6
6
  Scenario: Create env files
7
7
  Then I have the file .ruby-version and contents of this file should be:
8
8
  """
9
- 2.2.1
9
+ 2.2.2
10
10
 
11
11
  """
12
12
  Then I have the file .ruby-gemset and contents of this file should be:
@@ -6,6 +6,6 @@ Feature: Gemfile
6
6
  Scenario: Correct gems on gemfile
7
7
  Then I have the file Gemfile and contents of this file should include:
8
8
  """
9
- gem 'rails', '4.2.0'
9
+ gem 'rails', '4.2.3'
10
10
  """
11
11
 
@@ -11,5 +11,5 @@ Feature: README
11
11
  """
12
12
  Then I have the file README.md and contents of this file should include:
13
13
  """
14
- Ruby 2.2.1
14
+ Ruby 2.2.2
15
15
  """
@@ -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:dev --app myapponheroku
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 mandrill:starter --app myapponheroku
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:wayne --app myapponheroku
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
  """
@@ -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.1'
6
- gem 'secure_headers', '1.4.1'
7
- gem 'jquery-rails', '4.0.3'
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.2.6'
9
+ gem 'jbuilder', '2.3.1'
10
10
  gem 'slim-rails', '3.0.1'
11
- gem 'pg', '0.18.1'
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.0'
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.1.1'
18
- gem 'neat', '1.7.1'
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.1'
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 'rack-timeout', github: 'kch/rack-timeout', ref: '83ca9f5141c1fdcb626820b1601c406e3a3a560a'
27
- gem 'newrelic_rpm', '3.9.9.275'
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.77.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.3.0'
39
- gem 'bullet', '4.14.0'
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.7.0', require: false
45
- gem 'simplecov', '0.9.1', require: false
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.5.1'
47
+ gem 'poltergeist', '1.6.0'
49
48
  gem 'vcr', '2.9.3'
50
- gem 'webmock', '1.20.4'
51
- gem 'database_cleaner', '1.4.0'
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.1.0'
54
+ gem 'rspec-rails', '3.3.3'
56
55
  gem 'factory_girl_rails', '4.5.0'
57
- gem 'pry-rails', '0.3.2'
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', '3.5.1'
62
- gem 'web-console', '2.0.0'
63
- gem 'spring', '1.2.0'
60
+ gem 'byebug', '5.0.0'
61
+ gem 'web-console', '2.2.1'
62
+ gem 'spring', '1.3.6'
64
63
  end
@@ -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 :mandrill, "Adding mandrill\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"
@@ -1,6 +1,6 @@
1
1
  class HerokuApp < Rails::Generators::AppGenerator
2
- DEFAULT_ADDONS = %w(heroku-postgresql:dev logentries
3
- mandrill:starter rollbar newrelic:wayne librato)
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
@@ -1,5 +1,5 @@
1
1
  module Pah
2
- VERSION = '0.0.23'
3
- RUBY_VERSION = '2.2.1'
4
- RAILS_VERSION = '4.2.0'
2
+ VERSION = '0.0.24'
3
+ RUBY_VERSION = '2.2.2'
4
+ RAILS_VERSION = '4.2.3'
5
5
  end
@@ -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.23
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-06-12 00:00:00.000000000 Z
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.0
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.0
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: '0'
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: '0'
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.1
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.6
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,8 +0,0 @@
1
- @no-clobber
2
- Feature: Rack Timeout
3
- Background:
4
- Given I have created the app "myapp" with pah
5
-
6
- Scenario: Have correct files
7
- Then I have a config/initializers/rack_timeout.rb
8
-
@@ -1,3 +0,0 @@
1
- if defined? Rack::Timeout
2
- Rack::Timeout.timeout = Integer(ENV['RACK_TIMEOUT'] || 10) # seconds
3
- end
@@ -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