scc-codestyle 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/build-gem.yml +26 -0
- data/.github/workflows/gem-push.yml +4 -0
- data/.github/workflows/rubocop.yml +20 -0
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +14 -0
- data/default.yml +0 -1
- data/lib/scc/codestyle/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4244a7b6c5fa60bb4e8920dc47307a83cf41c65281407d5e0612820649253784
|
4
|
+
data.tar.gz: ab83c756469ae868b213f5e4a126af1ce5c7380070623abde2c8954ea9e1e8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
@@ -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
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
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.
|
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-
|
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
|