theforeman-rubocop 0.0.1 → 0.0.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: 633cdf0eb394a5155ae66be68a4d18cbe50aa35c60c1e8745e0a5b8928d5aeda
4
- data.tar.gz: bbe63990108e77aad4bbf1b17ff03c65ec5127c1e72ae3f6fdd6f32c99d4b853
3
+ metadata.gz: d26d15c887b5446d9ffa1ffb6648929b2bf50b4548b40b57919cb3fd84fcf556
4
+ data.tar.gz: 171d212c599da6f42fc51fdb2b000f3cd76ed250517a1c77300b27be8491001d
5
5
  SHA512:
6
- metadata.gz: 0ebdd11030075ce8a68f59d81f1bf8bd50998e4dd9edc349ac0044297c7729d0331b9bfd5dd81af5faeb87cd9aecd378764269bf1f2e8cb0c5a2294c6e6859ab
7
- data.tar.gz: c2c8c441e88edb36b024b43142e1c72574836067a7aa441f7314b57bc53ac67f8273cbc69f37edd12fa54ca6d7267f045f307a5cd242bd6649cb99d7910c30b6
6
+ metadata.gz: 9b2689b5ee40ff359d74e09e766091b0533fe926c6b77f17100dd2fcde37eeed79ceb937bba966ce53bae8c1bdec0d64b9f36ccd6c28aab84d061701d4a7452b
7
+ data.tar.gz: 4d78888d74a4c0e038d0b07d720f599284d30e7fc803f32103e5d3bf4126fab90ada5688637b2ccf4e817138b696d911fe3492fe45ebcde1b7fbe918cd902933
@@ -5,8 +5,8 @@ on:
5
5
  - v*
6
6
 
7
7
  jobs:
8
- build:
9
- name: Build + Publish
8
+ publish_ghp:
9
+ name: Build + Publish on GHP
10
10
  runs-on: ubuntu-latest
11
11
 
12
12
  steps:
@@ -28,13 +28,23 @@ jobs:
28
28
  GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
29
29
  OWNER: ${{ github.repository_owner }}
30
30
 
31
+ publish_rubygems:
32
+ name: Build + Publish on RubyGems
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - uses: actions/checkout@v2
36
+ - name: Set up Ruby 2.6
37
+ uses: actions/setup-ruby@v1
38
+ with:
39
+ ruby-version: 2.6.x
31
40
 
32
- - name: Publish to RubyGems
33
- run: |
34
- mkdir -p $HOME/.gem
35
- touch $HOME/.gem/credentials
36
- chmod 0600 $HOME/.gem/credentials
37
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
38
- gem push *.gem
39
- env:
40
- GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEM_API_KEY}}"
41
+ - run: gem build *.gemspec
42
+ - name: Publish to RubyGems
43
+ run: |
44
+ mkdir -p $HOME/.gem
45
+ touch $HOME/.gem/credentials
46
+ chmod 0600 $HOME/.gem/credentials
47
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
48
+ gem push *.gem
49
+ env:
50
+ GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEM_API_KEY}}"
data/README.md CHANGED
@@ -16,9 +16,7 @@ Instead of defining the rules for plugin per plugin, plugins can include default
16
16
 
17
17
  ```ruby
18
18
  # Gemfile
19
- source 'https://ezr-ondrej:dc069ebb028fa13cf880764491a921ef28724340@rubygems.pkg.github.com/ezr-ondrej/theforeman-rubocop' do
20
- gem 'theforeman-rubocop', '~> 0.0.1'
21
- end
19
+ gem 'theforeman-rubocop', '~> 0.0.2'
22
20
  ```
23
21
 
24
22
  And configure in the `.rubocop.yml`.
data/edge.yml CHANGED
@@ -3,3 +3,7 @@ inherit_from:
3
3
 
4
4
  AllCops:
5
5
  NewCops: enable
6
+
7
+ # Enforce ruby19 style
8
+ Style/HashSyntax:
9
+ EnforcedStyle: ruby19_no_mixed_keys
@@ -1,5 +1,5 @@
1
1
  module Theforeman
2
2
  module Rubocop
3
- VERSION = '0.0.1'.freeze
3
+ VERSION = '0.0.2'.freeze
4
4
  end
5
5
  end
@@ -1,8 +1,9 @@
1
1
  Layout/EmptyLineAfterGuardClause:
2
2
  Enabled: false
3
3
 
4
- Layout/FirstArgumentIndentation:
5
- EnforcedStyle: consistent
4
+ Layout/ArgumentAlignment:
5
+ EnforcedStyle: with_fixed_indentation
6
+ IndentationWidth: 2
6
7
 
7
8
  Style/Alias:
8
9
  EnforcedStyle: prefer_alias_method
@@ -10,6 +11,10 @@ Style/Alias:
10
11
  Style/AndOr:
11
12
  EnforcedStyle: conditionals
12
13
 
14
+ Style/ClassAndModuleChildren:
15
+ Exclude:
16
+ - 'app/controllers/concerns/**/parameters/*.rb'
17
+
13
18
  # Don't enforce documentation
14
19
  Style/Documentation:
15
20
  Enabled: false
@@ -21,10 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_dependency 'rubocop', '~> 0.89.0'
24
+ spec.add_dependency 'rubocop-checkstyle_formatter', '~> 0.4.0'
24
25
  spec.add_dependency 'rubocop-rspec', '~> 1.43.2'
25
26
  spec.add_dependency 'rubocop-minitest', '~> 0.10.1'
26
27
  spec.add_dependency 'rubocop-performance', '~> 1.8.1'
27
- spec.add_dependency 'rubocop-rails', '~> 2.5.2'
28
+ spec.add_dependency 'rubocop-rails', '~> 2.8.1'
28
29
  spec.add_development_dependency 'bundler', '~> 2.1'
29
30
  spec.add_development_dependency 'rake', '~> 13.0'
30
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theforeman-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-22 00:00:00.000000000 Z
11
+ date: 2020-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.89.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-checkstyle_formatter
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.4.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.4.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubocop-rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +86,14 @@ dependencies:
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: 2.5.2
89
+ version: 2.8.1
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: 2.5.2
96
+ version: 2.8.1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: bundler
85
99
  requirement: !ruby/object:Gem::Requirement