bankai 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bankai/generator.rb +4 -4
- data/lib/bankai/version.rb +2 -2
- data/templates/Gemfile.erb +2 -1
- data/templates/README.md.erb +1 -1
- data/templates/gitlab-ci.yml.erb +3 -0
- data/templates/spec_helper.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c68c970fcca0732e832adbd4b50572fd41e54efecd0da08e3383fabf15ac59ea
|
4
|
+
data.tar.gz: 38c9dd0a931186e1b85036765deca0278894c8d8663e79f13fc65af8b93bcac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3924d02fd970cd1475f0db294a84142ca8dbb59be8ec5f923987d430751157b4cef549293fd33c01333b4159de85b6aabfe28725413df3371158cac1086b476
|
7
|
+
data.tar.gz: 77dca64ed181349491fe3e08836481ae7184297f543b8570d8c63befea63445271e53f5d24b2f33658bc30a001fd46f7da802d7dc3169dd46ee6fdb62e4832d3
|
data/lib/bankai/generator.rb
CHANGED
@@ -12,15 +12,15 @@ module Bankai
|
|
12
12
|
desc: 'Configure for selected database ' \
|
13
13
|
"(options: #{DATABASES.join('/')})"
|
14
14
|
|
15
|
+
class_option :capistrano, type: :boolean, default: false,
|
16
|
+
desc: 'Use Capistrano'
|
17
|
+
|
15
18
|
class_option :skip_test, type: :boolean, default: true,
|
16
19
|
desc: 'Skip test files'
|
17
20
|
|
18
21
|
class_option :skip_coffee, type: :boolean, default: true,
|
19
22
|
desc: "Don't use CoffeeScript"
|
20
23
|
|
21
|
-
class_option :skip_capistrano, type: :boolean, default: false,
|
22
|
-
desc: "Don't use Capistrano"
|
23
|
-
|
24
24
|
class_option :skip_rspec, type: :boolean, default: false,
|
25
25
|
desc: 'Skip rspec files'
|
26
26
|
|
@@ -72,7 +72,7 @@ module Bankai
|
|
72
72
|
generate('bankai:json')
|
73
73
|
generate('bankai:db_optimizations')
|
74
74
|
generate('bankai:mailer')
|
75
|
-
generate('bankai:deploy')
|
75
|
+
generate('bankai:deploy') if options[:capistrano]
|
76
76
|
generate('annotate:install')
|
77
77
|
generate('bankai:lint')
|
78
78
|
end
|
data/lib/bankai/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -54,6 +54,7 @@ group :development, :test do
|
|
54
54
|
gem 'shoulda', require: false
|
55
55
|
gem 'shoulda-matchers', require: false
|
56
56
|
gem 'simplecov', require: false
|
57
|
+
gem 'simplecov-cobertura', require: false
|
57
58
|
<%- end -%>
|
58
59
|
|
59
60
|
gem 'bankai'
|
@@ -81,7 +82,7 @@ group :development do
|
|
81
82
|
<% end -%>
|
82
83
|
<% end -%>
|
83
84
|
|
84
|
-
<%
|
85
|
+
<% if options[:capistrano] -%>
|
85
86
|
gem 'capistrano', '<%= Bankai::CAPISTRANO_VERSION %>'
|
86
87
|
gem 'capistrano-bundler'
|
87
88
|
gem 'capistrano-rails'
|
data/templates/README.md.erb
CHANGED
data/templates/gitlab-ci.yml.erb
CHANGED
data/templates/spec_helper.rb
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
if ENV.fetch('COVERAGE', false) || ENV.fetch('CI', false)
|
4
4
|
require 'simplecov'
|
5
|
+
require 'simplecov-cobertura'
|
6
|
+
|
7
|
+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter if ENV.fetch('GITLAB_CI', false)
|
8
|
+
|
5
9
|
SimpleCov.start 'rails' do
|
6
10
|
add_filter 'vendor'
|
7
11
|
end
|
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.10.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-
|
12
|
+
date: 2021-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
requirements:
|
202
202
|
- - ">="
|
203
203
|
- !ruby/object:Gem::Version
|
204
|
-
version: 2.6.
|
204
|
+
version: 2.6.7
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
207
|
- - ">="
|