upennlib-rubocop 1.0.2 → 1.1.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
- SHA256:
3
- metadata.gz: ae5367a36fadd7cb7dc9a697b034de57ddce624258a38e8a3ee9e9e07bb6847e
4
- data.tar.gz: 1af6f427bfa3abe6fc240249f57a95c1471b961e07ecc110f933b351df72a4ab
2
+ SHA1:
3
+ metadata.gz: eeff03b0bc10f86b0dc4ef076ef92be8df0a9d7b
4
+ data.tar.gz: 8baa194ca0391945f642d4b5789281aad3a52ac4
5
5
  SHA512:
6
- metadata.gz: 5ebae48d98ffa0607574f2e32bcf42f5ecb2a799f244c888c163225aac2f956d6f54c673259be6e06fba951d76b518294651142fe8803852a0afd6fb921b2114
7
- data.tar.gz: dc686fb4b6287aac6c47b1b7bea3416e0b8dd1622c0aa1f8f951fab7c2c5d4e44a7fec7edf51a900ee02a5f750950b26809a56432f37a97d875762b366599c76
6
+ metadata.gz: 1b93a313a9135f416082c4e98a9ba83ff2be608b34477d494d029b06b24b4c729575ecc1ca799300e86781525f9b5cc102cb3494087f8955ff064e5982626416
7
+ data.tar.gz: 124d074ab6d45319c7d9024c22762de160af2a36c571312662b8e08f6a1dc9bd87603c04a90f291590940a0e7b3260600734e51d66de7312e1427676e5eb3d2d
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/README.md CHANGED
@@ -33,4 +33,14 @@ Understandably, it can be difficult to address all RuboCop issues when adding ru
33
33
  rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000
34
34
  ```
35
35
 
36
+ ## Publishing Gem
37
+ To publish a new version of this gem to RubyGems:
38
+ 1. Update the version number in `upennlib-rubocop.gemspec`
39
+ 2. Create a Gitlab Release
40
+ 3. Locally on your machine (with the lastest changes):
41
+ ```
42
+ gem build upennlib-rubocop.gemspec
43
+ gem push upennlib-rubocop-{VERSION}.gem
44
+ ```
45
+
36
46
 
@@ -1,13 +1,14 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'upennlib-rubocop'
3
- s.version = '1.0.2'
3
+ s.version = '1.1.1'
4
4
  s.summary = "Rubocop style configuration to be used in UPenn Libraries Projects"
5
5
  s.description = "UPenn Libraries Rubocop Configuration"
6
- s.authors = ["Carla Galarza", "Mike Kanning"]
6
+ s.authors = ["Carla Galarza", "Mike Kanning", "Patrick Perkins", "Amrey Mathurin"]
7
7
  s.email = 'cgalarza@upenn.edu'
8
8
  s.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
9
9
 
10
10
  s.add_dependency 'rubocop', '~> 1.24'
11
+ s.add_dependency 'rubocop-capybara'
11
12
  s.add_dependency 'rubocop-performance'
12
13
  s.add_dependency 'rubocop-rails'
13
14
  s.add_dependency 'rubocop-rake'
@@ -1,4 +1,5 @@
1
1
  require:
2
+ - rubocop-capybara
2
3
  - rubocop-performance
3
4
  - rubocop-rails
4
5
  - rubocop-rake
@@ -11,29 +12,48 @@ inherit_mode:
11
12
  AllCops:
12
13
  NewCops: enable # Enabling all new cops. Problematic cops can be disabled on a case-by-case basis.
13
14
 
15
+ # Allow for hashes to be aligned by `key` or in a `table` format. Default is just to allow `key`.
16
+ Layout/HashAlignment:
17
+ EnforcedColonStyle:
18
+ - key
19
+ - table
20
+ EnforcedHashRocketStyle:
21
+ - key
22
+ - table
23
+
24
+ # Don't require calls to +super+ because sometimes the superclass method has no behavior or behavior you explicitly want to avoid
25
+ # See: https://github.com/rubocop/ruby-style-guide/issues/809
26
+ Lint/MissingSuper:
27
+ Enabled: false
28
+
14
29
  Metrics/BlockLength:
15
- IgnoredMethods: ['configure_blacklight']
30
+ AllowedMethods: ['configure_blacklight']
16
31
  Exclude:
17
32
  - 'Rakefile'
18
33
  - '**/*.rake'
19
34
  - 'spec/**/*.rb'
20
35
  - 'config/environments/**.rb'
21
36
 
22
- Style/FrozenStringLiteralComment:
23
- EnforcedStyle: always_true # Force frozen string literal comment to always be set to true
24
-
25
- Style/Documentation:
26
- Exclude:
27
- - db/migrate/* # Migrations don't need top-level class documentation
37
+ # Count multiline literals as one line in RSpec examples
38
+ RSpec/ExampleLength:
39
+ CountAsOne:
40
+ - array
41
+ - hash
42
+ - heredoc
28
43
 
29
44
  # Allowing two expectations per test in order to allow for aggregated failures, see: https://rspec.rubystyle.guide/#expectation-per-example
30
45
  RSpec/MultipleExpectations:
31
46
  Max: 2
32
47
 
33
- # Don't require calls to +super+ because sometimes the superclass method has no behavior or behavior you explicitly want to avoid
34
- # See: https://github.com/rubocop/ruby-style-guide/issues/809
35
- Lint/MissingSuper:
36
- Enabled: false
48
+ Style/BlockDelimiters:
49
+ EnforcedStyle: braces_for_chaining
50
+
51
+ Style/Documentation:
52
+ Exclude:
53
+ - db/migrate/* # Migrations don't need top-level class documentation
54
+
55
+ Style/FrozenStringLiteralComment:
56
+ EnforcedStyle: always_true # Force frozen string literal comment to always be set to true
37
57
 
38
58
  # Don't use ruby 3.1 hash value shorthand, see: https://docs.rubocop.org/rubocop/cops_style.html#enforcedshorthandsyntax-never
39
59
  Style/HashSyntax:
metadata CHANGED
@@ -1,15 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upennlib-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carla Galarza
8
8
  - Mike Kanning
9
- autorequire:
9
+ - Patrick Perkins
10
+ - Amrey Mathurin
11
+ autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
12
- date: 2023-03-23 00:00:00.000000000 Z
14
+ date: 2023-10-16 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: rubocop
@@ -25,6 +27,20 @@ dependencies:
25
27
  - - "~>"
26
28
  - !ruby/object:Gem::Version
27
29
  version: '1.24'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rubocop-capybara
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
28
44
  - !ruby/object:Gem::Dependency
29
45
  name: rubocop-performance
30
46
  requirement: !ruby/object:Gem::Requirement
@@ -87,13 +103,14 @@ executables: []
87
103
  extensions: []
88
104
  extra_rdoc_files: []
89
105
  files:
106
+ - ".gitignore"
90
107
  - README.md
91
108
  - upennlib-rubocop.gemspec
92
109
  - upennlib_rubocop_defaults.yml
93
- homepage:
110
+ homepage:
94
111
  licenses: []
95
112
  metadata: {}
96
- post_install_message:
113
+ post_install_message:
97
114
  rdoc_options: []
98
115
  require_paths:
99
116
  - lib
@@ -108,8 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
125
  - !ruby/object:Gem::Version
109
126
  version: '0'
110
127
  requirements: []
111
- rubygems_version: 3.3.3
112
- signing_key:
128
+ rubyforge_project:
129
+ rubygems_version: 2.5.2
130
+ signing_key:
113
131
  specification_version: 4
114
132
  summary: Rubocop style configuration to be used in UPenn Libraries Projects
115
133
  test_files: []