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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd1b206e5efc0376acd011667d50e997ccd8ed81d18673056f95007166b198ea
4
- data.tar.gz: c04e04dfca974e26fd015494e238910d93a03cabbd974db01479fd6c58d63b47
3
+ metadata.gz: abd95d356e3fed8567f7f1278c5979d98bc653be99535bd44d79d7da2290de73
4
+ data.tar.gz: fe2f340a3cc31a4181ab359ad5cd1d4941b58240564319cf7a2cd899793cd496
5
5
  SHA512:
6
- metadata.gz: d7bd93f6e4816f93fb97b3be8890b8bd9a514ba1a447d25dcf1343d9401b6a546cc41469ce3c5eeebca28d0bd9ec3b002eeee9b1e12af518fe9e08d27304ac9f
7
- data.tar.gz: 964c0e46b4333ce589b18fac16d175da7ac7720083cdcf419461d3c956d80ca4a2dc6f2c4d94aa2eb5ecd97920759dc514a3327a50a3a12b49265bcc0611c2c0
6
+ metadata.gz: cf53b2d211cfb085056a55e27240c0afe7777a2df949543f46c5637e1e3ee9277018eafb430e88cbe80a0cddcec9f55f94059efa956ca0b623e6ad0d719167b1
7
+ data.tar.gz: e51c62d8e84c94e3cc252b5fe68922c5e550a2c9208bebf773b28231eff51f5922ae612215524a9b9649eb3feae2cc5789efa732354f58759680f8652808e239
@@ -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
- config = <<-RUBY
32
- config.assets.quiet = true
33
- RUBY
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
- config = <<-RUBY
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
- RUBY
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
@@ -49,6 +49,7 @@ module Bankai
49
49
  def setup_development_environment
50
50
  say 'Setting up the development environment'
51
51
  build :configure_quiet_assets
52
+ build :configure_puma_dev
52
53
  build :configure_generators
53
54
  build :clear_seed_file
54
55
  # TODO: Add setup script
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bankai
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  RUBY_VERSION = '2.6.6'
6
6
  RAILS_VERSION = '6.0.2'
7
7
  RUBOCOP_VERSION = '0.81.0'
@@ -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
- DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
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.0
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-17 00:00:00.000000000 Z
12
+ date: 2020-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler