bankai 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +18 -2
- data/.travis.yml +2 -2
- data/lib/bankai/generators/sitemap_generator.rb +1 -1
- data/lib/bankai/helper.rb +2 -0
- data/lib/bankai/version.rb +1 -1
- data/templates/Gemfile.erb +1 -2
- data/templates/gitlab-ci.yml.erb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48442fe9a387be5c856f4dcc7072b7b45799af5a02f0aa1caf94d2fffa9aaf8e
|
|
4
|
+
data.tar.gz: cb02e9f76bbfbfafeb57a03ff28d210d808acc461ce23e0d942a7521d692356c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af209f3a8ddbe44c8ab1900c53ac885021e19b3d87641e20d063db1efe020c0dce1c83fdbe6ece81cf6aec4f014f77e55f9ed8f128de65ea1e85dbc8cf5fedc2
|
|
7
|
+
data.tar.gz: 92323b2f70eb6eee185d0cd19330584d84f63a450c078a6590ff9140adba3621773093a6a7ba55d79a49acf1458dd6a5162c2380d93d2593fb5af5c4d006037d
|
data/.gitlab-ci.yml
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
image: ruby:2.
|
|
1
|
+
image: ruby:2.6.0
|
|
2
2
|
|
|
3
3
|
stages:
|
|
4
4
|
- lint
|
|
5
5
|
- test
|
|
6
|
+
- analysis
|
|
6
7
|
|
|
7
8
|
cache:
|
|
8
9
|
paths:
|
|
@@ -11,7 +12,7 @@ cache:
|
|
|
11
12
|
rubocop:
|
|
12
13
|
stage: lint
|
|
13
14
|
before_script:
|
|
14
|
-
- gem install rubocop -v 0.
|
|
15
|
+
- gem install rubocop -v 0.71.0
|
|
15
16
|
script:
|
|
16
17
|
- rubocop
|
|
17
18
|
except:
|
|
@@ -20,16 +21,31 @@ rubocop:
|
|
|
20
21
|
bundler-audit:
|
|
21
22
|
stage: lint
|
|
22
23
|
before_script:
|
|
24
|
+
- gem install bundler -v 1.17.3
|
|
23
25
|
- bundle install --path vendor
|
|
24
26
|
- gem install bundler-audit
|
|
27
|
+
- bundle audit --update
|
|
25
28
|
script:
|
|
26
29
|
- bundle audit
|
|
30
|
+
allow_failure: true
|
|
27
31
|
|
|
28
32
|
rspec:
|
|
29
33
|
stage: test
|
|
30
34
|
before_script:
|
|
35
|
+
- gem install bundler -v 1.17.3
|
|
31
36
|
- bundle install --path vendor
|
|
32
37
|
script:
|
|
33
38
|
- bundle exec rspec
|
|
34
39
|
except:
|
|
35
40
|
- schedules
|
|
41
|
+
|
|
42
|
+
sonarqube:
|
|
43
|
+
stage: analysis
|
|
44
|
+
image: registry.5xruby.tw/docker/sonar-scanner:4.0.0
|
|
45
|
+
script:
|
|
46
|
+
- sonar-scanner
|
|
47
|
+
-D"sonar.projectKey=5xruby-bankai"
|
|
48
|
+
-D"sonar.projectBaseDir=${CI_PROJECT_DIR}"
|
|
49
|
+
-D"sonar.host.url=https://sonar.5xruby.tw"
|
|
50
|
+
-D"sonar.login=${SONARQUBE_TOKEN}"
|
|
51
|
+
-D"sonar.projectVersion=${CI_COMMIT_SHORT_SHA}"
|
data/.travis.yml
CHANGED
data/lib/bankai/helper.rb
CHANGED
data/lib/bankai/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
|
@@ -102,8 +102,7 @@ group :test do
|
|
|
102
102
|
# Adds support for Capybara system testing and selenium driver
|
|
103
103
|
gem 'capybara', '>= 2.15'
|
|
104
104
|
gem 'selenium-webdriver'
|
|
105
|
-
|
|
106
|
-
gem 'chromedriver-helper'
|
|
105
|
+
gem 'webdrivers'
|
|
107
106
|
end
|
|
108
107
|
<%- end -%>
|
|
109
108
|
<% end -%>
|
data/templates/gitlab-ci.yml.erb
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
image: ruby:<%= RUBY_VERSION %>
|
|
2
2
|
|
|
3
|
+
include:
|
|
4
|
+
template: Verify/Browser-Performance.gitlab-ci.yml
|
|
5
|
+
|
|
3
6
|
variables:
|
|
4
7
|
RAILS_ENV: test
|
|
5
|
-
NODE_VERSION:
|
|
8
|
+
NODE_VERSION: 11.0.0
|
|
6
9
|
<%- if pg? -%>
|
|
7
10
|
POSTGRES_DB: <%= app_name %>
|
|
8
11
|
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
|
|
@@ -19,6 +22,7 @@ stages:
|
|
|
19
22
|
- lint
|
|
20
23
|
- test
|
|
21
24
|
- deploy
|
|
25
|
+
- measure
|
|
22
26
|
|
|
23
27
|
cache:
|
|
24
28
|
paths:
|
|
@@ -29,6 +33,8 @@ rubocop:
|
|
|
29
33
|
stage: lint
|
|
30
34
|
before_script:
|
|
31
35
|
- gem install rubocop -v <%= Bankai::RUBOCOP_VERSION %>
|
|
36
|
+
- gem install rubocop-performance
|
|
37
|
+
- gem install rubocop-rails
|
|
32
38
|
script:
|
|
33
39
|
- rubocop
|
|
34
40
|
except:
|
|
@@ -49,6 +55,7 @@ bundler-audit:
|
|
|
49
55
|
stage: lint
|
|
50
56
|
before_script:
|
|
51
57
|
- gem install bundler-audit
|
|
58
|
+
- bundle audit --update
|
|
52
59
|
script:
|
|
53
60
|
- bundle audit
|
|
54
61
|
allow_failure: true
|
|
@@ -88,3 +95,11 @@ rspec:
|
|
|
88
95
|
# - master
|
|
89
96
|
# except:
|
|
90
97
|
# - schedules
|
|
98
|
+
|
|
99
|
+
# NOTE: Ensure GitLab version > 12.0
|
|
100
|
+
# performance:
|
|
101
|
+
# stage: measure
|
|
102
|
+
# variables:
|
|
103
|
+
# URL: STAGING_SITE_URL
|
|
104
|
+
# SITESPEED_VERSION: 10.3.2-plus1
|
|
105
|
+
# SITESPEED_OPTIONS: '--plugins.add /lighthouse'
|
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.3.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: 2019-
|
|
12
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|