platform-style 0.2.0 → 0.3.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: 3151b838ce926a401c63f0775f32bf59f535b1bd6260b3e748e426d930239590
4
- data.tar.gz: 940ee4bbc5c9dc48b4d04d1347c6b097b1ee5bed10335b13d64cad6841c4bcbf
3
+ metadata.gz: 49a9edc654fff9e1aeed3e8ad881bd6ea11ddddd7db671e6bca2ed345b11c43e
4
+ data.tar.gz: 1035565a45b0ab7c7050482ccb0859cd638b615f081f9fbc0528c917d6c5e613
5
5
  SHA512:
6
- metadata.gz: 5a122ad9e1539b451dbe93623f3024119f0a1033de74921c6a9ff8bd607d6b6c7ea3839fa03dfdfcc6ec8e75c89b78fbbc10be3bbc90883f012e2093d4e563d6
7
- data.tar.gz: 6113f0cb90f673b377fbb64ad39419fec129b2ba2284c2586ae52b6e553e88c1d64c9ed4011659e4e5547f449cf88bf9f0f23452f6a07d1af9d92a46e319f643
6
+ metadata.gz: 4a8484a51f10dc63e462a2a7467c842a0e07623685b062911c512f6d5ce6b1c8640757cf4395a64f812e43508a8adb8970cb9ae9f86bdea0ee6a3d8558ba8706
7
+ data.tar.gz: 56e93b193d57b0ff0d6f267eaec7dc5d130d50fd1d03d49f8cb24c51b6703b7c2180c6d289e5cd6e6ff6d05522ae26f80c960f4dc75463721407271fd289d892
data/Gemfile.lock CHANGED
@@ -1,62 +1,89 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- platform-style (0.2.0)
5
- rubocop (~> 1.42)
6
- rubocop-graphql (~> 0.18)
7
- rubocop-performance (~> 1.15)
8
- rubocop-rails (~> 2.17)
9
- rubocop-rspec (~> 2.16)
4
+ platform-style (0.3.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-restrictenv (>= 0.1)
11
+ rubocop-rspec (>= 2.25)
10
12
 
11
13
  GEM
12
14
  remote: https://rubygems.org/
13
15
  specs:
14
- activesupport (7.0.4)
16
+ activesupport (7.1.2)
17
+ base64
18
+ bigdecimal
15
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
16
22
  i18n (>= 1.6, < 2)
17
23
  minitest (>= 5.1)
24
+ mutex_m
18
25
  tzinfo (~> 2.0)
19
26
  ast (2.4.2)
20
- concurrent-ruby (1.1.10)
21
- i18n (1.12.0)
27
+ base64 (0.2.0)
28
+ bigdecimal (3.1.5)
29
+ concurrent-ruby (1.2.2)
30
+ connection_pool (2.4.1)
31
+ drb (2.2.0)
32
+ ruby2_keywords
33
+ i18n (1.14.1)
22
34
  concurrent-ruby (~> 1.0)
23
- json (2.6.3)
24
- minitest (5.17.0)
25
- parallel (1.22.1)
26
- parser (3.2.0.0)
35
+ json (2.7.1)
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)
27
41
  ast (~> 2.4.1)
28
- rack (3.0.3)
42
+ racc
43
+ racc (1.7.3)
44
+ rack (3.0.8)
29
45
  rainbow (3.1.1)
30
- rake (13.0.6)
31
- regexp_parser (2.6.1)
32
- rexml (3.2.5)
33
- rubocop (1.42.0)
46
+ rake (13.1.0)
47
+ regexp_parser (2.8.3)
48
+ rexml (3.2.6)
49
+ rubocop (1.59.0)
34
50
  json (~> 2.3)
51
+ language_server-protocol (>= 3.17.0)
35
52
  parallel (~> 1.10)
36
- parser (>= 3.1.2.1)
53
+ parser (>= 3.2.2.4)
37
54
  rainbow (>= 2.2.2, < 4.0)
38
55
  regexp_parser (>= 1.8, < 3.0)
39
56
  rexml (>= 3.2.5, < 4.0)
40
- rubocop-ast (>= 1.24.1, < 2.0)
57
+ rubocop-ast (>= 1.30.0, < 2.0)
41
58
  ruby-progressbar (~> 1.7)
42
- unicode-display_width (>= 1.4.0, < 3.0)
43
- rubocop-ast (1.24.1)
44
- parser (>= 3.1.1.0)
45
- rubocop-graphql (0.18.0)
46
- rubocop (>= 0.87, < 2)
47
- rubocop-performance (1.15.2)
48
- rubocop (>= 1.7.0, < 2.0)
49
- rubocop-ast (>= 0.4.0)
50
- rubocop-rails (2.17.4)
59
+ 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)
69
+ rubocop (>= 1.48.1, < 2.0)
70
+ rubocop-ast (>= 1.30.0, < 2.0)
71
+ rubocop-rails (2.23.1)
51
72
  activesupport (>= 4.2.0)
52
73
  rack (>= 1.1)
53
74
  rubocop (>= 1.33.0, < 2.0)
54
- rubocop-rspec (2.16.0)
55
- rubocop (~> 1.33)
56
- ruby-progressbar (1.11.0)
57
- tzinfo (2.0.5)
75
+ rubocop-ast (>= 1.30.0, < 2.0)
76
+ rubocop-restrictenv (0.1.1)
77
+ rubocop (~> 1.0)
78
+ rubocop-rspec (2.25.0)
79
+ rubocop (~> 1.40)
80
+ rubocop-capybara (~> 2.17)
81
+ rubocop-factory_bot (~> 2.22)
82
+ ruby-progressbar (1.13.0)
83
+ ruby2_keywords (0.0.5)
84
+ tzinfo (2.0.6)
58
85
  concurrent-ruby (~> 1.0)
59
- unicode-display_width (2.4.2)
86
+ unicode-display_width (2.5.0)
60
87
 
61
88
  PLATFORMS
62
89
  arm64-darwin-21
data/default.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  require:
2
+ - rubocop-factory_bot
2
3
  - rubocop-graphql
3
4
  - rubocop-performance
4
5
  - rubocop-rails
6
+ - rubocop-restrictenv
5
7
  - rubocop-rspec
6
8
 
7
9
  AllCops:
@@ -49,36 +51,57 @@ Layout/ClassStructure:
49
51
  - after_create
50
52
  - after_save
51
53
  - after_commit
54
+ encryption:
55
+ - encrypts
52
56
  macros:
53
57
  - accepts_nested_attributes_for
54
58
  - acts_as_sequenced
55
59
  - counter_culture
56
60
  - has_secure_token
57
- - monetize
58
- - serialize
59
61
  module_inclusion:
60
62
  - include
61
63
  - prepend
62
64
  - extend
65
+ money:
66
+ - monetize
67
+ platform_prices:
68
+ - expose_financials
69
+ - platform_discounts
70
+ - platform_price
71
+ - platform_resource_key
72
+ - platform_shipping
73
+ - platform_tax
63
74
  scopes:
64
75
  - default_scope
65
76
  - scope
77
+ serialisation:
78
+ - serialize
79
+ state_machine:
80
+ - aasm
66
81
  validations:
67
82
  - validate
68
83
  - validates
69
84
  - validates_each
85
+ versioning:
86
+ - has_paper_trail
70
87
  ExpectedOrder:
71
88
  - module_inclusion
89
+ - constants
72
90
  - scopes
73
91
  - public_constants
74
92
  - public_attributes
75
93
  - enum
76
- - encrypts
94
+ - serialisation
95
+ - encryption
77
96
  - associations
78
97
  - validations
79
98
  - delegate
80
99
  - callbacks
100
+ - platform_prices
101
+ - money
102
+ - versioning
81
103
  - macros
104
+ - state_machine
82
105
  - public_class_methods
83
106
  - initializer
84
107
  - public_methods
@@ -109,6 +132,7 @@ Layout/LineLength:
109
132
  Enabled: true
110
133
  Exclude:
111
134
  - app/graphql/**/*
135
+ - db/migrate/*
112
136
  Max: 120
113
137
 
114
138
  Layout/MultilineMethodCallIndentation:
@@ -118,17 +142,21 @@ Layout/MultilineMethodCallIndentation:
118
142
  # Metrics
119
143
 
120
144
  Metrics/AbcSize:
121
- Max: 30
145
+ Max: 35
122
146
  Exclude:
123
147
  - db/data/*.rb
124
148
 
125
149
  Metrics/BlockLength:
126
150
  AllowedMethods:
151
+ - class_methods
127
152
  - context
128
153
  - describe
129
154
  - expects
130
155
  - factory
131
156
  - it
157
+ - mutation
158
+ - namespace
159
+ - parse
132
160
  - promises
133
161
  - routes.draw
134
162
  - shared_examples
@@ -179,12 +207,24 @@ Metrics/ModuleLength:
179
207
  # Naming
180
208
 
181
209
  Naming/VariableNumber:
210
+ AllowedIdentifiers:
211
+ - address1
212
+ - address2
213
+ CheckSymbols: true
214
+ Enabled: true
182
215
  EnforcedStyle: snake_case
183
216
  Exclude:
184
217
  - app/graphql/types/**/*.rb
185
218
  - spec/factories/**/*.rb
186
219
  - spec/requests/**/*.rb
187
220
 
221
+ # Restrict ENV
222
+
223
+ Restrictenv/NoEnvAccess:
224
+ Exclude:
225
+ - 'config/**/*'
226
+ - spec/rails_helper.rb
227
+
188
228
  # RSpec
189
229
 
190
230
  RSpec/ExampleLength:
@@ -194,6 +234,9 @@ RSpec/ExampleLength:
194
234
  - heredoc
195
235
  Max: 20
196
236
 
237
+ RSpec/IndexedLet:
238
+ Enabled: false
239
+
197
240
  RSpec/LetSetup:
198
241
  Enabled: false
199
242
 
@@ -218,3 +261,9 @@ Style/Documentation:
218
261
 
219
262
  Style/MultilineIfModifier:
220
263
  Enabled: false
264
+
265
+ Style/NumericLiterals:
266
+ AllowedPatterns:
267
+ - \d{10,}
268
+ Enabled: true
269
+ Strict: false
@@ -3,7 +3,7 @@
3
3
  module Platform
4
4
  module Style
5
5
 
6
- VERSION = '0.2.0'
6
+ VERSION = '0.3.0'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,85 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platform-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Bird
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-12-31 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.42'
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.42'
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.18'
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.18'
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.15'
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.15'
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
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '2.23'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '2.23'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-restrictenv
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
60
88
  - !ruby/object:Gem::Version
61
- version: '2.17'
89
+ version: '0.1'
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - "~>"
94
+ - - ">="
67
95
  - !ruby/object:Gem::Version
68
- version: '2.17'
96
+ version: '0.1'
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.16'
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.16'
110
+ version: '2.25'
83
111
  description:
84
112
  email:
85
113
  - david@discolabs.com