platform-style 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.tool-versions +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +67 -55
- data/default.yml +28 -6
- data/lib/platform/style/version.rb +1 -1
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b5346de376088e65be02255f0737234a38d292d92105f2c5c2067314634427
|
4
|
+
data.tar.gz: ccf49f2143d9d5f947f2c38e081b91192e4c3a6bcd6a7111a17ed74daf90fcce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33aa715607fff50d2709aa4c334692263fbdca16e15d8cda6eb5d7666503acf97d5d475348df2f71e75626dbdbb1aefc7354d9a23554e6af2f8cd85a8616cb95
|
7
|
+
data.tar.gz: f1884832e5c84414261ac3c4676c4833a34fb87799894e3c15c82ff0cf2315c15c8089593f81eff742bf43dabc47c46e565c23e7802c1889965798f5332c9939
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.3.7
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,97 +1,109 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
platform-style (0.
|
4
|
+
platform-style (0.5.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-
|
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 (
|
16
|
+
activesupport (8.0.2)
|
17
17
|
base64
|
18
|
+
benchmark (>= 0.3)
|
18
19
|
bigdecimal
|
19
|
-
concurrent-ruby (~> 1.0, >= 1.
|
20
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
20
21
|
connection_pool (>= 2.2.5)
|
21
22
|
drb
|
22
23
|
i18n (>= 1.6, < 2)
|
24
|
+
logger (>= 1.4.2)
|
23
25
|
minitest (>= 5.1)
|
24
|
-
|
25
|
-
tzinfo (~> 2.0)
|
26
|
-
|
26
|
+
securerandom (>= 0.3)
|
27
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
28
|
+
uri (>= 0.13.1)
|
29
|
+
ast (2.4.3)
|
27
30
|
base64 (0.2.0)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
i18n (1.14.
|
31
|
+
benchmark (0.4.0)
|
32
|
+
bigdecimal (3.1.9)
|
33
|
+
concurrent-ruby (1.3.5)
|
34
|
+
connection_pool (2.5.0)
|
35
|
+
drb (2.2.1)
|
36
|
+
i18n (1.14.7)
|
34
37
|
concurrent-ruby (~> 1.0)
|
35
|
-
json (2.
|
36
|
-
language_server-protocol (3.17.0.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
json (2.10.2)
|
39
|
+
language_server-protocol (3.17.0.4)
|
40
|
+
lint_roller (1.1.0)
|
41
|
+
logger (1.7.0)
|
42
|
+
minitest (5.25.5)
|
43
|
+
parallel (1.26.3)
|
44
|
+
parser (3.3.7.4)
|
41
45
|
ast (~> 2.4.1)
|
42
46
|
racc
|
43
|
-
|
44
|
-
|
47
|
+
prism (1.4.0)
|
48
|
+
racc (1.8.1)
|
49
|
+
rack (3.1.12)
|
45
50
|
rainbow (3.1.1)
|
46
|
-
rake (13.1
|
47
|
-
regexp_parser (2.
|
48
|
-
|
49
|
-
rubocop (1.59.0)
|
51
|
+
rake (13.2.1)
|
52
|
+
regexp_parser (2.10.0)
|
53
|
+
rubocop (1.75.1)
|
50
54
|
json (~> 2.3)
|
51
|
-
language_server-protocol (
|
55
|
+
language_server-protocol (~> 3.17.0.2)
|
56
|
+
lint_roller (~> 1.1.0)
|
52
57
|
parallel (~> 1.10)
|
53
|
-
parser (>= 3.
|
58
|
+
parser (>= 3.3.0.2)
|
54
59
|
rainbow (>= 2.2.2, < 4.0)
|
55
|
-
regexp_parser (>=
|
56
|
-
|
57
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
60
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
61
|
+
rubocop-ast (>= 1.43.0, < 2.0)
|
58
62
|
ruby-progressbar (~> 1.7)
|
59
|
-
unicode-display_width (>= 2.4.0, <
|
60
|
-
rubocop-ast (1.
|
61
|
-
parser (>= 3.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
rubocop (~> 1.
|
66
|
-
rubocop-graphql (1.
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
63
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
64
|
+
rubocop-ast (1.43.0)
|
65
|
+
parser (>= 3.3.7.2)
|
66
|
+
prism (~> 1.4)
|
67
|
+
rubocop-factory_bot (2.27.1)
|
68
|
+
lint_roller (~> 1.1)
|
69
|
+
rubocop (~> 1.72, >= 1.72.1)
|
70
|
+
rubocop-graphql (1.5.5)
|
71
|
+
lint_roller (~> 1.1)
|
72
|
+
rubocop (>= 1.72.1, < 2)
|
73
|
+
rubocop-performance (1.25.0)
|
74
|
+
lint_roller (~> 1.1)
|
75
|
+
rubocop (>= 1.75.0, < 2.0)
|
76
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
77
|
+
rubocop-rails (2.31.0)
|
72
78
|
activesupport (>= 4.2.0)
|
79
|
+
lint_roller (~> 1.1)
|
73
80
|
rack (>= 1.1)
|
74
|
-
rubocop (>= 1.
|
75
|
-
rubocop-ast (>= 1.
|
76
|
-
rubocop-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
rubocop
|
81
|
+
rubocop (>= 1.75.0, < 2.0)
|
82
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
83
|
+
rubocop-rake (0.7.1)
|
84
|
+
lint_roller (~> 1.1)
|
85
|
+
rubocop (>= 1.72.1)
|
86
|
+
rubocop-rspec (3.5.0)
|
87
|
+
lint_roller (~> 1.1)
|
88
|
+
rubocop (~> 1.72, >= 1.72.1)
|
82
89
|
ruby-progressbar (1.13.0)
|
83
|
-
|
90
|
+
securerandom (0.4.1)
|
84
91
|
tzinfo (2.0.6)
|
85
92
|
concurrent-ruby (~> 1.0)
|
86
|
-
unicode-display_width (
|
93
|
+
unicode-display_width (3.1.4)
|
94
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
95
|
+
unicode-emoji (4.0.4)
|
96
|
+
uri (1.0.3)
|
87
97
|
|
88
98
|
PLATFORMS
|
89
99
|
arm64-darwin-21
|
100
|
+
arm64-darwin-23
|
101
|
+
arm64-darwin-24
|
90
102
|
|
91
103
|
DEPENDENCIES
|
92
104
|
platform-style!
|
93
|
-
rake (
|
94
|
-
rubocop (
|
105
|
+
rake (>= 13.0)
|
106
|
+
rubocop (>= 1.59)
|
95
107
|
|
96
108
|
BUNDLED WITH
|
97
109
|
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.
|
16
|
+
TargetRubyVersion: 3.3
|
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,8 @@ Layout/LineLength:
|
|
132
135
|
Enabled: true
|
133
136
|
Exclude:
|
134
137
|
- app/graphql/**/*
|
138
|
+
- app/types/platform_types.rb
|
139
|
+
- config/initializers/*
|
135
140
|
- db/migrate/*
|
136
141
|
Max: 120
|
137
142
|
|
@@ -168,6 +173,7 @@ Metrics/BlockLength:
|
|
168
173
|
CountComments: false
|
169
174
|
Enabled: true
|
170
175
|
Exclude:
|
176
|
+
- app/models/configuration/platform_config.rb
|
171
177
|
- config/**/*
|
172
178
|
- Gemfile
|
173
179
|
|
@@ -210,6 +216,10 @@ Naming/VariableNumber:
|
|
210
216
|
AllowedIdentifiers:
|
211
217
|
- address1
|
212
218
|
- address2
|
219
|
+
- alpha2
|
220
|
+
- alpha3
|
221
|
+
- street1
|
222
|
+
- street2
|
213
223
|
CheckSymbols: true
|
214
224
|
Enabled: true
|
215
225
|
EnforcedStyle: snake_case
|
@@ -218,12 +228,15 @@ Naming/VariableNumber:
|
|
218
228
|
- spec/factories/**/*.rb
|
219
229
|
- spec/requests/**/*.rb
|
220
230
|
|
221
|
-
#
|
231
|
+
# Rails
|
232
|
+
|
233
|
+
Rails/Output:
|
234
|
+
Exclude:
|
235
|
+
- app/scripts/**/*
|
222
236
|
|
223
|
-
|
237
|
+
Rails/SkipsModelValidations:
|
224
238
|
Exclude:
|
225
|
-
-
|
226
|
-
- spec/rails_helper.rb
|
239
|
+
- app/scripts/**/*
|
227
240
|
|
228
241
|
# RSpec
|
229
242
|
|
@@ -234,6 +247,9 @@ RSpec/ExampleLength:
|
|
234
247
|
- heredoc
|
235
248
|
Max: 20
|
236
249
|
|
250
|
+
RSpec/ImplicitSubject:
|
251
|
+
EnforcedStyle: single_statement_only
|
252
|
+
|
237
253
|
RSpec/IndexedLet:
|
238
254
|
Enabled: false
|
239
255
|
|
@@ -262,8 +278,14 @@ Style/Documentation:
|
|
262
278
|
Style/MultilineIfModifier:
|
263
279
|
Enabled: false
|
264
280
|
|
281
|
+
Style/NegatedIf:
|
282
|
+
EnforcedStyle: postfix
|
283
|
+
|
265
284
|
Style/NumericLiterals:
|
266
285
|
AllowedPatterns:
|
267
286
|
- \d{10,}
|
268
287
|
Enabled: true
|
269
288
|
Strict: false
|
289
|
+
|
290
|
+
Style/SafeNavigationChainLength:
|
291
|
+
Max: 4
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Disco Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-02 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-
|
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.
|
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.
|
96
|
+
version: '0.6'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,12 +110,13 @@ dependencies:
|
|
110
110
|
version: '2.25'
|
111
111
|
description:
|
112
112
|
email:
|
113
|
-
-
|
113
|
+
- gems@discolabs.com
|
114
114
|
executables: []
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- ".rubocop.yml"
|
119
|
+
- ".tool-versions"
|
119
120
|
- Gemfile
|
120
121
|
- Gemfile.lock
|
121
122
|
- LICENSE.txt
|
@@ -139,17 +140,17 @@ require_paths:
|
|
139
140
|
- lib
|
140
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
142
|
requirements:
|
142
|
-
- -
|
143
|
+
- - ">="
|
143
144
|
- !ruby/object:Gem::Version
|
144
|
-
version: 3.
|
145
|
+
version: '3.3'
|
145
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
147
|
requirements:
|
147
148
|
- - ">="
|
148
149
|
- !ruby/object:Gem::Version
|
149
150
|
version: '0'
|
150
151
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.5.22
|
152
153
|
signing_key:
|
153
154
|
specification_version: 4
|
154
|
-
summary: Disco Labs style
|
155
|
+
summary: Disco Labs style guide for Platform projects
|
155
156
|
test_files: []
|