bankai 0.7.0 → 0.8.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: a6ae152202fc1035211da5eeb7e7351799e8d56e8f136f7f09dcc1269a0e647e
4
- data.tar.gz: 0b0d39e8b111f7e3e22a60dba1209910b33c73df22dc556d4d44aedcb58d5d6e
3
+ metadata.gz: d98599354503901a56b51a8c54539df4b6796a3a6d5c90076c6fab21ad1081a4
4
+ data.tar.gz: eaa2045c558c0a4d5eb2906b76581c0ff4cd1349e37865f094bc7ac642c52a95
5
5
  SHA512:
6
- metadata.gz: dadcccf32107bc95e5c0665c5605b10ce117b587e44e8ffb2112825eff2ac4236736786b9c7db49664b8272ab4646af53c853731cea1019a4358972415b7666d
7
- data.tar.gz: 6ac4850e192204202e363f59d43b2c3ad4c4be100ea248b6549fdeca8b2c2bae154eb3947debed74f173e768eac35aff02437fe48948d4765c4039f2bc1699b7
6
+ metadata.gz: 0cf3a771c075b784e512c985422bbbc91aa3d02c2b0e7de555358e9569a80b91948b5a31604eefc22efca9d179ce4f443cf76cd2831ff05278b265bb136a03e0
7
+ data.tar.gz: 3979379abd45c68d43c13cd98b99215271566b735b4984964800c72ed2bd1c90eebe567c533b05d43384d8207b13ec603afe85930482927ba5c8a50ecb72b2d1
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bankai
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  RUBY_VERSION = '2.6.6'
6
6
  RAILS_VERSION = '6.0.3'
7
- RUBOCOP_VERSION = '0.81.0'
8
- CAPISTRANO_VERSION = '3.14.0'
7
+ RUBOCOP_VERSION = '1.5.1'
8
+ CAPISTRANO_VERSION = '3.14.1'
9
9
  end
@@ -39,7 +39,7 @@ group :development, :test do
39
39
  gem 'byebug', platforms: %i[mri mingw x64_mingw]
40
40
 
41
41
  gem 'brakeman', require: false
42
- gem 'bundler-audit', '~> 0.6.0', require: false
42
+ gem 'bundler-audit', require: false
43
43
  gem 'rubocop', '~> <%= Bankai::RUBOCOP_VERSION %>', require: false
44
44
  gem 'rubocop-performance', require: false
45
45
  gem 'rubocop-rails', require: false
@@ -1,4 +1,10 @@
1
- image: ruby:<%= RUBY_VERSION %>
1
+ default:
2
+ image: ruby:<%= RUBY_VERSION %>
3
+
4
+ stages:
5
+ - lint
6
+ - test
7
+ - deploy
2
8
 
3
9
  variables:
4
10
  RAILS_ENV: test
@@ -26,22 +32,18 @@ variables:
26
32
  - curl -o- -L https://yarnpkg.com/install.sh | bash
27
33
  - export PATH=$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH
28
34
 
29
- stages:
30
- - lint
31
- - test
32
- - deploy
33
-
34
- cache:
35
- paths:
36
- - vendor/ruby
37
- - node_modules
38
-
39
- before_script:
40
- - export LANG=C.UTF-8
41
- - export LC_ALL=C.UTF-8
42
- - *install_ruby_gems
35
+ .common:
36
+ before_script:
37
+ - export LANG=C.UTF-8
38
+ - export LC_ALL=C.UTF-8
39
+ - *install_ruby_gems
40
+ cache:
41
+ paths:
42
+ - vendor/ruby
43
+ - node_modules
43
44
 
44
45
  rubocop:
46
+ extends: .common
45
47
  stage: lint
46
48
  script:
47
49
  - bundle exec rubocop
@@ -49,6 +51,7 @@ rubocop:
49
51
  - schedules
50
52
 
51
53
  brakeman:
54
+ extends: .common
52
55
  stage: lint
53
56
  script:
54
57
  - bundle exec brakeman
@@ -56,23 +59,47 @@ brakeman:
56
59
  - schedules
57
60
 
58
61
  bundler-audit:
62
+ extends: .common
59
63
  stage: lint
60
- before_script:
64
+ script:
61
65
  - gem install bundler-audit
62
66
  - bundle audit --update
63
- script:
64
67
  - bundle audit
68
+ only:
69
+ changes:
70
+ - Gemfile
71
+ - Gemfile.lock
72
+ allow_failure: true
73
+
74
+ bundler-leak:
75
+ extends: .common
76
+ stage: lint
77
+ script:
78
+ - gem install bundler-leak
79
+ - bundle leak check --update
80
+ - bundle leak
81
+ only:
82
+ changes:
83
+ - Gemfile
84
+ - Gemfile.lock
65
85
  allow_failure: true
66
86
 
67
87
  yarn-audit:
88
+ extends: .common
68
89
  stage: lint
69
90
  before_script:
70
91
  - *install_nodejs
71
92
  script:
72
93
  - yarn audit
94
+ only:
95
+ changes:
96
+ - package.json
97
+ - package-lock.json
98
+ - yarn.lock
73
99
  allow_failure: true
74
100
 
75
101
  rspec:
102
+ extends: .common
76
103
  stage: test
77
104
  before_script:
78
105
  - *install_nodejs
@@ -2,9 +2,11 @@ require:
2
2
  - rubocop-performance
3
3
  - rubocop-rails
4
4
  - rubocop-rspec
5
+
5
6
  AllCops:
6
7
  TargetRubyVersion: <%= RUBY_VERSION %>
7
8
  DisplayCopNames: true
9
+ NewCops: enable
8
10
  Exclude:
9
11
  - bin/*
10
12
  - vendor/ruby/**/*
@@ -32,13 +34,6 @@ Metrics/BlockLength:
32
34
  - config/environments/*
33
35
  - lib/tasks/**/*
34
36
  - spec/**/*
35
- Lint/RaiseException:
36
- Enabled: true
37
- Lint/StructNewOverride:
38
- Enabled: true
39
- Layout:
40
- Exclude:
41
- - config/environments/*
42
37
  Layout/LineLength:
43
38
  Max: 120
44
39
  Style:
@@ -50,9 +45,3 @@ Style/BlockComments:
50
45
  - spec/**/*
51
46
  Style/Documentation:
52
47
  Enabled: false
53
- Style/HashEachMethods:
54
- Enabled: true
55
- Style/HashTransformKeys:
56
- Enabled: true
57
- Style/HashTransformValues:
58
- Enabled: true
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.7.0
4
+ version: 0.8.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-09-09 00:00:00.000000000 Z
12
+ date: 2020-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler