railman 0.3.5 → 0.3.6
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/lib/railman/cli.rb +2 -0
- data/lib/railman/version.rb +1 -1
- data/templates/rails_app/.env.example.test.tt +33 -0
- data/templates/rails_app/jenkins/all_tests.sh +11 -0
- data/templates/rails_app/jenkins/brakeman.sh +7 -0
- data/templates/rails_app/jenkins/bundle_audit.sh +8 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df71dfaec8a1ea97cead5089e36ceea6e5cfb843
|
4
|
+
data.tar.gz: f752acd217dc781628d124b8cd69fc92c65a981d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ff041b1935eaf77ee7b65388365e4eca0a893e08aa85046aa6289f0b9424f7813994a4852bcc54eb53f0efe90c561369cf08d9ebac9eb5de659a6c30c293981
|
7
|
+
data.tar.gz: dcba77547428b8be5c1eef1e589aad0ef83ef0661e20c6a0553cd2a083c887401d855f2b0eb9dc9b9a9d544e4ac65efb0dd88bc3a341c2c4e7cea768e92ecd23
|
data/lib/railman/cli.rb
CHANGED
@@ -81,6 +81,8 @@ module Railman
|
|
81
81
|
@rake_secret = Railman::Secret.generate_secret
|
82
82
|
@unicorn_behind_nginx = false
|
83
83
|
template "rails_app/.env.example.development.tt", "#{@config.app_name}/.env"
|
84
|
+
@rake_secret = Railman::Secret.generate_secret
|
85
|
+
template "rails_app/.env.example.test.tt", "#{@config.app_name}/.env.example.test"
|
84
86
|
else
|
85
87
|
directory "rails_app", @config.app_name, exclude_pattern: /home_controller|index\.html\.erb/
|
86
88
|
end
|
data/lib/railman/version.rb
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Put server-specific environment variables here
|
2
|
+
# .env is loaded by the dotenv gem on startup
|
3
|
+
# Don't commit this file to Git !!! Copy from .env.example.production and modify for each machine
|
4
|
+
|
5
|
+
# Application settings
|
6
|
+
APP_NAME = '<%= @config.app_name %>'
|
7
|
+
|
8
|
+
|
9
|
+
# Database settings
|
10
|
+
DB_USER = 'user'
|
11
|
+
DB_PASSWORD = 'password'
|
12
|
+
|
13
|
+
|
14
|
+
# Session secret - generate with: rake secret
|
15
|
+
SECRET_TOKEN = '<%= @rake_secret %>'
|
16
|
+
|
17
|
+
|
18
|
+
# Where to send exceptions and other admin emails
|
19
|
+
ADMIN_EMAIL = '<%= @config.admin_email %>'
|
20
|
+
|
21
|
+
|
22
|
+
# Exception notification settings
|
23
|
+
EXCEPTION_NOTIFICATION_EMAIL_PREFIX = '[<%= @config.class_name %>] '
|
24
|
+
EXCEPTION_NOTIFICATION_SENDER = 'server@<%= @config.domain %>'
|
25
|
+
|
26
|
+
|
27
|
+
# Unicorn settings
|
28
|
+
UNICORN_BEHIND_NGINX = true
|
29
|
+
# UNICORN_PORT = 3000
|
30
|
+
|
31
|
+
|
32
|
+
# Rails environment
|
33
|
+
RAILS_ENV = 'test'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
export PATH="$HOME/.rbenv/bin:$PATH"
|
3
|
+
eval "$(rbenv init -)"
|
4
|
+
|
5
|
+
rm -rf test/coverage
|
6
|
+
rm -rf test/screenshots
|
7
|
+
rm -rf test/reports
|
8
|
+
cp -f .env.example.test .env
|
9
|
+
bundle install
|
10
|
+
RAILS_ENV=test rake db:test:prepare
|
11
|
+
RAILS_ENV=test HEADLESS=true COVERAGE=true bundle exec rake test
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- railman.gemspec
|
164
164
|
- templates/rails_app/.env.example.development.tt
|
165
165
|
- templates/rails_app/.env.example.production.tt
|
166
|
+
- templates/rails_app/.env.example.test.tt
|
166
167
|
- templates/rails_app/.envrc
|
167
168
|
- templates/rails_app/.gitignore
|
168
169
|
- templates/rails_app/.ruby-version
|
@@ -227,6 +228,9 @@ files:
|
|
227
228
|
- templates/rails_app/config/sidekiq.yml
|
228
229
|
- templates/rails_app/config/unicorn.rb.tt
|
229
230
|
- templates/rails_app/db/seeds.rb
|
231
|
+
- templates/rails_app/jenkins/all_tests.sh
|
232
|
+
- templates/rails_app/jenkins/brakeman.sh
|
233
|
+
- templates/rails_app/jenkins/bundle_audit.sh
|
230
234
|
- templates/rails_app/lib/assets/.keep
|
231
235
|
- templates/rails_app/lib/tasks/.keep
|
232
236
|
- templates/rails_app/log/.keep
|