bankai 0.12.1 → 0.13.0

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: 9a6b1cb1c6a50602163dc85a7bd042189ec388bc215c8a2f8060a9ce84323d6b
4
- data.tar.gz: 2a4f7de2291eaa6f1441affa1ea4f5dce0452a3a5d953c5e880266d9b45cc37c
3
+ metadata.gz: 1d0da7ded777600e85a5db17f10531070903d05eb40c0e89237886e640f587ed
4
+ data.tar.gz: d802dc97d4210e38dfcd5bd56968d45883fc8c3df4a54b56d788515581d7329b
5
5
  SHA512:
6
- metadata.gz: c13a49b6e7e6e01d87b915007c93a0d3efe5a137494b064526a771a40c6c691a1fe76fc543d29681966741e450b2201136941c05727a9bdb707e3b81535be19c
7
- data.tar.gz: 37929709a79426fb405ff059e8d02051aff5fc0f087b7c6a19adb9fecc0285f9761147641813d9532c66ded7b06739c592a816b9546a660120840fce0d2260dd
6
+ metadata.gz: a16b8787787d64fd10f9724684adb551780f9ed22523dcb567d97cddd28ac5dbb6423307b0a529452c6970213aae025c55181d5d91b57f97c6b72a2a8896afa3
7
+ data.tar.gz: 80b26408614d15d0c6fff58f591abb5c6506b09c07d34290ad1a15aa1d332d126c5e17bf166e5b4ba82d7d28b8e053ee50f048afb0b6d13c42c0f26619eed74e
data/README.md CHANGED
@@ -17,6 +17,11 @@ The bootstrap your rails project
17
17
  bankai projectname
18
18
  ```
19
19
 
20
+ ## Requirement
21
+
22
+ * `~> 0.13` required `rails >= 7.0`
23
+ * `<= 0.12` required `rails >= 5.2`
24
+
20
25
  ## Gemfile
21
26
 
22
27
  * [Oj](http://www.ohler.com/oj/)
@@ -10,8 +10,7 @@ module Bankai
10
10
  inject_into_file(
11
11
  'config/environments/development.rb',
12
12
  configuration,
13
- after: 'config.file_watcher = ' \
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.file_watcher = ' \
14
- "ActiveSupport::EventedFileUpdateChecker\n"
13
+ after: '# config.action_cable.disable_request_forgery_protection = true'
15
14
  )
16
15
  end
17
16
 
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bankai
4
- VERSION = '0.12.1'
4
+ VERSION = '0.13.0'
5
5
  RUBY_VERSION = '2.6.7'
6
- RAILS_VERSION = '5.2.0'
7
- RUBOCOP_VERSION = '1.9.1'
6
+ RAILS_VERSION = '7.0.0'
7
+ RUBOCOP_VERSION = '1.24.1'
8
8
  CAPISTRANO_VERSION = '3.16.0'
9
9
  end
@@ -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
- # <%= gem.comment %>
9
- <% end -%>
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 ActiveModel has_secure_password
18
- # gem 'bcrypt', '~> 3.1.7'
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 ActiveStorage variant
22
- # gem 'mini_magick', '~> 4.8'
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 'bootsnap', '>= 1.1.0', require: false
23
+ gem "bootsnap", require: false
24
+ <% end -%>
25
+ <% unless skip_sprockets? || options.minimal? -%>
28
26
 
29
- <%- end -%>
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 == 'ruby' -%>
40
+ <% if RUBY_ENGINE == "ruby" -%>
41
+
36
42
  group :development, :test do
37
- # Call 'byebug' anywhere in the code to
38
- # stop execution and get a debugger console
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
- <% if depend_on_listen? -%>
65
- gem 'listen', '~> 3.3'
66
- <% end -%>
67
- <%- unless options.api? -%>
68
- # Access an interactive console on exception pages or
69
- # by calling 'console' anywhere in the code.
70
- <%- if options.dev? || options.edge? -%>
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
- <% if spring_install? -%>
77
- # Spring speeds up development by keeping your application running in
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', require: false
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
- # Adds support for Capybara system testing and selenium driver
105
- gem 'capybara', '>= 2.15'
106
- gem 'selenium-webdriver'
107
- gem 'webdrivers'
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]
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.12.1
4
+ version: 0.13.0
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: 2021-10-14 00:00:00.000000000 Z
12
+ date: 2022-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 5.2.0
132
+ version: 7.0.0
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 5.2.0
139
+ version: 7.0.0
140
140
  description: The tool to generate Rails template for 5xRuby
141
141
  email:
142
142
  - hi@5xruby.tw