kracker 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2519b906199b0ef4f1da5c1bcf4e83bb2d922a82
4
- data.tar.gz: bce714fda01e1e290725c1d8f8bf01a1266d9529
3
+ metadata.gz: a82f88dd9e535f033f95cb5d3e55f7f750c5d8ce
4
+ data.tar.gz: bb78e59d2d84010fca771793ea381fa25fdc36ce
5
5
  SHA512:
6
- metadata.gz: df940798efaf203e8759ad8ac58709bc063c63f79bb3b0190c381518c5fdd666ddee5c91705c36862b4c448b01d51368ad44b14bc1c2bce3001ec862d036df91
7
- data.tar.gz: d22913c1e85ee302d1115fbc4f8535663069dc4397c001f8236e83c815ab31df5df8c62ac9361bb86423c014aa7a33c300123656ea0d1df59c9d7d6c9ff45892
6
+ metadata.gz: 59d7782c28372a1cc22822a252d0bfd920d45f8794cbe5772b5aff1ec360008543a48087f9e80d2368f38c46f2d648cd41d72010f04cc97b20eea60c69ef50d9
7
+ data.tar.gz: e1c2b002db5448fee7f079af793938891647eb997fca1d2a14feffb6693af225d2634d151d7e0bf6915e4bf32c6bae4c74e54eaf6efdc7cfda63bbe7486e11f7
@@ -12,6 +12,14 @@ module Kracker
12
12
 
13
13
  changed_element_pairs = []
14
14
  if set_master_not_current.count > 0 || set_current_not_master.count > 0
15
+
16
+ ok_pairs = pairs_that_are_close_enough(set_current_not_master, set_master_not_current)
17
+
18
+ ok_pairs.each do |item1, item2|
19
+ set_current_not_master.delete(item1)
20
+ set_master_not_current.delete(item2)
21
+ end
22
+
15
23
  changed_element_pairs = get_set_of_same_but_different(set_current_not_master, set_master_not_current)
16
24
 
17
25
  changed_element_pairs.each do |item1, item2|
@@ -89,6 +97,20 @@ module Kracker
89
97
  same_but_different_pairs
90
98
  end
91
99
 
100
+ def pairs_that_are_close_enough(set1, set2)
101
+ ok_pairs = []
102
+ set1.each do |item1|
103
+ element1 = DOMElement.new(item1)
104
+ set2.each do |item2|
105
+ element2 = DOMElement.new(item2)
106
+ if element1.same_element?(element2) && element1.close_enough?(element2)
107
+ ok_pairs << [item1, item2]
108
+ end
109
+ end
110
+ end
111
+ ok_pairs
112
+ end
113
+
92
114
  def make_analysis_failure_report(analysis_data)
93
115
  return '' if analysis_data[:same]
94
116
 
@@ -25,7 +25,7 @@ module Kracker
25
25
  @id = h[:id] || h['id']
26
26
  @style = h[:style] || h['style']
27
27
  @visible = h[:visible] || h['visible']
28
- @similarity = h[:similarity] || h['similarity'] || 10
28
+ @similarity = h[:similarity] || h['similarity'] || 15
29
29
  end
30
30
 
31
31
  def same_element?(anOther)
@@ -1,3 +1,3 @@
1
1
  module Kracker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -26,5 +26,868 @@ module Kracker
26
26
  def single_element_hash
27
27
  {"id"=>"mm--single_added", "height"=>10, "visible"=>true, "tag"=>"SPAN", "width"=>50, "class"=>"mm--title_text_sub", "left"=>71, "top"=>86}
28
28
  end
29
+
30
+ def travis_generated_current
31
+ data = <<-DATA
32
+ ---
33
+ - height: 45
34
+ width: 800
35
+ id: ''
36
+ tag: DIV
37
+ class: contain-to-grid fixed
38
+ top: 0
39
+ left: 0
40
+ visible: true
41
+ - height: 45
42
+ width: 800
43
+ id: ''
44
+ tag: NAV
45
+ class: top-bar
46
+ top: 0
47
+ left: 0
48
+ visible: true
49
+ - height: 45
50
+ width: 140
51
+ id: ''
52
+ tag: UL
53
+ class: title-area
54
+ top: 0
55
+ left: 0
56
+ visible: true
57
+ - height: 45
58
+ width: 140
59
+ id: ''
60
+ tag: LI
61
+ class: name
62
+ top: 0
63
+ left: 0
64
+ visible: true
65
+ - height: 45
66
+ width: 140
67
+ id: ''
68
+ tag: H1
69
+ class: ''
70
+ top: 0
71
+ left: 0
72
+ visible: true
73
+ - height: 45
74
+ width: 140
75
+ id: ''
76
+ tag: A
77
+ class: ''
78
+ top: 0
79
+ left: 0
80
+ visible: true
81
+ - height: 0
82
+ width: 0
83
+ id: ''
84
+ tag: LI
85
+ class: toggle-topbar menu-icon
86
+ top: 0
87
+ left: 0
88
+ visible: false
89
+ - height: 0
90
+ width: 0
91
+ id: ''
92
+ tag: A
93
+ class: ''
94
+ top: 0
95
+ left: 0
96
+ visible: false
97
+ - height: 0
98
+ width: 800
99
+ id: ''
100
+ tag: SECTION
101
+ class: top-bar-section
102
+ top: 0
103
+ left: 0
104
+ visible: true
105
+ - height: 45
106
+ width: 504
107
+ id: ''
108
+ tag: UL
109
+ class: right
110
+ top: 0
111
+ left: 296
112
+ visible: true
113
+ - height: 45
114
+ width: 86
115
+ id: ''
116
+ tag: LI
117
+ class: active
118
+ top: 0
119
+ left: 296
120
+ visible: true
121
+ - height: 45
122
+ width: 86
123
+ id: ''
124
+ tag: A
125
+ class: ''
126
+ top: 0
127
+ left: 296
128
+ visible: true
129
+ - height: 45
130
+ width: 94
131
+ id: ''
132
+ tag: LI
133
+ class: active
134
+ top: 0
135
+ left: 382
136
+ visible: true
137
+ - height: 45
138
+ width: 94
139
+ id: ''
140
+ tag: A
141
+ class: ''
142
+ top: 0
143
+ left: 382
144
+ visible: true
145
+ - height: 45
146
+ width: 70
147
+ id: ''
148
+ tag: LI
149
+ class: active
150
+ top: 0
151
+ left: 476
152
+ visible: true
153
+ - height: 45
154
+ width: 70
155
+ id: ''
156
+ tag: A
157
+ class: ''
158
+ top: 0
159
+ left: 476
160
+ visible: true
161
+ - height: 45
162
+ width: 78
163
+ id: ''
164
+ tag: LI
165
+ class: active
166
+ top: 0
167
+ left: 546
168
+ visible: true
169
+ - height: 45
170
+ width: 78
171
+ id: ''
172
+ tag: A
173
+ class: ''
174
+ top: 0
175
+ left: 546
176
+ visible: true
177
+ - height: 45
178
+ width: 78
179
+ id: ''
180
+ tag: LI
181
+ class: active
182
+ top: 0
183
+ left: 624
184
+ visible: true
185
+ - height: 45
186
+ width: 78
187
+ id: ''
188
+ tag: A
189
+ class: ''
190
+ top: 0
191
+ left: 624
192
+ visible: true
193
+ - height: 45
194
+ width: 98
195
+ id: ''
196
+ tag: LI
197
+ class: has-dropdown not-click
198
+ top: 0
199
+ left: 702
200
+ visible: true
201
+ - height: 45
202
+ width: 98
203
+ id: ''
204
+ tag: A
205
+ class: ''
206
+ top: 0
207
+ left: 0
208
+ visible: true
209
+ - height: 0
210
+ width: 0
211
+ id: ''
212
+ tag: UL
213
+ class: dropdown
214
+ top: 0
215
+ left: 0
216
+ visible: false
217
+ - height: 0
218
+ width: 0
219
+ id: ''
220
+ tag: LI
221
+ class: title back js-generated
222
+ top: 0
223
+ left: 0
224
+ visible: false
225
+ - height: 0
226
+ width: 0
227
+ id: ''
228
+ tag: H5
229
+ class: ''
230
+ top: 0
231
+ left: 0
232
+ visible: false
233
+ - height: 0
234
+ width: 0
235
+ id: ''
236
+ tag: A
237
+ class: ''
238
+ top: 0
239
+ left: 0
240
+ visible: false
241
+ - height: 0
242
+ width: 0
243
+ id: ''
244
+ tag: LI
245
+ class: ''
246
+ top: 0
247
+ left: 0
248
+ visible: false
249
+ - height: 0
250
+ width: 0
251
+ id: ''
252
+ tag: A
253
+ class: ''
254
+ top: 0
255
+ left: 0
256
+ visible: false
257
+ - height: 0
258
+ width: 0
259
+ id: ''
260
+ tag: LI
261
+ class: ''
262
+ top: 0
263
+ left: 0
264
+ visible: false
265
+ - height: 0
266
+ width: 0
267
+ id: ''
268
+ tag: A
269
+ class: ''
270
+ top: 0
271
+ left: 0
272
+ visible: false
273
+ - height: 0
274
+ width: 0
275
+ id: ''
276
+ tag: LI
277
+ class: ''
278
+ top: 0
279
+ left: 0
280
+ visible: false
281
+ - height: 0
282
+ width: 0
283
+ id: ''
284
+ tag: A
285
+ class: ''
286
+ top: 0
287
+ left: 0
288
+ visible: false
289
+ - height: 0
290
+ width: 0
291
+ id: ''
292
+ tag: LI
293
+ class: ''
294
+ top: 0
295
+ left: 0
296
+ visible: false
297
+ - height: 0
298
+ width: 0
299
+ id: ''
300
+ tag: A
301
+ class: ''
302
+ top: 0
303
+ left: 0
304
+ visible: false
305
+ - height: 0
306
+ width: 0
307
+ id: ''
308
+ tag: LI
309
+ class: ''
310
+ top: 0
311
+ left: 0
312
+ visible: false
313
+ - height: 0
314
+ width: 0
315
+ id: ''
316
+ tag: A
317
+ class: ''
318
+ top: 0
319
+ left: 0
320
+ visible: false
321
+ - height: 20
322
+ width: 800
323
+ id: ''
324
+ tag: DIV
325
+ class: row
326
+ top: 45
327
+ left: 0
328
+ visible: true
329
+ - height: 20
330
+ width: 800
331
+ id: ''
332
+ tag: DIV
333
+ class: large-3 columns
334
+ top: 45
335
+ left: 0
336
+ visible: true
337
+ - height: 0
338
+ width: 770
339
+ id: ''
340
+ tag: P
341
+ class: notice
342
+ top: 0
343
+ left: 15
344
+ visible: true
345
+ - height: 0
346
+ width: 770
347
+ id: ''
348
+ tag: P
349
+ class: alert
350
+ top: 20
351
+ left: 15
352
+ visible: true
353
+ - height: 0
354
+ width: 800
355
+ id: ''
356
+ tag: DIV
357
+ class: large-9 columns
358
+ top: 65
359
+ left: 0
360
+ visible: true
361
+ - height: 164
362
+ width: 800
363
+ id: ''
364
+ tag: DIV
365
+ class: row
366
+ top: 65
367
+ left: 0
368
+ visible: true
369
+ - height: 164
370
+ width: 800
371
+ id: ''
372
+ tag: DIV
373
+ class: large-12 columns
374
+ top: 65
375
+ left: 0
376
+ visible: true
377
+ - height: 73
378
+ width: 800
379
+ id: ''
380
+ tag: DIV
381
+ class: row
382
+ top: 0
383
+ left: 0
384
+ visible: true
385
+ - height: 73
386
+ width: 800
387
+ id: ''
388
+ tag: DIV
389
+ class: large-3 columns
390
+ top: 0
391
+ left: 0
392
+ visible: true
393
+ - height: 62
394
+ width: 770
395
+ id: ''
396
+ tag: H1
397
+ class: ''
398
+ top: 3
399
+ left: 15
400
+ visible: true
401
+ - height: 0
402
+ width: 800
403
+ id: ''
404
+ tag: DIV
405
+ class: large-9 columns
406
+ top: 73
407
+ left: 0
408
+ visible: true
409
+ - height: 26
410
+ width: 770
411
+ id: ''
412
+ tag: P
413
+ class: ''
414
+ top: 73
415
+ left: 15
416
+ visible: true
417
+ - height: 0
418
+ width: 0
419
+ id: ''
420
+ tag: B
421
+ class: ''
422
+ top: 76
423
+ left: 125
424
+ visible: true
425
+ - height: 26
426
+ width: 770
427
+ id: ''
428
+ tag: P
429
+ class: ''
430
+ top: 118
431
+ left: 15
432
+ visible: true
433
+ - height: 0
434
+ width: 0
435
+ id: ''
436
+ tag: A
437
+ class: ''
438
+ top: 122
439
+ left: 135
440
+ visible: true
441
+ - height: 0
442
+ width: 0
443
+ id: ''
444
+ tag: B
445
+ class: ''
446
+ top: 122
447
+ left: 305
448
+ visible: true
449
+ - height: 0
450
+ width: 0
451
+ id: ''
452
+ tag: SCRIPT
453
+ class: ''
454
+ top: 0
455
+ left: 0
456
+ visible: false
457
+ DATA
458
+ YAML::load(data)
459
+ end
460
+
461
+ def travis_local_generated_master
462
+ data = <<-DATA
463
+ ---
464
+ - height: 45
465
+ width: 800
466
+ id: ''
467
+ tag: DIV
468
+ class: contain-to-grid fixed
469
+ top: 0
470
+ left: 0
471
+ visible: true
472
+ - height: 45
473
+ width: 800
474
+ id: ''
475
+ tag: NAV
476
+ class: top-bar
477
+ top: 0
478
+ left: 0
479
+ visible: true
480
+ - height: 45
481
+ width: 143
482
+ id: ''
483
+ tag: UL
484
+ class: title-area
485
+ top: 0
486
+ left: 0
487
+ visible: true
488
+ - height: 45
489
+ width: 143
490
+ id: ''
491
+ tag: LI
492
+ class: name
493
+ top: 0
494
+ left: 0
495
+ visible: true
496
+ - height: 45
497
+ width: 143
498
+ id: ''
499
+ tag: H1
500
+ class: ''
501
+ top: 0
502
+ left: 0
503
+ visible: true
504
+ - height: 45
505
+ width: 143
506
+ id: ''
507
+ tag: A
508
+ class: ''
509
+ top: 0
510
+ left: 0
511
+ visible: true
512
+ - height: 0
513
+ width: 0
514
+ id: ''
515
+ tag: LI
516
+ class: toggle-topbar menu-icon
517
+ top: 0
518
+ left: 0
519
+ visible: false
520
+ - height: 0
521
+ width: 0
522
+ id: ''
523
+ tag: A
524
+ class: ''
525
+ top: 0
526
+ left: 0
527
+ visible: false
528
+ - height: 0
529
+ width: 800
530
+ id: ''
531
+ tag: SECTION
532
+ class: top-bar-section
533
+ top: 0
534
+ left: 0
535
+ visible: true
536
+ - height: 45
537
+ width: 497
538
+ id: ''
539
+ tag: UL
540
+ class: right
541
+ top: 0
542
+ left: 303
543
+ visible: true
544
+ - height: 45
545
+ width: 85
546
+ id: ''
547
+ tag: LI
548
+ class: active
549
+ top: 0
550
+ left: 303
551
+ visible: true
552
+ - height: 45
553
+ width: 85
554
+ id: ''
555
+ tag: A
556
+ class: ''
557
+ top: 0
558
+ left: 303
559
+ visible: true
560
+ - height: 45
561
+ width: 93
562
+ id: ''
563
+ tag: LI
564
+ class: active
565
+ top: 0
566
+ left: 388
567
+ visible: true
568
+ - height: 45
569
+ width: 93
570
+ id: ''
571
+ tag: A
572
+ class: ''
573
+ top: 0
574
+ left: 388
575
+ visible: true
576
+ - height: 45
577
+ width: 69
578
+ id: ''
579
+ tag: LI
580
+ class: active
581
+ top: 0
582
+ left: 480
583
+ visible: true
584
+ - height: 45
585
+ width: 69
586
+ id: ''
587
+ tag: A
588
+ class: ''
589
+ top: 0
590
+ left: 480
591
+ visible: true
592
+ - height: 45
593
+ width: 77
594
+ id: ''
595
+ tag: LI
596
+ class: active
597
+ top: 0
598
+ left: 549
599
+ visible: true
600
+ - height: 45
601
+ width: 77
602
+ id: ''
603
+ tag: A
604
+ class: ''
605
+ top: 0
606
+ left: 549
607
+ visible: true
608
+ - height: 45
609
+ width: 77
610
+ id: ''
611
+ tag: LI
612
+ class: active
613
+ top: 0
614
+ left: 626
615
+ visible: true
616
+ - height: 45
617
+ width: 77
618
+ id: ''
619
+ tag: A
620
+ class: ''
621
+ top: 0
622
+ left: 626
623
+ visible: true
624
+ - height: 45
625
+ width: 97
626
+ id: ''
627
+ tag: LI
628
+ class: has-dropdown not-click
629
+ top: 0
630
+ left: 703
631
+ visible: true
632
+ - height: 45
633
+ width: 97
634
+ id: ''
635
+ tag: A
636
+ class: ''
637
+ top: 0
638
+ left: 0
639
+ visible: true
640
+ - height: 0
641
+ width: 0
642
+ id: ''
643
+ tag: UL
644
+ class: dropdown
645
+ top: 0
646
+ left: 0
647
+ visible: false
648
+ - height: 0
649
+ width: 0
650
+ id: ''
651
+ tag: LI
652
+ class: title back js-generated
653
+ top: 0
654
+ left: 0
655
+ visible: false
656
+ - height: 0
657
+ width: 0
658
+ id: ''
659
+ tag: H5
660
+ class: ''
661
+ top: 0
662
+ left: 0
663
+ visible: false
664
+ - height: 0
665
+ width: 0
666
+ id: ''
667
+ tag: A
668
+ class: ''
669
+ top: 0
670
+ left: 0
671
+ visible: false
672
+ - height: 0
673
+ width: 0
674
+ id: ''
675
+ tag: LI
676
+ class: ''
677
+ top: 0
678
+ left: 0
679
+ visible: false
680
+ - height: 0
681
+ width: 0
682
+ id: ''
683
+ tag: A
684
+ class: ''
685
+ top: 0
686
+ left: 0
687
+ visible: false
688
+ - height: 0
689
+ width: 0
690
+ id: ''
691
+ tag: LI
692
+ class: ''
693
+ top: 0
694
+ left: 0
695
+ visible: false
696
+ - height: 0
697
+ width: 0
698
+ id: ''
699
+ tag: A
700
+ class: ''
701
+ top: 0
702
+ left: 0
703
+ visible: false
704
+ - height: 0
705
+ width: 0
706
+ id: ''
707
+ tag: LI
708
+ class: ''
709
+ top: 0
710
+ left: 0
711
+ visible: false
712
+ - height: 0
713
+ width: 0
714
+ id: ''
715
+ tag: A
716
+ class: ''
717
+ top: 0
718
+ left: 0
719
+ visible: false
720
+ - height: 0
721
+ width: 0
722
+ id: ''
723
+ tag: LI
724
+ class: ''
725
+ top: 0
726
+ left: 0
727
+ visible: false
728
+ - height: 0
729
+ width: 0
730
+ id: ''
731
+ tag: A
732
+ class: ''
733
+ top: 0
734
+ left: 0
735
+ visible: false
736
+ - height: 0
737
+ width: 0
738
+ id: ''
739
+ tag: LI
740
+ class: ''
741
+ top: 0
742
+ left: 0
743
+ visible: false
744
+ - height: 0
745
+ width: 0
746
+ id: ''
747
+ tag: A
748
+ class: ''
749
+ top: 0
750
+ left: 0
751
+ visible: false
752
+ - height: 20
753
+ width: 800
754
+ id: ''
755
+ tag: DIV
756
+ class: row
757
+ top: 45
758
+ left: 0
759
+ visible: true
760
+ - height: 20
761
+ width: 800
762
+ id: ''
763
+ tag: DIV
764
+ class: large-3 columns
765
+ top: 45
766
+ left: 0
767
+ visible: true
768
+ - height: 0
769
+ width: 770
770
+ id: ''
771
+ tag: P
772
+ class: notice
773
+ top: 0
774
+ left: 15
775
+ visible: true
776
+ - height: 0
777
+ width: 770
778
+ id: ''
779
+ tag: P
780
+ class: alert
781
+ top: 20
782
+ left: 15
783
+ visible: true
784
+ - height: 0
785
+ width: 800
786
+ id: ''
787
+ tag: DIV
788
+ class: large-9 columns
789
+ top: 65
790
+ left: 0
791
+ visible: true
792
+ - height: 164
793
+ width: 800
794
+ id: ''
795
+ tag: DIV
796
+ class: row
797
+ top: 65
798
+ left: 0
799
+ visible: true
800
+ - height: 164
801
+ width: 800
802
+ id: ''
803
+ tag: DIV
804
+ class: large-12 columns
805
+ top: 65
806
+ left: 0
807
+ visible: true
808
+ - height: 73
809
+ width: 800
810
+ id: ''
811
+ tag: DIV
812
+ class: row
813
+ top: 0
814
+ left: 0
815
+ visible: true
816
+ - height: 73
817
+ width: 800
818
+ id: ''
819
+ tag: DIV
820
+ class: large-3 columns
821
+ top: 0
822
+ left: 0
823
+ visible: true
824
+ - height: 62
825
+ width: 770
826
+ id: ''
827
+ tag: H1
828
+ class: ''
829
+ top: 3
830
+ left: 15
831
+ visible: true
832
+ - height: 0
833
+ width: 800
834
+ id: ''
835
+ tag: DIV
836
+ class: large-9 columns
837
+ top: 73
838
+ left: 0
839
+ visible: true
840
+ - height: 26
841
+ width: 770
842
+ id: ''
843
+ tag: P
844
+ class: ''
845
+ top: 73
846
+ left: 15
847
+ visible: true
848
+ - height: 0
849
+ width: 0
850
+ id: ''
851
+ tag: B
852
+ class: ''
853
+ top: 76
854
+ left: 121
855
+ visible: true
856
+ - height: 26
857
+ width: 770
858
+ id: ''
859
+ tag: P
860
+ class: ''
861
+ top: 118
862
+ left: 15
863
+ visible: true
864
+ - height: 0
865
+ width: 0
866
+ id: ''
867
+ tag: A
868
+ class: ''
869
+ top: 122
870
+ left: 130
871
+ visible: true
872
+ - height: 0
873
+ width: 0
874
+ id: ''
875
+ tag: B
876
+ class: ''
877
+ top: 122
878
+ left: 294
879
+ visible: true
880
+ - height: 0
881
+ width: 0
882
+ id: ''
883
+ tag: SCRIPT
884
+ class: ''
885
+ top: 0
886
+ left: 0
887
+ visible: false
888
+
889
+ DATA
890
+ YAML::load(data)
891
+ end
29
892
  end
30
893
  end
@@ -41,7 +41,7 @@ class AnalysisTest < Kracker::KrackerTestCase
41
41
  def test_two_changed
42
42
  master_data = array_of_elements
43
43
  current_data = array_of_elements
44
- current_data[0]['height'] = current_data[0]['height'] + 13
44
+ current_data[0]['height'] = current_data[0]['height'] + 16
45
45
  current_data[1]['width'] = current_data[1]['width'] + 25
46
46
 
47
47
  analysis = analyze(master_data, current_data)
@@ -71,7 +71,7 @@ class AnalysisTest < Kracker::KrackerTestCase
71
71
  master_data = array_of_elements
72
72
  current_data = array_of_elements
73
73
 
74
- current_data[0]['height'] = current_data[0]['height'] + 13 ## the one changed (by more than similarity factor)
74
+ current_data[0]['height'] = current_data[0]['height'] + 23 ## the one changed (by more than similarity factor)
75
75
  current_data[1]['height'] = current_data[1]['height'] + 3 ## the one changed (by less than similarity factor and therefor not counted)
76
76
  current_data.delete_at(5) ## the one missing
77
77
  current_data << single_element_hash ## the one added
@@ -84,4 +84,15 @@ class AnalysisTest < Kracker::KrackerTestCase
84
84
  refute analysis[:same], 'results of data analysis.same'
85
85
  end
86
86
 
87
+ def test_huge_list_of_similarly_named_elements
88
+ master_data = travis_local_generated_master
89
+ current_data = travis_generated_current
90
+
91
+ analysis = analyze(master_data, current_data)
92
+ assert_equal 0, analysis[:not_in_master].count, 'results of data analysis: not_in_master'
93
+ assert_equal 0, analysis[:not_in_current].count, 'results of data analysis: not_in_current'
94
+ assert_equal 0, analysis[:changed_element_pairs].count, 'changed element pairs'
95
+ assert analysis[:same], 'results of data analysis.same'
96
+ end
97
+
87
98
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geordie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler