wovnrb 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +308 -0
- data/Rakefile +13 -14
- data/lib/wovnrb.rb +43 -98
- data/lib/wovnrb/api_translator.rb +143 -0
- data/lib/wovnrb/headers.rb +78 -92
- data/lib/wovnrb/helpers/nokogumbo_helper.rb +1 -1
- data/lib/wovnrb/lang.rb +93 -125
- data/lib/wovnrb/railtie.rb +5 -7
- data/lib/wovnrb/services/glob.rb +3 -3
- data/lib/wovnrb/services/html_converter.rb +192 -0
- data/lib/wovnrb/services/html_replace_marker.rb +38 -0
- data/lib/wovnrb/services/wovn_logger.rb +8 -4
- data/lib/wovnrb/settings.rb +5 -3
- data/lib/wovnrb/store.rb +35 -26
- data/lib/wovnrb/text_caches/cache_base.rb +3 -2
- data/lib/wovnrb/text_caches/memory_cache.rb +2 -2
- data/lib/wovnrb/version.rb +1 -1
- data/test/fixtures/html/test.html +8 -0
- data/test/fixtures/html/test_translated.html +8 -0
- data/test/lib/api_translator_test.rb +109 -0
- data/test/lib/headers_test.rb +84 -55
- data/test/lib/lang_test.rb +157 -357
- data/test/lib/services/glob_test.rb +1 -1
- data/test/lib/services/html_converter_test.rb +166 -0
- data/test/lib/services/html_replace_marker_test.rb +75 -0
- data/test/lib/services/wovn_logger_test.rb +6 -6
- data/test/lib/store_test.rb +25 -69
- data/test/lib/text_caches/cache_base_test.rb +1 -1
- data/test/lib/text_caches/memory_cache_test.rb +10 -11
- data/test/lib/wovnrb_test.rb +77 -310
- data/test/test_helper.rb +22 -32
- data/wovnrb.gemspec +35 -44
- metadata +86 -205
- data/ext/dom/Makefile +0 -239
- data/lib/wovnrb/api_data.rb +0 -59
- data/lib/wovnrb/html_replacers/image_replacer.rb +0 -69
- data/lib/wovnrb/html_replacers/input_replacer.rb +0 -38
- data/lib/wovnrb/html_replacers/link_replacer.rb +0 -78
- data/lib/wovnrb/html_replacers/meta_replacer.rb +0 -28
- data/lib/wovnrb/html_replacers/replacer_base.rb +0 -49
- data/lib/wovnrb/html_replacers/script_replacer.rb +0 -39
- data/lib/wovnrb/html_replacers/text_replacer.rb +0 -21
- data/lib/wovnrb/html_replacers/unified_values/dst_swapping_targets_creator.rb +0 -76
- data/lib/wovnrb/html_replacers/unified_values/element_category.rb +0 -242
- data/lib/wovnrb/html_replacers/unified_values/node_swapping_targets_creator.rb +0 -134
- data/lib/wovnrb/html_replacers/unified_values/text_replacer.rb +0 -35
- data/lib/wovnrb/html_replacers/unified_values/text_scraper.rb +0 -152
- data/lib/wovnrb/html_replacers/unified_values/values_stack.rb +0 -65
- data/lib/wovnrb/services/url.rb +0 -12
- data/lib/wovnrb/services/value_agent.rb +0 -9
- data/test/fixtures/unified_values/site_html/simple_actual.html +0 -96
- data/test/fixtures/unified_values/site_html/simple_expected.json +0 -251
- data/test/fixtures/unified_values/site_html/wovn.io_actual.html +0 -686
- data/test/fixtures/unified_values/site_html/wovn.io_expected.json +0 -543
- data/test/fixtures/unified_values/site_html/www.yahoo.co.jp_actual.html +0 -1024
- data/test/fixtures/unified_values/site_html/www.yahoo.co.jp_expected.json +0 -3345
- data/test/fixtures/unified_values/small_html/block_inside_inline_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/block_inside_inline_expected.json +0 -22
- data/test/fixtures/unified_values/small_html/br_tag_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/br_tag_expected.json +0 -12
- data/test/fixtures/unified_values/small_html/comment_tag_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/comment_tag_expected.json +0 -10
- data/test/fixtures/unified_values/small_html/complex_text_with_html_entity_actual.html +0 -7
- data/test/fixtures/unified_values/small_html/complex_text_with_html_entity_expected.json +0 -11
- data/test/fixtures/unified_values/small_html/deep_nested_block_actual.html +0 -14
- data/test/fixtures/unified_values/small_html/deep_nested_block_expected.json +0 -8
- data/test/fixtures/unified_values/small_html/deep_nested_inline_actual.html +0 -20
- data/test/fixtures/unified_values/small_html/deep_nested_inline_expected.json +0 -20
- data/test/fixtures/unified_values/small_html/empty_tag_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/empty_tag_expected.json +0 -12
- data/test/fixtures/unified_values/small_html/empty_text_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/empty_text_expected.json +0 -1
- data/test/fixtures/unified_values/small_html/ignore_tag_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/ignore_tag_expected.json +0 -16
- data/test/fixtures/unified_values/small_html/ignored_class_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/ignored_class_expected.json +0 -13
- data/test/fixtures/unified_values/small_html/img_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/img_expected.json +0 -23
- data/test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/nested_and_complex_wovn_ignore_expected.json +0 -16
- data/test/fixtures/unified_values/small_html/nested_text_value_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/nested_text_value_expected.json +0 -12
- data/test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/nested_text_value_mixed_plan_text_expected.json +0 -14
- data/test/fixtures/unified_values/small_html/option_tag_actual.html +0 -9
- data/test/fixtures/unified_values/small_html/option_tag_expected.json +0 -13
- data/test/fixtures/unified_values/small_html/text_different_inline_each_other_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/text_different_inline_each_other_expected.json +0 -22
- data/test/fixtures/unified_values/small_html/text_in_svg_actual.html +0 -9
- data/test/fixtures/unified_values/small_html/text_in_svg_expected.json +0 -8
- data/test/fixtures/unified_values/small_html/text_with_html_entity_actual.html +0 -6
- data/test/fixtures/unified_values/small_html/text_with_html_entity_expected.json +0 -8
- data/test/fixtures/unified_values/small_html/unknown_or_custom_tag_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/unknown_or_custom_tag_expected.json +0 -24
- data/test/fixtures/unified_values/small_html/unnecessay_top_end_tag_actual.html +0 -12
- data/test/fixtures/unified_values/small_html/unnecessay_top_end_tag_expected.json +0 -14
- data/test/fixtures/unified_values/small_html/wovn_ignore_actual.html +0 -10
- data/test/fixtures/unified_values/small_html/wovn_ignore_expected.json +0 -13
- data/test/lib/api_data_test.rb +0 -83
- data/test/lib/html_replacers/image_replacer_test.rb +0 -165
- data/test/lib/html_replacers/input_replacer_test.rb +0 -140
- data/test/lib/html_replacers/link_replacer_test.rb +0 -328
- data/test/lib/html_replacers/meta_replacer_test.rb +0 -157
- data/test/lib/html_replacers/replacer_base_test.rb +0 -128
- data/test/lib/html_replacers/script_replacer_test.rb +0 -139
- data/test/lib/html_replacers/text_replacer_test.rb +0 -99
- data/test/lib/html_replacers/unified_values/dst_swapping_targets_creator_test.rb +0 -137
- data/test/lib/html_replacers/unified_values/element_category_test.rb +0 -49
- data/test/lib/html_replacers/unified_values/node_swapping_targets_creator_test.rb +0 -137
- data/test/lib/html_replacers/unified_values/text_replacer_test.rb +0 -270
- data/test/lib/html_replacers/unified_values/text_scraper_test.rb +0 -121
- data/test/lib/html_replacers/unified_values/values_stack_test.rb +0 -122
- data/test/lib/services/url_test.rb +0 -9
- data/test/lib/services/value_agent_test.rb +0 -32
- data/test/services/url_test.rb +0 -163
- data/values/values +0 -1
data/test/test_helper.rb
CHANGED
@@ -3,7 +3,7 @@ require 'pry'
|
|
3
3
|
|
4
4
|
# save to CircleCI's artifacts directory if we're on CircleCI
|
5
5
|
if ENV['CIRCLE_ARTIFACTS']
|
6
|
-
dir = File.join(ENV['CIRCLE_ARTIFACTS'],
|
6
|
+
dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'coverage')
|
7
7
|
SimpleCov.coverage_dir(dir)
|
8
8
|
end
|
9
9
|
|
@@ -17,27 +17,19 @@ end
|
|
17
17
|
require 'nokogumbo'
|
18
18
|
require 'rack'
|
19
19
|
require 'minitest/autorun'
|
20
|
+
require 'mocha/minitest'
|
21
|
+
require 'webmock/minitest'
|
20
22
|
require 'shoulda/context'
|
21
23
|
require 'active_support'
|
22
24
|
require 'active_support/core_ext'
|
23
25
|
|
26
|
+
require 'wovnrb/api_translator'
|
24
27
|
require 'wovnrb/headers'
|
25
28
|
require 'wovnrb/lang'
|
26
29
|
require 'wovnrb/store'
|
27
|
-
require 'wovnrb/html_replacers/replacer_base'
|
28
|
-
require 'wovnrb/html_replacers/input_replacer'
|
29
|
-
require 'wovnrb/html_replacers/link_replacer'
|
30
|
-
require 'wovnrb/html_replacers/text_replacer'
|
31
|
-
require 'wovnrb/html_replacers/meta_replacer'
|
32
|
-
require 'wovnrb/html_replacers/image_replacer'
|
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'
|
40
30
|
require 'wovnrb/helpers/nokogumbo_helper'
|
31
|
+
require 'wovnrb/services/html_converter'
|
32
|
+
require 'wovnrb/services/html_replace_marker'
|
41
33
|
|
42
34
|
module Wovnrb
|
43
35
|
class WovnMiniTest < Minitest::Test
|
@@ -51,14 +43,14 @@ module Wovnrb
|
|
51
43
|
attr_accessor :errors
|
52
44
|
|
53
45
|
def self.mock_log
|
54
|
-
Store.instance.update_settings(
|
55
|
-
mock =
|
46
|
+
Store.instance.update_settings('log_path' => nil)
|
47
|
+
mock = new
|
56
48
|
WovnLogger.instance.set_logger(mock)
|
57
49
|
mock
|
58
50
|
end
|
59
51
|
|
60
52
|
def initialize
|
61
|
-
@errors= []
|
53
|
+
@errors = []
|
62
54
|
end
|
63
55
|
|
64
56
|
def error(message)
|
@@ -66,39 +58,37 @@ module Wovnrb
|
|
66
58
|
end
|
67
59
|
end
|
68
60
|
|
69
|
-
def get_settings(options={})
|
61
|
+
def get_settings(options = {})
|
70
62
|
settings = {}
|
71
63
|
settings['project_token'] = 'OHYx9'
|
72
64
|
settings['url_pattern'] = 'path'
|
73
|
-
settings['url_pattern_reg'] =
|
65
|
+
settings['url_pattern_reg'] = '/(?<lang>[^/.?]+)'
|
74
66
|
settings['query'] = []
|
75
67
|
settings['api_url'] = 'http://localhost/v0/values'
|
76
68
|
settings['default_lang'] = 'en'
|
77
|
-
settings['supported_langs'] = [
|
78
|
-
|
69
|
+
settings['supported_langs'] = %w[en ja]
|
70
|
+
settings.merge(options)
|
79
71
|
end
|
80
72
|
|
81
|
-
def get_env(options={})
|
73
|
+
def get_env(options = {})
|
82
74
|
env = {}
|
83
75
|
env['rack.url_scheme'] = 'http'
|
84
76
|
env['HTTP_HOST'] = 'wovn.io'
|
85
77
|
env['REQUEST_URI'] = '/dashboard?param=val&hey=you'
|
86
78
|
env['SERVER_NAME'] = 'wovn.io'
|
87
|
-
env['HTTP_COOKIE'] =
|
79
|
+
env['HTTP_COOKIE'] = 'olfsk=olfsk021093478426337242; hblid=KB8AAMzxzu2DSxnB4X7BJ26rBGVeF0yJ; optimizelyEndUserId=oeu1426233718869r0.5398541854228824; __zlcmid=UFeZqrVo6Mv3Yl; wovn_selected_lang=en; optimizelySegments=%7B%7D; optimizelyBuckets=%7B%7D; _equalizer_session=eDFwM3M2QUZJZFhoby9JZlArckcvSUJwNFRINXhUeUxtNnltQXZhV0tqdGhZQjJMZ01URnZTK05ydFVWYmM3U0dtMVN0M0Z0UnNDVG8vdUNDTUtPc21jY0FHREgrZ05CUnBTb0hyUlkvYlBWQVhQR3RZdnhjMWsrRW5rOVp1Z3V3bkgyd3NpSlRZQWU1dlZvNmM1THp6aUZVeE83Y1pWWENRNTBUVFIrV05WeTdDMlFlem1tUzdxaEtndFZBd2dtUjU2ak5EUmJPa3RWWmMyT1pSVWdMTm8zOVZhUWhHdGQ3L1c5bm91RmNSdFRrcC90Tml4N2t3ZWlBaDRya2lLT1I0S0J2TURhUWl6Uk5rOTQ4Y1MwM3VKYnlLMUYraEt5clhRdFd1eGdEWXdZd3pFbWQvdE9vQndhdDVQbXNLcHBURm9CbnZKenU2YnNXRFdqRVl0MVV3bmRyYjhvMDExcGtUVU9tK1lqUGswM3p6M05tbVRnTjE3TUl5cEdpTTZ4a2gray8xK0FvTC9wUDVka1JSeE5GM1prZmRjWDdyVzRhWW5uS2Mxc1BxOEVVTTZFS3N5bTlVN2p5eE5YSjNZWGI2UHd3Vzc0bDM5QjIwL0l5Mm85NmQyWFAwdVQ3ZzJYYk1QOHY2NVJpY2c9LS1KNU96eHVycVJxSDJMbEc4Rm9KVXpBPT0%3D--17e47555d692fb9cde20ef78a09a5eabbf805bb3; mp_a0452663eb7abb7dfa9c94007ebb0090_mixpanel=%7B%22distinct_id%22%3A%20%2253ed9ffa4a65662e37000000%22%2C%22%24initial_referrer%22%3A%20%22http%3A%2F%2Fp.dev-wovn.io%3A8080%2Fhttp%3A%2F%2Fdev-wovn.io%3A3000%22%2C%22%24initial_referring_domain%22%3A%20%22p.dev-wovn.io%3A8080%22%2C%22__mps%22%3A%20%7B%7D%2C%22__mpso%22%3A%20%7B%7D%2C%22__mpa%22%3A%20%7B%7D%2C%22__mpu%22%3A%20%7B%7D%2C%22__mpap%22%3A%20%5B%5D%7D'
|
88
80
|
env['HTTP_ACCEPT_LANGUAGE'] = 'ja,en-US;q=0.8,en;q=0.6'
|
89
81
|
env['ORIGINAL_FULLPATH'] = '/dashboard?param=val&hey=you'
|
90
|
-
#env['HTTP_REFERER'] =
|
82
|
+
# env['HTTP_REFERER'] =
|
91
83
|
env['REQUEST_PATH'] = '/dashboard'
|
92
84
|
env['PATH_INFO'] = '/dashboard'
|
93
85
|
|
94
|
-
url = options['url'] ||
|
86
|
+
url = options['url'] || 'http://wovn.io/dashboard?param=val&hey=you'
|
95
87
|
if options['url']
|
96
88
|
url = URI.parse(options['url'])
|
97
89
|
env['rack.url_scheme'] = url.scheme
|
98
90
|
env['HTTP_HOST'] = url.host
|
99
|
-
if (url.scheme == 'http' && url.port != 80) || (url.scheme == 'https' && url.port != 443)
|
100
|
-
env['HTTP_HOST'] += ":#{url.port}"
|
101
|
-
end
|
91
|
+
env['HTTP_HOST'] += ":#{url.port}" if (url.scheme == 'http' && url.port != 80) || (url.scheme == 'https' && url.port != 443)
|
102
92
|
env['SERVER_NAME'] = url.host
|
103
93
|
env['REQUEST_URI'] = url.request_uri
|
104
94
|
env['ORIGINAL_FULLPATH'] = url.request_uri
|
@@ -107,17 +97,17 @@ module Wovnrb
|
|
107
97
|
env['PATH_INFO'] = url.path
|
108
98
|
end
|
109
99
|
|
110
|
-
|
100
|
+
Rack::MockRequest.env_for(url.to_s, env.merge(options))
|
111
101
|
end
|
112
102
|
|
113
103
|
def to_dom(html)
|
114
104
|
dom = Nokogiri::HTML5(html)
|
115
|
-
dom.encoding =
|
105
|
+
dom.encoding = 'UTF-8'
|
116
106
|
dom
|
117
107
|
end
|
118
108
|
|
119
|
-
def get_dom(
|
120
|
-
to_dom("<html><body>#{
|
109
|
+
def get_dom(inner_html)
|
110
|
+
to_dom("<html><body>#{inner_html}</body></html>")
|
121
111
|
end
|
122
112
|
|
123
113
|
module_function :get_env, :get_settings, :to_dom, :get_dom
|
data/wovnrb.gemspec
CHANGED
@@ -1,62 +1,53 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'wovnrb/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
6
|
+
spec.name = 'wovnrb'
|
8
7
|
spec.version = Wovnrb::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
15
|
-
|
8
|
+
spec.authors = ['Jeff Sandford', 'Antoine David']
|
9
|
+
spec.email = ['jeff@wovn.io']
|
10
|
+
spec.summary = 'Gem for WOVN.io'
|
11
|
+
spec.description = 'Ruby gem for WOVN backend on Rack.'
|
12
|
+
spec.homepage = ''
|
13
|
+
spec.license = 'MIT'
|
16
14
|
|
17
15
|
files = `git ls-files -z`.split("\x0")
|
18
16
|
files.delete('BEFORE_PUSHING')
|
19
17
|
spec.files = files
|
20
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
|
-
spec.require_paths = [
|
23
|
-
#spec.require_paths = ["lib", "ext"]
|
24
|
-
#spec.extensions = spec.files.grep(%r{/extconf\.rb$})
|
25
|
-
#spec.extensions = %w[ext/dom/extconf.rb]
|
26
|
-
#spec.extensions = spec.files.grep(%r{/extconf\.rb$})
|
20
|
+
spec.require_paths = ['lib']
|
27
21
|
|
28
|
-
spec.add_dependency
|
29
|
-
spec.add_dependency
|
30
|
-
spec.add_dependency
|
31
|
-
spec.add_dependency
|
32
|
-
spec.add_dependency
|
33
|
-
spec.add_dependency
|
22
|
+
spec.add_dependency 'activesupport'
|
23
|
+
spec.add_dependency 'addressable'
|
24
|
+
spec.add_dependency 'lz4-ruby'
|
25
|
+
spec.add_dependency 'nokogiri', '~> 1.8.1'
|
26
|
+
spec.add_dependency 'nokogumbo', '>= 1.4.0', '< 2.0.0'
|
27
|
+
spec.add_dependency 'rack'
|
34
28
|
|
35
|
-
spec.add_development_dependency
|
36
|
-
spec.add_development_dependency
|
37
|
-
spec.add_development_dependency
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
spec.add_development_dependency
|
42
|
-
spec.add_development_dependency
|
43
|
-
spec.add_development_dependency
|
44
|
-
spec.add_development_dependency
|
45
|
-
spec.add_development_dependency
|
46
|
-
spec.add_development_dependency
|
47
|
-
spec.add_development_dependency
|
48
|
-
spec.add_development_dependency
|
49
|
-
spec.add_development_dependency "pry-nav"
|
50
|
-
spec.add_development_dependency "pry-byebug"
|
51
|
-
spec.add_development_dependency "shoulda-context"
|
29
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
30
|
+
spec.add_development_dependency 'guard'
|
31
|
+
spec.add_development_dependency 'guard-rspec'
|
32
|
+
spec.add_development_dependency 'listen', '~> 3.0.6'
|
33
|
+
spec.add_development_dependency 'minitest'
|
34
|
+
spec.add_development_dependency 'mocha'
|
35
|
+
spec.add_development_dependency 'pry'
|
36
|
+
spec.add_development_dependency 'pry-nav'
|
37
|
+
spec.add_development_dependency 'pry-remote'
|
38
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
39
|
+
spec.add_development_dependency 'shoulda-context'
|
40
|
+
spec.add_development_dependency 'terminal-notifier'
|
41
|
+
spec.add_development_dependency 'test-unit'
|
42
|
+
spec.add_development_dependency 'test-unit-notify'
|
52
43
|
|
53
|
-
|
54
|
-
spec.add_development_dependency
|
55
|
-
spec.add_development_dependency
|
44
|
+
spec.add_development_dependency 'rake-compiler'
|
45
|
+
spec.add_development_dependency 'rubocop'
|
46
|
+
spec.add_development_dependency 'timecop'
|
56
47
|
|
57
48
|
# NOTE; it need to use webmock 2.3.2 for avoiding error when we use ruby 2.4.x.
|
58
49
|
# https://github.com/bblimke/webmock/issues/683
|
59
|
-
spec.add_development_dependency
|
60
|
-
spec.add_development_dependency
|
61
|
-
spec.add_development_dependency
|
50
|
+
spec.add_development_dependency 'public_suffix', '~> 1.4.6'
|
51
|
+
spec.add_development_dependency 'simplecov'
|
52
|
+
spec.add_development_dependency 'webmock', '>= 2.3.2'
|
62
53
|
end
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Sandford
|
@@ -9,44 +9,38 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
-
- - "<"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.0
|
20
|
+
version: '0'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - ">="
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
-
- - "<"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.0
|
27
|
+
version: '0'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
29
|
+
name: addressable
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
|
-
- - "
|
32
|
+
- - ">="
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
34
|
+
version: '0'
|
41
35
|
type: :runtime
|
42
36
|
prerelease: false
|
43
37
|
version_requirements: !ruby/object:Gem::Requirement
|
44
38
|
requirements:
|
45
|
-
- - "
|
39
|
+
- - ">="
|
46
40
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
41
|
+
version: '0'
|
48
42
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
43
|
+
name: lz4-ruby
|
50
44
|
requirement: !ruby/object:Gem::Requirement
|
51
45
|
requirements:
|
52
46
|
- - ">="
|
@@ -60,35 +54,41 @@ dependencies:
|
|
60
54
|
- !ruby/object:Gem::Version
|
61
55
|
version: '0'
|
62
56
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
57
|
+
name: nokogiri
|
64
58
|
requirement: !ruby/object:Gem::Requirement
|
65
59
|
requirements:
|
66
|
-
- - "
|
60
|
+
- - "~>"
|
67
61
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
62
|
+
version: 1.8.1
|
69
63
|
type: :runtime
|
70
64
|
prerelease: false
|
71
65
|
version_requirements: !ruby/object:Gem::Requirement
|
72
66
|
requirements:
|
73
|
-
- - "
|
67
|
+
- - "~>"
|
74
68
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
69
|
+
version: 1.8.1
|
76
70
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
71
|
+
name: nokogumbo
|
78
72
|
requirement: !ruby/object:Gem::Requirement
|
79
73
|
requirements:
|
80
74
|
- - ">="
|
81
75
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
76
|
+
version: 1.4.0
|
77
|
+
- - "<"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 2.0.0
|
83
80
|
type: :runtime
|
84
81
|
prerelease: false
|
85
82
|
version_requirements: !ruby/object:Gem::Requirement
|
86
83
|
requirements:
|
87
84
|
- - ">="
|
88
85
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
86
|
+
version: 1.4.0
|
87
|
+
- - "<"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.0.0
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
|
-
name:
|
91
|
+
name: rack
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
@@ -116,19 +116,33 @@ dependencies:
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '1.7'
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
|
-
name:
|
119
|
+
name: guard
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '0'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: guard-rspec
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
132
146
|
- !ruby/object:Gem::Dependency
|
133
147
|
name: listen
|
134
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,7 +158,7 @@ dependencies:
|
|
144
158
|
- !ruby/object:Gem::Version
|
145
159
|
version: 3.0.6
|
146
160
|
- !ruby/object:Gem::Dependency
|
147
|
-
name:
|
161
|
+
name: minitest
|
148
162
|
requirement: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - ">="
|
@@ -158,7 +172,7 @@ dependencies:
|
|
158
172
|
- !ruby/object:Gem::Version
|
159
173
|
version: '0'
|
160
174
|
- !ruby/object:Gem::Dependency
|
161
|
-
name:
|
175
|
+
name: mocha
|
162
176
|
requirement: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - ">="
|
@@ -172,7 +186,7 @@ dependencies:
|
|
172
186
|
- !ruby/object:Gem::Version
|
173
187
|
version: '0'
|
174
188
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
189
|
+
name: pry
|
176
190
|
requirement: !ruby/object:Gem::Requirement
|
177
191
|
requirements:
|
178
192
|
- - ">="
|
@@ -186,7 +200,7 @@ dependencies:
|
|
186
200
|
- !ruby/object:Gem::Version
|
187
201
|
version: '0'
|
188
202
|
- !ruby/object:Gem::Dependency
|
189
|
-
name:
|
203
|
+
name: pry-nav
|
190
204
|
requirement: !ruby/object:Gem::Requirement
|
191
205
|
requirements:
|
192
206
|
- - ">="
|
@@ -200,7 +214,7 @@ dependencies:
|
|
200
214
|
- !ruby/object:Gem::Version
|
201
215
|
version: '0'
|
202
216
|
- !ruby/object:Gem::Dependency
|
203
|
-
name:
|
217
|
+
name: pry-remote
|
204
218
|
requirement: !ruby/object:Gem::Requirement
|
205
219
|
requirements:
|
206
220
|
- - ">="
|
@@ -214,21 +228,21 @@ dependencies:
|
|
214
228
|
- !ruby/object:Gem::Version
|
215
229
|
version: '0'
|
216
230
|
- !ruby/object:Gem::Dependency
|
217
|
-
name:
|
231
|
+
name: rake
|
218
232
|
requirement: !ruby/object:Gem::Requirement
|
219
233
|
requirements:
|
220
|
-
- - "
|
234
|
+
- - "~>"
|
221
235
|
- !ruby/object:Gem::Version
|
222
|
-
version: '0'
|
236
|
+
version: '10.0'
|
223
237
|
type: :development
|
224
238
|
prerelease: false
|
225
239
|
version_requirements: !ruby/object:Gem::Requirement
|
226
240
|
requirements:
|
227
|
-
- - "
|
241
|
+
- - "~>"
|
228
242
|
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
243
|
+
version: '10.0'
|
230
244
|
- !ruby/object:Gem::Dependency
|
231
|
-
name:
|
245
|
+
name: shoulda-context
|
232
246
|
requirement: !ruby/object:Gem::Requirement
|
233
247
|
requirements:
|
234
248
|
- - ">="
|
@@ -242,7 +256,7 @@ dependencies:
|
|
242
256
|
- !ruby/object:Gem::Version
|
243
257
|
version: '0'
|
244
258
|
- !ruby/object:Gem::Dependency
|
245
|
-
name:
|
259
|
+
name: terminal-notifier
|
246
260
|
requirement: !ruby/object:Gem::Requirement
|
247
261
|
requirements:
|
248
262
|
- - ">="
|
@@ -256,7 +270,7 @@ dependencies:
|
|
256
270
|
- !ruby/object:Gem::Version
|
257
271
|
version: '0'
|
258
272
|
- !ruby/object:Gem::Dependency
|
259
|
-
name:
|
273
|
+
name: test-unit
|
260
274
|
requirement: !ruby/object:Gem::Requirement
|
261
275
|
requirements:
|
262
276
|
- - ">="
|
@@ -270,7 +284,7 @@ dependencies:
|
|
270
284
|
- !ruby/object:Gem::Version
|
271
285
|
version: '0'
|
272
286
|
- !ruby/object:Gem::Dependency
|
273
|
-
name:
|
287
|
+
name: test-unit-notify
|
274
288
|
requirement: !ruby/object:Gem::Requirement
|
275
289
|
requirements:
|
276
290
|
- - ">="
|
@@ -284,7 +298,7 @@ dependencies:
|
|
284
298
|
- !ruby/object:Gem::Version
|
285
299
|
version: '0'
|
286
300
|
- !ruby/object:Gem::Dependency
|
287
|
-
name:
|
301
|
+
name: rake-compiler
|
288
302
|
requirement: !ruby/object:Gem::Requirement
|
289
303
|
requirements:
|
290
304
|
- - ">="
|
@@ -298,7 +312,7 @@ dependencies:
|
|
298
312
|
- !ruby/object:Gem::Version
|
299
313
|
version: '0'
|
300
314
|
- !ruby/object:Gem::Dependency
|
301
|
-
name:
|
315
|
+
name: rubocop
|
302
316
|
requirement: !ruby/object:Gem::Requirement
|
303
317
|
requirements:
|
304
318
|
- - ">="
|
@@ -326,19 +340,19 @@ dependencies:
|
|
326
340
|
- !ruby/object:Gem::Version
|
327
341
|
version: '0'
|
328
342
|
- !ruby/object:Gem::Dependency
|
329
|
-
name:
|
343
|
+
name: public_suffix
|
330
344
|
requirement: !ruby/object:Gem::Requirement
|
331
345
|
requirements:
|
332
|
-
- - "
|
346
|
+
- - "~>"
|
333
347
|
- !ruby/object:Gem::Version
|
334
|
-
version:
|
348
|
+
version: 1.4.6
|
335
349
|
type: :development
|
336
350
|
prerelease: false
|
337
351
|
version_requirements: !ruby/object:Gem::Requirement
|
338
352
|
requirements:
|
339
|
-
- - "
|
353
|
+
- - "~>"
|
340
354
|
- !ruby/object:Gem::Version
|
341
|
-
version:
|
355
|
+
version: 1.4.6
|
342
356
|
- !ruby/object:Gem::Dependency
|
343
357
|
name: simplecov
|
344
358
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,19 +368,19 @@ dependencies:
|
|
354
368
|
- !ruby/object:Gem::Version
|
355
369
|
version: '0'
|
356
370
|
- !ruby/object:Gem::Dependency
|
357
|
-
name:
|
371
|
+
name: webmock
|
358
372
|
requirement: !ruby/object:Gem::Requirement
|
359
373
|
requirements:
|
360
|
-
- - "
|
374
|
+
- - ">="
|
361
375
|
- !ruby/object:Gem::Version
|
362
|
-
version:
|
376
|
+
version: 2.3.2
|
363
377
|
type: :development
|
364
378
|
prerelease: false
|
365
379
|
version_requirements: !ruby/object:Gem::Requirement
|
366
380
|
requirements:
|
367
|
-
- - "
|
381
|
+
- - ">="
|
368
382
|
- !ruby/object:Gem::Version
|
369
|
-
version:
|
383
|
+
version: 2.3.2
|
370
384
|
description: Ruby gem for WOVN backend on Rack.
|
371
385
|
email:
|
372
386
|
- jeff@wovn.io
|
@@ -376,116 +390,43 @@ extra_rdoc_files: []
|
|
376
390
|
files:
|
377
391
|
- ".circleci/config.yml"
|
378
392
|
- ".gitignore"
|
393
|
+
- ".rubocop.yml"
|
394
|
+
- ".rubocop_todo.yml"
|
379
395
|
- ".travis.yml"
|
380
396
|
- Gemfile
|
381
397
|
- LICENSE.txt
|
382
398
|
- PULL_REQUEST_TEMPLATE
|
383
399
|
- README.md
|
384
400
|
- Rakefile
|
385
|
-
- ext/dom/Makefile
|
386
401
|
- lib/wovnrb.rb
|
387
|
-
- lib/wovnrb/
|
402
|
+
- lib/wovnrb/api_translator.rb
|
388
403
|
- lib/wovnrb/headers.rb
|
389
404
|
- lib/wovnrb/helpers/nokogumbo_helper.rb
|
390
|
-
- lib/wovnrb/html_replacers/image_replacer.rb
|
391
|
-
- lib/wovnrb/html_replacers/input_replacer.rb
|
392
|
-
- lib/wovnrb/html_replacers/link_replacer.rb
|
393
|
-
- lib/wovnrb/html_replacers/meta_replacer.rb
|
394
|
-
- lib/wovnrb/html_replacers/replacer_base.rb
|
395
|
-
- lib/wovnrb/html_replacers/script_replacer.rb
|
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
|
403
405
|
- lib/wovnrb/lang.rb
|
404
406
|
- lib/wovnrb/railtie.rb
|
405
407
|
- lib/wovnrb/services/glob.rb
|
406
|
-
- lib/wovnrb/services/
|
407
|
-
- lib/wovnrb/services/
|
408
|
+
- lib/wovnrb/services/html_converter.rb
|
409
|
+
- lib/wovnrb/services/html_replace_marker.rb
|
408
410
|
- lib/wovnrb/services/wovn_logger.rb
|
409
411
|
- lib/wovnrb/settings.rb
|
410
412
|
- lib/wovnrb/store.rb
|
411
413
|
- lib/wovnrb/text_caches/cache_base.rb
|
412
414
|
- lib/wovnrb/text_caches/memory_cache.rb
|
413
415
|
- lib/wovnrb/version.rb
|
414
|
-
- test/fixtures/
|
415
|
-
- test/fixtures/
|
416
|
-
- test/
|
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
|
462
|
-
- test/lib/api_data_test.rb
|
416
|
+
- test/fixtures/html/test.html
|
417
|
+
- test/fixtures/html/test_translated.html
|
418
|
+
- test/lib/api_translator_test.rb
|
463
419
|
- test/lib/headers_test.rb
|
464
|
-
- test/lib/html_replacers/image_replacer_test.rb
|
465
|
-
- test/lib/html_replacers/input_replacer_test.rb
|
466
|
-
- test/lib/html_replacers/link_replacer_test.rb
|
467
|
-
- test/lib/html_replacers/meta_replacer_test.rb
|
468
|
-
- test/lib/html_replacers/replacer_base_test.rb
|
469
|
-
- test/lib/html_replacers/script_replacer_test.rb
|
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
|
477
420
|
- test/lib/lang_test.rb
|
478
421
|
- test/lib/services/glob_test.rb
|
479
|
-
- test/lib/services/
|
480
|
-
- test/lib/services/
|
422
|
+
- test/lib/services/html_converter_test.rb
|
423
|
+
- test/lib/services/html_replace_marker_test.rb
|
481
424
|
- test/lib/services/wovn_logger_test.rb
|
482
425
|
- test/lib/store_test.rb
|
483
426
|
- test/lib/text_caches/cache_base_test.rb
|
484
427
|
- test/lib/text_caches/memory_cache_test.rb
|
485
428
|
- test/lib/wovnrb_test.rb
|
486
|
-
- test/services/url_test.rb
|
487
429
|
- test/test_helper.rb
|
488
|
-
- values/values
|
489
430
|
- wovnrb.gemspec
|
490
431
|
homepage: ''
|
491
432
|
licenses:
|
@@ -512,77 +453,17 @@ signing_key:
|
|
512
453
|
specification_version: 4
|
513
454
|
summary: Gem for WOVN.io
|
514
455
|
test_files:
|
515
|
-
- test/fixtures/
|
516
|
-
- test/fixtures/
|
517
|
-
- test/
|
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
|
563
|
-
- test/lib/api_data_test.rb
|
456
|
+
- test/fixtures/html/test.html
|
457
|
+
- test/fixtures/html/test_translated.html
|
458
|
+
- test/lib/api_translator_test.rb
|
564
459
|
- test/lib/headers_test.rb
|
565
|
-
- test/lib/html_replacers/image_replacer_test.rb
|
566
|
-
- test/lib/html_replacers/input_replacer_test.rb
|
567
|
-
- test/lib/html_replacers/link_replacer_test.rb
|
568
|
-
- test/lib/html_replacers/meta_replacer_test.rb
|
569
|
-
- test/lib/html_replacers/replacer_base_test.rb
|
570
|
-
- test/lib/html_replacers/script_replacer_test.rb
|
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
|
578
460
|
- test/lib/lang_test.rb
|
579
461
|
- test/lib/services/glob_test.rb
|
580
|
-
- test/lib/services/
|
581
|
-
- test/lib/services/
|
462
|
+
- test/lib/services/html_converter_test.rb
|
463
|
+
- test/lib/services/html_replace_marker_test.rb
|
582
464
|
- test/lib/services/wovn_logger_test.rb
|
583
465
|
- test/lib/store_test.rb
|
584
466
|
- test/lib/text_caches/cache_base_test.rb
|
585
467
|
- test/lib/text_caches/memory_cache_test.rb
|
586
468
|
- test/lib/wovnrb_test.rb
|
587
|
-
- test/services/url_test.rb
|
588
469
|
- test/test_helper.rb
|