rubocop-isucon 1.0.0 → 1.0.2

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: 6bd0eac249a23368414a86aa1ab08826542cf644fa50b19017a2bcfd6648d594
4
- data.tar.gz: 18e829ac97ac7c7cb9696a1078f36b8a958fd340ddbb9bc1b232b2630e683df2
3
+ metadata.gz: aab150e156e21e700479dc453477e496e056bbc10ff5b6e512c7bbdc4a0c6e19
4
+ data.tar.gz: cae10ca2b0787a5a85a4959e376874a009b22951180c99de19bf8a477a0f5e13
5
5
  SHA512:
6
- metadata.gz: 58238a855da0596f653d47436977b44cc7722982a1b59e60850f79003b356d85071cba061cca6adae2b4cfa4b63ab489e121135e3c2954f366f5ca1c375e1bbf
7
- data.tar.gz: b7747989e1219c7fee4f834b8811e419d3c9f6083336d5fab7e7b19a3f8e1f0dad86644e708b18b926b9de3a678edf8b31495097e319bff970599b80d0ab21d9
6
+ metadata.gz: 6b5955edce0eac57d1c097b5d0babb5ead48a99043f7d231cbbf8e66d4034bde4b49234a7dd24c90fa50e907379145059eb44744f0f186e5ac8432831bd84cac
7
+ data.tar.gz: 47d40e8be7da3cfbd5f448922571ca41718e4fdcc2225cc70eea5150a275e34daac534c2fd446da15038c0114956b9b1a8f87a539843e4baa326cdad879be4b5
@@ -46,7 +46,7 @@ jobs:
46
46
  - run: bundle exec yard
47
47
 
48
48
  - name: Setup Pages
49
- uses: actions/configure-pages@v3
49
+ uses: actions/configure-pages@v4
50
50
  - name: Upload artifact
51
51
  uses: actions/upload-pages-artifact@v2
52
52
  with:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## [Unreleased]
2
- [full changelog](http://github.com/sue445/rubocop-isucon/compare/v1.0.0...main)
2
+ [full changelog](http://github.com/sue445/rubocop-isucon/compare/v1.0.2...main)
3
+
4
+ ## [1.0.2] - 2023-12-22
5
+ [full changelog](http://github.com/sue445/rubocop-isucon/compare/v1.0.1...v1.0.2)
6
+
7
+ * Requires rubocop-performance 1.20.0+
8
+ * https://github.com/sue445/rubocop-isucon/pull/245
9
+
10
+ ## [1.0.1] - 2023-11-28
11
+ [full changelog](http://github.com/sue445/rubocop-isucon/compare/v1.0.0...v1.0.1)
12
+
13
+ * Support `xquery` with block and lvar
14
+ * https://github.com/sue445/rubocop-isucon/pull/239
3
15
 
4
16
  ## [1.0.0] - 2023-10-29
5
17
  [full changelog](http://github.com/sue445/rubocop-isucon/compare/v0.2.0...v1.0.0)
@@ -13,7 +13,7 @@ module RuboCop
13
13
  # @!method find_xquery(node)
14
14
  # @param node [RuboCop::AST::Node]
15
15
  def_node_search :find_xquery, <<~PATTERN
16
- (send (send nil? _) {:xquery | :query} (${str dstr lvar ivar cvar} $...) ...)
16
+ (send ({:send | :lvar} ...) {:xquery | :query} (${str dstr lvar ivar cvar} $...) ...)
17
17
  PATTERN
18
18
 
19
19
  NON_STRING_WARNING_MSG = "Warning: non-string was passed to `query` or `xquery` 1st argument. " \
@@ -30,7 +30,7 @@ module RuboCop
30
30
  end
31
31
  RUBY
32
32
 
33
- alias_method "#{method_name}_without_cache", method_name
33
+ alias_method :"#{method_name}_without_cache", method_name
34
34
  alias_method method_name, "#{method_name}_with_cache"
35
35
  end
36
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Isucon
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_runtime_dependency "activerecord", ">= 6.1.0"
39
39
  spec.add_runtime_dependency "gda", "!= 1.1.2"
40
40
  spec.add_runtime_dependency "rubocop", ">= 1.49.0"
41
- spec.add_runtime_dependency "rubocop-performance"
41
+ spec.add_runtime_dependency "rubocop-performance", ">= 1.20.0"
42
42
 
43
43
  spec.add_development_dependency "benchmark-ips"
44
44
  spec.add_development_dependency "pry-byebug"
@@ -47,7 +47,7 @@ Gem::Specification.new do |spec|
47
47
  spec.add_development_dependency "rspec", "~> 3.0"
48
48
  spec.add_development_dependency "rspec-its"
49
49
  spec.add_development_dependency "rubocop_auto_corrector"
50
- spec.add_development_dependency "rubocop-yard"
50
+ spec.add_development_dependency "rubocop-yard", ">= 0.9.2"
51
51
  spec.add_development_dependency "sqlite3"
52
52
  spec.add_development_dependency "yard"
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-isucon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-29 00:00:00.000000000 Z
11
+ date: 2023-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.20.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.20.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: benchmark-ips
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: 0.9.2
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: 0.9.2
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: sqlite3
183
183
  requirement: !ruby/object:Gem::Requirement