Skip to content

Commit eb5e9a2

Browse files
committed
Add oga to the documentation
1 parent 357a05f commit eb5e9a2

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Description
1212

13-
A declarative SAX parsing library backed by Nokogiri or Ox.
13+
A declarative SAX parsing library backed by Nokogiri, Ox or Oga.
1414

1515
## Installation
1616

@@ -28,7 +28,7 @@ $ bundle
2828

2929
## Usage
3030

31-
SAX Machine can use either `nokogiri` or `ox` as XML SAX handler.
31+
SAX Machine can use either `nokogiri`, `ox` or `oga` as XML SAX handler.
3232

3333
To use **Nokogiri** add this line to your Gemfile:
3434

@@ -42,6 +42,12 @@ To use **Ox** add this line to your Gemfile:
4242
gem 'ox', '>= 2.1.2'
4343
```
4444

45+
To use **Oga** add this line to your Gemfile:
46+
47+
```ruby
48+
gem 'oga', '>= 0.2.0'
49+
```
50+
4551
You can also specify which handler to use manually, like this:
4652

4753
```ruby
@@ -152,8 +158,8 @@ end
152158
```
153159

154160
If more than one of these elements exists in the source, the value from the *last one* is used. The order of
155-
the `element` declarations in the code is unimportant. The order they are encountered while parsing the
156-
document determines the value assigned to the alias.
161+
the `element` declarations in the code is unimportant. The order they are encountered while parsing the
162+
document determines the value assigned to the alias.
157163

158164
If an element is defined in the source but is blank (e.g., `<pubDate></pubDate>`), it is ignored, and non-empty one is picked.
159165

sax-machine.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
88
s.authors = ["Paul Dix", "Julien Kirch", "Ezekiel Templin", "Dmitry Krasnoukhov"]
99
s.email = %q{[email protected]}
1010
s.homepage = %q{http://github.com/pauldix/sax-machine}
11-
s.summary = %q{Declarative SAX Parsing with Nokogiri or Ox}
11+
s.summary = %q{Declarative SAX Parsing with Nokogiri, Ox or Oga}
1212
s.license = %q{MIT}
1313

1414
s.files = `git ls-files`.split("\n")

0 commit comments

Comments
 (0)