eventsimple 1.3.0 → 1.3.1

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: 638006c0e2d430bc3ef8e945b770495fecdfdf4eb96c2d7555c6f2b01d916884
4
- data.tar.gz: b116ebfbc7fad79107f23236d249fcb1ece6a599cdd95b6489c9ca8c8dc4cf22
3
+ metadata.gz: af8b1c10700108b29ba729c9bbe8984a6c1e79e2321cab48576e29e85225c7f0
4
+ data.tar.gz: 73debdd0abeeec0f17077037656b92f759f41d6c1600d17c9bed86ac0c679667
5
5
  SHA512:
6
- metadata.gz: 5cf51f1c191bd05e022bd105f056082c1b70b76b51435d74a8e241c9b2b8519a6ae874f0dd206c76101742466120415cade893695304fe5e086d7048a33f07d3
7
- data.tar.gz: 6a37c35600d9cec4e4507a3fffecf42789e9a1108ffb5b6fcbaa1dfa6ea08554f7004a8abe5db0ae4786c2cb563e21be24de3f0e78ce14c2d2f686e63a4c006d
6
+ metadata.gz: 950e729b42d5c7f6c1aa30172e41dbd13ffdc5e44e24e8251ac471611cd41bdb8ac82fe03d145cdf917bb0396dcb2449fc6e31717e72e33b2adceeb205d7855b
7
+ data.tar.gz: db12e1bad078f9ba357c3360157adb0c5842f46fcd204ac892ff47fe105e9fc7d8618be8b4f7765eef24cf175f539f478c84a4613103af37380ad5b3d51f2b1e
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.3.1 - 2024-01-19
10
+ ### Changed
11
+ - Restore readonly status to the original status after enable_writes! block.
12
+
9
13
  ## 1.3.0 - 2024-01-14
10
14
  ### Changed
11
15
  - Prevent manual write access to the entity table by default. This is to prevent
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventsimple (1.3.0)
4
+ eventsimple (1.3.1)
5
5
  dry-struct (~> 1.6)
6
6
  dry-types (~> 1.7)
7
7
  pg (~> 1.4)
@@ -11,35 +11,35 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actioncable (7.1.2)
15
- actionpack (= 7.1.2)
16
- activesupport (= 7.1.2)
14
+ actioncable (7.1.3)
15
+ actionpack (= 7.1.3)
16
+ activesupport (= 7.1.3)
17
17
  nio4r (~> 2.0)
18
18
  websocket-driver (>= 0.6.1)
19
19
  zeitwerk (~> 2.6)
20
- actionmailbox (7.1.2)
21
- actionpack (= 7.1.2)
22
- activejob (= 7.1.2)
23
- activerecord (= 7.1.2)
24
- activestorage (= 7.1.2)
25
- activesupport (= 7.1.2)
20
+ actionmailbox (7.1.3)
21
+ actionpack (= 7.1.3)
22
+ activejob (= 7.1.3)
23
+ activerecord (= 7.1.3)
24
+ activestorage (= 7.1.3)
25
+ activesupport (= 7.1.3)
26
26
  mail (>= 2.7.1)
27
27
  net-imap
28
28
  net-pop
29
29
  net-smtp
30
- actionmailer (7.1.2)
31
- actionpack (= 7.1.2)
32
- actionview (= 7.1.2)
33
- activejob (= 7.1.2)
34
- activesupport (= 7.1.2)
30
+ actionmailer (7.1.3)
31
+ actionpack (= 7.1.3)
32
+ actionview (= 7.1.3)
33
+ activejob (= 7.1.3)
34
+ activesupport (= 7.1.3)
35
35
  mail (~> 2.5, >= 2.5.4)
36
36
  net-imap
37
37
  net-pop
38
38
  net-smtp
39
39
  rails-dom-testing (~> 2.2)
40
- actionpack (7.1.2)
41
- actionview (= 7.1.2)
42
- activesupport (= 7.1.2)
40
+ actionpack (7.1.3)
41
+ actionview (= 7.1.3)
42
+ activesupport (= 7.1.3)
43
43
  nokogiri (>= 1.8.5)
44
44
  racc
45
45
  rack (>= 2.2.4)
@@ -47,35 +47,35 @@ GEM
47
47
  rack-test (>= 0.6.3)
48
48
  rails-dom-testing (~> 2.2)
49
49
  rails-html-sanitizer (~> 1.6)
50
- actiontext (7.1.2)
51
- actionpack (= 7.1.2)
52
- activerecord (= 7.1.2)
53
- activestorage (= 7.1.2)
54
- activesupport (= 7.1.2)
50
+ actiontext (7.1.3)
51
+ actionpack (= 7.1.3)
52
+ activerecord (= 7.1.3)
53
+ activestorage (= 7.1.3)
54
+ activesupport (= 7.1.3)
55
55
  globalid (>= 0.6.0)
56
56
  nokogiri (>= 1.8.5)
57
- actionview (7.1.2)
58
- activesupport (= 7.1.2)
57
+ actionview (7.1.3)
58
+ activesupport (= 7.1.3)
59
59
  builder (~> 3.1)
60
60
  erubi (~> 1.11)
61
61
  rails-dom-testing (~> 2.2)
62
62
  rails-html-sanitizer (~> 1.6)
63
- activejob (7.1.2)
64
- activesupport (= 7.1.2)
63
+ activejob (7.1.3)
64
+ activesupport (= 7.1.3)
65
65
  globalid (>= 0.3.6)
66
- activemodel (7.1.2)
67
- activesupport (= 7.1.2)
68
- activerecord (7.1.2)
69
- activemodel (= 7.1.2)
70
- activesupport (= 7.1.2)
66
+ activemodel (7.1.3)
67
+ activesupport (= 7.1.3)
68
+ activerecord (7.1.3)
69
+ activemodel (= 7.1.3)
70
+ activesupport (= 7.1.3)
71
71
  timeout (>= 0.4.0)
72
- activestorage (7.1.2)
73
- actionpack (= 7.1.2)
74
- activejob (= 7.1.2)
75
- activerecord (= 7.1.2)
76
- activesupport (= 7.1.2)
72
+ activestorage (7.1.3)
73
+ actionpack (= 7.1.3)
74
+ activejob (= 7.1.3)
75
+ activerecord (= 7.1.3)
76
+ activesupport (= 7.1.3)
77
77
  marcel (~> 1.0)
78
- activesupport (7.1.2)
78
+ activesupport (7.1.3)
79
79
  base64
80
80
  bigdecimal
81
81
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -89,7 +89,7 @@ GEM
89
89
  public_suffix (>= 2.0.2, < 6.0)
90
90
  ast (2.4.2)
91
91
  base64 (0.2.0)
92
- bigdecimal (3.1.5)
92
+ bigdecimal (3.1.6)
93
93
  builder (3.2.4)
94
94
  bundle-audit (0.1.0)
95
95
  bundler-audit
@@ -97,11 +97,11 @@ GEM
97
97
  bundler (>= 1.2.0, < 3)
98
98
  thor (~> 1.0)
99
99
  coderay (1.1.3)
100
- concurrent-ruby (1.2.2)
100
+ concurrent-ruby (1.2.3)
101
101
  connection_pool (2.4.1)
102
102
  crass (1.0.6)
103
103
  date (3.3.4)
104
- diff-lcs (1.5.0)
104
+ diff-lcs (1.5.1)
105
105
  drb (2.2.0)
106
106
  ruby2_keywords
107
107
  dry-core (1.0.1)
@@ -125,7 +125,7 @@ GEM
125
125
  dry-logic (~> 1.4)
126
126
  zeitwerk (~> 2.6)
127
127
  erubi (1.12.0)
128
- factory_bot (6.4.5)
128
+ factory_bot (6.4.6)
129
129
  activesupport (>= 5.0.0)
130
130
  factory_bot_rails (6.4.3)
131
131
  factory_bot (~> 6.4)
@@ -157,8 +157,8 @@ GEM
157
157
  i18n (1.14.1)
158
158
  concurrent-ruby (~> 1.0)
159
159
  ice_nine (0.11.2)
160
- io-console (0.7.1)
161
- irb (1.11.1)
160
+ io-console (0.7.2)
161
+ irb (1.11.2)
162
162
  rdoc
163
163
  reline (>= 0.4.2)
164
164
  json (2.7.1)
@@ -179,10 +179,10 @@ GEM
179
179
  marcel (1.0.2)
180
180
  method_source (1.0.0)
181
181
  mini_mime (1.1.5)
182
- minitest (5.21.1)
182
+ minitest (5.22.2)
183
183
  mutex_m (0.2.0)
184
184
  nenv (0.3.0)
185
- net-imap (0.4.9.1)
185
+ net-imap (0.4.10)
186
186
  date
187
187
  net-protocol
188
188
  net-pop (0.1.2)
@@ -192,9 +192,9 @@ GEM
192
192
  net-smtp (0.4.0.1)
193
193
  net-protocol
194
194
  nio4r (2.7.0)
195
- nokogiri (1.16.0-arm64-darwin)
195
+ nokogiri (1.16.2-arm64-darwin)
196
196
  racc (~> 1.4)
197
- nokogiri (1.16.0-x86_64-linux)
197
+ nokogiri (1.16.2-x86_64-linux)
198
198
  racc (~> 1.4)
199
199
  notiffany (0.1.3)
200
200
  nenv (~> 0.1)
@@ -202,10 +202,10 @@ GEM
202
202
  parallel (1.24.0)
203
203
  parse_a_changelog (1.3.0)
204
204
  treetop (~> 1.6)
205
- parser (3.3.0.3)
205
+ parser (3.3.0.5)
206
206
  ast (~> 2.4.1)
207
207
  racc
208
- pg (1.5.4)
208
+ pg (1.5.5)
209
209
  polyglot (0.3.5)
210
210
  pry (0.14.2)
211
211
  coderay (~> 1.1)
@@ -216,7 +216,7 @@ GEM
216
216
  puma (6.4.2)
217
217
  nio4r (~> 2.0)
218
218
  racc (1.7.3)
219
- rack (3.0.8)
219
+ rack (3.0.9)
220
220
  rack-session (2.0.0)
221
221
  rack (>= 3.0.0)
222
222
  rack-test (2.1.0)
@@ -224,20 +224,20 @@ GEM
224
224
  rackup (2.1.0)
225
225
  rack (>= 3)
226
226
  webrick (~> 1.8)
227
- rails (7.1.2)
228
- actioncable (= 7.1.2)
229
- actionmailbox (= 7.1.2)
230
- actionmailer (= 7.1.2)
231
- actionpack (= 7.1.2)
232
- actiontext (= 7.1.2)
233
- actionview (= 7.1.2)
234
- activejob (= 7.1.2)
235
- activemodel (= 7.1.2)
236
- activerecord (= 7.1.2)
237
- activestorage (= 7.1.2)
238
- activesupport (= 7.1.2)
227
+ rails (7.1.3)
228
+ actioncable (= 7.1.3)
229
+ actionmailbox (= 7.1.3)
230
+ actionmailer (= 7.1.3)
231
+ actionpack (= 7.1.3)
232
+ actiontext (= 7.1.3)
233
+ actionview (= 7.1.3)
234
+ activejob (= 7.1.3)
235
+ activemodel (= 7.1.3)
236
+ activerecord (= 7.1.3)
237
+ activestorage (= 7.1.3)
238
+ activesupport (= 7.1.3)
239
239
  bundler (>= 1.15.0)
240
- railties (= 7.1.2)
240
+ railties (= 7.1.3)
241
241
  rails-dom-testing (2.2.0)
242
242
  activesupport (>= 5.0.0)
243
243
  minitest
@@ -245,9 +245,9 @@ GEM
245
245
  rails-html-sanitizer (1.6.0)
246
246
  loofah (~> 2.21)
247
247
  nokogiri (~> 1.14)
248
- railties (7.1.2)
249
- actionpack (= 7.1.2)
250
- activesupport (= 7.1.2)
248
+ railties (7.1.3)
249
+ actionpack (= 7.1.3)
250
+ activesupport (= 7.1.3)
251
251
  irb
252
252
  rackup (>= 1.0.0)
253
253
  rake (>= 12.2)
@@ -266,19 +266,19 @@ GEM
266
266
  io-console (~> 0.5)
267
267
  retriable (3.1.2)
268
268
  rexml (3.2.6)
269
- rspec (3.12.0)
270
- rspec-core (~> 3.12.0)
271
- rspec-expectations (~> 3.12.0)
272
- rspec-mocks (~> 3.12.0)
273
- rspec-core (3.12.2)
274
- rspec-support (~> 3.12.0)
275
- rspec-expectations (3.12.3)
269
+ rspec (3.13.0)
270
+ rspec-core (~> 3.13.0)
271
+ rspec-expectations (~> 3.13.0)
272
+ rspec-mocks (~> 3.13.0)
273
+ rspec-core (3.13.0)
274
+ rspec-support (~> 3.13.0)
275
+ rspec-expectations (3.13.0)
276
276
  diff-lcs (>= 1.2.0, < 2.0)
277
- rspec-support (~> 3.12.0)
278
- rspec-mocks (3.12.6)
277
+ rspec-support (~> 3.13.0)
278
+ rspec-mocks (3.13.0)
279
279
  diff-lcs (>= 1.2.0, < 2.0)
280
- rspec-support (~> 3.12.0)
281
- rspec-rails (6.1.0)
280
+ rspec-support (~> 3.13.0)
281
+ rspec-rails (6.1.1)
282
282
  actionpack (>= 6.1)
283
283
  activesupport (>= 6.1)
284
284
  railties (>= 6.1)
@@ -286,12 +286,12 @@ GEM
286
286
  rspec-expectations (~> 3.12)
287
287
  rspec-mocks (~> 3.12)
288
288
  rspec-support (~> 3.12)
289
- rspec-support (3.12.1)
290
- rubocop (1.59.0)
289
+ rspec-support (3.13.0)
290
+ rubocop (1.60.2)
291
291
  json (~> 2.3)
292
292
  language_server-protocol (>= 3.17.0)
293
293
  parallel (~> 1.10)
294
- parser (>= 3.2.2.4)
294
+ parser (>= 3.3.0.2)
295
295
  rainbow (>= 2.2.2, < 4.0)
296
296
  regexp_parser (>= 1.8, < 3.0)
297
297
  rexml (>= 3.2.5, < 4.0)
@@ -321,10 +321,10 @@ GEM
321
321
  ruby-progressbar (1.13.0)
322
322
  ruby2_keywords (0.0.5)
323
323
  shellany (0.0.1)
324
- standard (1.33.0)
324
+ standard (1.34.0)
325
325
  language_server-protocol (~> 3.17.0.2)
326
326
  lint_roller (~> 1.0)
327
- rubocop (~> 1.59.0)
327
+ rubocop (~> 1.60)
328
328
  standard-custom (~> 1.0.0)
329
329
  standard-performance (~> 1.3)
330
330
  standard-custom (1.0.2)
@@ -348,13 +348,13 @@ GEM
348
348
  websocket-driver (0.7.6)
349
349
  websocket-extensions (>= 0.1.0)
350
350
  websocket-extensions (0.1.5)
351
- ws-style (7.3.0)
351
+ ws-style (7.4.3)
352
352
  rubocop-rspec (>= 2.2.0)
353
353
  rubocop-vendor (>= 0.11)
354
354
  standard (>= 1.30.1)
355
355
  standard-custom (>= 1.0.2)
356
356
  standard-rails (>= 0.1.0)
357
- zeitwerk (2.6.12)
357
+ zeitwerk (2.6.13)
358
358
 
359
359
  PLATFORMS
360
360
  arm64-darwin-22
data/README.md CHANGED
@@ -358,7 +358,7 @@ If you are using FactoryBot, you can add the following in your rails_helper.rb t
358
358
  FactoryBot.define do
359
359
  after(:build) { |model| model.enable_writes! if model.class.ancestors.include?(Eventsimple::Entity::InstanceMethods) }
360
360
  end
361
- ``
361
+ ```
362
362
 
363
363
  **`#reproject(at: nil)`**
364
364
 
@@ -35,11 +35,12 @@ module Eventsimple
35
35
  end
36
36
 
37
37
  def enable_writes!(&block)
38
+ was_readonly = @readonly
38
39
  @readonly = false
39
40
 
40
41
  if block
41
42
  yield
42
- @readonly = true
43
+ @readonly = true if was_readonly
43
44
  end
44
45
  end
45
46
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eventsimple
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventsimple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zulfiqar Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct