rubyjedi-oga 1.0.3

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