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 +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/features/commands.feature +6 -6
- data/features/env.feature +1 -1
- data/features/gemfile.feature +1 -1
- data/features/locale.feature +6 -16
- data/features/readme.feature +1 -1
- data/features/runner.feature +1 -1
- data/features/secret_token.feature +1 -1
- data/features/support/hooks.rb +2 -2
- data/lib/pah/files/Gemfile +11 -11
- data/lib/pah/files/config/initializers/locale.rb +5 -0
- data/lib/pah/templates/canonical_host.rb +1 -1
- data/lib/pah/templates/cleanup.rb +0 -1
- data/lib/pah/templates/database.rb +1 -1
- data/lib/pah/templates/locale.rb +7 -14
- data/lib/pah/templates/rack_deflater.rb +2 -2
- data/lib/pah/version.rb +3 -3
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 659c9f22b6f4b8e92d9988fb1df713091bc102c9
|
4
|
+
data.tar.gz: 02a2221bbd469e0a6923df1d2fdd5790d899851a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d92f7aec6e28f74b23728df0a0a302547adf22d9e3f4903a9fa625950e93e0897d9e4a763c040fbf4fe815b8d2b56991f621c62ef8f192904ce85c4c0a9eeb
|
7
|
+
data.tar.gz: 26b53eed36f28b3c0fdfc9b1ccd0ff83ca7a7eb319f9cccb7c30935652d44721042b1c3283cae81f9f59009a374daf114075e635eaa6c15d82254c17df73a544
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
|
data/features/commands.feature
CHANGED
@@ -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.
|
8
|
-
Rails version:
|
9
|
-
Ruby version: 2.
|
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.
|
16
|
-
Rails version:
|
17
|
-
Ruby version: 2.
|
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`
|
data/features/env.feature
CHANGED
data/features/gemfile.feature
CHANGED
data/features/locale.feature
CHANGED
@@ -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/
|
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
|
-
|
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
|
+
"""
|
data/features/readme.feature
CHANGED
data/features/runner.feature
CHANGED
@@ -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 `
|
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.
|
data/features/support/hooks.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
Before('@
|
2
|
-
skip_this_scenario
|
1
|
+
Before('@pending') do
|
2
|
+
skip_this_scenario
|
3
3
|
end
|
data/lib/pah/files/Gemfile
CHANGED
@@ -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.
|
7
|
+
gem 'jquery-rails', '4.1.1'
|
8
8
|
gem 'turbolinks', '2.5.3'
|
9
|
-
gem 'jbuilder', '2.
|
10
|
-
gem 'slim-rails', '3.0
|
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.
|
13
|
-
gem 'coffee-rails', '4.1
|
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.
|
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.
|
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', '
|
39
|
-
gem '
|
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.
|
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.
|
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'
|
@@ -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: "
|
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.'
|
@@ -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
|
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.'
|
data/lib/pah/templates/locale.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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',
|
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
|
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 = "
|
7
|
-
options = {
|
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
|
|
data/lib/pah/version.rb
CHANGED
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.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-
|
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:
|
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:
|
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.
|
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.
|
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
|