platform-style 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +63 -41
- data/default.yml +47 -5
- data/lib/platform/style/version.rb +1 -1
- metadata +56 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef2132cdfc4f9f30fd2353ab5619087b15462a3a547701e81cb28a07322ab5ce
|
4
|
+
data.tar.gz: 835e6d8f9d40ddfcc17db1b03a6d0cfc7decb6d5f49c1e66ecfd8bf88e2a6b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9685570a91d6307e4b7a2f96469f076a750f10d9e00309dda667972b14bd60cf6ba89d20098ece64189f640c4278ac77402fe722b3470adb81fffd062f4648b1
|
7
|
+
data.tar.gz: bbd6784a22bd4e36ab340960c8a1f443162fec18e174fcc0e41bbdae7e8b743369e4e4be81121c108d17a34ff3bc75564ffdd9c8c4523c21d0de0dcf91c500cf
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,70 +1,92 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
platform-style (0.
|
5
|
-
rubocop (
|
6
|
-
rubocop-
|
7
|
-
rubocop-
|
8
|
-
rubocop-
|
9
|
-
rubocop-
|
4
|
+
platform-style (0.4.0)
|
5
|
+
rubocop (>= 1.59)
|
6
|
+
rubocop-factory_bot (>= 2.24)
|
7
|
+
rubocop-graphql (>= 0.19)
|
8
|
+
rubocop-performance (>= 1.20)
|
9
|
+
rubocop-rails (>= 2.23)
|
10
|
+
rubocop-rake (>= 0.6)
|
11
|
+
rubocop-rspec (>= 2.25)
|
10
12
|
|
11
13
|
GEM
|
12
14
|
remote: https://rubygems.org/
|
13
15
|
specs:
|
14
|
-
activesupport (7.
|
15
|
-
|
16
|
+
activesupport (7.2.1)
|
17
|
+
base64
|
18
|
+
bigdecimal
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
20
|
+
connection_pool (>= 2.2.5)
|
21
|
+
drb
|
16
22
|
i18n (>= 1.6, < 2)
|
23
|
+
logger (>= 1.4.2)
|
17
24
|
minitest (>= 5.1)
|
18
|
-
|
25
|
+
securerandom (>= 0.3)
|
26
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
19
27
|
ast (2.4.2)
|
20
|
-
|
21
|
-
|
28
|
+
base64 (0.2.0)
|
29
|
+
bigdecimal (3.1.8)
|
30
|
+
concurrent-ruby (1.3.4)
|
31
|
+
connection_pool (2.4.1)
|
32
|
+
drb (2.2.1)
|
33
|
+
i18n (1.14.6)
|
22
34
|
concurrent-ruby (~> 1.0)
|
23
|
-
json (2.
|
24
|
-
|
25
|
-
|
26
|
-
|
35
|
+
json (2.7.2)
|
36
|
+
language_server-protocol (3.17.0.3)
|
37
|
+
logger (1.6.1)
|
38
|
+
minitest (5.25.1)
|
39
|
+
parallel (1.26.3)
|
40
|
+
parser (3.3.5.0)
|
27
41
|
ast (~> 2.4.1)
|
28
|
-
|
42
|
+
racc
|
43
|
+
racc (1.8.1)
|
44
|
+
rack (3.1.7)
|
29
45
|
rainbow (3.1.1)
|
30
|
-
rake (13.
|
31
|
-
regexp_parser (2.
|
32
|
-
|
33
|
-
rubocop (1.42.0)
|
46
|
+
rake (13.2.1)
|
47
|
+
regexp_parser (2.9.2)
|
48
|
+
rubocop (1.66.1)
|
34
49
|
json (~> 2.3)
|
50
|
+
language_server-protocol (>= 3.17.0)
|
35
51
|
parallel (~> 1.10)
|
36
|
-
parser (>= 3.
|
52
|
+
parser (>= 3.3.0.2)
|
37
53
|
rainbow (>= 2.2.2, < 4.0)
|
38
|
-
regexp_parser (>=
|
39
|
-
|
40
|
-
rubocop-ast (>= 1.24.1, < 2.0)
|
54
|
+
regexp_parser (>= 2.4, < 3.0)
|
55
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
41
56
|
ruby-progressbar (~> 1.7)
|
42
|
-
unicode-display_width (>=
|
43
|
-
rubocop-ast (1.
|
44
|
-
parser (>= 3.
|
45
|
-
rubocop-
|
46
|
-
rubocop (
|
47
|
-
rubocop-
|
48
|
-
rubocop (>= 1.
|
49
|
-
|
50
|
-
|
57
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
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)
|
65
|
+
rubocop (>= 1.48.1, < 2.0)
|
66
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
67
|
+
rubocop-rails (2.26.2)
|
51
68
|
activesupport (>= 4.2.0)
|
52
69
|
rack (>= 1.1)
|
53
|
-
rubocop (>= 1.
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
70
|
+
rubocop (>= 1.52.0, < 2.0)
|
71
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
72
|
+
rubocop-rake (0.6.0)
|
73
|
+
rubocop (~> 1.0)
|
74
|
+
rubocop-rspec (3.0.5)
|
75
|
+
rubocop (~> 1.61)
|
76
|
+
ruby-progressbar (1.13.0)
|
77
|
+
securerandom (0.3.1)
|
78
|
+
tzinfo (2.0.6)
|
58
79
|
concurrent-ruby (~> 1.0)
|
59
|
-
unicode-display_width (2.
|
80
|
+
unicode-display_width (2.6.0)
|
60
81
|
|
61
82
|
PLATFORMS
|
62
83
|
arm64-darwin-21
|
84
|
+
arm64-darwin-23
|
63
85
|
|
64
86
|
DEPENDENCIES
|
65
87
|
platform-style!
|
66
|
-
rake (
|
67
|
-
rubocop (
|
88
|
+
rake (>= 13.0)
|
89
|
+
rubocop (>= 1.59)
|
68
90
|
|
69
91
|
BUNDLED WITH
|
70
92
|
2.3.17
|
data/default.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require:
|
2
|
+
- rubocop-factory_bot
|
2
3
|
- rubocop-graphql
|
3
4
|
- rubocop-performance
|
5
|
+
- rubocop-rake
|
4
6
|
- rubocop-rails
|
5
7
|
- rubocop-rspec
|
6
8
|
|
@@ -11,7 +13,7 @@ AllCops:
|
|
11
13
|
- db/data_schema.rb
|
12
14
|
- vendor/bundle/**/*
|
13
15
|
NewCops: enable
|
14
|
-
TargetRubyVersion: 3.1
|
16
|
+
TargetRubyVersion: 3.1
|
15
17
|
|
16
18
|
# GraphQL
|
17
19
|
|
@@ -24,6 +26,9 @@ GraphQL/ExtractType:
|
|
24
26
|
GraphQL/FieldMethod:
|
25
27
|
Enabled: false
|
26
28
|
|
29
|
+
GraphQL/ObjectDescription:
|
30
|
+
Enabled: false
|
31
|
+
|
27
32
|
# Layout
|
28
33
|
|
29
34
|
Layout/ClassStructure:
|
@@ -49,36 +54,57 @@ Layout/ClassStructure:
|
|
49
54
|
- after_create
|
50
55
|
- after_save
|
51
56
|
- after_commit
|
57
|
+
encryption:
|
58
|
+
- encrypts
|
52
59
|
macros:
|
53
60
|
- accepts_nested_attributes_for
|
54
61
|
- acts_as_sequenced
|
55
62
|
- counter_culture
|
56
63
|
- has_secure_token
|
57
|
-
- monetize
|
58
|
-
- serialize
|
59
64
|
module_inclusion:
|
60
65
|
- include
|
61
66
|
- prepend
|
62
67
|
- extend
|
68
|
+
money:
|
69
|
+
- monetize
|
70
|
+
platform_prices:
|
71
|
+
- expose_financials
|
72
|
+
- platform_discounts
|
73
|
+
- platform_price
|
74
|
+
- platform_resource_key
|
75
|
+
- platform_shipping
|
76
|
+
- platform_tax
|
63
77
|
scopes:
|
64
78
|
- default_scope
|
65
79
|
- scope
|
80
|
+
serialisation:
|
81
|
+
- serialize
|
82
|
+
state_machine:
|
83
|
+
- aasm
|
66
84
|
validations:
|
67
85
|
- validate
|
68
86
|
- validates
|
69
87
|
- validates_each
|
88
|
+
versioning:
|
89
|
+
- has_paper_trail
|
70
90
|
ExpectedOrder:
|
71
91
|
- module_inclusion
|
92
|
+
- constants
|
72
93
|
- scopes
|
73
94
|
- public_constants
|
74
95
|
- public_attributes
|
75
96
|
- enum
|
76
|
-
-
|
97
|
+
- serialisation
|
98
|
+
- encryption
|
77
99
|
- associations
|
78
100
|
- validations
|
79
101
|
- delegate
|
80
102
|
- callbacks
|
103
|
+
- platform_prices
|
104
|
+
- money
|
105
|
+
- versioning
|
81
106
|
- macros
|
107
|
+
- state_machine
|
82
108
|
- public_class_methods
|
83
109
|
- initializer
|
84
110
|
- public_methods
|
@@ -109,6 +135,8 @@ Layout/LineLength:
|
|
109
135
|
Enabled: true
|
110
136
|
Exclude:
|
111
137
|
- app/graphql/**/*
|
138
|
+
- app/types/platform_types.rb
|
139
|
+
- db/migrate/*
|
112
140
|
Max: 120
|
113
141
|
|
114
142
|
Layout/MultilineMethodCallIndentation:
|
@@ -118,7 +146,7 @@ Layout/MultilineMethodCallIndentation:
|
|
118
146
|
# Metrics
|
119
147
|
|
120
148
|
Metrics/AbcSize:
|
121
|
-
Max:
|
149
|
+
Max: 35
|
122
150
|
Exclude:
|
123
151
|
- db/data/*.rb
|
124
152
|
|
@@ -131,6 +159,7 @@ Metrics/BlockLength:
|
|
131
159
|
- factory
|
132
160
|
- it
|
133
161
|
- mutation
|
162
|
+
- namespace
|
134
163
|
- parse
|
135
164
|
- promises
|
136
165
|
- routes.draw
|
@@ -185,6 +214,10 @@ Naming/VariableNumber:
|
|
185
214
|
AllowedIdentifiers:
|
186
215
|
- address1
|
187
216
|
- address2
|
217
|
+
- alpha2
|
218
|
+
- alpha3
|
219
|
+
- street1
|
220
|
+
- street2
|
188
221
|
CheckSymbols: true
|
189
222
|
Enabled: true
|
190
223
|
EnforcedStyle: snake_case
|
@@ -202,6 +235,9 @@ RSpec/ExampleLength:
|
|
202
235
|
- heredoc
|
203
236
|
Max: 20
|
204
237
|
|
238
|
+
RSpec/IndexedLet:
|
239
|
+
Enabled: false
|
240
|
+
|
205
241
|
RSpec/LetSetup:
|
206
242
|
Enabled: false
|
207
243
|
|
@@ -224,9 +260,15 @@ RSpec/MultipleExpectations:
|
|
224
260
|
Style/Documentation:
|
225
261
|
Enabled: false
|
226
262
|
|
263
|
+
RSpec/ImplicitSubject:
|
264
|
+
EnforcedStyle: single_statement_only
|
265
|
+
|
227
266
|
Style/MultilineIfModifier:
|
228
267
|
Enabled: false
|
229
268
|
|
269
|
+
Style/NegatedIf:
|
270
|
+
EnforcedStyle: postfix
|
271
|
+
|
230
272
|
Style/NumericLiterals:
|
231
273
|
AllowedPatterns:
|
232
274
|
- \d{10,}
|
metadata
CHANGED
@@ -1,88 +1,116 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platform-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2024-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.59'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.59'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-factory_bot
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.24'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.24'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-graphql
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
47
|
+
version: '0.19'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
54
|
+
version: '0.19'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubocop-performance
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
61
|
+
version: '1.20'
|
48
62
|
type: :runtime
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
68
|
+
version: '1.20'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rubocop-rails
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
75
|
+
version: '2.23'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
82
|
+
version: '2.23'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.6'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.6'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rubocop-rspec
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
|
-
- - "
|
101
|
+
- - ">="
|
74
102
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
103
|
+
version: '2.25'
|
76
104
|
type: :runtime
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
|
-
- - "
|
108
|
+
- - ">="
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
110
|
+
version: '2.25'
|
83
111
|
description:
|
84
112
|
email:
|
85
|
-
-
|
113
|
+
- gems@discolabs.com
|
86
114
|
executables: []
|
87
115
|
extensions: []
|
88
116
|
extra_rdoc_files: []
|
@@ -111,17 +139,17 @@ require_paths:
|
|
111
139
|
- lib
|
112
140
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
141
|
requirements:
|
114
|
-
- -
|
142
|
+
- - ">="
|
115
143
|
- !ruby/object:Gem::Version
|
116
|
-
version: 3.1
|
144
|
+
version: '3.1'
|
117
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
146
|
requirements:
|
119
147
|
- - ">="
|
120
148
|
- !ruby/object:Gem::Version
|
121
149
|
version: '0'
|
122
150
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
151
|
+
rubygems_version: 3.5.11
|
124
152
|
signing_key:
|
125
153
|
specification_version: 4
|
126
|
-
summary: Disco Labs style
|
154
|
+
summary: Disco Labs style guide for Platform projects
|
127
155
|
test_files: []
|