ii_finder 2.2.1 → 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4eeba47ab7ae18a5dc0b5126952493667ac9572a116d713b86aaf1f165887f21
4
- data.tar.gz: 0140b8e95882e75d920ade51c2c975afec5f238ccf3633e0713daf11b60a8e8d
3
+ metadata.gz: c675f8e70b1c00d038a0360636784592f4b77ced8d42055661ed375ae97793bd
4
+ data.tar.gz: a6315772901433d0e71abb6593ad9c3540e91831901a682696ff31ec4c715da1
5
5
  SHA512:
6
- metadata.gz: 3f9284d578999c38bc5c5b511fc10c3c8bd6b84e069b1873cfc559146263f83eee12bda9128914ec600d40841f4185fb352cc335fc74c2375c2e769fa3b40bde
7
- data.tar.gz: 65d6366d7560da42ef905742620d0076ab8abcf51a0caf4c9f28b2d8330dcd5aeff3cbf1135f41cb8dce28c2af7194e1666bad3606d3b64644df3254dd45fdcb
6
+ metadata.gz: 2cc8ed2897ec76b7bd6ab8aa72591bfdc1bc32f4b9166ff600f1e8fca9f1516ad50e97c94480610dc1804e42adda1aface7eb56998d4e2a084692e9956d13127
7
+ data.tar.gz: c9c3ec8dbfd7779e85bae019dd77523c296556f7f886445750fb91430dae64da6506425e385805a3f9e49fee0487d4c57f9080a6a75ea432cdfa3aff4f8adb23
@@ -4,12 +4,12 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-22.04
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1]
12
- gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
11
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3]
12
+ gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
13
13
  exclude:
14
14
  - ruby: 2.3
15
15
  gemfile: rails60
@@ -17,16 +17,24 @@ jobs:
17
17
  gemfile: rails61
18
18
  - ruby: 2.3
19
19
  gemfile: rails70
20
+ - ruby: 2.3
21
+ gemfile: rails71
20
22
  - ruby: 2.4
21
23
  gemfile: rails60
22
24
  - ruby: 2.4
23
25
  gemfile: rails61
24
26
  - ruby: 2.4
25
27
  gemfile: rails70
28
+ - ruby: 2.4
29
+ gemfile: rails71
26
30
  - ruby: 2.5
27
31
  gemfile: rails70
32
+ - ruby: 2.5
33
+ gemfile: rails71
28
34
  - ruby: 2.6
29
35
  gemfile: rails70
36
+ - ruby: 2.6
37
+ gemfile: rails71
30
38
  - ruby: 3.0
31
39
  gemfile: rails50
32
40
  - ruby: 3.0
@@ -39,6 +47,18 @@ jobs:
39
47
  gemfile: rails51
40
48
  - ruby: 3.1
41
49
  gemfile: rails52
50
+ - ruby: 3.2
51
+ gemfile: rails50
52
+ - ruby: 3.2
53
+ gemfile: rails51
54
+ - ruby: 3.2
55
+ gemfile: rails52
56
+ - ruby: 3.3
57
+ gemfile: rails50
58
+ - ruby: 3.3
59
+ gemfile: rails51
60
+ - ruby: 3.3
61
+ gemfile: rails52
42
62
 
43
63
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
44
64
 
@@ -46,7 +66,7 @@ jobs:
46
66
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
47
67
 
48
68
  steps:
49
- - uses: actions/checkout@v3
69
+ - uses: actions/checkout@v4
50
70
  - uses: ruby/setup-ruby@v1
51
71
  with:
52
72
  ruby-version: ${{ matrix.ruby }}
data/.gitignore CHANGED
@@ -5,6 +5,6 @@ coverage/
5
5
  gemfiles/*.lock
6
6
  pkg/
7
7
  tmp/
8
- spec/dummy/db/*.sqlite3
8
+ spec/dummy/db/*.sqlite3*
9
9
  spec/dummy/db/schema_*.rb
10
10
  spec/dummy/log/*.log
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.3.0
4
+
5
+ * Change name of instrumentation for rails 7.1.
6
+
7
+ ## 2.2.2
8
+
9
+ * Add `frozen_string_literal: true`.
10
+
3
11
  ## 2.2.1
4
12
 
5
13
  * Indent log messages.
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
  gem "psych", "~> 3.3.0"
5
6
 
6
7
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.1.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.1.0"
4
+ gem "sqlite3", "~> 1.6.6"
5
+
6
+ gemspec path: "../"
@@ -5,12 +5,12 @@ module IIFinder
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  def call_all
8
- ActiveSupport::Notifications.instrument 'calling.ii_finder', finder: self
8
+ ActiveSupport::Notifications.instrument 'start_call_all.ii_finder', finder: self
9
9
  super
10
10
  end
11
11
 
12
12
  def call
13
- ActiveSupport::Notifications.instrument 'call.ii_finder', finder: self do
13
+ ActiveSupport::Notifications.instrument 'process_call.ii_finder', finder: self do
14
14
  super
15
15
  end
16
16
  end
@@ -2,14 +2,14 @@
2
2
 
3
3
  module IIFinder
4
4
  class LogSubscriber < ActiveSupport::LogSubscriber
5
- def calling(event)
5
+ def start_call_all(event)
6
6
  debug do
7
7
  finder = event.payload[:finder]
8
8
  " Calling #{finder.class} with #{finder.context}"
9
9
  end
10
10
  end
11
11
 
12
- def call(event)
12
+ def process_call(event)
13
13
  debug do
14
14
  finder = event.payload[:finder]
15
15
  " Called #{finder.class} (#{additional_log(event)})"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIFinder
4
- VERSION = '2.2.1'
4
+ VERSION = '2.3.0'
5
5
  end
data/lib/ii_finder.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
  require 'coactive'
3
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ii_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -131,6 +131,7 @@ files:
131
131
  - gemfiles/rails60.gemfile
132
132
  - gemfiles/rails61.gemfile
133
133
  - gemfiles/rails70.gemfile
134
+ - gemfiles/rails71.gemfile
134
135
  - ii_finder.gemspec
135
136
  - lib/ii_finder.rb
136
137
  - lib/ii_finder/base.rb
@@ -152,7 +153,7 @@ files:
152
153
  homepage: https://github.com/kanety/ii_finder
153
154
  licenses: []
154
155
  metadata: {}
155
- post_install_message:
156
+ post_install_message:
156
157
  rdoc_options: []
157
158
  require_paths:
158
159
  - lib
@@ -168,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
169
  version: '0'
169
170
  requirements: []
170
171
  rubygems_version: 3.3.3
171
- signing_key:
172
+ signing_key:
172
173
  specification_version: 4
173
174
  summary: A base finder to support building relations from parameters
174
175
  test_files: []