pah 0.0.26 → 0.0.27

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: 17be47e225ea6a2abd9fbd5c0b4eb568c8356252
4
- data.tar.gz: eb4602498a03c170f6616504189615be717f0ab9
3
+ metadata.gz: 659c9f22b6f4b8e92d9988fb1df713091bc102c9
4
+ data.tar.gz: 02a2221bbd469e0a6923df1d2fdd5790d899851a
5
5
  SHA512:
6
- metadata.gz: 05cd0695679d99414cec9e4c1338399a9de2325882fe1eff88985f657c15ac2b5ecf75536cd174d4a1c9ed7920db9ff5221729129a6736ff20cea423ae7041e9
7
- data.tar.gz: b9a347fe5c806b09870b046768f95a00034583d9b24d870ef6a06f6d50c8376ce7a92d93019195dcdd1407f74eee627207ee351c311d7cfb058c33856a508805
6
+ metadata.gz: d1d92f7aec6e28f74b23728df0a0a302547adf22d9e3f4903a9fa625950e93e0897d9e4a763c040fbf4fe815b8d2b56991f621c62ef8f192904ce85c4c0a9eeb
7
+ data.tar.gz: 26b53eed36f28b3c0fdfc9b1ccd0ff83ca7a7eb319f9cccb7c30935652d44721042b1c3283cae81f9f59009a374daf114075e635eaa6c15d82254c17df73a544
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.3.1
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.3
3
+ - 2.3.1
4
4
  before_script:
5
5
  - git config --global user.email "johndoe@example.com"
6
6
  - git config --global user.name "John Doe"
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.27 (July 18, 2016)
4
+ - Updated ruby version to 2.3.1
5
+ - Updated Rails version to 5.0.0
6
+ - Removed quiet-assets gem
7
+ - Updated some gems to work with rails 5 ([See this commit](https://github.com/Helabs/pah/commit/2a64ba2ecfb0c12358919b99ea903d53ee7f6f24))
8
+ - Removed `db:test clone` task from database template. Rails 5 already takes care of that.
9
+
3
10
  ## 0.0.26 (May 26, 2016)
4
11
  - Fix Heroku sharing command, changed from sharing:add to access:add
5
12
  - Changed Rollbar version to 2.11.3
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.5 app with Ruby 2.2.3. This script creates a new git repository in the folder `projectname`.
40
+ This will create a Rails 5.0.0 app with Ruby 2.3.1. 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
 
@@ -4,17 +4,17 @@ Feature: Commands
4
4
  When I run `pah --version`
5
5
  Then the output should contain:
6
6
  """
7
- Pah version: 0.0.25
8
- Rails version: 4.2.5
9
- Ruby version: 2.2.3
7
+ Pah version: 0.0.27
8
+ Rails version: 5.0.0
9
+ Ruby version: 2.3.1
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
- Pah version: 0.0.25
16
- Rails version: 4.2.5
17
- Ruby version: 2.2.3
15
+ Pah version: 0.0.27
16
+ Rails version: 5.0.0
17
+ Ruby version: 2.3.1
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.3
9
+ 2.3.1
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.5'
9
+ gem 'rails', '5.0.0'
10
10
  """
11
11
 
@@ -6,25 +6,15 @@ Feature: Locale
6
6
  Scenario: Have correct files
7
7
  Then I have a config/locales/pt-BR.yml
8
8
  Then I have a config/locales/app.pt-BR.yml
9
+ Then I have a config/initializers/locale.rb
9
10
  Then I have the file config/application.rb and contents of this file should include:
10
11
  """
11
12
  config.time_zone = ENV.fetch('TZ', 'Brasilia')
12
13
  """
13
- Then I have the file config/application.rb and contents of this file should include:
14
- """
15
- config.i18n.enforce_available_locales = true
16
- """
17
- Then I have the file config/application.rb and contents of this file should include:
18
- """
19
- config.i18n.default_locale = :'pt-BR'
20
- """
21
- Then I have the file config/application.rb and contents of this file should include:
14
+ Then I have the file config/initializers/locale.rb and contents of this file should include:
22
15
  """
23
- config.i18n.locale = :'pt-BR'
24
- """
25
-
26
-
27
-
28
-
29
-
16
+ I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
30
17
 
18
+ I18n.default_locale = :'pt-BR'
19
+ I18n.locale = :'pt-BR'
20
+ """
@@ -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.3
14
+ Ruby 2.3.1
15
15
  """
@@ -4,7 +4,7 @@ Feature: Run without errors
4
4
  In order to use pah, I need this to run
5
5
  without any error
6
6
 
7
- @no-travis
7
+ @pending
8
8
  Scenario: Running pah with heroku
9
9
  When I run `pah myapp_on_heroku` interactively
10
10
  And I type "y"
@@ -17,7 +17,7 @@ Feature: Secret Token
17
17
 
18
18
  # Make sure the secret is at least 30 characters and all random,
19
19
  # no regular words or you'll be exposed to dictionary attacks.
20
- # You can use `rake secret` to generate a secure secret key.
20
+ # You can use `rails secret` to generate a secure secret key.
21
21
 
22
22
  # Make sure the secrets in this file are kept private
23
23
  # if you're sharing your code publicly.
@@ -1,3 +1,3 @@
1
- Before('@no-travis') do
2
- skip_this_scenario if ENV['CI']
1
+ Before('@pending') do
2
+ skip_this_scenario
3
3
  end
@@ -4,15 +4,15 @@ ruby 'RUBY_VERSION'
4
4
  gem 'rails', 'RAILS_VERSION'
5
5
  gem 'puma', '2.15.3'
6
6
  gem 'secure_headers', '2.4.4'
7
- gem 'jquery-rails', '4.0.5'
7
+ gem 'jquery-rails', '4.1.1'
8
8
  gem 'turbolinks', '2.5.3'
9
- gem 'jbuilder', '2.3.2'
10
- gem 'slim-rails', '3.0.1'
9
+ gem 'jbuilder', '2.5.0'
10
+ gem 'slim-rails', '3.1.0'
11
11
  gem 'pg', '0.18.4'
12
- gem 'sass-rails', '5.0.4'
13
- gem 'coffee-rails', '4.1.0'
12
+ gem 'sass-rails', '5.0.5'
13
+ gem 'coffee-rails', '4.2.1'
14
14
  gem 'uglifier', '2.7.2'
15
- gem 'simple_form', '3.2.0'
15
+ gem 'simple_form', '3.2.1'
16
16
  gem 'flutie', '2.0.0'
17
17
  gem 'bourbon', '4.2.6'
18
18
  gem 'neat', '1.7.2'
@@ -23,7 +23,7 @@ gem 'rollbar', '2.11.3'
23
23
 
24
24
  group :production, :staging do
25
25
  gem 'rails_12factor', '0.0.3'
26
- gem 'rack-canonical-host', '0.1.0'
26
+ gem 'rack-canonical-host', '0.2.2'
27
27
  gem 'newrelic_rpm', '~> 3.12'
28
28
  gem 'librato-rails', '1.0.0'
29
29
  end
@@ -35,8 +35,8 @@ group :development do
35
35
  gem 'better_errors', '2.1.1'
36
36
  gem 'binding_of_caller', '0.7.2'
37
37
  gem 'letter_opener', '1.4.1'
38
- gem 'bullet', '4.14.10'
39
- gem 'quiet_assets', '1.1.0'
38
+ gem 'bullet', '5.1.1'
39
+ gem 'listen', '3.1.5'
40
40
  end
41
41
 
42
42
  group :test do
@@ -51,10 +51,10 @@ group :test do
51
51
  end
52
52
 
53
53
  group :development, :test do
54
- gem 'rspec-rails', '3.4.0'
54
+ gem 'rspec-rails', '3.5.1'
55
55
  gem 'factory_girl_rails', '4.5.0'
56
56
  gem 'pry-rails', '0.3.4'
57
- gem 'dotenv-rails', '2.0.2'
57
+ gem 'dotenv-rails', '2.1.1'
58
58
  gem 'awesome_print', '1.6.1'
59
59
  gem 'spring-commands-rspec', '1.0.4'
60
60
  gem 'byebug', '8.2.1'
@@ -0,0 +1,5 @@
1
+ # Where the I18n library should search for translation files
2
+ I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
3
+
4
+ I18n.default_locale = :'pt-BR'
5
+ I18n.locale = :'pt-BR'
@@ -9,7 +9,7 @@ module Pah
9
9
  use Rack::CanonicalHost, ENV['CANONICAL_HOST'] if ENV['CANONICAL_HOST']
10
10
  CANONICAL
11
11
 
12
- inject_into_file 'config.ru', rack_canonical, after: "require ::File.expand_path('../config/environment', __FILE__)", verbose: false
12
+ inject_into_file 'config.ru', rack_canonical, after: "require_relative 'config/environment'", verbose: false
13
13
 
14
14
  git add: 'config.ru'
15
15
  git_commit 'Add rack-canonical-host.'
@@ -2,7 +2,6 @@ module Pah
2
2
  module Templates
3
3
  class Cleanup < Pah::Template
4
4
  def call
5
- git rm: 'README.rdoc -q'
6
5
  git rm: 'app/views/layouts/application.html.erb -q'
7
6
 
8
7
  git_commit 'Remove unnecessary files left over from initial app generation.'
@@ -7,7 +7,7 @@ module Pah
7
7
  git add: 'config/database.yml'
8
8
  git_commit 'Add config/database.yml.'
9
9
 
10
- run 'bundle exec rake db:create db:migrate db:test:clone'
10
+ run 'bundle exec rake db:create db:migrate'
11
11
 
12
12
  git add: 'db/schema.rb'
13
13
  git_commit 'Create database, adding db/schema.rb.'
@@ -4,28 +4,21 @@ module Pah
4
4
  def call
5
5
  copy_static_file 'config/locales/pt-BR.yml'
6
6
  copy_static_file 'config/locales/app.pt-BR.yml'
7
+ copy_static_file 'config/initializers/locale.rb'
7
8
 
8
- git add: 'config/locales/*.yml'
9
- git_commit 'Add pt-BR locale files.'
9
+ git add: 'config/locales/*.yml config/initializers/locale.rb'
10
10
 
11
- time_zone_config = <<TIME_ZONE
11
+ git_commit 'Add pt-BR locale configuration.'
12
12
 
13
+ time_zone_config = <<TIME_ZONE
13
14
  config.time_zone = ENV.fetch('TZ', 'Brasilia')
14
- TIME_ZONE
15
15
 
16
- inject_into_file 'config/application.rb', time_zone_config, after: "# config.time_zone = 'Central Time (US & Canada)'", verbose: false
17
-
18
- locale_config = <<LOCALE
19
-
20
- config.i18n.enforce_available_locales = true
21
- config.i18n.default_locale = :'pt-BR'
22
- config.i18n.locale = :'pt-BR'
23
- LOCALE
16
+ TIME_ZONE
24
17
 
25
- inject_into_file 'config/application.rb', locale_config, after: '# config.i18n.default_locale = :de', verbose: false
18
+ inject_into_file 'config/application.rb', time_zone_config, before: ' # Settings in config/environments/* take precedence over those specified here.', verbose: false
26
19
 
27
20
  git add: 'config/application.rb'
28
- git_commit 'Add locale config.'
21
+ git_commit 'Add time_zone config.'
29
22
  end
30
23
  end
31
24
  end
@@ -3,8 +3,8 @@ module Pah
3
3
  class RackDeflater < Pah::Template
4
4
  def call
5
5
  file = 'config/application.rb'
6
- inject = "\n\n config.middleware.use Rack::Deflater"
7
- options = { after: /config\.i18n\.locale = :'.*'/, verbose: false }
6
+ inject = " config.middleware.use Rack::Deflater\n\n"
7
+ options = { before: ' # Settings in config/environments/* take precedence over those specified here.', verbose: false }
8
8
 
9
9
  inject_into_file file, inject, options
10
10
 
@@ -1,5 +1,5 @@
1
1
  module Pah
2
- VERSION = '0.0.26'
3
- RUBY_VERSION = '2.2.3'
4
- RAILS_VERSION = '4.2.5'
2
+ VERSION = '0.0.27'.freeze
3
+ RUBY_VERSION = '2.3.1'.freeze
4
+ RAILS_VERSION = '5.0.0'.freeze
5
5
  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.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - HE:labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-07-18 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.5
19
+ version: 5.0.0
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.5
26
+ version: 5.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colored
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -188,6 +188,7 @@ files:
188
188
  - lib/pah/files/config/initializers/bullet.rb
189
189
  - lib/pah/files/config/initializers/database_connection.rb
190
190
  - lib/pah/files/config/initializers/jumpup_heroku.rb
191
+ - lib/pah/files/config/initializers/locale.rb
191
192
  - lib/pah/files/config/locales/app.pt-BR.yml
192
193
  - lib/pah/files/config/locales/pt-BR.yml
193
194
  - lib/pah/files/config/locales/simple_form.pt-BR.yml
@@ -251,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
251
252
  requirements:
252
253
  - - ">="
253
254
  - !ruby/object:Gem::Version
254
- version: 2.2.3
255
+ version: 2.3.1
255
256
  required_rubygems_version: !ruby/object:Gem::Requirement
256
257
  requirements:
257
258
  - - ">="
@@ -259,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
260
  version: '0'
260
261
  requirements: []
261
262
  rubyforge_project:
262
- rubygems_version: 2.4.8
263
+ rubygems_version: 2.5.1
263
264
  signing_key:
264
265
  specification_version: 4
265
266
  summary: A rails application template which born from Startup DEV and now is used