scc-codestyle 0.6.1 → 0.6.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0ff197d30be76addee5a57793e5d54154ed9db7a9fbcaa6f3a86fd8db9dcd37
4
- data.tar.gz: 60dde53279e8d2a299848cd32f3992c53e1ca4c5f84684ce0c15351daa7f50bb
3
+ metadata.gz: 4244a7b6c5fa60bb4e8920dc47307a83cf41c65281407d5e0612820649253784
4
+ data.tar.gz: ab83c756469ae868b213f5e4a126af1ce5c7380070623abde2c8954ea9e1e8a1
5
5
  SHA512:
6
- metadata.gz: b50223b04d9c4950c63ea1ff52ef894d3bb4dc85c1fc98ecb80f0e1e2e5cd07d78517785bba263243ed4d267483a524c0b4be3ef065a3f060d9e6d0930f9804e
7
- data.tar.gz: dc2eb4d6d07eff93fa80185be6c22bce8627c1d7d12103d407bfab81986c45b93745019780923d79519a13ed1d17d51bf17a3239049a346cb3f5feb5262c02f7
6
+ metadata.gz: 2699ca812f2b65ef699bef450a2b5fe1ca4505274e3dceaa422a19f12cbc3146dcccc3bfa9cc28af2a264d33b11f6241582cfd17c2d1b5dd108ed39e7b4c3c49
7
+ data.tar.gz: 33ea6885528d946a439bbb7fc1b1aa37e6997a1d3adfc9ac35cd1bde7b153a89fb1a19975da54d92d91a88537d0e40751f7d2dfcd4377b95b6c34aca6b4991b5
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "bundler" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
@@ -0,0 +1,26 @@
1
+ name: Check if the gem exists on rubygems.org
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ build-gem:
7
+ runs-on: ubuntu-latest
8
+ continue-on-error: true
9
+
10
+ strategy:
11
+ matrix:
12
+ ruby-version: ['2.5', '2.7']
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby ${{ matrix.ruby-version }}
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ - name: Check if gem exists
21
+ run: |
22
+ GEM_VERSION=$(ruby -e "require 'scc/codestyle'; print Scc::Codestyle::VERSION" -I lib)
23
+ # if we install the gem, then the $GEM_VERSION already exist on rubygems.org
24
+ # therefore error
25
+ gem install -q --silent scc-codestyle -v $GEM_VERSION && (touch failed-install && exit 0) || exit 0
26
+ test -f failed-install && (echo "bump the gem version!" && exit 1)
@@ -3,6 +3,10 @@ name: scc-codestyle
3
3
  on:
4
4
  push:
5
5
  branches: [ master ]
6
+ paths:
7
+ - default.yml
8
+ - scc-codestyle.gemspec
9
+ - lib/scc/codestyle/version.rb
6
10
 
7
11
  jobs:
8
12
  build:
@@ -0,0 +1,20 @@
1
+ name: Rubocop
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ rubocop:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ with:
14
+ ruby-version: 2.7.6
15
+
16
+
17
+ - name: Run rubocop
18
+ run: |
19
+ bundle install
20
+ bundle exec rubocop
data/.rubocop.yml CHANGED
@@ -1,6 +1,9 @@
1
1
  inherit_from:
2
+ - .rubocop_todo.yml
2
3
  - default.yml
3
4
 
5
+
6
+
4
7
  Naming/FileName:
5
8
  inherit_mode:
6
9
  merge:
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,14 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-07-22 12:23:32 UTC using RuboCop version 1.31.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'scc-codestyle.gemspec'
data/default.yml CHANGED
@@ -645,7 +645,6 @@ Lint/UnreachableLoop: # (new in 0.89)
645
645
  Enabled: true
646
646
  Lint/UselessMethodDefinition: # (new in 0.90)
647
647
  Enabled: true
648
- AllowComments: true
649
648
  Lint/UselessTimes: # (new in 0.91)
650
649
  Enabled: true
651
650
  Style/AccessorGrouping: # (new in 0.87)
@@ -1,5 +1,5 @@
1
1
  module Scc
2
2
  module Codestyle
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.6.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scc-codestyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - SCC Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -129,9 +129,13 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - ".github/dependabot.yml"
133
+ - ".github/workflows/build-gem.yml"
132
134
  - ".github/workflows/gem-push.yml"
135
+ - ".github/workflows/rubocop.yml"
133
136
  - ".gitignore"
134
137
  - ".rubocop.yml"
138
+ - ".rubocop_todo.yml"
135
139
  - Dockerfile
136
140
  - Gemfile
137
141
  - LICENSE