bankai 0.12.1 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +5 -0
- data/bankai.gemspec +0 -1
- data/lib/bankai/generators/db_optimizations_generator.rb +1 -2
- data/lib/bankai/generators/mailer_generator.rb +1 -2
- data/lib/bankai/version.rb +3 -3
- data/templates/Gemfile.erb +42 -50
- data/templates/README.md.erb +2 -1
- data/templates/gitlab-ci.yml.erb +3 -1
- data/templates/spec_helper.rb +1 -0
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ede675387ab2019f8aa9e4694fff9d85db8b8f8de7d03a06a0ebcd76d2bde8
|
4
|
+
data.tar.gz: 84011bdc266f4c7f7b5b7de34e433126d72f7dd4517d4df623a288008d943b27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a3608a6c47f0b10e9e9436769b1944114893c7b4f63a4c6fc188bbf8672996cc99067845f22d5d3390e5da9e27ab401b73cc21ab1a1b7093b7e7bb5cf22904
|
7
|
+
data.tar.gz: a9715c62924cd1f6915d4eadf35ae37d4e96205af6baec84f03175552540db9d95c094eca6d3b8e74d16085eac822df94e031a0bb4a69fa8a831bb12cf043cad
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.6
|
data/README.md
CHANGED
data/bankai.gemspec
CHANGED
@@ -27,7 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
spec.add_development_dependency 'bundler', '~> 2.2.26'
|
31
30
|
spec.add_development_dependency 'bundler-audit'
|
32
31
|
spec.add_development_dependency 'overcommit'
|
33
32
|
spec.add_development_dependency 'rake', '~> 12.0'
|
@@ -10,8 +10,7 @@ module Bankai
|
|
10
10
|
inject_into_file(
|
11
11
|
'config/environments/development.rb',
|
12
12
|
configuration,
|
13
|
-
after: 'config.
|
14
|
-
"ActiveSupport::EventedFileUpdateChecker\n"
|
13
|
+
after: '# config.action_cable.disable_request_forgery_protection = true'
|
15
14
|
)
|
16
15
|
end
|
17
16
|
|
@@ -10,8 +10,7 @@ module Bankai
|
|
10
10
|
inject_into_file(
|
11
11
|
'config/environments/development.rb',
|
12
12
|
configuration,
|
13
|
-
after: 'config.
|
14
|
-
"ActiveSupport::EventedFileUpdateChecker\n"
|
13
|
+
after: '# config.action_cable.disable_request_forgery_protection = true'
|
15
14
|
)
|
16
15
|
end
|
17
16
|
|
data/lib/bankai/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Bankai
|
4
|
-
VERSION = '0.
|
4
|
+
VERSION = '0.13.1'
|
5
5
|
RUBY_VERSION = '2.6.7'
|
6
|
-
RAILS_VERSION = '
|
7
|
-
RUBOCOP_VERSION = '1.
|
6
|
+
RAILS_VERSION = '7.0.0'
|
7
|
+
RUBOCOP_VERSION = '1.24.1'
|
8
8
|
CAPISTRANO_VERSION = '3.16.0'
|
9
9
|
end
|
data/templates/Gemfile.erb
CHANGED
@@ -2,41 +2,46 @@ source 'https://rubygems.org'
|
|
2
2
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
4
|
ruby '<%= RUBY_VERSION -%>'
|
5
|
-
<% gemfile_entries.each do |gem| -%>
|
6
|
-
<% if gem.comment -%>
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
<%= gem.commented_out ? '# ' : '' %>gem '<%= gem.name %>'<%= %(, '#{gem.version}') if gem.version -%>
|
11
|
-
<% if gem.options.any? -%>
|
12
|
-
, <%= gem.options.map { |k,v|
|
13
|
-
"#{k}: #{v.inspect}" }.join(', ') %>
|
14
|
-
<% end -%>
|
6
|
+
<% gemfile_entries.each do |gemfile_entry| %>
|
7
|
+
<%= gemfile_entry %>
|
15
8
|
<% end -%>
|
9
|
+
<% unless options.minimal? -%>
|
16
10
|
|
17
|
-
# Use
|
18
|
-
# gem
|
19
|
-
<% unless skip_active_storage? -%>
|
11
|
+
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
|
12
|
+
# gem "kredis"
|
20
13
|
|
21
|
-
# Use
|
22
|
-
# gem
|
14
|
+
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
|
15
|
+
# gem "bcrypt", "~> 3.1.7"
|
23
16
|
<% end -%>
|
24
17
|
|
18
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
19
|
+
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
|
25
20
|
<% if depend_on_bootsnap? -%>
|
21
|
+
|
26
22
|
# Reduces boot times through caching; required in config/boot.rb
|
27
|
-
gem
|
23
|
+
gem "bootsnap", require: false
|
24
|
+
<% end -%>
|
25
|
+
<% unless skip_sprockets? || options.minimal? -%>
|
28
26
|
|
29
|
-
|
27
|
+
# Use Sass to process CSS
|
28
|
+
# gem "sassc-rails"
|
29
|
+
<% end -%>
|
30
|
+
<% unless skip_active_storage? -%>
|
31
|
+
|
32
|
+
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
|
33
|
+
# gem "image_processing", "~> 1.2"
|
34
|
+
<% end -%>
|
30
35
|
<%- if options.api? -%>
|
31
|
-
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
|
32
|
-
# gem 'rack-cors'
|
33
36
|
|
37
|
+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
|
38
|
+
# gem "rack-cors"
|
34
39
|
<%- end -%>
|
35
|
-
<% if RUBY_ENGINE ==
|
40
|
+
<% if RUBY_ENGINE == "ruby" -%>
|
41
|
+
|
36
42
|
group :development, :test do
|
37
|
-
#
|
38
|
-
|
39
|
-
gem 'byebug', platforms: %i[mri mingw x64_mingw]
|
43
|
+
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
|
44
|
+
gem "debug", platforms: %i[ mri mingw x64_mingw ]
|
40
45
|
|
41
46
|
gem 'brakeman', require: false
|
42
47
|
gem 'bundler-audit', require: false
|
@@ -59,28 +64,19 @@ group :development, :test do
|
|
59
64
|
|
60
65
|
gem 'bankai'
|
61
66
|
end
|
67
|
+
<% end -%>
|
62
68
|
|
63
69
|
group :development do
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
#
|
69
|
-
#
|
70
|
-
|
71
|
-
gem 'web-console', github: 'rails/web-console'
|
72
|
-
<%- else -%>
|
73
|
-
gem 'web-console', '>= 3.3.0'
|
74
|
-
<%- end -%>
|
70
|
+
<%- unless options.api? || options.skip_dev_gems? -%>
|
71
|
+
# Use console on exceptions pages [https://github.com/rails/web-console]
|
72
|
+
gem "web-console"
|
73
|
+
|
74
|
+
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
|
75
|
+
# gem "rack-mini-profiler"
|
76
|
+
|
75
77
|
<%- end -%>
|
76
|
-
|
77
|
-
#
|
78
|
-
# the background. Read more: https://github.com/rails/spring
|
79
|
-
gem 'spring'
|
80
|
-
<% if depend_on_listen? -%>
|
81
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
82
|
-
<% end -%>
|
83
|
-
<% end -%>
|
78
|
+
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
|
79
|
+
# gem "spring"
|
84
80
|
|
85
81
|
<% if options[:capistrano] -%>
|
86
82
|
gem 'capistrano', '<%= Bankai::CAPISTRANO_VERSION %>'
|
@@ -90,7 +86,7 @@ group :development do
|
|
90
86
|
# gem 'capistrano-passenger'
|
91
87
|
<% end -%>
|
92
88
|
|
93
|
-
gem 'annotate'
|
89
|
+
gem 'annotate'
|
94
90
|
gem 'bullet'
|
95
91
|
gem 'dotenv-rails'
|
96
92
|
gem 'letter_opener'
|
@@ -101,13 +97,9 @@ end
|
|
101
97
|
|
102
98
|
<%- if depends_on_system_test? -%>
|
103
99
|
group :test do
|
104
|
-
#
|
105
|
-
gem
|
106
|
-
gem
|
107
|
-
gem
|
100
|
+
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
|
101
|
+
gem "capybara"
|
102
|
+
gem "selenium-webdriver"
|
103
|
+
gem "webdrivers"
|
108
104
|
end
|
109
105
|
<%- end -%>
|
110
|
-
<% end -%>
|
111
|
-
|
112
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
113
|
-
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
|
data/templates/README.md.erb
CHANGED
@@ -135,7 +135,8 @@ bundle exec rake db:migrate
|
|
135
135
|
|
136
136
|
```
|
137
137
|
# 0.5.2 是目前的版本,之後有更新情參考錯誤訊息指示的版本
|
138
|
-
|
138
|
+
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix openssl)/lib
|
139
|
+
gem install mysql2 -v 0.5.2 -- --with-mysql-config=$(brew --prefix mysql@5.7)/bin/mysql_config
|
139
140
|
```
|
140
141
|
|
141
142
|
<%- end -%>
|
data/templates/gitlab-ci.yml.erb
CHANGED
data/templates/spec_helper.rb
CHANGED
@@ -5,6 +5,7 @@ if ENV.fetch('COVERAGE', false) || ENV.fetch('CI', false)
|
|
5
5
|
require 'simplecov-cobertura'
|
6
6
|
|
7
7
|
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter if ENV.fetch('GITLAB_CI', false)
|
8
|
+
SimpleCov.refuse_coverage_drop
|
8
9
|
|
9
10
|
SimpleCov.start 'rails' do
|
10
11
|
add_filter 'vendor'
|
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
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 5xRuby
|
@@ -9,22 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: bundler
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - "~>"
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 2.2.26
|
21
|
-
type: :development
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - "~>"
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: 2.2.26
|
28
14
|
- !ruby/object:Gem::Dependency
|
29
15
|
name: bundler-audit
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,14 +115,14 @@ dependencies:
|
|
129
115
|
requirements:
|
130
116
|
- - ">="
|
131
117
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
118
|
+
version: 7.0.0
|
133
119
|
type: :runtime
|
134
120
|
prerelease: false
|
135
121
|
version_requirements: !ruby/object:Gem::Requirement
|
136
122
|
requirements:
|
137
123
|
- - ">="
|
138
124
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
125
|
+
version: 7.0.0
|
140
126
|
description: The tool to generate Rails template for 5xRuby
|
141
127
|
email:
|
142
128
|
- hi@5xruby.tw
|
@@ -208,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
194
|
- !ruby/object:Gem::Version
|
209
195
|
version: '0'
|
210
196
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.1.6
|
212
198
|
signing_key:
|
213
199
|
specification_version: 4
|
214
200
|
summary: The Rails template for 5xRuby
|