rubocop-bsm 0.5.5 → 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: 16c2191c1605416e368a1a0e3bceeb1f99c8382a51c89e7cc74e9398329911d4
4
- data.tar.gz: b61e33785f6ddfd29fa9f552da7e3f3a655c51c03327883cc0c889b70f724d71
3
+ metadata.gz: 041be2d2f7252c7ad0e36f5545c0aabed4225da1ea4f614f89445f4afd1a35bd
4
+ data.tar.gz: ed995926bb1e6904b4f5cd0f2fe38a8d7cf465f994d2252c8e4832932928774d
5
5
  SHA512:
6
- metadata.gz: 5f43f688620d71c9bd34839d08e76c6cdf1aa21de02b9282cdfb591c9b6735da53a49a2fe5c488215216902b10d4ce27aaa17d137946a1a8dd9ca1ad9be8224f
7
- data.tar.gz: f6c1e2dc486423de6029154e7c0379c76bfbd5b9a7fa69951bed764aef0aa21097795c8abc7a2d26802369cd59252135134f4748c8018b94ba892c8ac5825bdb
6
+ metadata.gz: 4e8a0ee3eb5eb6d2419184d7b105ea29f599dbd81a97b42b1fd2b5a95daa91c1ab69c450734dcf5234f9acd6710a9155bff8a857344756f359ed57b9a214d305
7
+ data.tar.gz: 1b52adbb89aef5b7aea4b0a08f8455e652cf2a977cebf7185f04d247f7b4615a2587d725d56986bca4d1cacc710c49e02e28ba660785474c2b8f0bd538edd327
@@ -0,0 +1,21 @@
1
+ name: Test
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+ branches:
8
+ - main
9
+ jobs:
10
+ ruby:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ["2.5", "2.6", "2.7", "3.0"]
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ bundler-cache: true
21
+ - run: bundle exec rake
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  /pkg/
4
4
  /tmp/
5
5
  /Gemfile.lock
6
+ *~
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  inherit_from: default.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.6
4
+ TargetRubyVersion: 2.5
data/default.yml CHANGED
@@ -29,9 +29,7 @@ Lint/AmbiguousBlockAssociation:
29
29
  - "spec/**/*_spec.rb"
30
30
 
31
31
  ## RSpec
32
- RSpec/ExampleLength:
33
- Enabled: false
34
- RSpec/MultipleExpectations:
35
- Enabled: false
36
32
  RSpec/NamedSubject:
37
33
  Enabled: false
34
+ RSpec/ExpectInHook:
35
+ Enabled: false
data/rails.yml CHANGED
@@ -20,6 +20,12 @@ Metrics/MethodLength:
20
20
  - "db/**/*.rb"
21
21
 
22
22
  ## Rails
23
+ Rails/EnvironmentVariableAccess:
24
+ Enabled: false
25
+ Rails/HasAndBelongsToMany:
26
+ Enabled: false
23
27
  Rails/HttpPositionalArguments:
24
28
  Exclude:
25
- - "spec/api/**"
29
+ - "spec/**/*.rb"
30
+ Rails/NotNullColumn:
31
+ Enabled: false
data/rubocop-bsm.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'rubocop-bsm'
5
- spec.version = '0.5.5'
5
+ spec.version = '0.6.0'
6
6
  spec.authors = ['Black Square Media']
7
7
  spec.email = ['info@blacksquaremedia.com']
8
8
 
@@ -12,14 +12,14 @@ Gem::Specification.new do |spec|
12
12
  spec.licenses = ['Apache 2.0']
13
13
 
14
14
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
15
- spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
17
 
18
18
  spec.add_runtime_dependency 'rubocop', '~> 1.0'
19
19
  spec.add_runtime_dependency 'rubocop-performance'
20
- spec.add_runtime_dependency 'rubocop-rails'
21
20
  spec.add_runtime_dependency 'rubocop-rake'
22
21
  spec.add_runtime_dependency 'rubocop-rspec'
23
22
 
24
23
  spec.add_development_dependency 'rake'
24
+ spec.add_development_dependency 'rubocop-rails'
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-bsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2021-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop-rails
42
+ name: rubocop-rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubocop-rake
56
+ name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,13 +67,13 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop-rspec
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
- type: :runtime
76
+ type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: rubocop-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/workflows/test.yml"
104
105
  - ".gitignore"
105
106
  - ".rubocop.yml"
106
107
  - Gemfile
@@ -124,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
125
  requirements:
125
126
  - - ">="
126
127
  - !ruby/object:Gem::Version
127
- version: 2.6.0
128
+ version: 2.5.0
128
129
  required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  requirements:
130
131
  - - ">="