bp3-actiontext 0.1.1 → 0.1.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: 24f684f45dbb3d988057b84db6724181ab22ce61135bd33bbac16eb5aca4231a
4
- data.tar.gz: 6e612d67eff91b908d4ad6413ef8d93fa40b99ecbfa4bf48daf10b0829c13140
3
+ metadata.gz: eab4f39f5a404483f43d52edf52f0f89e8396dc5b786cd38d5129a3ecbb24649
4
+ data.tar.gz: c1201c347adabe44d271e566eaf3b07886c3bd15010507c07306d41a5c6e3912
5
5
  SHA512:
6
- metadata.gz: 0e76eb62d9c23aa287777b26fbbb3692b395d90a3fe18d3c430c4c7ae6ae729f06ba0959f77789ac61cb2fc24ac4393f7496b63db9d45c5be10053baee984b3e
7
- data.tar.gz: 2f4024c5cda4a3df0bc26bbf0980468676875baffee51a9e74292802d58ad78c2cb061f983e07187f3be29a784d7e58c1370fc07669365c3d51fd1ab26ada027
6
+ metadata.gz: '085a696b831850bdc02a2bb1e137df0c6bed8eee0406b1bf4cb2e1d506c89a3ea6211bf749223f4803d643fd8ace4cfed95fdaf9523fb7db85f121db69f4001e'
7
+ data.tar.gz: ce470517c567b47e1719f7a8bf282b7f177f1bb3d9975c2d9adf40dd0543b1c6f4b5b090e532f5a7661141e00c3125d0118411ef886ce05a73098c021e8d04db
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2024-11-07
4
+
5
+ - Update tenant from parent record only
6
+
3
7
  ## [0.1.1] - 2024-06-03
4
8
 
5
9
  - Tweaks and documentation
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bp3-actiontext (0.1.1)
4
+ bp3-actiontext (0.1.2)
5
5
  actiontext (>= 7.1.2, < 8)
6
6
  activesupport (>= 7.1.2, < 8)
7
7
  bp3-core (>= 0.1, < 1)
@@ -10,101 +10,104 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (7.1.3)
14
- actionview (= 7.1.3)
15
- activesupport (= 7.1.3)
13
+ actionpack (7.2.2)
14
+ actionview (= 7.2.2)
15
+ activesupport (= 7.2.2)
16
16
  nokogiri (>= 1.8.5)
17
17
  racc
18
- rack (>= 2.2.4)
18
+ rack (>= 2.2.4, < 3.2)
19
19
  rack-session (>= 1.0.1)
20
20
  rack-test (>= 0.6.3)
21
21
  rails-dom-testing (~> 2.2)
22
22
  rails-html-sanitizer (~> 1.6)
23
- actiontext (7.1.3)
24
- actionpack (= 7.1.3)
25
- activerecord (= 7.1.3)
26
- activestorage (= 7.1.3)
27
- activesupport (= 7.1.3)
23
+ useragent (~> 0.16)
24
+ actiontext (7.2.2)
25
+ actionpack (= 7.2.2)
26
+ activerecord (= 7.2.2)
27
+ activestorage (= 7.2.2)
28
+ activesupport (= 7.2.2)
28
29
  globalid (>= 0.6.0)
29
30
  nokogiri (>= 1.8.5)
30
- actionview (7.1.3)
31
- activesupport (= 7.1.3)
31
+ actionview (7.2.2)
32
+ activesupport (= 7.2.2)
32
33
  builder (~> 3.1)
33
34
  erubi (~> 1.11)
34
35
  rails-dom-testing (~> 2.2)
35
36
  rails-html-sanitizer (~> 1.6)
36
- activejob (7.1.3)
37
- activesupport (= 7.1.3)
37
+ activejob (7.2.2)
38
+ activesupport (= 7.2.2)
38
39
  globalid (>= 0.3.6)
39
- activemodel (7.1.3)
40
- activesupport (= 7.1.3)
41
- activerecord (7.1.3)
42
- activemodel (= 7.1.3)
43
- activesupport (= 7.1.3)
40
+ activemodel (7.2.2)
41
+ activesupport (= 7.2.2)
42
+ activerecord (7.2.2)
43
+ activemodel (= 7.2.2)
44
+ activesupport (= 7.2.2)
44
45
  timeout (>= 0.4.0)
45
- activestorage (7.1.3)
46
- actionpack (= 7.1.3)
47
- activejob (= 7.1.3)
48
- activerecord (= 7.1.3)
49
- activesupport (= 7.1.3)
46
+ activestorage (7.2.2)
47
+ actionpack (= 7.2.2)
48
+ activejob (= 7.2.2)
49
+ activerecord (= 7.2.2)
50
+ activesupport (= 7.2.2)
50
51
  marcel (~> 1.0)
51
- activesupport (7.1.3)
52
+ activesupport (7.2.2)
52
53
  base64
54
+ benchmark (>= 0.3)
53
55
  bigdecimal
54
- concurrent-ruby (~> 1.0, >= 1.0.2)
56
+ concurrent-ruby (~> 1.0, >= 1.3.1)
55
57
  connection_pool (>= 2.2.5)
56
58
  drb
57
59
  i18n (>= 1.6, < 2)
60
+ logger (>= 1.4.2)
58
61
  minitest (>= 5.1)
59
- mutex_m
60
- tzinfo (~> 2.0)
62
+ securerandom (>= 0.3)
63
+ tzinfo (~> 2.0, >= 2.0.5)
61
64
  ast (2.4.2)
62
65
  base64 (0.2.0)
66
+ benchmark (0.3.0)
63
67
  bigdecimal (3.1.8)
64
- bp3-core (0.1.2)
68
+ bp3-core (0.1.4)
65
69
  actionview (>= 7.1.2, < 8)
66
70
  activesupport (>= 7.1.2, < 8)
67
- builder (3.2.4)
71
+ builder (3.3.0)
68
72
  byebug (11.1.3)
69
- concurrent-ruby (1.3.1)
73
+ concurrent-ruby (1.3.4)
70
74
  connection_pool (2.4.1)
71
75
  crass (1.0.6)
72
- diff-lcs (1.5.0)
76
+ diff-lcs (1.5.1)
73
77
  drb (2.2.1)
74
- erubi (1.12.0)
78
+ erubi (1.13.0)
75
79
  globalid (1.2.1)
76
80
  activesupport (>= 6.1)
77
- i18n (1.14.5)
81
+ i18n (1.14.6)
78
82
  concurrent-ruby (~> 1.0)
79
83
  io-console (0.7.2)
80
- irb (1.11.1)
81
- rdoc
84
+ irb (1.14.1)
85
+ rdoc (>= 4.0.0)
82
86
  reline (>= 0.4.2)
83
- json (2.7.1)
87
+ json (2.8.1)
84
88
  language_server-protocol (3.17.0.3)
85
- loofah (2.22.0)
89
+ logger (1.6.1)
90
+ loofah (2.23.1)
86
91
  crass (~> 1.0.2)
87
92
  nokogiri (>= 1.12.0)
88
- marcel (1.0.2)
89
- minitest (5.23.1)
90
- mutex_m (0.2.0)
91
- nokogiri (1.16.0-x86_64-darwin)
93
+ marcel (1.0.4)
94
+ minitest (5.25.1)
95
+ nokogiri (1.16.7-x86_64-darwin)
92
96
  racc (~> 1.4)
93
- parallel (1.24.0)
94
- parser (3.3.0.4)
97
+ parallel (1.26.3)
98
+ parser (3.3.6.0)
95
99
  ast (~> 2.4.1)
96
100
  racc
97
- psych (5.1.2)
101
+ psych (5.2.0)
98
102
  stringio
99
- racc (1.7.3)
100
- rack (3.0.8)
103
+ racc (1.8.1)
104
+ rack (3.1.8)
101
105
  rack-session (2.0.0)
102
106
  rack (>= 3.0.0)
103
107
  rack-test (2.1.0)
104
108
  rack (>= 1.3)
105
- rackup (2.1.0)
109
+ rackup (2.2.0)
106
110
  rack (>= 3)
107
- webrick (~> 1.8)
108
111
  rails-dom-testing (2.2.0)
109
112
  activesupport (>= 5.0.0)
110
113
  minitest
@@ -112,71 +115,74 @@ GEM
112
115
  rails-html-sanitizer (1.6.0)
113
116
  loofah (~> 2.21)
114
117
  nokogiri (~> 1.14)
115
- railties (7.1.3)
116
- actionpack (= 7.1.3)
117
- activesupport (= 7.1.3)
118
- irb
118
+ railties (7.2.2)
119
+ actionpack (= 7.2.2)
120
+ activesupport (= 7.2.2)
121
+ irb (~> 1.13)
119
122
  rackup (>= 1.0.0)
120
123
  rake (>= 12.2)
121
124
  thor (~> 1.0, >= 1.2.2)
122
125
  zeitwerk (~> 2.6)
123
126
  rainbow (3.1.1)
124
- rake (13.1.0)
125
- rdoc (6.6.2)
127
+ rake (13.2.1)
128
+ rdoc (6.7.0)
126
129
  psych (>= 4.0.0)
127
- regexp_parser (2.9.0)
128
- reline (0.4.2)
130
+ regexp_parser (2.9.2)
131
+ reline (0.5.10)
129
132
  io-console (~> 0.5)
130
- rexml (3.2.6)
131
- rspec (3.12.0)
132
- rspec-core (~> 3.12.0)
133
- rspec-expectations (~> 3.12.0)
134
- rspec-mocks (~> 3.12.0)
135
- rspec-core (3.12.2)
136
- rspec-support (~> 3.12.0)
137
- rspec-expectations (3.12.3)
133
+ rspec (3.13.0)
134
+ rspec-core (~> 3.13.0)
135
+ rspec-expectations (~> 3.13.0)
136
+ rspec-mocks (~> 3.13.0)
137
+ rspec-core (3.13.2)
138
+ rspec-support (~> 3.13.0)
139
+ rspec-expectations (3.13.3)
138
140
  diff-lcs (>= 1.2.0, < 2.0)
139
- rspec-support (~> 3.12.0)
140
- rspec-mocks (3.12.6)
141
+ rspec-support (~> 3.13.0)
142
+ rspec-mocks (3.13.2)
141
143
  diff-lcs (>= 1.2.0, < 2.0)
142
- rspec-support (~> 3.12.0)
143
- rspec-support (3.12.1)
144
- rubocop (1.60.1)
144
+ rspec-support (~> 3.13.0)
145
+ rspec-support (3.13.1)
146
+ rubocop (1.68.0)
145
147
  json (~> 2.3)
146
148
  language_server-protocol (>= 3.17.0)
147
149
  parallel (~> 1.10)
148
150
  parser (>= 3.3.0.2)
149
151
  rainbow (>= 2.2.2, < 4.0)
150
- regexp_parser (>= 1.8, < 3.0)
151
- rexml (>= 3.2.5, < 4.0)
152
- rubocop-ast (>= 1.30.0, < 2.0)
152
+ regexp_parser (>= 2.4, < 3.0)
153
+ rubocop-ast (>= 1.32.2, < 2.0)
153
154
  ruby-progressbar (~> 1.7)
154
155
  unicode-display_width (>= 2.4.0, < 3.0)
155
- rubocop-ast (1.30.0)
156
- parser (>= 3.2.1.0)
157
- rubocop-capybara (2.20.0)
158
- rubocop (~> 1.41)
159
- rubocop-factory_bot (2.25.1)
156
+ rubocop-ast (1.34.1)
157
+ parser (>= 3.3.1.0)
158
+ rubocop-capybara (2.21.0)
160
159
  rubocop (~> 1.41)
160
+ rubocop-factory_bot (2.26.1)
161
+ rubocop (~> 1.61)
161
162
  rubocop-rake (0.6.0)
162
163
  rubocop (~> 1.0)
163
- rubocop-rspec (2.26.1)
164
+ rubocop-rspec (2.31.0)
164
165
  rubocop (~> 1.40)
165
166
  rubocop-capybara (~> 2.17)
166
167
  rubocop-factory_bot (~> 2.22)
168
+ rubocop-rspec_rails (~> 2.28)
169
+ rubocop-rspec_rails (2.29.1)
170
+ rubocop (~> 1.61)
167
171
  ruby-progressbar (1.13.0)
168
- stringio (3.1.0)
169
- thor (1.3.0)
170
- timeout (0.4.1)
172
+ securerandom (0.3.1)
173
+ stringio (3.1.2)
174
+ thor (1.3.2)
175
+ timeout (0.4.2)
171
176
  tzinfo (2.0.6)
172
177
  concurrent-ruby (~> 1.0)
173
- unicode-display_width (2.5.0)
174
- webrick (1.8.1)
175
- zeitwerk (2.6.12)
178
+ unicode-display_width (2.6.0)
179
+ useragent (0.16.10)
180
+ zeitwerk (2.7.1)
176
181
 
177
182
  PLATFORMS
178
183
  x86_64-darwin-21
179
184
  x86_64-darwin-22
185
+ x86_64-darwin-23
180
186
 
181
187
  DEPENDENCIES
182
188
  bp3-actiontext!
@@ -42,21 +42,11 @@ module Bp3
42
42
  elsif record.respond_to?(:tenant_id)
43
43
  record.tenant_id
44
44
  end
45
- return if tenant_id.present?
46
-
47
- super
48
- end
49
-
50
- # override Tenantable#set_workspaces_workspace_id to use the parent record, if available
51
- def set_workspaces_workspace_id
52
- self.workspaces_workspace_id = if record.is_a?(Bp3::Actiontext.workspace_class)
53
- record.id
54
- elsif record.respond_to?(:workspaces_workspace_id)
55
- record.workspaces_workspace_id
56
- end
57
- return if workspaces_workspace_id.present?
58
-
59
- super
45
+ # don't call super, as we do NOT want to use a global state tenant
46
+ # and tenant is not required
47
+ # return if tenant_id.present?
48
+ #
49
+ # super
60
50
  end
61
51
  end
62
52
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bp3
4
4
  module Actiontext
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bp3-actiontext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wim den Braven
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-03 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actiontext
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  requirements: []
223
- rubygems_version: 3.5.11
223
+ rubygems_version: 3.5.23
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: bp3-actiontext adapts actiontext for BP3 (persuavis/black_phoebe_3).