ii_interactor 2.2.1 → 2.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: f6b2635fa972f56d9ec9fe34b487411b9021e41cff5d2da7dfe5977d954a901d
4
- data.tar.gz: d585efc287ffa979969a47fb2257689d025f6f9719b4bb09168d019fd9c51f35
3
+ metadata.gz: c79c0121d27c8cad771bd23d536973d41104d55ee8a4b1abdaad5ebc1897e6ab
4
+ data.tar.gz: 4b08ff80da16cd5f09862ed00ba37dcbd367150324d2b139dba6f5a26b7acd08
5
5
  SHA512:
6
- metadata.gz: 45044189f8450083926b037a0999f82c1c03ab1aae721369cbc53c9506ab60904159f2660c1ad1f369635c59ed59d1c7c688b5bee5d52742f1e7fc844f687752
7
- data.tar.gz: 85342c80ea1992ffc5a9b7042eb3dba442cb510d0e494f4d478dec8bb7b93d764916bd55144c6ad6e209479ace00e378323c95214be1691a27f30680e0d48e49
6
+ metadata.gz: 714ad9fef43f166649520ca0bf3b03a6b8ad64ddde463e01e81da4ff804da3697809574a21f1ddd834619990735a158a3d70e36d37e68ff4ddbb5c1a1690655f
7
+ data.tar.gz: 60026aa2fcec05c0ab74df69c853072c3aa90a8817b5bb926de2c87c02decfd76edc5865e90da78257b2aba82c4ffc65a51c30f25e706dc7af5030f3a9b692d7
@@ -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, 3.2]
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
@@ -45,6 +53,12 @@ jobs:
45
53
  gemfile: rails51
46
54
  - ruby: 3.2
47
55
  gemfile: rails52
56
+ - ruby: 3.3
57
+ gemfile: rails50
58
+ - ruby: 3.3
59
+ gemfile: rails51
60
+ - ruby: 3.3
61
+ gemfile: rails52
48
62
 
49
63
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
50
64
 
@@ -52,7 +66,7 @@ jobs:
52
66
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
53
67
 
54
68
  steps:
55
- - uses: actions/checkout@v3
69
+ - uses: actions/checkout@v4
56
70
  - uses: ruby/setup-ruby@v1
57
71
  with:
58
72
  ruby-version: ${{ matrix.ruby }}
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 IIInteractor
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  def call_all
8
- ActiveSupport::Notifications.instrument 'calling.ii_interactor', interactor: self
8
+ ActiveSupport::Notifications.instrument 'start_call_all.ii_interactor', interactor: self
9
9
  super
10
10
  end
11
11
 
12
12
  def call_self
13
- ActiveSupport::Notifications.instrument 'call.ii_interactor', interactor: self do
13
+ ActiveSupport::Notifications.instrument 'process_call_self.ii_interactor', interactor: self do
14
14
  super
15
15
  end
16
16
  end
@@ -2,14 +2,14 @@
2
2
 
3
3
  module IIInteractor
4
4
  class LogSubscriber < ActiveSupport::LogSubscriber
5
- def calling(event)
5
+ def start_call_all(event)
6
6
  debug do
7
7
  interactor = event.payload[:interactor]
8
8
  " Calling #{interactor.class} with #{interactor.context}"
9
9
  end
10
10
  end
11
11
 
12
- def call(event)
12
+ def process_call_self(event)
13
13
  debug do
14
14
  interactor = event.payload[:interactor]
15
15
  " Called #{interactor.class} (#{additional_log(event)})"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIInteractor
4
- VERSION = '2.2.1'
4
+ VERSION = '2.3.0'
5
5
  end
data/lib/ii_interactor.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_interactor
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_interactor.gemspec
135
136
  - lib/ii_interactor.rb
136
137
  - lib/ii_interactor/base.rb
@@ -147,7 +148,7 @@ files:
147
148
  homepage: https://github.com/kanety/ii_interactor
148
149
  licenses: []
149
150
  metadata: {}
150
- post_install_message:
151
+ post_install_message:
151
152
  rdoc_options: []
152
153
  require_paths:
153
154
  - lib
@@ -163,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
164
  version: '0'
164
165
  requirements: []
165
166
  rubygems_version: 3.3.3
166
- signing_key:
167
+ signing_key:
167
168
  specification_version: 4
168
169
  summary: A base interactor to support management of bussiness logic
169
170
  test_files: []