fast-xml 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fastxml.rb ADDED
@@ -0,0 +1,59 @@
1
+ require 'fastxml/version'
2
+ require 'fastxml/error'
3
+ require 'fastxml/fastxml'
4
+
5
+ module FastXML
6
+ class << self
7
+ attr_accessor :output,
8
+ :method,
9
+ :root,
10
+ :version,
11
+ :encoding,
12
+ :utf8,
13
+ :indent,
14
+ :canonical,
15
+ :use_attr,
16
+ :content,
17
+ :xml_decl,
18
+ :keep_root,
19
+ :doc,
20
+ :force_array,
21
+ :force_content,
22
+ :merge_text,
23
+ :attr,
24
+ :text,
25
+ :trim,
26
+ :cdata,
27
+ :comm,
28
+ :max_depth,
29
+ :buf_size
30
+ end
31
+
32
+ def self.configure
33
+ yield(self)
34
+ end
35
+
36
+ @output = nil
37
+ @method = 'NATIVE'
38
+ @root = 'root'
39
+ @version = '1.0'
40
+ @encoding = ''
41
+ @utf8 = true
42
+ @indent = 0
43
+ @canonical = false
44
+ @use_attr = false
45
+ @content = ''
46
+ @xml_decl = true
47
+ @keep_root = false
48
+ @doc = false
49
+ @force_array = nil
50
+ @force_content = false
51
+ @merge_text = false
52
+ @attr = '-'
53
+ @text = '#text'
54
+ @trim = false
55
+ @cdata = ''
56
+ @comm = ''
57
+ @max_depth = 1024
58
+ @buf_size = 4096
59
+ end
@@ -0,0 +1,7 @@
1
+ module FastXML
2
+ class Error < StandardError; end
3
+
4
+ class ParseError < Error; end
5
+
6
+ class ArgError < Error; end
7
+ end
@@ -0,0 +1,3 @@
1
+ module FastXML
2
+ VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fast-xml
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Yuriy Ustushenko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake-compiler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description: Fast Ruby Hash to XML and XML to Ruby Hash converter written in pure
70
+ C
71
+ email:
72
+ - yoreek@yahoo.com
73
+ executables: []
74
+ extensions:
75
+ - ext/fastxml/extconf.rb
76
+ extra_rdoc_files: []
77
+ files:
78
+ - LICENSE
79
+ - README.md
80
+ - ext/fastxml/extconf.rb
81
+ - ext/fastxml/fastxml.c
82
+ - ext/fastxml/fastxml.h
83
+ - ext/fastxml/xh.c
84
+ - ext/fastxml/xh.h
85
+ - ext/fastxml/xh_buffer.c
86
+ - ext/fastxml/xh_buffer.h
87
+ - ext/fastxml/xh_buffer_helper.h
88
+ - ext/fastxml/xh_config.h
89
+ - ext/fastxml/xh_core.h
90
+ - ext/fastxml/xh_encoder.c
91
+ - ext/fastxml/xh_encoder.h
92
+ - ext/fastxml/xh_h2x.c
93
+ - ext/fastxml/xh_h2x.h
94
+ - ext/fastxml/xh_h2x_native.c
95
+ - ext/fastxml/xh_h2x_native_attr.c
96
+ - ext/fastxml/xh_log.c
97
+ - ext/fastxml/xh_log.h
98
+ - ext/fastxml/xh_param.c
99
+ - ext/fastxml/xh_param.h
100
+ - ext/fastxml/xh_ruby_buffer.c
101
+ - ext/fastxml/xh_ruby_buffer.h
102
+ - ext/fastxml/xh_sort.c
103
+ - ext/fastxml/xh_sort.h
104
+ - ext/fastxml/xh_stack.c
105
+ - ext/fastxml/xh_stack.h
106
+ - ext/fastxml/xh_string.h
107
+ - ext/fastxml/xh_writer.c
108
+ - ext/fastxml/xh_writer.h
109
+ - ext/fastxml/xh_xml.h
110
+ - lib/fastxml.rb
111
+ - lib/fastxml/error.rb
112
+ - lib/fastxml/version.rb
113
+ homepage: https://github.com/yoreek/fastxml
114
+ licenses:
115
+ - MIT
116
+ metadata:
117
+ allowed_push_host: https://rubygems.org
118
+ post_install_message:
119
+ rdoc_options: []
120
+ require_paths:
121
+ - lib
122
+ - ext
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 2.2.3
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.5.2
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Fast Ruby Hash to XML and XML to Ruby Hash converter
139
+ test_files: []