platform-style 0.3.0 → 0.4.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: 49a9edc654fff9e1aeed3e8ad881bd6ea11ddddd7db671e6bca2ed345b11c43e
4
- data.tar.gz: 1035565a45b0ab7c7050482ccb0859cd638b615f081f9fbc0528c917d6c5e613
3
+ metadata.gz: ef2132cdfc4f9f30fd2353ab5619087b15462a3a547701e81cb28a07322ab5ce
4
+ data.tar.gz: 835e6d8f9d40ddfcc17db1b03a6d0cfc7decb6d5f49c1e66ecfd8bf88e2a6b79
5
5
  SHA512:
6
- metadata.gz: 4a8484a51f10dc63e462a2a7467c842a0e07623685b062911c512f6d5ce6b1c8640757cf4395a64f812e43508a8adb8970cb9ae9f86bdea0ee6a3d8558ba8706
7
- data.tar.gz: 56e93b193d57b0ff0d6f267eaec7dc5d130d50fd1d03d49f8cb24c51b6703b7c2180c6d289e5cd6e6ff6d05522ae26f80c960f4dc75463721407271fd289d892
6
+ metadata.gz: 9685570a91d6307e4b7a2f96469f076a750f10d9e00309dda667972b14bd60cf6ba89d20098ece64189f640c4278ac77402fe722b3470adb81fffd062f4648b1
7
+ data.tar.gz: bbd6784a22bd4e36ab340960c8a1f443162fec18e174fcc0e41bbdae7e8b743369e4e4be81121c108d17a34ff3bc75564ffdd9c8c4523c21d0de0dcf91c500cf
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'rake', '~> 13.0'
8
- gem 'rubocop', '~> 1.21'
7
+ gem 'rake', '>= 13.0'
8
+ gem 'rubocop', '>= 1.59'
data/Gemfile.lock CHANGED
@@ -1,97 +1,92 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- platform-style (0.3.0)
4
+ platform-style (0.4.0)
5
5
  rubocop (>= 1.59)
6
6
  rubocop-factory_bot (>= 2.24)
7
7
  rubocop-graphql (>= 0.19)
8
8
  rubocop-performance (>= 1.20)
9
9
  rubocop-rails (>= 2.23)
10
- rubocop-restrictenv (>= 0.1)
10
+ rubocop-rake (>= 0.6)
11
11
  rubocop-rspec (>= 2.25)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (7.1.2)
16
+ activesupport (7.2.1)
17
17
  base64
18
18
  bigdecimal
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
20
  connection_pool (>= 2.2.5)
21
21
  drb
22
22
  i18n (>= 1.6, < 2)
23
+ logger (>= 1.4.2)
23
24
  minitest (>= 5.1)
24
- mutex_m
25
- tzinfo (~> 2.0)
25
+ securerandom (>= 0.3)
26
+ tzinfo (~> 2.0, >= 2.0.5)
26
27
  ast (2.4.2)
27
28
  base64 (0.2.0)
28
- bigdecimal (3.1.5)
29
- concurrent-ruby (1.2.2)
29
+ bigdecimal (3.1.8)
30
+ concurrent-ruby (1.3.4)
30
31
  connection_pool (2.4.1)
31
- drb (2.2.0)
32
- ruby2_keywords
33
- i18n (1.14.1)
32
+ drb (2.2.1)
33
+ i18n (1.14.6)
34
34
  concurrent-ruby (~> 1.0)
35
- json (2.7.1)
35
+ json (2.7.2)
36
36
  language_server-protocol (3.17.0.3)
37
- minitest (5.20.0)
38
- mutex_m (0.2.0)
39
- parallel (1.24.0)
40
- parser (3.2.2.4)
37
+ logger (1.6.1)
38
+ minitest (5.25.1)
39
+ parallel (1.26.3)
40
+ parser (3.3.5.0)
41
41
  ast (~> 2.4.1)
42
42
  racc
43
- racc (1.7.3)
44
- rack (3.0.8)
43
+ racc (1.8.1)
44
+ rack (3.1.7)
45
45
  rainbow (3.1.1)
46
- rake (13.1.0)
47
- regexp_parser (2.8.3)
48
- rexml (3.2.6)
49
- rubocop (1.59.0)
46
+ rake (13.2.1)
47
+ regexp_parser (2.9.2)
48
+ rubocop (1.66.1)
50
49
  json (~> 2.3)
51
50
  language_server-protocol (>= 3.17.0)
52
51
  parallel (~> 1.10)
53
- parser (>= 3.2.2.4)
52
+ parser (>= 3.3.0.2)
54
53
  rainbow (>= 2.2.2, < 4.0)
55
- regexp_parser (>= 1.8, < 3.0)
56
- rexml (>= 3.2.5, < 4.0)
57
- rubocop-ast (>= 1.30.0, < 2.0)
54
+ regexp_parser (>= 2.4, < 3.0)
55
+ rubocop-ast (>= 1.32.2, < 2.0)
58
56
  ruby-progressbar (~> 1.7)
59
57
  unicode-display_width (>= 2.4.0, < 3.0)
60
- rubocop-ast (1.30.0)
61
- parser (>= 3.2.1.0)
62
- rubocop-capybara (2.19.0)
63
- rubocop (~> 1.41)
64
- rubocop-factory_bot (2.24.0)
65
- rubocop (~> 1.33)
66
- rubocop-graphql (1.4.0)
67
- rubocop (>= 0.90, < 2)
68
- rubocop-performance (1.20.1)
58
+ rubocop-ast (1.32.3)
59
+ parser (>= 3.3.1.0)
60
+ rubocop-factory_bot (2.26.1)
61
+ rubocop (~> 1.61)
62
+ rubocop-graphql (1.5.4)
63
+ rubocop (>= 1.50, < 2)
64
+ rubocop-performance (1.22.1)
69
65
  rubocop (>= 1.48.1, < 2.0)
70
- rubocop-ast (>= 1.30.0, < 2.0)
71
- rubocop-rails (2.23.1)
66
+ rubocop-ast (>= 1.31.1, < 2.0)
67
+ rubocop-rails (2.26.2)
72
68
  activesupport (>= 4.2.0)
73
69
  rack (>= 1.1)
74
- rubocop (>= 1.33.0, < 2.0)
75
- rubocop-ast (>= 1.30.0, < 2.0)
76
- rubocop-restrictenv (0.1.1)
70
+ rubocop (>= 1.52.0, < 2.0)
71
+ rubocop-ast (>= 1.31.1, < 2.0)
72
+ rubocop-rake (0.6.0)
77
73
  rubocop (~> 1.0)
78
- rubocop-rspec (2.25.0)
79
- rubocop (~> 1.40)
80
- rubocop-capybara (~> 2.17)
81
- rubocop-factory_bot (~> 2.22)
74
+ rubocop-rspec (3.0.5)
75
+ rubocop (~> 1.61)
82
76
  ruby-progressbar (1.13.0)
83
- ruby2_keywords (0.0.5)
77
+ securerandom (0.3.1)
84
78
  tzinfo (2.0.6)
85
79
  concurrent-ruby (~> 1.0)
86
- unicode-display_width (2.5.0)
80
+ unicode-display_width (2.6.0)
87
81
 
88
82
  PLATFORMS
89
83
  arm64-darwin-21
84
+ arm64-darwin-23
90
85
 
91
86
  DEPENDENCIES
92
87
  platform-style!
93
- rake (~> 13.0)
94
- rubocop (~> 1.21)
88
+ rake (>= 13.0)
89
+ rubocop (>= 1.59)
95
90
 
96
91
  BUNDLED WITH
97
92
  2.3.17
data/default.yml CHANGED
@@ -2,8 +2,8 @@ require:
2
2
  - rubocop-factory_bot
3
3
  - rubocop-graphql
4
4
  - rubocop-performance
5
+ - rubocop-rake
5
6
  - rubocop-rails
6
- - rubocop-restrictenv
7
7
  - rubocop-rspec
8
8
 
9
9
  AllCops:
@@ -13,7 +13,7 @@ AllCops:
13
13
  - db/data_schema.rb
14
14
  - vendor/bundle/**/*
15
15
  NewCops: enable
16
- TargetRubyVersion: 3.1.2
16
+ TargetRubyVersion: 3.1
17
17
 
18
18
  # GraphQL
19
19
 
@@ -26,6 +26,9 @@ GraphQL/ExtractType:
26
26
  GraphQL/FieldMethod:
27
27
  Enabled: false
28
28
 
29
+ GraphQL/ObjectDescription:
30
+ Enabled: false
31
+
29
32
  # Layout
30
33
 
31
34
  Layout/ClassStructure:
@@ -132,6 +135,7 @@ Layout/LineLength:
132
135
  Enabled: true
133
136
  Exclude:
134
137
  - app/graphql/**/*
138
+ - app/types/platform_types.rb
135
139
  - db/migrate/*
136
140
  Max: 120
137
141
 
@@ -210,6 +214,10 @@ Naming/VariableNumber:
210
214
  AllowedIdentifiers:
211
215
  - address1
212
216
  - address2
217
+ - alpha2
218
+ - alpha3
219
+ - street1
220
+ - street2
213
221
  CheckSymbols: true
214
222
  Enabled: true
215
223
  EnforcedStyle: snake_case
@@ -218,13 +226,6 @@ Naming/VariableNumber:
218
226
  - spec/factories/**/*.rb
219
227
  - spec/requests/**/*.rb
220
228
 
221
- # Restrict ENV
222
-
223
- Restrictenv/NoEnvAccess:
224
- Exclude:
225
- - 'config/**/*'
226
- - spec/rails_helper.rb
227
-
228
229
  # RSpec
229
230
 
230
231
  RSpec/ExampleLength:
@@ -259,9 +260,15 @@ RSpec/MultipleExpectations:
259
260
  Style/Documentation:
260
261
  Enabled: false
261
262
 
263
+ RSpec/ImplicitSubject:
264
+ EnforcedStyle: single_statement_only
265
+
262
266
  Style/MultilineIfModifier:
263
267
  Enabled: false
264
268
 
269
+ Style/NegatedIf:
270
+ EnforcedStyle: postfix
271
+
265
272
  Style/NumericLiterals:
266
273
  AllowedPatterns:
267
274
  - \d{10,}
@@ -3,7 +3,7 @@
3
3
  module Platform
4
4
  module Style
5
5
 
6
- VERSION = '0.3.0'
6
+ VERSION = '0.4.0'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platform-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
- - David Bird
7
+ - Disco Labs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-31 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.23'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rubocop-restrictenv
84
+ name: rubocop-rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.1'
89
+ version: '0.6'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0.1'
96
+ version: '0.6'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +110,7 @@ dependencies:
110
110
  version: '2.25'
111
111
  description:
112
112
  email:
113
- - david@discolabs.com
113
+ - gems@discolabs.com
114
114
  executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
@@ -139,17 +139,17 @@ require_paths:
139
139
  - lib
140
140
  required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - '='
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: 3.1.2
144
+ version: '3.1'
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.3.7
151
+ rubygems_version: 3.5.11
152
152
  signing_key:
153
153
  specification_version: 4
154
- summary: Disco Labs style guides for Platform projects
154
+ summary: Disco Labs style guide for Platform projects
155
155
  test_files: []