izi_json_ld 1.0.6 → 1.0.7

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
  SHA1:
3
- metadata.gz: 218c8d0a8c8738157adeca124dd26d6a38591ea1
4
- data.tar.gz: 6bc6047444d90f426b4baa52934e3efc9f4879f7
3
+ metadata.gz: 9ec495cac09672d3ff4561af894fa3af2fba2a8d
4
+ data.tar.gz: 20e90d7eded79d6e3a4974bf96d286d09de77389
5
5
  SHA512:
6
- metadata.gz: 7f0a6db05d7698790454e2f4f50c47df74892a40af537f29c25a84ce24eb429fcfb8c9fab97960e8c8caf8968d71703d125d13237e869bbf9e354d0d87143ee7
7
- data.tar.gz: 8ec1adf33df2e4d1c318873a451d7eb416213389bf7211368eec56e3643d23afcb425e928949a2797dc35eab79d0017f114e33b656c155b5a3de89e8ac119c02
6
+ metadata.gz: 782a8cfc927ed88896335c18196069fc420a816f5b71b610a2802bba16d361f0b6fcb3663c30666bb5133a41e32ab61c4ba302db72b3e0224cfcda339cebc7db
7
+ data.tar.gz: 5fd3171e82f21a8c04040e99ce25522f8da7431b40302372e8cdcba9e0ac602c282cfa9eab2bd8142c68c4cb65099a7f1082a9b96d850d91f35d3b2b52dc083b
@@ -8,7 +8,7 @@ class QuestionEntity < ApplicationEntity
8
8
  attribute? :answer, ::IziJsonLd::Types::String
9
9
 
10
10
  def dump_attributes
11
- attributes.except(:answer).merge(acceptedAnswer: safe_answer.dump)
11
+ attributes.except(:answer).merge(acceptedAnswer: safe_answer.dump(self))
12
12
  end
13
13
 
14
14
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IziJsonLd
4
- VERSION = '1.0.6'
4
+ VERSION = '1.0.7'
5
5
  end
@@ -19060,3 +19060,561 @@
19060
19060
  TRANSACTION (0.1ms) rollback transaction
19061
19061
  TRANSACTION (0.1ms) begin transaction
19062
19062
  TRANSACTION (0.1ms) rollback transaction
19063
+  (0.5ms) begin transaction
19064
+  (0.1ms) rollback transaction
19065
+  (0.1ms) begin transaction
19066
+  (0.1ms) rollback transaction
19067
+  (0.1ms) begin transaction
19068
+  (0.0ms) rollback transaction
19069
+  (0.1ms) begin transaction
19070
+  (0.1ms) rollback transaction
19071
+  (0.1ms) begin transaction
19072
+  (0.1ms) rollback transaction
19073
+  (0.0ms) begin transaction
19074
+  (0.1ms) rollback transaction
19075
+  (0.1ms) begin transaction
19076
+  (0.1ms) rollback transaction
19077
+  (0.1ms) begin transaction
19078
+  (0.5ms) rollback transaction
19079
+  (0.2ms) begin transaction
19080
+  (0.1ms) rollback transaction
19081
+  (0.6ms) begin transaction
19082
+  (0.1ms) rollback transaction
19083
+  (0.4ms) begin transaction
19084
+  (0.1ms) rollback transaction
19085
+  (0.4ms) begin transaction
19086
+  (0.1ms) rollback transaction
19087
+  (0.4ms) begin transaction
19088
+  (0.1ms) rollback transaction
19089
+  (0.3ms) begin transaction
19090
+  (0.1ms) rollback transaction
19091
+  (0.8ms) begin transaction
19092
+  (0.1ms) rollback transaction
19093
+  (0.3ms) begin transaction
19094
+  (0.1ms) rollback transaction
19095
+  (0.4ms) begin transaction
19096
+  (0.1ms) rollback transaction
19097
+  (0.4ms) begin transaction
19098
+  (0.1ms) rollback transaction
19099
+  (0.3ms) begin transaction
19100
+  (0.1ms) rollback transaction
19101
+  (0.4ms) begin transaction
19102
+  (0.3ms) rollback transaction
19103
+  (0.5ms) begin transaction
19104
+  (0.2ms) rollback transaction
19105
+  (0.7ms) begin transaction
19106
+  (0.1ms) rollback transaction
19107
+  (0.4ms) begin transaction
19108
+  (0.1ms) rollback transaction
19109
+  (0.4ms) begin transaction
19110
+  (0.1ms) rollback transaction
19111
+  (1.1ms) begin transaction
19112
+  (0.1ms) rollback transaction
19113
+  (3.0ms) begin transaction
19114
+  (0.1ms) rollback transaction
19115
+  (0.4ms) begin transaction
19116
+  (0.1ms) rollback transaction
19117
+  (0.3ms) begin transaction
19118
+  (0.1ms) rollback transaction
19119
+  (0.4ms) begin transaction
19120
+  (0.1ms) rollback transaction
19121
+  (0.4ms) begin transaction
19122
+  (0.1ms) rollback transaction
19123
+  (0.6ms) begin transaction
19124
+  (0.1ms) rollback transaction
19125
+  (0.6ms) begin transaction
19126
+  (0.1ms) rollback transaction
19127
+  (0.4ms) begin transaction
19128
+  (0.1ms) rollback transaction
19129
+  (0.4ms) begin transaction
19130
+  (0.2ms) rollback transaction
19131
+  (0.1ms) begin transaction
19132
+  (0.1ms) rollback transaction
19133
+  (0.1ms) begin transaction
19134
+  (0.0ms) rollback transaction
19135
+  (0.1ms) begin transaction
19136
+  (0.1ms) rollback transaction
19137
+  (0.0ms) begin transaction
19138
+  (0.0ms) rollback transaction
19139
+  (0.1ms) begin transaction
19140
+  (0.1ms) rollback transaction
19141
+  (0.0ms) begin transaction
19142
+  (0.0ms) rollback transaction
19143
+  (0.0ms) begin transaction
19144
+  (0.0ms) rollback transaction
19145
+  (0.1ms) begin transaction
19146
+  (0.3ms) rollback transaction
19147
+  (0.1ms) begin transaction
19148
+  (0.1ms) rollback transaction
19149
+  (0.0ms) begin transaction
19150
+  (0.0ms) rollback transaction
19151
+  (0.0ms) begin transaction
19152
+  (0.1ms) rollback transaction
19153
+  (0.1ms) begin transaction
19154
+  (0.1ms) rollback transaction
19155
+  (0.1ms) begin transaction
19156
+  (0.1ms) rollback transaction
19157
+  (0.2ms) begin transaction
19158
+  (0.1ms) rollback transaction
19159
+  (0.0ms) begin transaction
19160
+  (0.1ms) rollback transaction
19161
+  (0.1ms) begin transaction
19162
+  (0.0ms) rollback transaction
19163
+  (0.0ms) begin transaction
19164
+  (0.0ms) rollback transaction
19165
+  (0.0ms) begin transaction
19166
+  (0.0ms) rollback transaction
19167
+  (0.0ms) begin transaction
19168
+  (0.1ms) rollback transaction
19169
+  (0.0ms) begin transaction
19170
+  (0.0ms) rollback transaction
19171
+  (0.0ms) begin transaction
19172
+  (0.0ms) rollback transaction
19173
+  (0.0ms) begin transaction
19174
+  (0.1ms) rollback transaction
19175
+  (0.1ms) begin transaction
19176
+  (0.1ms) rollback transaction
19177
+  (0.1ms) begin transaction
19178
+  (0.2ms) rollback transaction
19179
+  (0.1ms) begin transaction
19180
+  (0.1ms) rollback transaction
19181
+  (0.1ms) begin transaction
19182
+  (0.0ms) rollback transaction
19183
+  (0.0ms) begin transaction
19184
+  (0.0ms) rollback transaction
19185
+  (0.1ms) begin transaction
19186
+  (0.0ms) rollback transaction
19187
+  (0.1ms) begin transaction
19188
+  (0.0ms) rollback transaction
19189
+  (0.0ms) begin transaction
19190
+  (0.1ms) rollback transaction
19191
+  (0.1ms) begin transaction
19192
+  (0.1ms) rollback transaction
19193
+  (0.0ms) begin transaction
19194
+  (0.0ms) rollback transaction
19195
+  (0.0ms) begin transaction
19196
+  (0.0ms) rollback transaction
19197
+  (0.0ms) begin transaction
19198
+  (0.0ms) rollback transaction
19199
+  (0.1ms) begin transaction
19200
+  (0.0ms) rollback transaction
19201
+  (0.0ms) begin transaction
19202
+  (0.1ms) rollback transaction
19203
+  (0.1ms) begin transaction
19204
+  (0.0ms) rollback transaction
19205
+  (0.0ms) begin transaction
19206
+  (0.0ms) rollback transaction
19207
+  (0.1ms) begin transaction
19208
+  (0.0ms) rollback transaction
19209
+  (0.0ms) begin transaction
19210
+  (0.1ms) rollback transaction
19211
+  (0.0ms) begin transaction
19212
+  (0.0ms) rollback transaction
19213
+  (0.1ms) begin transaction
19214
+  (0.0ms) rollback transaction
19215
+  (0.1ms) begin transaction
19216
+  (0.1ms) rollback transaction
19217
+  (0.0ms) begin transaction
19218
+  (0.1ms) rollback transaction
19219
+  (0.1ms) begin transaction
19220
+  (0.0ms) rollback transaction
19221
+  (0.0ms) begin transaction
19222
+  (0.0ms) rollback transaction
19223
+  (0.0ms) begin transaction
19224
+  (0.0ms) rollback transaction
19225
+  (0.0ms) begin transaction
19226
+  (0.0ms) rollback transaction
19227
+  (0.1ms) begin transaction
19228
+  (0.1ms) rollback transaction
19229
+  (0.1ms) begin transaction
19230
+  (0.1ms) rollback transaction
19231
+  (0.2ms) begin transaction
19232
+  (0.1ms) rollback transaction
19233
+  (0.1ms) begin transaction
19234
+  (0.0ms) rollback transaction
19235
+  (0.1ms) begin transaction
19236
+  (0.0ms) rollback transaction
19237
+  (0.0ms) begin transaction
19238
+  (0.0ms) rollback transaction
19239
+  (0.0ms) begin transaction
19240
+  (0.0ms) rollback transaction
19241
+  (0.0ms) begin transaction
19242
+  (0.0ms) rollback transaction
19243
+  (0.0ms) begin transaction
19244
+  (0.0ms) rollback transaction
19245
+  (0.0ms) begin transaction
19246
+  (0.1ms) rollback transaction
19247
+  (0.0ms) begin transaction
19248
+  (0.0ms) rollback transaction
19249
+  (0.0ms) begin transaction
19250
+  (0.0ms) rollback transaction
19251
+  (0.0ms) begin transaction
19252
+  (0.0ms) rollback transaction
19253
+  (0.0ms) begin transaction
19254
+  (0.1ms) rollback transaction
19255
+  (0.0ms) begin transaction
19256
+  (0.1ms) rollback transaction
19257
+  (0.1ms) begin transaction
19258
+  (0.3ms) rollback transaction
19259
+  (0.1ms) begin transaction
19260
+  (0.1ms) rollback transaction
19261
+  (0.1ms) begin transaction
19262
+  (0.1ms) rollback transaction
19263
+  (0.1ms) begin transaction
19264
+  (0.0ms) rollback transaction
19265
+  (0.0ms) begin transaction
19266
+  (0.1ms) rollback transaction
19267
+  (0.1ms) begin transaction
19268
+  (0.1ms) rollback transaction
19269
+  (0.2ms) begin transaction
19270
+  (0.1ms) rollback transaction
19271
+  (0.0ms) begin transaction
19272
+  (0.1ms) rollback transaction
19273
+  (0.1ms) begin transaction
19274
+  (0.0ms) rollback transaction
19275
+  (0.8ms) begin transaction
19276
+  (0.1ms) rollback transaction
19277
+  (0.4ms) begin transaction
19278
+  (0.1ms) rollback transaction
19279
+  (0.4ms) begin transaction
19280
+  (0.1ms) rollback transaction
19281
+  (0.4ms) begin transaction
19282
+  (0.1ms) rollback transaction
19283
+  (0.4ms) begin transaction
19284
+  (0.1ms) rollback transaction
19285
+  (0.4ms) begin transaction
19286
+  (0.1ms) rollback transaction
19287
+  (0.4ms) begin transaction
19288
+  (0.1ms) rollback transaction
19289
+  (0.3ms) begin transaction
19290
+  (0.1ms) rollback transaction
19291
+  (3.4ms) begin transaction
19292
+  (0.1ms) rollback transaction
19293
+  (0.5ms) begin transaction
19294
+  (0.1ms) rollback transaction
19295
+  (0.4ms) begin transaction
19296
+  (0.1ms) rollback transaction
19297
+  (0.4ms) begin transaction
19298
+  (0.1ms) rollback transaction
19299
+  (0.3ms) begin transaction
19300
+  (0.1ms) rollback transaction
19301
+  (0.4ms) begin transaction
19302
+  (0.1ms) rollback transaction
19303
+  (0.5ms) begin transaction
19304
+  (0.1ms) rollback transaction
19305
+  (0.4ms) begin transaction
19306
+  (0.3ms) rollback transaction
19307
+  (0.9ms) begin transaction
19308
+  (0.7ms) rollback transaction
19309
+  (0.3ms) begin transaction
19310
+  (0.1ms) rollback transaction
19311
+  (0.3ms) begin transaction
19312
+  (0.1ms) rollback transaction
19313
+  (0.5ms) begin transaction
19314
+  (0.1ms) rollback transaction
19315
+  (0.3ms) begin transaction
19316
+  (0.1ms) rollback transaction
19317
+  (0.3ms) begin transaction
19318
+  (0.1ms) rollback transaction
19319
+  (0.3ms) begin transaction
19320
+  (0.1ms) rollback transaction
19321
+  (0.4ms) begin transaction
19322
+  (0.1ms) rollback transaction
19323
+  (0.3ms) begin transaction
19324
+  (0.1ms) rollback transaction
19325
+  (0.4ms) begin transaction
19326
+  (0.1ms) rollback transaction
19327
+  (0.9ms) begin transaction
19328
+  (0.1ms) rollback transaction
19329
+  (0.4ms) begin transaction
19330
+  (0.2ms) rollback transaction
19331
+  (0.1ms) begin transaction
19332
+  (0.1ms) rollback transaction
19333
+  (0.0ms) begin transaction
19334
+  (0.1ms) rollback transaction
19335
+  (0.0ms) begin transaction
19336
+  (0.1ms) rollback transaction
19337
+  (0.1ms) begin transaction
19338
+  (0.0ms) rollback transaction
19339
+  (0.1ms) begin transaction
19340
+  (0.0ms) rollback transaction
19341
+  (0.1ms) begin transaction
19342
+  (0.1ms) rollback transaction
19343
+  (0.1ms) begin transaction
19344
+  (0.1ms) rollback transaction
19345
+  (0.0ms) begin transaction
19346
+  (0.0ms) rollback transaction
19347
+  (0.0ms) begin transaction
19348
+  (0.1ms) rollback transaction
19349
+  (0.1ms) begin transaction
19350
+  (0.1ms) rollback transaction
19351
+  (0.1ms) begin transaction
19352
+  (0.1ms) rollback transaction
19353
+  (0.0ms) begin transaction
19354
+  (0.1ms) rollback transaction
19355
+  (0.1ms) begin transaction
19356
+  (0.1ms) rollback transaction
19357
+  (0.1ms) begin transaction
19358
+  (0.1ms) rollback transaction
19359
+  (0.1ms) begin transaction
19360
+  (0.0ms) rollback transaction
19361
+  (0.1ms) begin transaction
19362
+  (0.2ms) rollback transaction
19363
+  (0.2ms) begin transaction
19364
+  (0.4ms) rollback transaction
19365
+  (0.1ms) begin transaction
19366
+  (0.1ms) rollback transaction
19367
+  (0.1ms) begin transaction
19368
+  (0.4ms) rollback transaction
19369
+  (0.1ms) begin transaction
19370
+  (0.0ms) rollback transaction
19371
+  (0.0ms) begin transaction
19372
+  (0.0ms) rollback transaction
19373
+  (0.1ms) begin transaction
19374
+  (0.0ms) rollback transaction
19375
+  (0.0ms) begin transaction
19376
+  (0.2ms) rollback transaction
19377
+  (0.0ms) begin transaction
19378
+  (0.0ms) rollback transaction
19379
+  (0.0ms) begin transaction
19380
+  (0.0ms) rollback transaction
19381
+  (0.0ms) begin transaction
19382
+  (0.0ms) rollback transaction
19383
+  (0.0ms) begin transaction
19384
+  (0.0ms) rollback transaction
19385
+  (0.0ms) begin transaction
19386
+  (0.1ms) rollback transaction
19387
+  (0.1ms) begin transaction
19388
+  (0.8ms) rollback transaction
19389
+  (0.1ms) begin transaction
19390
+  (0.2ms) rollback transaction
19391
+  (0.1ms) begin transaction
19392
+  (0.4ms) rollback transaction
19393
+  (0.0ms) begin transaction
19394
+  (0.0ms) rollback transaction
19395
+  (0.0ms) begin transaction
19396
+  (0.0ms) rollback transaction
19397
+  (0.0ms) begin transaction
19398
+  (0.0ms) rollback transaction
19399
+  (0.0ms) begin transaction
19400
+  (0.0ms) rollback transaction
19401
+  (0.0ms) begin transaction
19402
+  (0.8ms) rollback transaction
19403
+  (0.1ms) begin transaction
19404
+  (0.0ms) rollback transaction
19405
+  (0.0ms) begin transaction
19406
+  (0.0ms) rollback transaction
19407
+  (0.0ms) begin transaction
19408
+  (0.1ms) rollback transaction
19409
+  (0.1ms) begin transaction
19410
+  (0.1ms) rollback transaction
19411
+  (0.1ms) begin transaction
19412
+  (0.1ms) rollback transaction
19413
+  (0.1ms) begin transaction
19414
+  (0.1ms) rollback transaction
19415
+  (0.1ms) begin transaction
19416
+  (0.1ms) rollback transaction
19417
+  (0.1ms) begin transaction
19418
+  (0.0ms) rollback transaction
19419
+  (0.0ms) begin transaction
19420
+  (0.0ms) rollback transaction
19421
+  (0.0ms) begin transaction
19422
+  (0.0ms) rollback transaction
19423
+  (0.0ms) begin transaction
19424
+  (0.0ms) rollback transaction
19425
+  (0.0ms) begin transaction
19426
+  (0.1ms) rollback transaction
19427
+  (0.0ms) begin transaction
19428
+  (0.1ms) rollback transaction
19429
+  (0.0ms) begin transaction
19430
+  (0.0ms) rollback transaction
19431
+  (0.2ms) begin transaction
19432
+  (0.1ms) rollback transaction
19433
+  (0.1ms) begin transaction
19434
+  (0.1ms) rollback transaction
19435
+  (0.2ms) begin transaction
19436
+  (0.1ms) rollback transaction
19437
+  (0.1ms) begin transaction
19438
+  (0.1ms) rollback transaction
19439
+  (0.1ms) begin transaction
19440
+  (0.1ms) rollback transaction
19441
+  (0.0ms) begin transaction
19442
+  (0.0ms) rollback transaction
19443
+  (0.0ms) begin transaction
19444
+  (0.0ms) rollback transaction
19445
+  (0.1ms) begin transaction
19446
+  (0.1ms) rollback transaction
19447
+  (0.2ms) begin transaction
19448
+  (0.1ms) rollback transaction
19449
+  (0.1ms) begin transaction
19450
+  (0.1ms) rollback transaction
19451
+  (0.2ms) begin transaction
19452
+  (1.2ms) rollback transaction
19453
+  (0.1ms) begin transaction
19454
+  (0.0ms) rollback transaction
19455
+  (0.0ms) begin transaction
19456
+  (0.1ms) rollback transaction
19457
+  (0.0ms) begin transaction
19458
+  (0.0ms) rollback transaction
19459
+  (0.0ms) begin transaction
19460
+  (0.0ms) rollback transaction
19461
+  (0.0ms) begin transaction
19462
+  (0.1ms) rollback transaction
19463
+  (0.1ms) begin transaction
19464
+  (0.1ms) rollback transaction
19465
+  (0.1ms) begin transaction
19466
+  (0.0ms) rollback transaction
19467
+  (0.0ms) begin transaction
19468
+  (0.1ms) rollback transaction
19469
+  (0.0ms) begin transaction
19470
+  (0.0ms) rollback transaction
19471
+  (0.0ms) begin transaction
19472
+  (0.1ms) rollback transaction
19473
+  (0.0ms) begin transaction
19474
+  (0.0ms) rollback transaction
19475
+  (0.3ms) begin transaction
19476
+  (0.0ms) rollback transaction
19477
+  (0.1ms) begin transaction
19478
+  (0.1ms) rollback transaction
19479
+  (0.1ms) begin transaction
19480
+  (0.0ms) rollback transaction
19481
+  (0.0ms) begin transaction
19482
+  (0.1ms) rollback transaction
19483
+  (0.1ms) begin transaction
19484
+  (0.0ms) rollback transaction
19485
+  (0.0ms) begin transaction
19486
+  (0.0ms) rollback transaction
19487
+  (0.1ms) begin transaction
19488
+  (0.1ms) rollback transaction
19489
+  (0.1ms) begin transaction
19490
+  (0.2ms) rollback transaction
19491
+  (0.1ms) begin transaction
19492
+  (0.0ms) rollback transaction
19493
+  (0.0ms) begin transaction
19494
+  (0.1ms) rollback transaction
19495
+  (0.1ms) begin transaction
19496
+  (0.0ms) rollback transaction
19497
+  (0.0ms) begin transaction
19498
+  (0.1ms) rollback transaction
19499
+  (0.0ms) begin transaction
19500
+  (0.1ms) rollback transaction
19501
+  (0.0ms) begin transaction
19502
+  (0.0ms) rollback transaction
19503
+  (0.1ms) begin transaction
19504
+  (0.4ms) rollback transaction
19505
+  (0.1ms) begin transaction
19506
+  (0.0ms) rollback transaction
19507
+  (0.1ms) begin transaction
19508
+  (0.1ms) rollback transaction
19509
+  (0.0ms) begin transaction
19510
+  (0.0ms) rollback transaction
19511
+  (0.0ms) begin transaction
19512
+  (0.0ms) rollback transaction
19513
+  (0.1ms) begin transaction
19514
+  (0.0ms) rollback transaction
19515
+  (0.0ms) begin transaction
19516
+  (0.0ms) rollback transaction
19517
+  (0.0ms) begin transaction
19518
+  (0.0ms) rollback transaction
19519
+  (0.1ms) begin transaction
19520
+  (0.1ms) rollback transaction
19521
+  (0.4ms) begin transaction
19522
+  (0.1ms) rollback transaction
19523
+  (0.1ms) begin transaction
19524
+  (0.0ms) rollback transaction
19525
+  (0.0ms) begin transaction
19526
+  (0.0ms) rollback transaction
19527
+  (0.0ms) begin transaction
19528
+  (0.0ms) rollback transaction
19529
+  (0.0ms) begin transaction
19530
+  (0.0ms) rollback transaction
19531
+  (0.0ms) begin transaction
19532
+  (0.0ms) rollback transaction
19533
+  (0.0ms) begin transaction
19534
+  (0.0ms) rollback transaction
19535
+  (0.0ms) begin transaction
19536
+  (0.0ms) rollback transaction
19537
+  (0.1ms) begin transaction
19538
+  (0.1ms) rollback transaction
19539
+  (0.0ms) begin transaction
19540
+  (0.0ms) rollback transaction
19541
+  (0.0ms) begin transaction
19542
+  (0.0ms) rollback transaction
19543
+  (0.0ms) begin transaction
19544
+  (0.1ms) rollback transaction
19545
+  (0.1ms) begin transaction
19546
+  (0.1ms) rollback transaction
19547
+  (0.1ms) begin transaction
19548
+  (0.1ms) rollback transaction
19549
+  (0.2ms) begin transaction
19550
+  (0.0ms) rollback transaction
19551
+  (0.0ms) begin transaction
19552
+  (0.0ms) rollback transaction
19553
+  (0.0ms) begin transaction
19554
+  (0.0ms) rollback transaction
19555
+  (0.0ms) begin transaction
19556
+  (0.0ms) rollback transaction
19557
+  (0.0ms) begin transaction
19558
+  (0.0ms) rollback transaction
19559
+  (0.0ms) begin transaction
19560
+  (0.0ms) rollback transaction
19561
+  (0.0ms) begin transaction
19562
+  (0.0ms) rollback transaction
19563
+  (0.1ms) begin transaction
19564
+  (0.0ms) rollback transaction
19565
+  (0.1ms) begin transaction
19566
+  (0.0ms) rollback transaction
19567
+  (0.0ms) begin transaction
19568
+  (0.0ms) rollback transaction
19569
+  (0.0ms) begin transaction
19570
+  (0.2ms) rollback transaction
19571
+  (0.1ms) begin transaction
19572
+  (0.1ms) rollback transaction
19573
+  (0.2ms) begin transaction
19574
+  (0.1ms) rollback transaction
19575
+  (0.0ms) begin transaction
19576
+  (0.0ms) rollback transaction
19577
+  (0.1ms) begin transaction
19578
+  (0.0ms) rollback transaction
19579
+  (0.0ms) begin transaction
19580
+  (0.0ms) rollback transaction
19581
+  (0.1ms) begin transaction
19582
+  (0.1ms) rollback transaction
19583
+  (0.0ms) begin transaction
19584
+  (0.0ms) rollback transaction
19585
+  (0.1ms) begin transaction
19586
+  (0.0ms) rollback transaction
19587
+  (0.0ms) begin transaction
19588
+  (0.0ms) rollback transaction
19589
+  (0.1ms) begin transaction
19590
+  (0.0ms) rollback transaction
19591
+  (0.0ms) begin transaction
19592
+  (0.0ms) rollback transaction
19593
+  (0.1ms) begin transaction
19594
+  (0.1ms) rollback transaction
19595
+  (0.1ms) begin transaction
19596
+  (0.1ms) rollback transaction
19597
+  (0.1ms) begin transaction
19598
+  (0.1ms) rollback transaction
19599
+  (0.0ms) begin transaction
19600
+  (0.0ms) rollback transaction
19601
+  (0.0ms) begin transaction
19602
+  (0.1ms) rollback transaction
19603
+  (0.0ms) begin transaction
19604
+  (0.0ms) rollback transaction
19605
+  (0.0ms) begin transaction
19606
+  (0.0ms) rollback transaction
19607
+  (0.0ms) begin transaction
19608
+  (0.0ms) rollback transaction
19609
+  (0.0ms) begin transaction
19610
+  (0.0ms) rollback transaction
19611
+  (0.0ms) begin transaction
19612
+  (0.1ms) rollback transaction
19613
+  (0.0ms) begin transaction
19614
+  (0.0ms) rollback transaction
19615
+  (0.1ms) begin transaction
19616
+  (0.0ms) rollback transaction
19617
+  (0.0ms) begin transaction
19618
+  (0.1ms) rollback transaction
19619
+  (0.1ms) begin transaction
19620
+  (0.0ms) rollback transaction
@@ -71,5 +71,18 @@ RSpec.describe FaqPageEntity do
71
71
  expect(answer['name']).to eq 'ShortQuestion'
72
72
  expect(answer.dig('acceptedAnswer', 'text')).to eq 'ShortAnswer'
73
73
  end
74
+
75
+ it 'should not render useless @context' do
76
+ parsed = JSON.parse(item.to_json)
77
+
78
+ expect(parsed['@context']).to be_present
79
+ expect(parsed['@context']).to eq 'https://schema.org'
80
+
81
+ expect(parsed.dig('mainEntity', 0)).to be_present
82
+ expect(parsed.dig('mainEntity', 0)).not_to have_key '@context'
83
+
84
+ expect(parsed.dig('mainEntity', 0, 'acceptedAnswer')).to be_present
85
+ expect(parsed.dig('mainEntity', 0, 'acceptedAnswer')).not_to have_key '@context'
86
+ end
74
87
  end
75
88
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: izi_json_ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - IzikAJ
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct