simplycop 1.11.0 → 1.12.1

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: 931184d38bc368e3dd104e118681d39da16b01906d2e3821203e13ab92d4a42c
4
- data.tar.gz: 2f544d5c8ea7ea65d1dfd0b63369dc59d955d6db55f0af79e9c4f6ff58aa1fef
3
+ metadata.gz: 1affbd4f4cebe9f2a6f13d2564e1e622e5b3d32fe7798c7c61bb296f7b32c69c
4
+ data.tar.gz: 922c233a1022af02c3e6a3b9e0194feaf1e39829443a7883ffa59fe4baedeb74
5
5
  SHA512:
6
- metadata.gz: dad9f1e435b539bea066f0b8007c43b13be1262ccc82fb7984eab83029f52a63660a7cc5a9b5d196be40b1f5185dfa0209fa8f9481be767b438310f2c8e590af
7
- data.tar.gz: b0d917f28147c32ce184a988b994d55bf2408e284baa8cc6302181f804244d7fa454ae0c28982a224b485800cee3c026f4b491c0fc369db08ef334ac3f14353f
6
+ metadata.gz: 746a3e50610f0e85acd6b44944496028b3b0bb3ab12eecffb4f9fbb9e7259824da93066461e224933f07625fd4a835732b55d734d198cebb48c5727ad456ac57
7
+ data.tar.gz: 0adc0489f9491733c3a3e57c0ef6cf28064699531711c2a56847660b2e0417028dee92e742c74aa8b574fe2b9776b89163e8bfdc8b9dd62a583621f918c2b271
@@ -7,23 +7,8 @@ permissions:
7
7
  contents: read
8
8
  jobs:
9
9
  pr_commented:
10
- runs-on: ubuntu-20.04
11
- if: startsWith(github.event.comment.body, '/dobby')
12
- env:
13
- BUNDLE_WITHOUT: "development:test"
14
- steps:
15
- - name: Chekcout action
16
- uses: actions/checkout@v3
17
- with:
18
- repository: 'simplybusiness/dobby'
19
- ref: 'v3.0.0'
20
- - name: Set up ruby
21
- uses: ruby/setup-ruby@v1
22
- with:
23
- bundler-cache: true
24
- - name: Bump version
25
- uses: simplybusiness/dobby@v3.0.1
26
- env:
27
- DOBBY_APP_ID: ${{ secrets.DOBBY_APP_ID }}
28
- DOBBY_PRIVATE_KEY: ${{ secrets.DOBBY_PRIVATE_KEY }}
29
- VERSION_FILE_PATH: lib/simplycop/version.rb
10
+ uses: simplybusiness/github-action-reusable-workflows/.github/workflows/dobby.yaml@v1
11
+ with:
12
+ version_file_path: ./lib/simplycop/version.rb
13
+ secrets: inherit
14
+
data/.simplycop.yml CHANGED
@@ -313,3 +313,48 @@ Style/WordArray:
313
313
 
314
314
  Style/ZeroLengthPredicate:
315
315
  Enabled: true
316
+
317
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
318
+ Enabled: true
319
+
320
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
321
+ Enabled: true
322
+
323
+ Lint/EmptyInPattern: # new in 1.16
324
+ Enabled: true
325
+
326
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
327
+ Enabled: true
328
+
329
+ Naming/BlockForwarding: # new in 1.24
330
+ Enabled: true
331
+
332
+ Style/EmptyHeredoc: # new in 1.32
333
+ Enabled: true
334
+
335
+ Style/FileRead: # new in 1.24
336
+ Enabled: true
337
+
338
+ Style/InPatternThen: # new in 1.16
339
+ Enabled: true
340
+
341
+ Style/MagicCommentFormat: # new in 1.35
342
+ Enabled: true
343
+
344
+ Style/MapCompactWithConditionalBlock: # new in 1.30
345
+ Enabled: true
346
+
347
+ Style/MultilineInPatternThen: # new in 1.16
348
+ Enabled: true
349
+
350
+ Style/NestedFileDirname: # new in 1.26
351
+ Enabled: true
352
+
353
+ Style/NumberedParameters: # new in 1.22
354
+ Enabled: true
355
+
356
+ Style/NumberedParametersLimit: # new in 1.22
357
+ Enabled: true
358
+
359
+ Style/ObjectThen: # new in 1.28
360
+ Enabled: true
data/.simplycop_rails.yml CHANGED
@@ -61,3 +61,42 @@ Rails/WhereExists:
61
61
  # Conflicts with Mongoid
62
62
  Rails/WhereNot:
63
63
  Enabled: false
64
+
65
+ Rails/ActionControllerTestCase: # new in 2.14
66
+ Enabled: true
67
+
68
+ Rails/AddColumnIndex: # new in 2.11
69
+ Enabled: true
70
+
71
+ Rails/DotSeparatedKeys: # new in 2.15
72
+ Enabled: true
73
+
74
+ Rails/DuplicateAssociation: # new in 2.14
75
+ Enabled: true
76
+
77
+ Rails/DuplicateScope: # new in 2.14
78
+ Enabled: true
79
+
80
+ Rails/EagerEvaluationLogMessage: # new in 2.11
81
+ Enabled: true
82
+
83
+ Rails/ExpandedDateRange: # new in 2.11
84
+ Enabled: true
85
+
86
+ Rails/I18nLazyLookup: # new in 2.14
87
+ Enabled: true
88
+
89
+ Rails/MigrationClassName: # new in 2.14
90
+ Enabled: true
91
+
92
+ Rails/RedundantTravelBack: # new in 2.12
93
+ Enabled: true
94
+
95
+ Rails/ToFormattedS: # new in 2.15
96
+ Enabled: true
97
+
98
+ Rails/TransactionExitStatement: # new in 2.14
99
+ Enabled: true
100
+
101
+ Rails/UnusedIgnoredColumns: # new in 2.11
102
+ Enabled: true
data/.simplycop_rspec.yml CHANGED
@@ -46,3 +46,9 @@ RSpec/ScatteredSetup:
46
46
 
47
47
  RSpec/StubbedMock:
48
48
  Enabled: false
49
+
50
+ RSpec/SubjectDeclaration: # new in 2.5
51
+ Enabled: true
52
+
53
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
54
+ Enabled: true
@@ -5,7 +5,7 @@ module Security
5
5
  def self.read_file
6
6
  gem_path = File.expand_path("#{File.dirname(__FILE__)}../../../../")
7
7
 
8
- file = File.open("#{gem_path}/vuln_db.json", "r").read.strip
8
+ file = File.read("#{gem_path}/vuln_db.json").strip
9
9
  json = JSON.parse(file)
10
10
  json["vulnerabilities"]["rails"]
11
11
  end
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.11.0'
10
+ VERSION = '1.12.1'
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop