oga 0.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +13 -0
  3. data/LICENSE +19 -0
  4. data/README.md +179 -0
  5. data/doc/DCO.md +25 -0
  6. data/doc/changelog.md +20 -0
  7. data/doc/css/common.css +76 -0
  8. data/doc/migrating_from_nokogiri.md +169 -0
  9. data/ext/c/extconf.rb +13 -0
  10. data/ext/c/lexer.c +1518 -0
  11. data/ext/c/lexer.h +8 -0
  12. data/ext/c/lexer.rl +121 -0
  13. data/ext/c/liboga.c +6 -0
  14. data/ext/c/liboga.h +11 -0
  15. data/ext/java/Liboga.java +14 -0
  16. data/ext/java/org/liboga/xml/Lexer.java +829 -0
  17. data/ext/java/org/liboga/xml/Lexer.rl +151 -0
  18. data/ext/ragel/base_lexer.rl +323 -0
  19. data/lib/liboga.jar +0 -0
  20. data/lib/oga.rb +43 -0
  21. data/lib/oga/html/parser.rb +25 -0
  22. data/lib/oga/oga.rb +27 -0
  23. data/lib/oga/version.rb +3 -0
  24. data/lib/oga/xml/attribute.rb +111 -0
  25. data/lib/oga/xml/cdata.rb +17 -0
  26. data/lib/oga/xml/character_node.rb +39 -0
  27. data/lib/oga/xml/comment.rb +17 -0
  28. data/lib/oga/xml/doctype.rb +84 -0
  29. data/lib/oga/xml/document.rb +99 -0
  30. data/lib/oga/xml/element.rb +331 -0
  31. data/lib/oga/xml/lexer.rb +399 -0
  32. data/lib/oga/xml/namespace.rb +42 -0
  33. data/lib/oga/xml/node.rb +168 -0
  34. data/lib/oga/xml/node_set.rb +313 -0
  35. data/lib/oga/xml/parser.rb +556 -0
  36. data/lib/oga/xml/processing_instruction.rb +39 -0
  37. data/lib/oga/xml/pull_parser.rb +180 -0
  38. data/lib/oga/xml/querying.rb +32 -0
  39. data/lib/oga/xml/text.rb +11 -0
  40. data/lib/oga/xml/traversal.rb +48 -0
  41. data/lib/oga/xml/xml_declaration.rb +69 -0
  42. data/lib/oga/xpath/evaluator.rb +1748 -0
  43. data/lib/oga/xpath/lexer.rb +2043 -0
  44. data/lib/oga/xpath/node.rb +10 -0
  45. data/lib/oga/xpath/parser.rb +537 -0
  46. data/oga.gemspec +45 -0
  47. metadata +221 -0
data/oga.gemspec ADDED
@@ -0,0 +1,45 @@
1
+ require File.expand_path('../lib/oga/version', __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'oga'
5
+ s.version = Oga::VERSION
6
+ s.authors = ['Yorick Peterse']
7
+ s.email = 'yorickpeterse@gmail.com'
8
+ s.summary = 'Oga is an XML/HTML parser written in Ruby.'
9
+ s.homepage = 'https://github.com/yorickpeterse/oga/'
10
+ s.description = s.summary
11
+ s.license = 'MIT'
12
+
13
+ s.files = Dir.glob([
14
+ 'checkum/**/*',
15
+ 'doc/**/*',
16
+ 'lib/**/*.rb',
17
+ 'ext/**/*',
18
+ 'README.md',
19
+ 'LICENSE',
20
+ 'oga.gemspec',
21
+ '.yardopts'
22
+ ]).select { |path| File.file?(path) }
23
+
24
+ if RUBY_PLATFORM == 'java'
25
+ s.files << 'lib/liboga.jar'
26
+
27
+ s.platform = 'java'
28
+ else
29
+ s.extensions = ['ext/c/extconf.rb']
30
+ end
31
+
32
+ s.has_rdoc = 'yard'
33
+ s.required_ruby_version = '>= 1.9.3'
34
+
35
+ s.add_dependency 'racc', ['~> 1.4', '>= 1.4.12']
36
+ s.add_dependency 'ast'
37
+
38
+ s.add_development_dependency 'rake'
39
+ s.add_development_dependency 'rspec', ['~> 3.0']
40
+ s.add_development_dependency 'yard'
41
+ s.add_development_dependency 'simplecov'
42
+ s.add_development_dependency 'kramdown'
43
+ s.add_development_dependency 'benchmark-ips', ['~> 2.0']
44
+ s.add_development_dependency 'rake-compiler'
45
+ end
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oga
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: java
6
+ authors:
7
+ - Yorick Peterse
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: racc
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ - - '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 1.4.12
23
+ requirement: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: '1.4'
28
+ - - '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 1.4.12
31
+ prerelease: false
32
+ type: :runtime
33
+ - !ruby/object:Gem::Dependency
34
+ name: ast
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ prerelease: false
46
+ type: :runtime
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ prerelease: false
60
+ type: :development
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: '3.0'
68
+ requirement: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ version: '3.0'
73
+ prerelease: false
74
+ type: :development
75
+ - !ruby/object:Gem::Dependency
76
+ name: yard
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ prerelease: false
88
+ type: :development
89
+ - !ruby/object:Gem::Dependency
90
+ name: simplecov
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ prerelease: false
102
+ type: :development
103
+ - !ruby/object:Gem::Dependency
104
+ name: kramdown
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ prerelease: false
116
+ type: :development
117
+ - !ruby/object:Gem::Dependency
118
+ name: benchmark-ips
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ~>
122
+ - !ruby/object:Gem::Version
123
+ version: '2.0'
124
+ requirement: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ~>
127
+ - !ruby/object:Gem::Version
128
+ version: '2.0'
129
+ prerelease: false
130
+ type: :development
131
+ - !ruby/object:Gem::Dependency
132
+ name: rake-compiler
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirement: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ prerelease: false
144
+ type: :development
145
+ description: Oga is an XML/HTML parser written in Ruby.
146
+ email: yorickpeterse@gmail.com
147
+ executables: []
148
+ extensions: []
149
+ extra_rdoc_files: []
150
+ files:
151
+ - doc/changelog.md
152
+ - doc/migrating_from_nokogiri.md
153
+ - doc/DCO.md
154
+ - doc/css/common.css
155
+ - lib/oga.rb
156
+ - lib/oga/version.rb
157
+ - lib/oga/oga.rb
158
+ - lib/oga/xml/namespace.rb
159
+ - lib/oga/xml/lexer.rb
160
+ - lib/oga/xml/querying.rb
161
+ - lib/oga/xml/parser.rb
162
+ - lib/oga/xml/traversal.rb
163
+ - lib/oga/xml/text.rb
164
+ - lib/oga/xml/node.rb
165
+ - lib/oga/xml/document.rb
166
+ - lib/oga/xml/pull_parser.rb
167
+ - lib/oga/xml/node_set.rb
168
+ - lib/oga/xml/cdata.rb
169
+ - lib/oga/xml/element.rb
170
+ - lib/oga/xml/character_node.rb
171
+ - lib/oga/xml/doctype.rb
172
+ - lib/oga/xml/attribute.rb
173
+ - lib/oga/xml/xml_declaration.rb
174
+ - lib/oga/xml/processing_instruction.rb
175
+ - lib/oga/xml/comment.rb
176
+ - lib/oga/html/parser.rb
177
+ - lib/oga/xpath/lexer.rb
178
+ - lib/oga/xpath/parser.rb
179
+ - lib/oga/xpath/node.rb
180
+ - lib/oga/xpath/evaluator.rb
181
+ - ext/ragel/base_lexer.rl
182
+ - ext/java/Liboga.java
183
+ - ext/java/org/liboga/xml/Lexer.java
184
+ - ext/java/org/liboga/xml/Lexer.rl
185
+ - ext/c/extconf.rb
186
+ - ext/c/lexer.rl
187
+ - ext/c/lexer.h
188
+ - ext/c/liboga.c
189
+ - ext/c/lexer.c
190
+ - ext/c/liboga.h
191
+ - README.md
192
+ - LICENSE
193
+ - oga.gemspec
194
+ - .yardopts
195
+ - lib/liboga.jar
196
+ homepage: https://github.com/yorickpeterse/oga/
197
+ licenses:
198
+ - MIT
199
+ metadata: {}
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '>='
207
+ - !ruby/object:Gem::Version
208
+ version: 1.9.3
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ requirements: []
215
+ rubyforge_project:
216
+ rubygems_version: 2.1.9
217
+ signing_key:
218
+ specification_version: 4
219
+ summary: Oga is an XML/HTML parser written in Ruby.
220
+ test_files: []
221
+ has_rdoc: yard