bankai 0.2.3 → 0.3.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: 63cf396320da25bc3c0e14294788f925eed947751e979426e06fd2a5f96472e6
4
- data.tar.gz: b8dacbb98533fec16d577310e73a1bde3a257647c5da86a0123387e6fbff1f17
3
+ metadata.gz: 48442fe9a387be5c856f4dcc7072b7b45799af5a02f0aa1caf94d2fffa9aaf8e
4
+ data.tar.gz: cb02e9f76bbfbfafeb57a03ff28d210d808acc461ce23e0d942a7521d692356c
5
5
  SHA512:
6
- metadata.gz: 1a79317200b09c89a09e314de917f46bdfe4ef4ee27ebed9195928877fdd18d8a27a53d46763bfaac5e9443826fbbcdcfb016c4ff4113d2ac13b3093c628fb57
7
- data.tar.gz: b209b588b1b9585f3720a6a16fefbe3159de51e86f062f6022cea1539d24709b33e769e37fb34247d97858bcb8c4a7e210cc577d4bdd783285159e029dae3e69
6
+ metadata.gz: af209f3a8ddbe44c8ab1900c53ac885021e19b3d87641e20d063db1efe020c0dce1c83fdbe6ece81cf6aec4f014f77e55f9ed8f128de65ea1e85dbc8cf5fedc2
7
+ data.tar.gz: 92323b2f70eb6eee185d0cd19330584d84f63a450c078a6590ff9140adba3621773093a6a7ba55d79a49acf1458dd6a5162c2380d93d2593fb5af5c4d006037d
@@ -1,8 +1,9 @@
1
- image: ruby:2.5
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.60.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}"
@@ -3,5 +3,5 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.1
7
- before_install: gem install bundler -v 1.16.4
6
+ - 2.6.0
7
+ before_install: gem install bundler -v 1.17.3
@@ -4,7 +4,7 @@ require_relative 'base'
4
4
 
5
5
  module Bankai
6
6
  module Generators
7
- HOST_TEMPLATE = <<-RUBY.freeze
7
+ HOST_TEMPLATE = <<-RUBY
8
8
 
9
9
  if Rails.env.production?
10
10
  "https://\#{ENV['APPLICATION_HOST']}"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bankai
2
4
  # :nodoc:
3
5
  module Helper
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bankai
4
- VERSION = '0.2.3'
4
+ VERSION = '0.3.0'
5
5
  RUBY_VERSION = '2.6.0'
6
6
  RAILS_VERSION = '5.2.3'
7
7
  RUBOCOP_VERSION = '0.71.0'
@@ -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
- # Easy installation and use of chromedriver to run system tests with Chrome
106
- gem 'chromedriver-helper'
105
+ gem 'webdrivers'
107
106
  end
108
107
  <%- end -%>
109
108
  <% end -%>
@@ -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.0.0
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.2.3
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-06-03 00:00:00.000000000 Z
12
+ date: 2019-10-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler