manageiq-style 1.3.1 → 1.3.2

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: 9dd177749d0a3bfe9c497b78a33a009e6f9bab38c478cf229fb837a018902f9d
4
- data.tar.gz: 55aea3dde29d7c10c360d05229296fd35debde0b1774bef5f2d2ebfdbd5ff4c1
3
+ metadata.gz: 30b3629a0d14ba1680e62920e1304effa28b6a8c00f1415c6496148eba75f804
4
+ data.tar.gz: 61704454dacf7bca212a9ec3301f567860d5d2aec867097c1d697e799de020b4
5
5
  SHA512:
6
- metadata.gz: dc537ec17f3248ea1e3807ec2a5b9c5c11b53b6fe91152a304b5432d2b32d0224fd7c99568d63c18839ff64039fc346e0cd9543f91e36ce0890af5ec178c7264
7
- data.tar.gz: 06bab93794830f362d2db32e7ec4245c710bcf930b91226f2686c1a82d103bbec39c1d42d37946d661396d5c0046fe1c35e3e50804fd9c34ba899dc7e2888e7e
6
+ metadata.gz: d0a9486e38802b8ac853683e833dc95c26b53db3cb322633d63a558711d589b96a5e133b7d824f5f222ca17a4e1d015b372c5f094fe1a6a0d524d99068b8c443
7
+ data.tar.gz: 50b4a4af2740697a2f114b7eee18ff6d9af87c6462b20a2c5675fa380fc47527d8e7bfab5f331967dab6cce794725aa1e715113478cadfdcbdfc3de210801a41
@@ -0,0 +1,33 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: '0 0 * * 0'
8
+
9
+ jobs:
10
+ ci:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version:
15
+ - '2.5'
16
+ - '2.6'
17
+ - '2.7'
18
+ - '3.0'
19
+ env:
20
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby-version }}
27
+ bundler-cache: true
28
+ - name: Run tests
29
+ run: bundle exec rake
30
+ - name: Report code coverage
31
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}
32
+ continue-on-error: true
33
+ uses: paambaati/codeclimate-action@v3.0.0
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
- --color
3
1
  --require spec_helper
2
+ --color
3
+ --order random
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # manageiq-style
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/manageiq-style.svg)](http://badge.fury.io/rb/manageiq-style)
4
+ [![CI](https://github.com/ManageIQ/manageiq-style/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-style/actions/workflows/ci.yaml)
5
+ [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-style.svg)](https://codeclimate.com/github/ManageIQ/manageiq-style)
6
+ [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-style/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-style/coverage)
7
+
3
8
  Style and linting configuration for ManageIQ projects.
4
9
 
5
10
  ## Installation
@@ -233,7 +233,7 @@ module ManageIQ
233
233
  end
234
234
 
235
235
  def cc_rubocop_channel
236
- @cc_rubocop_channel ||= "rubocop-#{rubocop_version.segments[0]}-#{rubocop_version.segments[1]}"
236
+ @cc_rubocop_channel ||= "rubocop-#{rubocop_version.segments[0]}-#{rubocop_version.segments[1]}-#{rubocop_version.segments[2]}"
237
237
  end
238
238
 
239
239
  def rubocop_version
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Style
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2"
4
4
  end
5
5
  end
@@ -25,10 +25,11 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_runtime_dependency "more_core_extensions"
27
27
  spec.add_runtime_dependency "optimist"
28
- spec.add_runtime_dependency "rubocop", "~> 1.13"
28
+ spec.add_runtime_dependency "rubocop", "~> 1.13"
29
29
  spec.add_runtime_dependency "rubocop-performance"
30
30
  spec.add_runtime_dependency "rubocop-rails"
31
31
 
32
- spec.add_development_dependency "rake", "~> 12.0"
33
- spec.add_development_dependency "rspec", "~> 3.0"
32
+ spec.add_development_dependency "rake", "~> 12.0"
33
+ spec.add_development_dependency "rspec", "~> 3.0"
34
+ spec.add_development_dependency "simplecov", ">= 0.21.2"
34
35
  end
data/styles/base.yml CHANGED
@@ -56,6 +56,8 @@ Naming/MethodParameterName:
56
56
  - dc
57
57
  Naming/RescuedExceptionsVariableName:
58
58
  Enabled: false
59
+ Naming/VariableNumber:
60
+ Enabled: false
59
61
  Performance/Casecmp:
60
62
  Enabled: false
61
63
  Rails:
@@ -181,6 +183,7 @@ Style/MethodCallWithArgsParentheses:
181
183
  - change_column
182
184
  - change_column_comment
183
185
  - change_column_null
186
+ - change_table
184
187
  - change_table_comment
185
188
  - class_attribute
186
189
  - create_table
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Authors
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: more_core_extensions
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 0.21.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 0.21.2
111
125
  description: Style and linting configuration for ManageIQ projects.
112
126
  email:
113
127
  executables:
@@ -116,6 +130,7 @@ extensions: []
116
130
  extra_rdoc_files: []
117
131
  files:
118
132
  - ".codeclimate.yml"
133
+ - ".github/workflows/ci.yaml"
119
134
  - ".gitignore"
120
135
  - ".haml-lint.yml"
121
136
  - ".rspec"
@@ -124,7 +139,7 @@ files:
124
139
  - ".rubocop_cc.yml"
125
140
  - ".rubocop_cc_base.yml"
126
141
  - ".rubocop_local.yml"
127
- - ".travis.yml"
142
+ - ".whitesource"
128
143
  - Gemfile
129
144
  - LICENSE.txt
130
145
  - README.md
@@ -160,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
175
  - !ruby/object:Gem::Version
161
176
  version: '0'
162
177
  requirements: []
163
- rubygems_version: 3.2.17
178
+ rubygems_version: 3.3.5
164
179
  signing_key:
165
180
  specification_version: 4
166
181
  summary: Style and linting configuration for ManageIQ projects.
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.5.8
6
- - 2.6.6
7
- before_install: gem install bundler