wovnrb 1.0.13 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/wovnrb.rb +7 -0
  4. data/lib/wovnrb/html_replacers/replacer_base.rb +2 -1
  5. data/lib/wovnrb/html_replacers/unified_values/dst_swapping_targets_creator.rb +76 -0
  6. data/lib/wovnrb/html_replacers/unified_values/element_category.rb +242 -0
  7. data/lib/wovnrb/html_replacers/unified_values/node_swapping_targets_creator.rb +134 -0
  8. data/lib/wovnrb/html_replacers/unified_values/text_replacer.rb +35 -0
  9. data/lib/wovnrb/html_replacers/unified_values/text_scraper.rb +152 -0
  10. data/lib/wovnrb/html_replacers/unified_values/values_stack.rb +65 -0
  11. data/lib/wovnrb/lang.rb +6 -1
  12. data/lib/wovnrb/services/value_agent.rb +9 -0
  13. data/lib/wovnrb/store.rb +2 -9
  14. data/lib/wovnrb/version.rb +1 -1
  15. data/test/fixtures/unified_values/site_html/simple_actual.html +96 -0
  16. data/test/fixtures/unified_values/site_html/simple_expected.json +251 -0
  17. data/test/fixtures/unified_values/site_html/wovn.io_actual.html +686 -0
  18. data/test/fixtures/unified_values/site_html/wovn.io_expected.json +543 -0
  19. data/test/fixtures/unified_values/site_html/www.yahoo.co.jp_actual.html +1024 -0
  20. data/test/fixtures/unified_values/site_html/www.yahoo.co.jp_expected.json +3345 -0
  21. data/test/fixtures/unified_values/small_html/block_inside_inline_actual.html +12 -0
  22. data/test/fixtures/unified_values/small_html/block_inside_inline_expected.json +22 -0
  23. data/test/fixtures/unified_values/small_html/br_tag_actual.html +10 -0
  24. data/test/fixtures/unified_values/small_html/br_tag_expected.json +12 -0
  25. data/test/fixtures/unified_values/small_html/comment_tag_actual.html +12 -0
  26. data/test/fixtures/unified_values/small_html/comment_tag_expected.json +10 -0
  27. data/test/fixtures/unified_values/small_html/complex_text_with_html_entity_actual.html +7 -0
  28. data/test/fixtures/unified_values/small_html/complex_text_with_html_entity_expected.json +11 -0
  29. data/test/fixtures/unified_values/small_html/deep_nested_block_actual.html +14 -0
  30. data/test/fixtures/unified_values/small_html/deep_nested_block_expected.json +8 -0
  31. data/test/fixtures/unified_values/small_html/deep_nested_inline_actual.html +20 -0
  32. data/test/fixtures/unified_values/small_html/deep_nested_inline_expected.json +20 -0
  33. data/test/fixtures/unified_values/small_html/empty_tag_actual.html +10 -0
  34. data/test/fixtures/unified_values/small_html/empty_tag_expected.json +12 -0
  35. data/test/fixtures/unified_values/small_html/empty_text_actual.html +12 -0
  36. data/test/fixtures/unified_values/small_html/empty_text_expected.json +1 -0
  37. data/test/fixtures/unified_values/small_html/ignore_tag_actual.html +12 -0
  38. data/test/fixtures/unified_values/small_html/ignore_tag_expected.json +16 -0
  39. data/test/fixtures/unified_values/small_html/ignored_class_actual.html +10 -0
  40. data/test/fixtures/unified_values/small_html/ignored_class_expected.json +13 -0
  41. data/test/fixtures/unified_values/small_html/img_actual.html +12 -0
  42. data/test/fixtures/unified_values/small_html/img_expected.json +23 -0
  43. data/test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_actual.html +10 -0
  44. data/test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_expected.json +16 -0
  45. data/test/fixtures/unified_values/small_html/nested_text_value_actual.html +10 -0
  46. data/test/fixtures/unified_values/small_html/nested_text_value_expected.json +12 -0
  47. data/test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_actual.html +10 -0
  48. data/test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_expected.json +14 -0
  49. data/test/fixtures/unified_values/small_html/option_tag_actual.html +9 -0
  50. data/test/fixtures/unified_values/small_html/option_tag_expected.json +13 -0
  51. data/test/fixtures/unified_values/small_html/text_different_inline_each_other_actual.html +10 -0
  52. data/test/fixtures/unified_values/small_html/text_different_inline_each_other_expected.json +22 -0
  53. data/test/fixtures/unified_values/small_html/text_in_svg_actual.html +9 -0
  54. data/test/fixtures/unified_values/small_html/text_in_svg_expected.json +8 -0
  55. data/test/fixtures/unified_values/small_html/text_with_html_entity_actual.html +6 -0
  56. data/test/fixtures/unified_values/small_html/text_with_html_entity_expected.json +8 -0
  57. data/test/fixtures/unified_values/small_html/unknown_or_custom_tag_actual.html +12 -0
  58. data/test/fixtures/unified_values/small_html/unknown_or_custom_tag_expected.json +24 -0
  59. data/test/fixtures/unified_values/small_html/unnecessay_top_end_tag_actual.html +12 -0
  60. data/test/fixtures/unified_values/small_html/unnecessay_top_end_tag_expected.json +14 -0
  61. data/test/fixtures/unified_values/small_html/wovn_ignore_actual.html +10 -0
  62. data/test/fixtures/unified_values/small_html/wovn_ignore_expected.json +13 -0
  63. data/test/lib/html_replacers/unified_values/dst_swapping_targets_creator_test.rb +137 -0
  64. data/test/lib/html_replacers/unified_values/element_category_test.rb +49 -0
  65. data/test/lib/html_replacers/unified_values/node_swapping_targets_creator_test.rb +137 -0
  66. data/test/lib/html_replacers/unified_values/text_replacer_test.rb +270 -0
  67. data/test/lib/html_replacers/unified_values/text_scraper_test.rb +121 -0
  68. data/test/lib/html_replacers/unified_values/values_stack_test.rb +122 -0
  69. data/test/lib/lang_test.rb +59 -1
  70. data/test/lib/services/value_agent_test.rb +32 -0
  71. data/test/test_helper.rb +18 -2
  72. data/wovnrb.gemspec +1 -0
  73. metadata +134 -7
  74. data/spec/spec_helper.rb +0 -2
  75. data/spec/wovnrb_spec.rb +0 -7
@@ -1,6 +1,5 @@
1
1
  # -*- encoding: UTF-8 -*-
2
2
  require 'test_helper'
3
- require 'minitest/autorun'
4
3
 
5
4
  module Wovnrb
6
5
  class LangTest < WovnMiniTest
@@ -392,11 +391,43 @@ module Wovnrb
392
391
  <div><p><a href=\"javascript:void(0)\"><!--wovn-src:Hello-->こんにちは</a></p></div>
393
392
  </body></html>
394
393
  "
394
+ when "unified_values"
395
+ body = <<-HTML
396
+ <html><body>
397
+ <div>
398
+ a <span>b</span> c
399
+ </div>
400
+ <div>
401
+ a<span>b</span>
402
+ </div>
403
+ <div>
404
+ <span> b </span>c
405
+ </div>
406
+ </body></html>
407
+ HTML
408
+
409
+ when "unified_values_ja"
410
+ body = <<-HTML
411
+ <html lang=\"ja\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><script src=\"//j.wovn.io/1\" async=\"true\" data-wovnio=\"key=&amp;backend=true&amp;currentLang=ja&amp;defaultLang=en&amp;urlPattern=path&amp;langCodeAliases={}&amp;version=#{Wovnrb::VERSION}\"> </script><link rel=\"alternate\" hreflang=\"en\" href=\"http://page.com/\"></head><body>
412
+ <div><!--wovn-src:
413
+ a -->\u3042<span><!--wovn-src:b-->\u3044</span><!--wovn-src: c
414
+ -->\u3046</div>
415
+ <div><!--wovn-src:
416
+ a-->\u200B<span><!--wovn-src:b-->\u3044</span><!--wovn-src:-->\u3046
417
+ </div>
418
+ <div>
419
+ <!--wovn-src:-->\u3042<span><!--wovn-src: b -->\u3044</span><!--wovn-src:c
420
+ -->\u200B</div>
421
+
422
+ </body></html>
423
+ HTML
424
+
395
425
  else # "" case
396
426
  body = "<html><body><h1>Mr. Belvedere Fan Club</h1>
397
427
  <div><p>Hello</p></div>
398
428
  </body></html>"
399
429
  end
430
+
400
431
  return body
401
432
  end
402
433
 
@@ -413,6 +444,23 @@ module Wovnrb
413
444
  return values
414
445
  end
415
446
 
447
+ def generate_unified_values
448
+ {
449
+ 'html_text_vals' => {
450
+ 'a<span>b</span>c' =>
451
+ { 'ja' =>
452
+ [{ 'data' => 'あ<span>い</span>う' }] },
453
+ 'a<span>b</span>' =>
454
+ { 'ja' =>
455
+ [{ 'data' => '<span>い</span>う' }] },
456
+ '<span>b</span>c' =>
457
+ { 'ja' =>
458
+ [{ 'data' => 'あ<span>い</span>' }] }
459
+
460
+ }
461
+ }
462
+ end
463
+
416
464
  def test_switch_dom_lang_for_simplified_chinese
417
465
  lang = Lang.new('zh-CHS')
418
466
  h = Wovnrb::Headers.new(Wovnrb.get_env('url' => 'http://page.com'), Wovnrb.get_settings('url_pattern' => 'subdomain', 'url_pattern_reg' => '^(?<lang>[^.]+).'))
@@ -465,6 +513,16 @@ module Wovnrb
465
513
  assert_equal(generate_body('translated_in_japanese'), swapped_body)
466
514
  end
467
515
 
516
+ def test_switch_lang_unified_values
517
+ lang = Lang.new('ja')
518
+ h = Wovnrb::Headers.new(Wovnrb.get_env('url' => 'http://page.com'), Wovnrb.get_settings('url_pattern' => 'subdomain', 'url_pattern_reg' => '^(?<lang>[^.]+).'))
519
+ dom = generate_dom('unified_values')
520
+ values = generate_unified_values
521
+ url = h.url
522
+ swapped_body = lang.switch_dom_lang(dom, Store.instance, values, url, h)
523
+ assert_equal(generate_body('unified_values_ja'), swapped_body)
524
+ end
525
+
468
526
  def test_switch_lang_with_html_fragment
469
527
  lang = Lang.new('ja')
470
528
  h = Wovnrb::Headers.new(Wovnrb.get_env('url' => 'http://page.com'), Wovnrb.get_settings('url_pattern' => 'subdomain', 'url_pattern_reg' => '^(?<lang>[^.]+).'))
@@ -0,0 +1,32 @@
1
+ require 'test_helper'
2
+ require 'wovnrb/services/value_agent'
3
+
4
+ module Wovnrb
5
+ class ValueAgentTest < WovnMiniTest
6
+ def test_normalize_text_with_spaces
7
+ assert_equal('test string', ValueAgent.normalize_text(' test string '))
8
+ end
9
+
10
+ def test_normalize_text_without_spaces
11
+ assert_equal('foobar', ValueAgent.normalize_text('foobar'))
12
+ end
13
+
14
+ def test_normalize_text_with_japanese_sapces
15
+ assert_equal('おはよう ございます', ValueAgent.normalize_text(' おはよう ございます  '))
16
+ end
17
+
18
+ def test_normalize_text_with_newlines
19
+ assert_equal('こんにちは さようなら', ValueAgent.normalize_text("\nこんにちは\nさようなら\n"))
20
+ end
21
+
22
+ def test_normalize_text_with_replacement_char
23
+ assert_equal("2011年には地下1\b階・地上4\b階の", ValueAgent.normalize_text("\n2011年には地下1�階・地上4�階の\n"))
24
+ end
25
+
26
+ def test_normalize_text_with_nbsp
27
+ nbsp = "\u00A0"
28
+ assert_equal("hello,#{nbsp}hello", ValueAgent.normalize_text("#{nbsp}hello,#{nbsp}hello#{nbsp}"))
29
+ end
30
+ end
31
+ end
32
+
data/test/test_helper.rb CHANGED
@@ -16,6 +16,11 @@ end
16
16
 
17
17
  require 'nokogumbo'
18
18
  require 'rack'
19
+ require 'minitest/autorun'
20
+ require 'shoulda/context'
21
+ require 'active_support'
22
+ require 'active_support/core_ext'
23
+
19
24
  require 'wovnrb/headers'
20
25
  require 'wovnrb/lang'
21
26
  require 'wovnrb/store'
@@ -26,9 +31,13 @@ require 'wovnrb/html_replacers/text_replacer'
26
31
  require 'wovnrb/html_replacers/meta_replacer'
27
32
  require 'wovnrb/html_replacers/image_replacer'
28
33
  require 'wovnrb/html_replacers/script_replacer'
34
+ require 'wovnrb/html_replacers/unified_values/text_replacer'
35
+ require 'wovnrb/html_replacers/unified_values/text_scraper'
36
+ require 'wovnrb/html_replacers/unified_values/values_stack'
37
+ require 'wovnrb/html_replacers/unified_values/element_category'
38
+ require 'wovnrb/html_replacers/unified_values/dst_swapping_targets_creator'
39
+ require 'wovnrb/html_replacers/unified_values/node_swapping_targets_creator'
29
40
  require 'wovnrb/helpers/nokogumbo_helper'
30
- require 'minitest/autorun'
31
-
32
41
 
33
42
  module Wovnrb
34
43
  class WovnMiniTest < Minitest::Test
@@ -112,4 +121,11 @@ module Wovnrb
112
121
  end
113
122
 
114
123
  module_function :get_env, :get_settings, :to_dom, :get_dom
124
+
125
+ def build_api_data(custom_page_values: {}, custom_project_data: {})
126
+ page_values = default_page_values.merge(custom_page_values)
127
+ project_data = default_project_data.merge(custom_project_data)
128
+
129
+ ApiData.new('dummy-key', page_values, project_data)
130
+ end
115
131
  end
data/wovnrb.gemspec CHANGED
@@ -48,6 +48,7 @@ Gem::Specification.new do |spec|
48
48
  spec.add_development_dependency "pry-remote"
49
49
  spec.add_development_dependency "pry-nav"
50
50
  spec.add_development_dependency "pry-byebug"
51
+ spec.add_development_dependency "shoulda-context"
51
52
 
52
53
  #spec.add_development_dependency "rice"
53
54
  spec.add_development_dependency "rake-compiler"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wovnrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-05 00:00:00.000000000 Z
12
+ date: 2018-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogumbo
@@ -283,6 +283,20 @@ dependencies:
283
283
  - - ">="
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0'
286
+ - !ruby/object:Gem::Dependency
287
+ name: shoulda-context
288
+ requirement: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ type: :development
294
+ prerelease: false
295
+ version_requirements: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
286
300
  - !ruby/object:Gem::Dependency
287
301
  name: rake-compiler
288
302
  requirement: !ruby/object:Gem::Requirement
@@ -380,18 +394,71 @@ files:
380
394
  - lib/wovnrb/html_replacers/replacer_base.rb
381
395
  - lib/wovnrb/html_replacers/script_replacer.rb
382
396
  - lib/wovnrb/html_replacers/text_replacer.rb
397
+ - lib/wovnrb/html_replacers/unified_values/dst_swapping_targets_creator.rb
398
+ - lib/wovnrb/html_replacers/unified_values/element_category.rb
399
+ - lib/wovnrb/html_replacers/unified_values/node_swapping_targets_creator.rb
400
+ - lib/wovnrb/html_replacers/unified_values/text_replacer.rb
401
+ - lib/wovnrb/html_replacers/unified_values/text_scraper.rb
402
+ - lib/wovnrb/html_replacers/unified_values/values_stack.rb
383
403
  - lib/wovnrb/lang.rb
384
404
  - lib/wovnrb/railtie.rb
385
405
  - lib/wovnrb/services/glob.rb
386
406
  - lib/wovnrb/services/url.rb
407
+ - lib/wovnrb/services/value_agent.rb
387
408
  - lib/wovnrb/services/wovn_logger.rb
388
409
  - lib/wovnrb/settings.rb
389
410
  - lib/wovnrb/store.rb
390
411
  - lib/wovnrb/text_caches/cache_base.rb
391
412
  - lib/wovnrb/text_caches/memory_cache.rb
392
413
  - lib/wovnrb/version.rb
393
- - spec/spec_helper.rb
394
- - spec/wovnrb_spec.rb
414
+ - test/fixtures/unified_values/site_html/simple_actual.html
415
+ - test/fixtures/unified_values/site_html/simple_expected.json
416
+ - test/fixtures/unified_values/site_html/wovn.io_actual.html
417
+ - test/fixtures/unified_values/site_html/wovn.io_expected.json
418
+ - test/fixtures/unified_values/site_html/www.yahoo.co.jp_actual.html
419
+ - test/fixtures/unified_values/site_html/www.yahoo.co.jp_expected.json
420
+ - test/fixtures/unified_values/small_html/block_inside_inline_actual.html
421
+ - test/fixtures/unified_values/small_html/block_inside_inline_expected.json
422
+ - test/fixtures/unified_values/small_html/br_tag_actual.html
423
+ - test/fixtures/unified_values/small_html/br_tag_expected.json
424
+ - test/fixtures/unified_values/small_html/comment_tag_actual.html
425
+ - test/fixtures/unified_values/small_html/comment_tag_expected.json
426
+ - test/fixtures/unified_values/small_html/complex_text_with_html_entity_actual.html
427
+ - test/fixtures/unified_values/small_html/complex_text_with_html_entity_expected.json
428
+ - test/fixtures/unified_values/small_html/deep_nested_block_actual.html
429
+ - test/fixtures/unified_values/small_html/deep_nested_block_expected.json
430
+ - test/fixtures/unified_values/small_html/deep_nested_inline_actual.html
431
+ - test/fixtures/unified_values/small_html/deep_nested_inline_expected.json
432
+ - test/fixtures/unified_values/small_html/empty_tag_actual.html
433
+ - test/fixtures/unified_values/small_html/empty_tag_expected.json
434
+ - test/fixtures/unified_values/small_html/empty_text_actual.html
435
+ - test/fixtures/unified_values/small_html/empty_text_expected.json
436
+ - test/fixtures/unified_values/small_html/ignore_tag_actual.html
437
+ - test/fixtures/unified_values/small_html/ignore_tag_expected.json
438
+ - test/fixtures/unified_values/small_html/ignored_class_actual.html
439
+ - test/fixtures/unified_values/small_html/ignored_class_expected.json
440
+ - test/fixtures/unified_values/small_html/img_actual.html
441
+ - test/fixtures/unified_values/small_html/img_expected.json
442
+ - test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_actual.html
443
+ - test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_expected.json
444
+ - test/fixtures/unified_values/small_html/nested_text_value_actual.html
445
+ - test/fixtures/unified_values/small_html/nested_text_value_expected.json
446
+ - test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_actual.html
447
+ - test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_expected.json
448
+ - test/fixtures/unified_values/small_html/option_tag_actual.html
449
+ - test/fixtures/unified_values/small_html/option_tag_expected.json
450
+ - test/fixtures/unified_values/small_html/text_different_inline_each_other_actual.html
451
+ - test/fixtures/unified_values/small_html/text_different_inline_each_other_expected.json
452
+ - test/fixtures/unified_values/small_html/text_in_svg_actual.html
453
+ - test/fixtures/unified_values/small_html/text_in_svg_expected.json
454
+ - test/fixtures/unified_values/small_html/text_with_html_entity_actual.html
455
+ - test/fixtures/unified_values/small_html/text_with_html_entity_expected.json
456
+ - test/fixtures/unified_values/small_html/unknown_or_custom_tag_actual.html
457
+ - test/fixtures/unified_values/small_html/unknown_or_custom_tag_expected.json
458
+ - test/fixtures/unified_values/small_html/unnecessay_top_end_tag_actual.html
459
+ - test/fixtures/unified_values/small_html/unnecessay_top_end_tag_expected.json
460
+ - test/fixtures/unified_values/small_html/wovn_ignore_actual.html
461
+ - test/fixtures/unified_values/small_html/wovn_ignore_expected.json
395
462
  - test/lib/api_data_test.rb
396
463
  - test/lib/headers_test.rb
397
464
  - test/lib/html_replacers/image_replacer_test.rb
@@ -401,9 +468,16 @@ files:
401
468
  - test/lib/html_replacers/replacer_base_test.rb
402
469
  - test/lib/html_replacers/script_replacer_test.rb
403
470
  - test/lib/html_replacers/text_replacer_test.rb
471
+ - test/lib/html_replacers/unified_values/dst_swapping_targets_creator_test.rb
472
+ - test/lib/html_replacers/unified_values/element_category_test.rb
473
+ - test/lib/html_replacers/unified_values/node_swapping_targets_creator_test.rb
474
+ - test/lib/html_replacers/unified_values/text_replacer_test.rb
475
+ - test/lib/html_replacers/unified_values/text_scraper_test.rb
476
+ - test/lib/html_replacers/unified_values/values_stack_test.rb
404
477
  - test/lib/lang_test.rb
405
478
  - test/lib/services/glob_test.rb
406
479
  - test/lib/services/url_test.rb
480
+ - test/lib/services/value_agent_test.rb
407
481
  - test/lib/services/wovn_logger_test.rb
408
482
  - test/lib/store_test.rb
409
483
  - test/lib/text_caches/cache_base_test.rb
@@ -433,13 +507,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
433
507
  version: '0'
434
508
  requirements: []
435
509
  rubyforge_project:
436
- rubygems_version: 2.2.0
510
+ rubygems_version: 2.4.5.4
437
511
  signing_key:
438
512
  specification_version: 4
439
513
  summary: Gem for WOVN.io
440
514
  test_files:
441
- - spec/spec_helper.rb
442
- - spec/wovnrb_spec.rb
515
+ - test/fixtures/unified_values/site_html/simple_actual.html
516
+ - test/fixtures/unified_values/site_html/simple_expected.json
517
+ - test/fixtures/unified_values/site_html/wovn.io_actual.html
518
+ - test/fixtures/unified_values/site_html/wovn.io_expected.json
519
+ - test/fixtures/unified_values/site_html/www.yahoo.co.jp_actual.html
520
+ - test/fixtures/unified_values/site_html/www.yahoo.co.jp_expected.json
521
+ - test/fixtures/unified_values/small_html/block_inside_inline_actual.html
522
+ - test/fixtures/unified_values/small_html/block_inside_inline_expected.json
523
+ - test/fixtures/unified_values/small_html/br_tag_actual.html
524
+ - test/fixtures/unified_values/small_html/br_tag_expected.json
525
+ - test/fixtures/unified_values/small_html/comment_tag_actual.html
526
+ - test/fixtures/unified_values/small_html/comment_tag_expected.json
527
+ - test/fixtures/unified_values/small_html/complex_text_with_html_entity_actual.html
528
+ - test/fixtures/unified_values/small_html/complex_text_with_html_entity_expected.json
529
+ - test/fixtures/unified_values/small_html/deep_nested_block_actual.html
530
+ - test/fixtures/unified_values/small_html/deep_nested_block_expected.json
531
+ - test/fixtures/unified_values/small_html/deep_nested_inline_actual.html
532
+ - test/fixtures/unified_values/small_html/deep_nested_inline_expected.json
533
+ - test/fixtures/unified_values/small_html/empty_tag_actual.html
534
+ - test/fixtures/unified_values/small_html/empty_tag_expected.json
535
+ - test/fixtures/unified_values/small_html/empty_text_actual.html
536
+ - test/fixtures/unified_values/small_html/empty_text_expected.json
537
+ - test/fixtures/unified_values/small_html/ignore_tag_actual.html
538
+ - test/fixtures/unified_values/small_html/ignore_tag_expected.json
539
+ - test/fixtures/unified_values/small_html/ignored_class_actual.html
540
+ - test/fixtures/unified_values/small_html/ignored_class_expected.json
541
+ - test/fixtures/unified_values/small_html/img_actual.html
542
+ - test/fixtures/unified_values/small_html/img_expected.json
543
+ - test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_actual.html
544
+ - test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_expected.json
545
+ - test/fixtures/unified_values/small_html/nested_text_value_actual.html
546
+ - test/fixtures/unified_values/small_html/nested_text_value_expected.json
547
+ - test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_actual.html
548
+ - test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_expected.json
549
+ - test/fixtures/unified_values/small_html/option_tag_actual.html
550
+ - test/fixtures/unified_values/small_html/option_tag_expected.json
551
+ - test/fixtures/unified_values/small_html/text_different_inline_each_other_actual.html
552
+ - test/fixtures/unified_values/small_html/text_different_inline_each_other_expected.json
553
+ - test/fixtures/unified_values/small_html/text_in_svg_actual.html
554
+ - test/fixtures/unified_values/small_html/text_in_svg_expected.json
555
+ - test/fixtures/unified_values/small_html/text_with_html_entity_actual.html
556
+ - test/fixtures/unified_values/small_html/text_with_html_entity_expected.json
557
+ - test/fixtures/unified_values/small_html/unknown_or_custom_tag_actual.html
558
+ - test/fixtures/unified_values/small_html/unknown_or_custom_tag_expected.json
559
+ - test/fixtures/unified_values/small_html/unnecessay_top_end_tag_actual.html
560
+ - test/fixtures/unified_values/small_html/unnecessay_top_end_tag_expected.json
561
+ - test/fixtures/unified_values/small_html/wovn_ignore_actual.html
562
+ - test/fixtures/unified_values/small_html/wovn_ignore_expected.json
443
563
  - test/lib/api_data_test.rb
444
564
  - test/lib/headers_test.rb
445
565
  - test/lib/html_replacers/image_replacer_test.rb
@@ -449,9 +569,16 @@ test_files:
449
569
  - test/lib/html_replacers/replacer_base_test.rb
450
570
  - test/lib/html_replacers/script_replacer_test.rb
451
571
  - test/lib/html_replacers/text_replacer_test.rb
572
+ - test/lib/html_replacers/unified_values/dst_swapping_targets_creator_test.rb
573
+ - test/lib/html_replacers/unified_values/element_category_test.rb
574
+ - test/lib/html_replacers/unified_values/node_swapping_targets_creator_test.rb
575
+ - test/lib/html_replacers/unified_values/text_replacer_test.rb
576
+ - test/lib/html_replacers/unified_values/text_scraper_test.rb
577
+ - test/lib/html_replacers/unified_values/values_stack_test.rb
452
578
  - test/lib/lang_test.rb
453
579
  - test/lib/services/glob_test.rb
454
580
  - test/lib/services/url_test.rb
581
+ - test/lib/services/value_agent_test.rb
455
582
  - test/lib/services/wovn_logger_test.rb
456
583
  - test/lib/store_test.rb
457
584
  - test/lib/text_caches/cache_base_test.rb
data/spec/spec_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'pry'
2
- require 'wovnrb'
data/spec/wovnrb_spec.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Wovnrb do
4
- it 'does stuff' do
5
- pending # no code yet
6
- end
7
- end