bankai 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bankai/builder.rb +13 -9
- data/lib/bankai/generator.rb +1 -0
- data/lib/bankai/version.rb +1 -1
- data/templates/gitlab-ci.yml.erb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abd95d356e3fed8567f7f1278c5979d98bc653be99535bd44d79d7da2290de73
|
4
|
+
data.tar.gz: fe2f340a3cc31a4181ab359ad5cd1d4941b58240564319cf7a2cd899793cd496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf53b2d211cfb085056a55e27240c0afe7777a2df949543f46c5637e1e3ee9277018eafb430e88cbe80a0cddcec9f55f94059efa956ca0b623e6ad0d719167b1
|
7
|
+
data.tar.gz: e51c62d8e84c94e3cc252b5fe68922c5e550a2c9208bebf773b28231eff51f5922ae612215524a9b9649eb3feae2cc5789efa732354f58759680f8652808e239
|
data/lib/bankai/builder.rb
CHANGED
@@ -25,19 +25,24 @@ module Bankai
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
def configure_puma_dev
|
29
|
+
application(nil, env: 'development') do
|
30
|
+
"config.hosts << '.test'"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
28
34
|
def configure_quiet_assets
|
29
35
|
return if options[:api]
|
30
36
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
inject_into_class 'config/application.rb', 'Application', config
|
37
|
+
application do
|
38
|
+
'config.assets.quiet = true'
|
39
|
+
end
|
36
40
|
end
|
37
41
|
|
38
42
|
# rubocop:disable Metrics/MethodLength
|
39
43
|
def configure_generators
|
40
|
-
|
44
|
+
application do
|
45
|
+
<<-RUBY
|
41
46
|
config.generators do |generate|
|
42
47
|
generate.helper false
|
43
48
|
generate.javascripts false
|
@@ -47,9 +52,8 @@ module Bankai
|
|
47
52
|
generate.test_framework :rspec
|
48
53
|
generate.view_specs false
|
49
54
|
end
|
50
|
-
|
51
|
-
|
52
|
-
inject_into_class 'config/application.rb', 'Application', config
|
55
|
+
RUBY
|
56
|
+
end
|
53
57
|
end
|
54
58
|
|
55
59
|
def setup_default_directories
|
data/lib/bankai/generator.rb
CHANGED
data/lib/bankai/version.rb
CHANGED
data/templates/gitlab-ci.yml.erb
CHANGED
@@ -3,9 +3,11 @@ image: ruby:<%= RUBY_VERSION %>
|
|
3
3
|
variables:
|
4
4
|
RAILS_ENV: test
|
5
5
|
NODE_VERSION: 12.13.1
|
6
|
+
BUNDLER_VERSION: 2.1.4
|
6
7
|
<%- if pg? -%>
|
7
8
|
POSTGRES_DB: <%= app_name %>
|
8
|
-
|
9
|
+
POSTGRES_PASSWORD: postgres
|
10
|
+
DATABASE_URL: "postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/$POSTGRES_DB"
|
9
11
|
<%- end -%>
|
10
12
|
<%- if mysql? -%>
|
11
13
|
MYSQL_DATABASE: <%= app_name %>
|
@@ -16,6 +18,7 @@ variables:
|
|
16
18
|
<%- end -%>
|
17
19
|
|
18
20
|
.install_ruby_gems: &install_ruby_gems
|
21
|
+
- gem install bundler -v ${BUNDLER_VERSION}
|
19
22
|
- bundle install --path vendor
|
20
23
|
|
21
24
|
.install_nodejs: &install_nodejs
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bankai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 5xRuby
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-04-
|
12
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|