fixturizer 0.4.2 → 0.4.4

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: cf7a1159047eed0d85251205266b374018fc8f7c7b7c312f91db96eb632a87ae
4
- data.tar.gz: 965f93e4be42f6207e00647b2d456451425421b04eea4d7ceea984c5a2a7ce98
3
+ metadata.gz: 882039bcb957db5bf0fa63e486d817f4d66743c8e4b58ee7b0cdf8c40459ef6f
4
+ data.tar.gz: c39d3ee9e03ce4874dfc4ea70b254aad80003f0bce819b42b9cd574793a2b685
5
5
  SHA512:
6
- metadata.gz: 0ef1bea30d4ce6398a6eb0f2df942ecb26ad25f9828339b8fb3e9067c18fe07a7bb7220ddba5ae3596c313d2202dd06dabaf40cf51ec370754b69796386d72f0
7
- data.tar.gz: 2f46d5b7386d853503abc3b95576f1fbea6fe602f5a1608e4812a7639568ee50f303f2bed11daa0632ab344b3bd717757cbc4f9aff05c3f894926fb2a2f3fc0c
6
+ metadata.gz: accac882591983b97340004a0f033418d98bd7f9e3546115fdc271dff6338db7a15da8aebc7a4061fcdb9edfc56efd86df190f1c7f0f62bdb9e74de976e4470d
7
+ data.tar.gz: 0cfe3c8df423412a27c34831f3208014ab7071e5c1dae045743bdfff608b36bfdbb669e16b4f5e76463328fff1fa3749bfed6abec7e4664f3c1600c57756f9de
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.4
data/bom.xml CHANGED
@@ -1,33 +1,33 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <bom xmlns="http://cyclonedx.org/schema/bom/1.1" version="1" serialNumber="urn:uuid:f2ebb13b-9921-45bd-97f4-a4491608db4f">
2
+ <bom xmlns="http://cyclonedx.org/schema/bom/1.1" version="1" serialNumber="urn:uuid:14bb1e51-ddae-4610-b108-45b63789f2f6">
3
3
  <components>
4
4
  <component type="library">
5
5
  <name>activemodel</name>
6
- <version>7.1.3.2</version>
6
+ <version>7.1.3.3</version>
7
7
  <description>A toolkit for building modeling frameworks (part of Rails).</description>
8
8
  <hashes>
9
- <hash alg="SHA-256">108e5262f96333c694e0fdba0209de5beeec1084b9a947940c259450f45d715c</hash>
9
+ <hash alg="SHA-256">10c92029cce7d0c41f17c8c5f39b20777eac5763c79607034d6ee4bd427f9b4e</hash>
10
10
  </hashes>
11
11
  <licenses>
12
12
  <license>
13
13
  <id>MIT</id>
14
14
  </license>
15
15
  </licenses>
16
- <purl>pkg:gem/activemodel@7.1.3.2</purl>
16
+ <purl>pkg:gem/activemodel@7.1.3.3</purl>
17
17
  </component>
18
18
  <component type="library">
19
19
  <name>activesupport</name>
20
- <version>7.1.3.2</version>
20
+ <version>7.1.3.3</version>
21
21
  <description>A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.</description>
22
22
  <hashes>
23
- <hash alg="SHA-256">ad8445b7ae4a6d3acc5f88c8c5f437eb0b54062032aaf44856c7b6d3855b8b2e</hash>
23
+ <hash alg="SHA-256">f1147f1eedff05b7816b48d0aa89c912b83fed3f245d7ed3cf33a55ffbf3137d</hash>
24
24
  </hashes>
25
25
  <licenses>
26
26
  <license>
27
27
  <id>MIT</id>
28
28
  </license>
29
29
  </licenses>
30
- <purl>pkg:gem/activesupport@7.1.3.2</purl>
30
+ <purl>pkg:gem/activesupport@7.1.3.3</purl>
31
31
  </component>
32
32
  <component type="library">
33
33
  <name>ast</name>
@@ -101,17 +101,17 @@
101
101
  </component>
102
102
  <component type="library">
103
103
  <name>bundler-audit</name>
104
- <version>0.9.1</version>
104
+ <version>0.9.2</version>
105
105
  <description>Patch-level verification for Bundler</description>
106
106
  <hashes>
107
- <hash alg="SHA-256">bdc716fc21cd8652a6507b137e5bc51f5e0e4f6f106a114ab004c89d0200bd3d</hash>
107
+ <hash alg="SHA-256">73051daa09865c436450a35c4d87ceef15f3f9777f4aad4fd015cc6f1f2b1048</hash>
108
108
  </hashes>
109
109
  <licenses>
110
110
  <license>
111
- <id>GPL-3.0+</id>
111
+ <id>GPL-3.0-or-later</id>
112
112
  </license>
113
113
  </licenses>
114
- <purl>pkg:gem/bundler-audit@0.9.1</purl>
114
+ <purl>pkg:gem/bundler-audit@0.9.2</purl>
115
115
  </component>
116
116
  <component type="library">
117
117
  <name>code_statistics</name>
@@ -124,17 +124,17 @@
124
124
  </component>
125
125
  <component type="library">
126
126
  <name>concurrent-ruby</name>
127
- <version>1.2.3</version>
127
+ <version>1.3.4</version>
128
128
  <description>Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.</description>
129
129
  <hashes>
130
- <hash alg="SHA-256">82fdd3f8a0816e28d513e637bb2b90a45d7b982bdf4f3a0511722d2e495801e2</hash>
130
+ <hash alg="SHA-256">d4aa926339b0a86b5b5054a0a8c580163e6f5dcbdfd0f4bb916b1a2570731c32</hash>
131
131
  </hashes>
132
132
  <licenses>
133
133
  <license>
134
134
  <id>MIT</id>
135
135
  </license>
136
136
  </licenses>
137
- <purl>pkg:gem/concurrent-ruby@1.2.3</purl>
137
+ <purl>pkg:gem/concurrent-ruby@1.3.4</purl>
138
138
  </component>
139
139
  <component type="library">
140
140
  <name>connection_pool</name>
@@ -220,6 +220,20 @@
220
220
  </licenses>
221
221
  <purl>pkg:gem/drb@2.2.1</purl>
222
222
  </component>
223
+ <component type="library">
224
+ <name>fixturizer</name>
225
+ <version>0.4.3</version>
226
+ <description>Ruby fixturizer tools for applications testing</description>
227
+ <hashes>
228
+ <hash alg="SHA-256">211bc41670714a70942d20515a8b343cd217eb86a079bbe80569124dc49f2d10</hash>
229
+ </hashes>
230
+ <licenses>
231
+ <license>
232
+ <id>MIT</id>
233
+ </license>
234
+ </licenses>
235
+ <purl>pkg:gem/fixturizer@0.4.3</purl>
236
+ </component>
223
237
  <component type="library">
224
238
  <name>http-accept</name>
225
239
  <version>1.7.0</version>
@@ -231,31 +245,31 @@
231
245
  </component>
232
246
  <component type="library">
233
247
  <name>http-cookie</name>
234
- <version>1.0.5</version>
248
+ <version>1.0.7</version>
235
249
  <description>A Ruby library to handle HTTP Cookies based on RFC 6265</description>
236
250
  <hashes>
237
- <hash alg="SHA-256">73756d46c7dbdc7023deecdb8a171348ea95a1b99810b31cfe8b4fb4e9a6318f</hash>
251
+ <hash alg="SHA-256">cb7a399f3344f720b8a0f3b0765f29b62608ebb9c3ce4abf4d6eeff2caf42253</hash>
238
252
  </hashes>
239
253
  <licenses>
240
254
  <license>
241
255
  <id>MIT</id>
242
256
  </license>
243
257
  </licenses>
244
- <purl>pkg:gem/http-cookie@1.0.5</purl>
258
+ <purl>pkg:gem/http-cookie@1.0.7</purl>
245
259
  </component>
246
260
  <component type="library">
247
261
  <name>i18n</name>
248
- <version>1.14.5</version>
262
+ <version>1.14.6</version>
249
263
  <description>New wave Internationalization support for Ruby</description>
250
264
  <hashes>
251
- <hash alg="SHA-256">26dcbc05e364b57e27ab430148b3377bc413987d34cc042336271d8f42e9d1b9</hash>
265
+ <hash alg="SHA-256">dc229a74f5d181f09942dd60ab5d6e667f7392c4ee826f35096db36d1fe3614c</hash>
252
266
  </hashes>
253
267
  <licenses>
254
268
  <license>
255
269
  <id>MIT</id>
256
270
  </license>
257
271
  </licenses>
258
- <purl>pkg:gem/i18n@1.14.5</purl>
272
+ <purl>pkg:gem/i18n@1.14.6</purl>
259
273
  </component>
260
274
  <component type="library">
261
275
  <name>json</name>
@@ -301,45 +315,31 @@
301
315
  </component>
302
316
  <component type="library">
303
317
  <name>mime-types-data</name>
304
- <version>3.2024.0507</version>
318
+ <version>3.2024.0903</version>
305
319
  <description>mime-types-data provides a registry for information about MIME media type definitions</description>
306
320
  <hashes>
307
- <hash alg="SHA-256">b5bec89ea0e08756e1768f3e8ed39fb9001f392bf15aaefc8da11d6754e0cb4f</hash>
308
- </hashes>
309
- <licenses>
310
- <license>
311
- <id>MIT</id>
312
- </license>
313
- </licenses>
314
- <purl>pkg:gem/mime-types-data@3.2024.0507</purl>
315
- </component>
316
- <component type="library">
317
- <name>mini_portile2</name>
318
- <version>2.8.6</version>
319
- <description>Simple autoconf and cmake builder for developers</description>
320
- <hashes>
321
- <hash alg="SHA-256">4e2ab09b924906fd42c0b6eb72816db6a435d0404e9cbdcc5d722c133b493991</hash>
321
+ <hash alg="SHA-256">dae5540f6190dfaf27dd429fa496374520fcdb7461999e0b34d21e8459afab34</hash>
322
322
  </hashes>
323
323
  <licenses>
324
324
  <license>
325
325
  <id>MIT</id>
326
326
  </license>
327
327
  </licenses>
328
- <purl>pkg:gem/mini_portile2@2.8.6</purl>
328
+ <purl>pkg:gem/mime-types-data@3.2024.0903</purl>
329
329
  </component>
330
330
  <component type="library">
331
331
  <name>minitest</name>
332
- <version>5.23.0</version>
332
+ <version>5.23.1</version>
333
333
  <description>minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking</description>
334
334
  <hashes>
335
- <hash alg="SHA-256">4c488e69b6a0a8bece496bfde92e39fb806f3d786eb935d55864b4dc927639a0</hash>
335
+ <hash alg="SHA-256">f1e8f8d6ffd96fb17339ce50768bcbbdbbadff5073cb9583d084403877a77abe</hash>
336
336
  </hashes>
337
337
  <licenses>
338
338
  <license>
339
339
  <id>MIT</id>
340
340
  </license>
341
341
  </licenses>
342
- <purl>pkg:gem/minitest@5.23.0</purl>
342
+ <purl>pkg:gem/minitest@5.23.1</purl>
343
343
  </component>
344
344
  <component type="library">
345
345
  <name>mongo</name>
@@ -399,31 +399,17 @@
399
399
  </component>
400
400
  <component type="library">
401
401
  <name>nokogiri</name>
402
- <version>1.16.5</version>
403
- <description>Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.</description>
404
- <hashes>
405
- <hash alg="SHA-256">ec36162c68984fa0a90a5c4ae7ab7759460639e716cc1ce75f34c3cb54158ad2</hash>
406
- </hashes>
407
- <licenses>
408
- <license>
409
- <id>MIT</id>
410
- </license>
411
- </licenses>
412
- <purl>pkg:gem/nokogiri@1.16.5</purl>
413
- </component>
414
- <component type="library">
415
- <name>nokogiri</name>
416
- <version>1.16.5</version>
402
+ <version>1.16.7</version>
417
403
  <description>Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.</description>
418
404
  <hashes>
419
- <hash alg="SHA-256">ec36162c68984fa0a90a5c4ae7ab7759460639e716cc1ce75f34c3cb54158ad2</hash>
405
+ <hash alg="SHA-256">f819cbfdfb0a7b19c9c52c6f2ca63df0e58a6125f4f139707b586b9511d7fe95</hash>
420
406
  </hashes>
421
407
  <licenses>
422
408
  <license>
423
409
  <id>MIT</id>
424
410
  </license>
425
411
  </licenses>
426
- <purl>pkg:gem/nokogiri@1.16.5</purl>
412
+ <purl>pkg:gem/nokogiri@1.16.7</purl>
427
413
  </component>
428
414
  <component type="library">
429
415
  <name>ostruct</name>
@@ -441,59 +427,59 @@
441
427
  </component>
442
428
  <component type="library">
443
429
  <name>parallel</name>
444
- <version>1.24.0</version>
430
+ <version>1.26.3</version>
445
431
  <description>Run any kind of code in parallel processes</description>
446
432
  <hashes>
447
- <hash alg="SHA-256">5bf38efb9b37865f8e93d7a762727f8c5fc5deb19949f4040c76481d5eee9397</hash>
433
+ <hash alg="SHA-256">d86babb7a2b814be9f4b81587bf0b6ce2da7d45969fab24d8ae4bf2bb4d4c7ef</hash>
448
434
  </hashes>
449
435
  <licenses>
450
436
  <license>
451
437
  <id>MIT</id>
452
438
  </license>
453
439
  </licenses>
454
- <purl>pkg:gem/parallel@1.24.0</purl>
440
+ <purl>pkg:gem/parallel@1.26.3</purl>
455
441
  </component>
456
442
  <component type="library">
457
443
  <name>parser</name>
458
- <version>3.3.1.0</version>
444
+ <version>3.3.5.0</version>
459
445
  <description>A Ruby parser written in pure Ruby.</description>
460
446
  <hashes>
461
- <hash alg="SHA-256">78f3e62b925500409e8cc2006c638e454c864be728790bd80accf04b68290244</hash>
447
+ <hash alg="SHA-256">f30ebb71b7830c2e7cdc4b2b0e0ec2234900e3fca3fe2fba47f78be759181ab3</hash>
462
448
  </hashes>
463
449
  <licenses>
464
450
  <license>
465
451
  <id>MIT</id>
466
452
  </license>
467
453
  </licenses>
468
- <purl>pkg:gem/parser@3.3.1.0</purl>
454
+ <purl>pkg:gem/parser@3.3.5.0</purl>
469
455
  </component>
470
456
  <component type="library">
471
457
  <name>path_expander</name>
472
- <version>1.1.1</version>
458
+ <version>1.1.3</version>
473
459
  <description>PathExpander helps pre-process command-line arguments expanding directories into their constituent files</description>
474
460
  <hashes>
475
- <hash alg="SHA-256">85ce6e0375bbf83e090a02f0d45dfc0b4ed240c0e5c65f1e5dfdc11f5503231f</hash>
461
+ <hash alg="SHA-256">bea16440dea5a770b9765312c8037931cc576f4f2872d71133a3e480028f9f67</hash>
476
462
  </hashes>
477
463
  <licenses>
478
464
  <license>
479
465
  <id>MIT</id>
480
466
  </license>
481
467
  </licenses>
482
- <purl>pkg:gem/path_expander@1.1.1</purl>
468
+ <purl>pkg:gem/path_expander@1.1.3</purl>
483
469
  </component>
484
470
  <component type="library">
485
471
  <name>racc</name>
486
- <version>1.7.3</version>
487
- <description>Racc is a LALR(1) parser generator</description>
472
+ <version>1.8.1</version>
473
+ <description>Racc is an LALR(1) parser generator</description>
488
474
  <hashes>
489
- <hash alg="SHA-256">b2ad737e788cfa083263ce7c9290644bb0f2c691908249eb4f6eb48ed2815dbf</hash>
475
+ <hash alg="SHA-256">54f2e6d1e1b91c154013277d986f52a90e5ececbe91465d29172e49342732b98</hash>
490
476
  </hashes>
491
477
  <licenses>
492
478
  <license>
493
479
  <id>Ruby</id>
494
480
  </license>
495
481
  </licenses>
496
- <purl>pkg:gem/racc@1.7.3</purl>
482
+ <purl>pkg:gem/racc@1.8.1</purl>
497
483
  </component>
498
484
  <component type="library">
499
485
  <name>rainbow</name>
@@ -551,117 +537,103 @@
551
537
  </licenses>
552
538
  <purl>pkg:gem/rest-client@2.1.0</purl>
553
539
  </component>
554
- <component type="library">
555
- <name>rexml</name>
556
- <version>3.2.8</version>
557
- <description>An XML toolkit for Ruby</description>
558
- <hashes>
559
- <hash alg="SHA-256">0908a86381d9f973824680df4e0a75422766272f03b1c0e49db7e79c23db1135</hash>
560
- </hashes>
561
- <licenses>
562
- <license>
563
- <id>BSD-2-Clause</id>
564
- </license>
565
- </licenses>
566
- <purl>pkg:gem/rexml@3.2.8</purl>
567
- </component>
568
540
  <component type="library">
569
541
  <name>rspec</name>
570
- <version>3.10.0</version>
571
- <description>rspec-3.10.0</description>
542
+ <version>3.13.0</version>
543
+ <description>rspec-3.13.0</description>
572
544
  <hashes>
573
- <hash alg="SHA-256">b870b43d49ae4a4e063b94976d2742b0854ec10458c425d569b5556ee5898ab7</hash>
545
+ <hash alg="SHA-256">d490914ac1d5a5a64a0e1400c1d54ddd2a501324d703b8cfe83f458337bab993</hash>
574
546
  </hashes>
575
547
  <licenses>
576
548
  <license>
577
549
  <id>MIT</id>
578
550
  </license>
579
551
  </licenses>
580
- <purl>pkg:gem/rspec@3.10.0</purl>
552
+ <purl>pkg:gem/rspec@3.13.0</purl>
581
553
  </component>
582
554
  <component type="library">
583
555
  <name>rspec-core</name>
584
- <version>3.10.2</version>
585
- <description>rspec-core-3.10.2</description>
556
+ <version>3.13.1</version>
557
+ <description>rspec-core-3.13.1</description>
586
558
  <hashes>
587
- <hash alg="SHA-256">005659ce9dd356dd5d2acb4bcdcc5915291f4a312447b500af3b75aab564951b</hash>
559
+ <hash alg="SHA-256">9daa4ff29812e620193ebc8952e032f031fe167a9f6daf7ea3d29dc31d47c868</hash>
588
560
  </hashes>
589
561
  <licenses>
590
562
  <license>
591
563
  <id>MIT</id>
592
564
  </license>
593
565
  </licenses>
594
- <purl>pkg:gem/rspec-core@3.10.2</purl>
566
+ <purl>pkg:gem/rspec-core@3.13.1</purl>
595
567
  </component>
596
568
  <component type="library">
597
569
  <name>rspec-expectations</name>
598
- <version>3.10.2</version>
599
- <description>rspec-expectations-3.10.2</description>
570
+ <version>3.13.3</version>
571
+ <description>rspec-expectations-3.13.3</description>
600
572
  <hashes>
601
- <hash alg="SHA-256">fa9fdf7e7bf2e5e5b3143b2b18fea05e209406d96b92a9a722753426931432e3</hash>
573
+ <hash alg="SHA-256">0e6b5af59b900147698ea0ff80456c4f2e69cac4394fbd392fbd1ca561f66c58</hash>
602
574
  </hashes>
603
575
  <licenses>
604
576
  <license>
605
577
  <id>MIT</id>
606
578
  </license>
607
579
  </licenses>
608
- <purl>pkg:gem/rspec-expectations@3.10.2</purl>
580
+ <purl>pkg:gem/rspec-expectations@3.13.3</purl>
609
581
  </component>
610
582
  <component type="library">
611
583
  <name>rspec-mocks</name>
612
- <version>3.10.3</version>
613
- <description>rspec-mocks-3.10.3</description>
584
+ <version>3.13.1</version>
585
+ <description>rspec-mocks-3.13.1</description>
614
586
  <hashes>
615
- <hash alg="SHA-256">d2f6f3d8b7569b1e846703d164cb23e24c7f530d38217fc06da2beaf6024260a</hash>
587
+ <hash alg="SHA-256">087189899c337937bcf1d66a50dc3fc999ac88335bbeba4d385c2a38c87d7b38</hash>
616
588
  </hashes>
617
589
  <licenses>
618
590
  <license>
619
591
  <id>MIT</id>
620
592
  </license>
621
593
  </licenses>
622
- <purl>pkg:gem/rspec-mocks@3.10.3</purl>
594
+ <purl>pkg:gem/rspec-mocks@3.13.1</purl>
623
595
  </component>
624
596
  <component type="library">
625
597
  <name>rspec-support</name>
626
- <version>3.10.3</version>
627
- <description>rspec-support-3.10.3</description>
598
+ <version>3.13.1</version>
599
+ <description>rspec-support-3.13.1</description>
628
600
  <hashes>
629
- <hash alg="SHA-256">65c88f8cbe579461f411097682e6402960eae327eef08e86ef581b8c609e4c5e</hash>
601
+ <hash alg="SHA-256">48877d4f15b772b7538f3693c22225f2eda490ba65a0515c4e7cf6f2f17de70f</hash>
630
602
  </hashes>
631
603
  <licenses>
632
604
  <license>
633
605
  <id>MIT</id>
634
606
  </license>
635
607
  </licenses>
636
- <purl>pkg:gem/rspec-support@3.10.3</purl>
608
+ <purl>pkg:gem/rspec-support@3.13.1</purl>
637
609
  </component>
638
610
  <component type="library">
639
611
  <name>rubocop</name>
640
- <version>1.63.5</version>
612
+ <version>1.66.1</version>
641
613
  <description>Automatic Ruby code style checking tool.</description>
642
614
  <hashes>
643
- <hash alg="SHA-256">a3270524ba00ce93f58e41e980feba80374070ae97d92c78b9aa57b8e1ec6dfe</hash>
615
+ <hash alg="SHA-256">0679c263b1164fd003b8590ae83b3e9e9bf72282d411755f227f1d6268ee5ee7</hash>
644
616
  </hashes>
645
617
  <licenses>
646
618
  <license>
647
619
  <id>MIT</id>
648
620
  </license>
649
621
  </licenses>
650
- <purl>pkg:gem/rubocop@1.63.5</purl>
622
+ <purl>pkg:gem/rubocop@1.66.1</purl>
651
623
  </component>
652
624
  <component type="library">
653
625
  <name>rubocop-ast</name>
654
- <version>1.31.3</version>
626
+ <version>1.32.3</version>
655
627
  <description>RuboCop tools to deal with Ruby code AST.</description>
656
628
  <hashes>
657
- <hash alg="SHA-256">1b07d618d8776993ec6053a706d1c09f0bf15139fd69415924656cbff07e7818</hash>
629
+ <hash alg="SHA-256">40201e861c73a3c2d59428c7627828ef81fb2f8a306bc4a1c1801452afe3fe0f</hash>
658
630
  </hashes>
659
631
  <licenses>
660
632
  <license>
661
633
  <id>MIT</id>
662
634
  </license>
663
635
  </licenses>
664
- <purl>pkg:gem/rubocop-ast@1.31.3</purl>
636
+ <purl>pkg:gem/rubocop-ast@1.32.3</purl>
665
637
  </component>
666
638
  <component type="library">
667
639
  <name>ruby-progressbar</name>
@@ -679,59 +651,45 @@
679
651
  </component>
680
652
  <component type="library">
681
653
  <name>ruby_parser</name>
682
- <version>3.21.0</version>
654
+ <version>3.21.1</version>
683
655
  <description>ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which does by default use a C extension)</description>
684
656
  <hashes>
685
- <hash alg="SHA-256">3842893d2f4602dcd93c0a79d77f9ce8e1ce197d41ac533d8e25c684f8f1c56b</hash>
657
+ <hash alg="SHA-256">9d931abe5aec287d65280f811d3cf672564956ef1bd49f528ca48479984d6fec</hash>
686
658
  </hashes>
687
659
  <licenses>
688
660
  <license>
689
661
  <id>MIT</id>
690
662
  </license>
691
663
  </licenses>
692
- <purl>pkg:gem/ruby_parser@3.21.0</purl>
664
+ <purl>pkg:gem/ruby_parser@3.21.1</purl>
693
665
  </component>
694
666
  <component type="library">
695
667
  <name>sexp_processor</name>
696
- <version>4.17.1</version>
668
+ <version>4.17.2</version>
697
669
  <description>sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it</description>
698
670
  <hashes>
699
- <hash alg="SHA-256">91110946720307f30bf1d549e90d9a529fef40d1fc471c069c8cca7667015da0</hash>
671
+ <hash alg="SHA-256">0dfdd3d90aed28360cb3032ac8905bca66d8c5f5cab01e94762206eca24e75be</hash>
700
672
  </hashes>
701
673
  <licenses>
702
674
  <license>
703
675
  <id>MIT</id>
704
676
  </license>
705
677
  </licenses>
706
- <purl>pkg:gem/sexp_processor@4.17.1</purl>
707
- </component>
708
- <component type="library">
709
- <name>strscan</name>
710
- <version>3.1.0</version>
711
- <description>Provides lexical scanning operations on a String.</description>
712
- <hashes>
713
- <hash alg="SHA-256">8645aa76e017e21764c6df572d2d79fcc1672284014f5bdbd806278cdbcd11b0</hash>
714
- </hashes>
715
- <licenses>
716
- <license>
717
- <id>Ruby</id>
718
- </license>
719
- </licenses>
720
- <purl>pkg:gem/strscan@3.1.0</purl>
678
+ <purl>pkg:gem/sexp_processor@4.17.2</purl>
721
679
  </component>
722
680
  <component type="library">
723
681
  <name>thor</name>
724
- <version>1.3.1</version>
682
+ <version>1.3.2</version>
725
683
  <description>Thor is a toolkit for building powerful command-line interfaces.</description>
726
684
  <hashes>
727
- <hash alg="SHA-256">fa7e3471d4f6a27138e3d9c9b0d4daac9c3d7383927667ae83e9ab42ae7401ef</hash>
685
+ <hash alg="SHA-256">eef0293b9e24158ccad7ab383ae83534b7ad4ed99c09f96f1a6b036550abbeda</hash>
728
686
  </hashes>
729
687
  <licenses>
730
688
  <license>
731
689
  <id>MIT</id>
732
690
  </license>
733
691
  </licenses>
734
- <purl>pkg:gem/thor@1.3.1</purl>
692
+ <purl>pkg:gem/thor@1.3.2</purl>
735
693
  </component>
736
694
  <component type="library">
737
695
  <name>tzinfo</name>
@@ -749,17 +707,17 @@
749
707
  </component>
750
708
  <component type="library">
751
709
  <name>unicode-display_width</name>
752
- <version>2.5.0</version>
710
+ <version>2.6.0</version>
753
711
  <description>Determines the monospace display width of a string in Ruby.</description>
754
712
  <hashes>
755
- <hash alg="SHA-256">7e7681dcade1add70cb9fda20dd77f300b8587c81ebbd165d14fd93144ff0ab4</hash>
713
+ <hash alg="SHA-256">12279874bba6d5e4d2728cef814b19197dbb10d7a7837a869bab65da943b7f5a</hash>
756
714
  </hashes>
757
715
  <licenses>
758
716
  <license>
759
717
  <id>MIT</id>
760
718
  </license>
761
719
  </licenses>
762
- <purl>pkg:gem/unicode-display_width@2.5.0</purl>
720
+ <purl>pkg:gem/unicode-display_width@2.6.0</purl>
763
721
  </component>
764
722
  <component type="library">
765
723
  <name>version</name>
@@ -777,17 +735,17 @@
777
735
  </component>
778
736
  <component type="library">
779
737
  <name>yard</name>
780
- <version>0.9.36</version>
738
+ <version>0.9.37</version>
781
739
  <description>Documentation tool for consistent and usable documentation in Ruby.</description>
782
740
  <hashes>
783
- <hash alg="SHA-256">5505736c1b00c926f71053a606ab75f02070c5960d0778b901fe9d8b0a470be4</hash>
741
+ <hash alg="SHA-256">a6e910399e78e613f80ba9add9ba7c394b1a935f083cccbef82903a3d2a26992</hash>
784
742
  </hashes>
785
743
  <licenses>
786
744
  <license>
787
745
  <id>MIT</id>
788
746
  </license>
789
747
  </licenses>
790
- <purl>pkg:gem/yard@0.9.36</purl>
748
+ <purl>pkg:gem/yard@0.9.37</purl>
791
749
  </component>
792
750
  <component type="library">
793
751
  <name>yard-rspec</name>
data/fixturizer.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.add_dependency 'mongoid', '~> 9.0'
33
33
  spec.add_dependency 'rake', '~> 13.0'
34
- spec.add_dependency 'rspec', '~> 3.10.0'
34
+ spec.add_dependency 'rspec', '~> 3.13.0'
35
35
  spec.add_dependency 'version', '~> 1.1'
36
36
 
37
37
  spec.add_development_dependency 'bundle-audit', '~> 0.1.0'
@@ -4,27 +4,28 @@ module Fixturizer
4
4
  module Adapters
5
5
  module Mongoid
6
6
  def inject_data
7
- list = (@orders.is_a? Array)? @order : @generated.keys
7
+ list = (@orders.is_a? Array) ? @order : @generated.keys
8
8
  list.each do |name|
9
9
  records = @generated[name]
10
10
  records.each do |record|
11
- link = record.dig(:link,:to)
12
- by = record.dig(:link,:by)
13
- pattern = record.dig(:link,:search_by)
14
- if link.is_a? Symbol then
15
- model = Object.const_get(@models[link][:class]).find_by(**pattern).send by
16
- model.create!(record[:data]) unless model.where(@models[link][:unicity] => record[:data][@models[link][:unicity]]).exists?
11
+ belong = record.dig(:belong, :to)
12
+ by = record.dig(:belong, :by)
13
+ pattern = record.dig(:belong, :search_by)
14
+ if belong.is_a? Symbol
15
+ model = Object.const_get(@models[belong][:class]).find_by(**pattern).send by
16
+ unless model.where(@models[belong][:unicity] => record[:data][@models[belong][:unicity]]).exists?
17
+ model.create!(record[:data])
18
+ end
17
19
  else
18
20
  model = Object.const_get(@models[name][:class])
19
- model.create!(record[:data]) unless model.where(@models[name][:unicity] => record[:data][@models[name][:unicity]]).exists?
21
+ unless model.where(@models[name][:unicity] => record[:data][@models[name][:unicity]]).exists?
22
+ model.create!(record[:data])
23
+ end
20
24
  end
21
-
22
25
  end
23
-
24
26
  end
25
27
  end
26
28
 
27
-
28
29
  def drop_database
29
30
  ::Mongoid.purge!
30
31
  true
@@ -30,7 +30,7 @@ module Fixturizer
30
30
  :dataset => [:definition, :rules],
31
31
  :models => [:type, :order, :definitions],
32
32
  :model_definition => [:rules,:class,:unicity, :collection],
33
- :collection => [:attributes,:links]
33
+ :collection => [:attributes,:belong]
34
34
 
35
35
  }
36
36
 
@@ -197,13 +197,13 @@ module Fixturizer
197
197
  definitions.dig(:collection).each_with_index do |record,i|
198
198
  @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}] not have key :attributes defined" unless record.include? :attributes
199
199
  @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:attributes is not a Hash" unless record[:attributes].is_a? Hash
200
- if record.include? :link
201
- unless record[:link].is_a? Hash then
202
- @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:link is set but is not a Hash"
200
+ if record.include? :belong
201
+ unless record[:belong].is_a? Hash then
202
+ @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:belong is set but is not a Hash"
203
203
  else
204
204
  {to: Symbol, by: Symbol, search_by: Hash}.each do |verb,type|
205
- @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:link not have key :#{verb} defined" unless record[:link].include? verb
206
- @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:link/:#{verb} is not a #{type}" unless record[:link][verb].is_a? type
205
+ @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:belong not have key :#{verb} defined" unless record[:belong].include? verb
206
+ @status[:error].push "//:fixtures/:models/:definitions/:#{name}/:collection[#{i}]/:belong/:#{verb} is not a #{type}" unless record[:belong][verb].is_a? type
207
207
  end
208
208
  end
209
209
  end
@@ -54,8 +54,10 @@ module Fixturizer
54
54
  res = {data: Fixturizer::Services.get.engine(name: :dataset, parameters: { dataset:
55
55
  { definition: item[:attributes], rules: @models[name][:rules]}
56
56
  }).generate }
57
- link = item.dig(:link)
58
- res[:link] = link if link
57
+ belong = item.dig(:belong)
58
+ res[:belong] = belong if belong
59
+ have = item.dig(:have)
60
+ res[:have] = have if have
59
61
  data.push res
60
62
 
61
63
  end
@@ -14,8 +14,8 @@ module Fixturizer
14
14
 
15
15
  def populate
16
16
  Fixturizer::Services.get.engine(name: :models).populate
17
- rescue StandardError
18
- false
17
+ # rescue StandardError
18
+ # false
19
19
  end
20
20
  end
21
21
  end
data/samples/Gemfile CHANGED
@@ -11,7 +11,7 @@ group :test, :development do
11
11
  gem 'rack-rest-rspec', '~> 0.0.3'
12
12
  gem 'rack-test', '~> 2.0.2'
13
13
  gem 'rake', '~> 13.0'
14
- gem 'rspec', '~> 3.10.0'
14
+ gem 'rspec', '~> 3.13.0'
15
15
  end
16
16
 
17
17
  gem 'mongoid', '~> 9.0'
data/samples/app.rb CHANGED
@@ -16,8 +16,18 @@ class Post
16
16
  field :title, type: String
17
17
  field :body, type: String
18
18
  has_many :comments
19
+ has_one :type
19
20
  end
20
21
 
22
+
23
+ class Type
24
+ include Mongoid::Document
25
+ field :name, type: String
26
+ field :description, type: String
27
+ belongs_to :post, optional: true
28
+ end
29
+
30
+
21
31
  class Comment
22
32
  include Mongoid::Document
23
33
  field :name, type: String
@@ -37,7 +47,8 @@ class Application < Sinatra::Base
37
47
  get '/posts/:post_id' do |post_id|
38
48
  post = Post.find(post_id)
39
49
  post.attributes.merge(
40
- comments: post.comments
50
+ comments: post.comments,
51
+ type: post.type
41
52
  ).to_json
42
53
  end
43
54
  end
@@ -23,9 +23,20 @@
23
23
  :models:
24
24
  :type: :mongoid
25
25
  :order:
26
+ - :types
26
27
  - :posts
27
28
  - :comments
28
29
  :definitions:
30
+ :types:
31
+ :class: Type
32
+ :unicity: :name
33
+ :collection:
34
+ - :attributes:
35
+ :name: News
36
+ :description: A fresh news
37
+ - :attributes:
38
+ :name: Reaction
39
+ :description: An instant reaction
29
40
  :posts:
30
41
  :rules:
31
42
  :body: :preserve_body
@@ -35,6 +46,11 @@
35
46
  - :attributes:
36
47
  :title: First post Title
37
48
  :body: First Post Body
49
+ # :have:
50
+ # :linked: :types
51
+ # :by: :type
52
+ # :search_by:
53
+ # :name: News
38
54
  - :attributes:
39
55
  :title: Second post Title
40
56
  :body:
@@ -45,7 +61,7 @@
45
61
  - :attributes:
46
62
  :name: test name
47
63
  :message: test message
48
- :link:
64
+ :belong:
49
65
  :to: :posts
50
66
  :by: :comments
51
67
  :search_by:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixturizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre ALPHONSE
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-05-22 00:00:00.000000000 Z
12
+ date: 2024-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 3.10.0
48
+ version: 3.13.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 3.10.0
55
+ version: 3.13.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: version
58
58
  requirement: !ruby/object:Gem::Requirement