bankai 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +28 -8
- data/bankai.gemspec +2 -1
- data/lib/bankai/version.rb +3 -3
- data/templates/Gemfile.erb +1 -0
- data/templates/gitlab-ci.yml.erb +8 -0
- data/templates/rubocop.yml.erb +1 -0
- data/templates/spec_helper.rb +4 -0
- metadata +22 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76ebef80c3eb8a6faf9d274edcf9f63541809a1e956a84b6b7edb36bb795e965
|
4
|
+
data.tar.gz: 100d72179cd54567ad3cedf5f013607fcd0cadf8e81819c4315ae74eb468a42a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab0202a6a0e94db7aa81fa6276fbaa1e2df7715b85d9e8d6e363d05dae1170c039d56fe9c540baf160897966ebb161f501a96e50dedcbb54cf2599457b581b5d
|
7
|
+
data.tar.gz: 1dc831b5f8a5ee868debe64a0fb6e8cc9c35f19fb6488de52e64c6aade9dd451b1741adeec4c03fcf28b56169080b2f90ce30e99b59aa32a456c8839a1509ed0
|
data/.gitlab-ci.yml
CHANGED
@@ -19,7 +19,10 @@ before_script:
|
|
19
19
|
rubocop:
|
20
20
|
stage: lint
|
21
21
|
script:
|
22
|
-
- bundle exec rubocop
|
22
|
+
- bundle exec rubocop --format progress --format json --out rubocop.json
|
23
|
+
artifacts:
|
24
|
+
paths:
|
25
|
+
- rubocop.json
|
23
26
|
except:
|
24
27
|
- schedules
|
25
28
|
|
@@ -36,18 +39,35 @@ bundler-audit:
|
|
36
39
|
rspec:
|
37
40
|
stage: test
|
38
41
|
script:
|
39
|
-
- bundle exec rspec
|
42
|
+
- bundle exec rspec --format progress --format RspecJunitFormatter --out rspec.xml
|
43
|
+
artifacts:
|
44
|
+
paths:
|
45
|
+
- rspec.xml
|
46
|
+
- coverage
|
47
|
+
reports:
|
48
|
+
junit: rspec.xml
|
40
49
|
except:
|
41
50
|
- schedules
|
42
51
|
|
43
52
|
sonarqube:
|
44
53
|
stage: analysis
|
45
|
-
image:
|
54
|
+
image:
|
55
|
+
name: sonarsource/sonar-scanner-cli
|
56
|
+
entrypoint: [""]
|
57
|
+
variables:
|
58
|
+
GIT_DEPTH: 0
|
46
59
|
before_script: []
|
47
60
|
script:
|
48
61
|
- sonar-scanner
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
62
|
+
-Dsonar.projectKey=Bankai
|
63
|
+
-Dsonar.sourceEncoding=UTF-8
|
64
|
+
-Dsonar.qualitygate.wait=true
|
65
|
+
-Dsonar.ruby.rubocop.reportPaths=rubocop.json
|
66
|
+
-Dsonar.ruby.coverage.reportPaths=coverage/.resultset.json
|
67
|
+
-Dsonar.exclusions=vendor/ruby/**/*
|
68
|
+
-Dsonar.coverage.exclusions=spec/**/*
|
69
|
+
-Dsonar.projectVersion=$CI_COMMIT_SHORT_SHA
|
70
|
+
-Dsonar.sources=.
|
71
|
+
allow_failure: true
|
72
|
+
only:
|
73
|
+
- master
|
data/bankai.gemspec
CHANGED
@@ -32,8 +32,9 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency 'overcommit'
|
33
33
|
spec.add_development_dependency 'rake', '~> 12.0'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
35
36
|
spec.add_development_dependency 'rubocop', '~> 0.81.0'
|
36
|
-
spec.add_development_dependency 'simplecov'
|
37
|
+
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
37
38
|
|
38
39
|
# TODO: Allow specify rails version
|
39
40
|
spec.add_dependency 'rails', ">= #{Bankai::RAILS_VERSION}"
|
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.6.0'
|
5
5
|
RUBY_VERSION = '2.6.6'
|
6
|
-
RAILS_VERSION = '6.0.
|
6
|
+
RAILS_VERSION = '6.0.3'
|
7
7
|
RUBOCOP_VERSION = '0.81.0'
|
8
|
-
CAPISTRANO_VERSION = '3.
|
8
|
+
CAPISTRANO_VERSION = '3.14.0'
|
9
9
|
end
|
data/templates/Gemfile.erb
CHANGED
@@ -43,6 +43,7 @@ group :development, :test do
|
|
43
43
|
gem 'rubocop', '~> <%= Bankai::RUBOCOP_VERSION %>', require: false
|
44
44
|
gem 'rubocop-performance', require: false
|
45
45
|
gem 'rubocop-rails', require: false
|
46
|
+
gem 'rubocop-rspec', require: false
|
46
47
|
|
47
48
|
<%- unless options[:skip_rspec] -%>
|
48
49
|
gem 'database_rewinder'
|
data/templates/gitlab-ci.yml.erb
CHANGED
data/templates/rubocop.yml.erb
CHANGED
data/templates/spec_helper.rb
CHANGED
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.6.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: 2020-
|
12
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -81,6 +81,20 @@ dependencies:
|
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '3.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rspec_junit_formatter
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: rubocop
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,30 +113,30 @@ dependencies:
|
|
99
113
|
name: simplecov
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
|
-
- - "
|
116
|
+
- - "~>"
|
103
117
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
118
|
+
version: 0.17.1
|
105
119
|
type: :development
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
108
122
|
requirements:
|
109
|
-
- - "
|
123
|
+
- - "~>"
|
110
124
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
125
|
+
version: 0.17.1
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
127
|
name: rails
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
115
129
|
requirements:
|
116
130
|
- - ">="
|
117
131
|
- !ruby/object:Gem::Version
|
118
|
-
version: 6.0.
|
132
|
+
version: 6.0.3
|
119
133
|
type: :runtime
|
120
134
|
prerelease: false
|
121
135
|
version_requirements: !ruby/object:Gem::Requirement
|
122
136
|
requirements:
|
123
137
|
- - ">="
|
124
138
|
- !ruby/object:Gem::Version
|
125
|
-
version: 6.0.
|
139
|
+
version: 6.0.3
|
126
140
|
description: The tool to generate Rails template for 5xRuby
|
127
141
|
email:
|
128
142
|
- hi@5xruby.tw
|