moxml 0.5.177 → 0.6.0

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/nightly-fuzz.yml +0 -14
  3. data/.github/workflows/performance-release.yml +0 -13
  4. data/.github/workflows/performance.yml +0 -17
  5. data/.github/workflows/rake.yml +0 -38
  6. data/.github/workflows/round-trip.yml +0 -45
  7. data/.github/workflows/windows.yml +0 -12
  8. data/Gemfile +4 -14
  9. data/README.adoc +5 -388
  10. data/Rakefile +2 -179
  11. data/docs/_references/processing-model.adoc +3 -2
  12. data/lib/moxml/adapter/customized_oga.rb +6 -4
  13. data/lib/moxml/adapter/customized_rexml.rb +5 -3
  14. data/lib/moxml/adapter/headed_ox.rb +0 -2
  15. data/lib/moxml/adapter/leptris.rb +43 -7
  16. data/lib/moxml/adapter/libxml.rb +0 -2
  17. data/lib/moxml/adapter/nokogiri.rb +0 -2
  18. data/lib/moxml/adapter/ox.rb +0 -2
  19. data/lib/moxml/adapter/rexml.rb +1 -3
  20. data/lib/moxml/adapter.rb +1 -6
  21. data/lib/moxml/config.rb +0 -17
  22. data/lib/moxml/entity_registry.rb +1 -5
  23. data/lib/moxml/native_attachment.rb +1 -3
  24. data/lib/moxml/version.rb +1 -1
  25. data/lib/moxml.rb +1 -2
  26. data/spec/moxml/adapter/platform_spec.rb +2 -47
  27. data/spec/moxml/adapter_capabilities_spec.rb +25 -0
  28. data/spec/moxml/native_attachment_spec.rb +4 -50
  29. data/spec/moxml/signature/edge_cases_spec.rb +0 -1
  30. data/spec/spec_helper.rb +13 -31
  31. metadata +2 -22
  32. data/.github/workflows/opal.yml +0 -61
  33. data/.gitmodules +0 -6
  34. data/lib/compat/opal/moxml_boot.rb +0 -68
  35. data/lib/compat/opal/rexml/namespace.rb +0 -59
  36. data/lib/compat/opal/rexml/parsers/baseparser.rb +0 -1016
  37. data/lib/compat/opal/rexml/source.rb +0 -214
  38. data/lib/compat/opal/rexml/text.rb +0 -426
  39. data/lib/compat/opal/rexml/xmltokens.rb +0 -45
  40. data/lib/compat/opal/rexml_compat.rb +0 -77
  41. data/lib/moxml/entity_registry_opal_data.rb +0 -2138
  42. data/lib/moxml/native_attachment/opal.rb +0 -38
  43. data/spec/moxml/native_attachment/opal_spec.rb +0 -66
  44. data/spec/moxml/opal_oga_adapter_spec.rb +0 -20
  45. data/spec/moxml/opal_oga_features_spec.rb +0 -212
  46. data/spec/moxml/opal_oga_smoke_spec.rb +0 -35
  47. data/spec/moxml/opal_rexml_adapter_spec.rb +0 -14
  48. data/spec/moxml/opal_smoke_spec.rb +0 -61
  49. data/spec/moxml/reference_opal_spec.rb +0 -29
  50. data/spec/moxml/signature_autoload_spec.rb +0 -52
  51. data/spec/support/opal.rb +0 -16
@@ -1,77 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # backtick_javascript: true
4
-
5
- require "corelib/array/pack"
6
-
7
- unless defined?(StringScanner::Version)
8
- class StringScanner
9
- Version = "3.0.8"
10
- end
11
- end
12
-
13
- unless String.method_defined?(:force_encoding)
14
- class String
15
- def force_encoding(*)
16
- self
17
- end
18
- end
19
- end
20
-
21
- unless defined?(Encoding)
22
- module ::Encoding
23
- UTF_8 = "UTF-8"
24
- ASCII_8BIT = "ASCII-8BIT"
25
- end
26
- end
27
-
28
- unless String.method_defined?(:encode)
29
- class String
30
- def encode(*)
31
- self
32
- end
33
- end
34
- end
35
-
36
- # Opal defines mutable String methods as raising NotImplementedError.
37
- # Override with functional equivalents that return new strings.
38
- class String
39
- def <<(str)
40
- `return self + #{str}.to_s`
41
- end
42
-
43
- def chomp!(sep = nil)
44
- `
45
- var r = #{chomp(sep)};
46
- return r === self ? nil : r;
47
- `
48
- end
49
-
50
- def gsub!(pattern, replacement, &block)
51
- `
52
- var r = #{gsub(pattern, replacement, &block)};
53
- return r === self ? nil : r;
54
- `
55
- end
56
-
57
- def squeeze!(*sets)
58
- `
59
- var r = #{squeeze(*sets)};
60
- return r === self ? nil : r;
61
- `
62
- end
63
-
64
- def strip!
65
- `
66
- var r = #{strip};
67
- return r === self ? nil : r;
68
- `
69
- end
70
- end
71
-
72
- class StringIO
73
- def <<(str)
74
- write(str)
75
- self
76
- end
77
- end