scc-codestyle 0.5.0 → 0.6.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: 46f5f84f3259972d6f46d3a2c221c236ac93187c3719c892aa1f84231f98ea2f
4
- data.tar.gz: 5e42ddf8f269a5ead3889a3ec103252beac644db79b1488de8f2b0e0edd6b2e5
3
+ metadata.gz: 8f15110177bed9c27864e82b29d73badcb2cb6ac5ea984a98ef38766b44e363e
4
+ data.tar.gz: 8259e1a8738276f13bb6e109dbdcf4bc8c16e730b78aa27bb483927532fbbe65
5
5
  SHA512:
6
- metadata.gz: b72032bf401b344cd7b99e694cc6e38b0300821a22191397bfd3711840392f0c9923ccd79fc7ed205df332675deed15634d91faa3bd47cd387e18f2e5cb994f7
7
- data.tar.gz: 1bb87684d4f2da591c9527916c81d66ee5aea40c78b49cb02d56c744d7abdbbe50f0274becfc68822f312b585e6ec258ea9da8bc2f7ec371b7cdd2ea7309bcdc
6
+ metadata.gz: af3d8266761c3ed8e5ea0cacc435db0e4d73c88948726024959e38a51fe1d487911444d84047e67e47bf390f1e746f9c26d44cfe641b730e3bccc230986e05d4
7
+ data.tar.gz: ddcd3501841f785184f7f14bdfdd6748a36bbf49d5741b31eec69d4bf750bd6b6b532f1ff0bb04c36aa398a6e2ce5eb1a1516618cbc9412b9905f4e4132d25e6
@@ -14,10 +14,10 @@ jobs:
14
14
 
15
15
  steps:
16
16
  - uses: actions/checkout@v2
17
- - name: Set up Ruby 2.5
17
+ - name: Set up Ruby 2.7
18
18
  uses: actions/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.5.x
20
+ ruby-version: 2.7.6
21
21
 
22
22
  - name: Publish to RubyGems
23
23
  run: |
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .vscode
data/Dockerfile ADDED
@@ -0,0 +1,5 @@
1
+ FROM registry.opensuse.org/home/vpereirabr/dockerimages/containers/vpereirabr/rubyready:latest
2
+
3
+ RUN sudo gem update --system
4
+
5
+ WORKDIR /scc-codestyle
data/Makefile ADDED
@@ -0,0 +1,6 @@
1
+ build:
2
+ docker build -t scc-codestyle .
3
+
4
+ console:
5
+ docker run -ti -v "$(PWD):/scc-codestyle" scc-codestyle bash
6
+
data/README.md CHANGED
@@ -41,3 +41,17 @@ And add this to `.rubocop.yml` below the previous block:
41
41
  ```yaml
42
42
  inherit_from: .rubocop_todo.yml
43
43
  ```
44
+
45
+ ### Development
46
+
47
+ Build the docker container with:
48
+
49
+ ```bash
50
+ $ make build
51
+ ```
52
+
53
+ And then enter in the container with:
54
+
55
+ ```bash
56
+ $ make console
57
+ ```
data/default.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
  DisplayCopNames: true
4
4
  DisplayStyleGuide: true
5
5
  ExtraDetails: true
@@ -18,14 +18,6 @@ require:
18
18
  - rubocop-rspec
19
19
  - rubocop-thread_safety
20
20
 
21
- # TODO: These three checks are ruby 2.3-only. Let's discuss them after we've upgraded
22
- Style/SafeNavigation:
23
- Enabled: false
24
- Style/NumericPredicate:
25
- Enabled: false
26
- Layout/HeredocIndentation:
27
- Enabled: false
28
-
29
21
  # TODO: team wants to have this enabled (2017-07-13)
30
22
  # This cop is quite some work. Last time we checked we had 63 offenses and each would need a 'rubocop:disable' (no one will ever improve them then) or a proper fix.
31
23
  # We should do that with caution. Maybe as a separate (Demolition Squad?) card.
@@ -725,6 +717,8 @@ Performance/Sum: # (new in 1.8)
725
717
  Enabled: true
726
718
  Gemspec/DateAssignment: # new in 1.10
727
719
  Enabled: true
720
+ Gemspec/DeprecatedAttributeAssignment:
721
+ Enabled: true
728
722
  Layout/LineEndStringConcatenationIndentation: # new in 1.18
729
723
  Enabled: true
730
724
  EnforcedStyle: indented
@@ -838,8 +832,6 @@ Rails/AttributeDefaultBlockValue: # new in 2.9
838
832
  Enabled: true
839
833
  Rails/EagerEvaluationLogMessage: # new in 2.11
840
834
  Enabled: true
841
- Rails/ExpandedDateRange: # new in 2.11
842
- Enabled: true
843
835
  Rails/FindById: # new in 2.7
844
836
  Enabled: true
845
837
  Rails/I18nLocaleAssignment: # new in 2.11
@@ -1,5 +1,5 @@
1
1
  module Scc
2
2
  module Codestyle
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.6.0'.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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SCC Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-06 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -132,9 +132,10 @@ files:
132
132
  - ".github/workflows/gem-push.yml"
133
133
  - ".gitignore"
134
134
  - ".rubocop.yml"
135
- - ".ruby-version"
135
+ - Dockerfile
136
136
  - Gemfile
137
137
  - LICENSE
138
+ - Makefile
138
139
  - README.md
139
140
  - Rakefile
140
141
  - default.yml
@@ -160,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
161
  - !ruby/object:Gem::Version
161
162
  version: '0'
162
163
  requirements: []
163
- rubyforge_project:
164
- rubygems_version: 2.7.6.3
164
+ rubygems_version: 3.1.6
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: SCC style guides and shared style configs.
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.5.8