sequra-style 1.2.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 589f0c816928e421a8afd22c46a6d5a46bda22fd8187aff2898d1758e65b08e8
4
- data.tar.gz: a671ce148841f5cbe526d84c700b6d138c7f66081c4cd460858404eeae3bbe40
3
+ metadata.gz: 7d2b14c8bd312469a417cad2b5cd88ca99ccbd1e30b56b5786ed98675d85868b
4
+ data.tar.gz: 03653c7aecf6f4598822e6828beb3961b642e04c0dc47b52966a19fc8c38cce3
5
5
  SHA512:
6
- metadata.gz: d079c1518e1014b0da8eddab3255a3c6301dc53389a5c655fae3ab9edfa67bf12d75f2da0fb8d140aa9c047ebdb37588e77babea7c3af31f3f1e0b5c872b1814
7
- data.tar.gz: ec1aff458a5d17b0d4b598d99e810ed7908ffbfa156da83068518005ae5753fadc19bde61e938b3bfb8c0157b99e2260c53f3c1aca6da3ff3a6ef6539d597a3e
6
+ metadata.gz: 66a207a9e3b1ab80731533044789fa8541dfcf8d11ff230d39705b349067b7dcdb1ac6b1bd50d7546b3f832e39f03f358901000e734da07c3b13673f29d720ef
7
+ data.tar.gz: 8a5d7e710df935cecaa5f97c47f618766abef61aa9d7714d5c92d9039fff4c50c316a1dc196420910a4627776b86ec70010bbc1e8347605152c231cf9fe91986
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.1](https://github.com/sequra/sequra-style/compare/v1.3.0...v1.3.1) (2025-03-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * use clean code style method ordering ([#34](https://github.com/sequra/sequra-style/issues/34)) ([c9d33f4](https://github.com/sequra/sequra-style/commit/c9d33f4dad18ac168bf86071a6b8e75c423245f0))
9
+
10
+ ## [1.3.0](https://github.com/sequra/sequra-style/compare/v1.2.0...v1.3.0) (2024-12-02)
11
+
12
+
13
+ ### Features
14
+
15
+ * add Obsession/MethodOrder cop ([#32](https://github.com/sequra/sequra-style/issues/32)) ([e1511bb](https://github.com/sequra/sequra-style/commit/e1511bb5576c3b2d0e4cd28799ddb42a61913534))
16
+
3
17
  ## [1.2.0](https://github.com/sequra/sequra-style/compare/v1.1.0...v1.2.0) (2024-05-16)
4
18
 
5
19
 
data/Gemfile.lock CHANGED
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sequra-style (1.2.0)
4
+ sequra-style (1.3.1)
5
5
  rubocop (~> 1)
6
+ rubocop-obsession (~> 0.1.11)
6
7
  rubocop-performance (~> 1)
7
8
  rubocop-rails (~> 2)
8
9
  rubocop-rspec (~> 2)
@@ -10,37 +11,58 @@ PATH
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
13
- activesupport (7.0.4)
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ activesupport (8.0.1)
15
+ base64
16
+ benchmark (>= 0.3)
17
+ bigdecimal
18
+ concurrent-ruby (~> 1.0, >= 1.3.1)
19
+ connection_pool (>= 2.2.5)
20
+ drb
15
21
  i18n (>= 1.6, < 2)
22
+ logger (>= 1.4.2)
16
23
  minitest (>= 5.1)
17
- tzinfo (~> 2.0)
24
+ securerandom (>= 0.3)
25
+ tzinfo (~> 2.0, >= 2.0.5)
26
+ uri (>= 0.13.1)
18
27
  ast (2.4.2)
19
- concurrent-ruby (1.1.10)
20
- i18n (1.12.0)
28
+ base64 (0.2.0)
29
+ benchmark (0.4.0)
30
+ bigdecimal (3.1.9)
31
+ concurrent-ruby (1.3.5)
32
+ connection_pool (2.5.0)
33
+ drb (2.2.1)
34
+ i18n (1.14.7)
21
35
  concurrent-ruby (~> 1.0)
22
- json (2.6.2)
23
- minitest (5.16.3)
24
- parallel (1.22.1)
25
- parser (3.1.2.1)
36
+ json (2.10.1)
37
+ language_server-protocol (3.17.0.4)
38
+ lint_roller (1.1.0)
39
+ logger (1.6.6)
40
+ minitest (5.25.4)
41
+ parallel (1.26.3)
42
+ parser (3.3.7.1)
26
43
  ast (~> 2.4.1)
44
+ racc
45
+ racc (1.8.1)
27
46
  rack (3.0.0)
28
47
  rainbow (3.1.1)
29
48
  rake (13.0.6)
30
- regexp_parser (2.6.1)
31
- rexml (3.2.5)
32
- rubocop (1.39.0)
49
+ regexp_parser (2.10.0)
50
+ rubocop (1.73.0)
33
51
  json (~> 2.3)
52
+ language_server-protocol (~> 3.17.0.2)
53
+ lint_roller (~> 1.1.0)
34
54
  parallel (~> 1.10)
35
- parser (>= 3.1.2.1)
55
+ parser (>= 3.3.0.2)
36
56
  rainbow (>= 2.2.2, < 4.0)
37
- regexp_parser (>= 1.8, < 3.0)
38
- rexml (>= 3.2.5, < 4.0)
39
- rubocop-ast (>= 1.23.0, < 2.0)
57
+ regexp_parser (>= 2.9.3, < 3.0)
58
+ rubocop-ast (>= 1.38.0, < 2.0)
40
59
  ruby-progressbar (~> 1.7)
41
- unicode-display_width (>= 1.4.0, < 3.0)
42
- rubocop-ast (1.23.0)
43
- parser (>= 3.1.1.0)
60
+ unicode-display_width (>= 2.4.0, < 4.0)
61
+ rubocop-ast (1.38.1)
62
+ parser (>= 3.3.1.0)
63
+ rubocop-obsession (0.1.15)
64
+ activesupport
65
+ rubocop (~> 1.41)
44
66
  rubocop-performance (1.15.1)
45
67
  rubocop (>= 1.7.0, < 2.0)
46
68
  rubocop-ast (>= 0.4.0)
@@ -50,10 +72,14 @@ GEM
50
72
  rubocop (>= 1.33.0, < 2.0)
51
73
  rubocop-rspec (2.15.0)
52
74
  rubocop (~> 1.33)
53
- ruby-progressbar (1.11.0)
54
- tzinfo (2.0.5)
75
+ ruby-progressbar (1.13.0)
76
+ securerandom (0.4.1)
77
+ tzinfo (2.0.6)
55
78
  concurrent-ruby (~> 1.0)
56
- unicode-display_width (2.3.0)
79
+ unicode-display_width (3.1.4)
80
+ unicode-emoji (~> 4.0, >= 4.0.4)
81
+ unicode-emoji (4.0.4)
82
+ uri (1.0.3)
57
83
 
58
84
  PLATFORMS
59
85
  ruby
data/default.yml CHANGED
@@ -2,6 +2,7 @@ require:
2
2
  - rubocop-performance
3
3
  - rubocop-rails
4
4
  - rubocop-rspec
5
+ - rubocop-obsession
5
6
 
6
7
  AllCops:
7
8
  # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
@@ -264,6 +265,11 @@ Style/TrivialAccessors:
264
265
  Style/GuardClause:
265
266
  Enabled: true
266
267
 
268
+ Obsession/MethodOrder:
269
+ Enabled: true
270
+ EnforcedStyle: step_down
271
+ Severity: info
272
+
267
273
  Performance/FlatMap:
268
274
  Enabled: true
269
275
 
@@ -1,5 +1,5 @@
1
1
  module Sequra
2
2
  module Style
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
data/sequra-style.gemspec CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "rubocop-performance", "~> 1"
26
26
  spec.add_dependency "rubocop-rails", "~> 2"
27
27
  spec.add_dependency "rubocop-rspec", "~> 2"
28
+ spec.add_dependency "rubocop-obsession", "~> 0.1.11"
28
29
 
29
30
  spec.add_development_dependency "bundler", "~> 2.1.4"
30
31
  spec.add_development_dependency "rake", "~> 13.0.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequra-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sequra engineering
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-16 00:00:00.000000000 Z
11
+ date: 2025-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-obsession
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.11
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.11
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +108,7 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: 13.0.1
97
- description:
111
+ description:
98
112
  email:
99
113
  - rubygems@sequra.es
100
114
  executables: []
@@ -127,7 +141,7 @@ homepage: https://github.com/sequra/sequra-style
127
141
  licenses:
128
142
  - MIT
129
143
  metadata: {}
130
- post_install_message:
144
+ post_install_message:
131
145
  rdoc_options: []
132
146
  require_paths:
133
147
  - lib
@@ -143,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
157
  version: '0'
144
158
  requirements: []
145
159
  rubygems_version: 3.4.19
146
- signing_key:
160
+ signing_key:
147
161
  specification_version: 4
148
162
  summary: Sequra code style guides and shared config
149
163
  test_files: []