multisax 0.0.4 → 0.0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/LICENSE.txt +1 -10
- data/README.md +1 -1
- data/lib/multisax.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7611e8d5521d4f19bdf5274033a09d60e8d271e0
|
4
|
+
data.tar.gz: bcb18b8567d73dc8983b1074bfba49e67accbbb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ab464a8c60c52dde5f989e6f89e09dd23ad1edc036748985b3edf189da6ea00e7d17a7da491a8d9f71e270815f3d0e9dca48655168ea67e6c4bf57b56cf5fa0
|
7
|
+
data.tar.gz: 5b8038852bc1f40975c9b33114f92ca56101716da0092c05ed59cbd120c2807951a8fa400a2101816d65e06f975c83d93ea182b89c00ec76be6ac0df7fec000b
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
@@ -20,19 +20,10 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
20
20
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
21
21
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
22
22
|
|
23
|
-
- A part of Nokogiri source code is cited to convert Nokogiri::XML::SAX::Document into module.
|
24
|
-
|
25
|
-
- Copyright © 2008 - 2012: Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo, Patrick Mahoney, Yoko Harada
|
26
|
-
|
27
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
28
|
-
|
29
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
30
|
-
|
31
|
-
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
32
|
-
|
33
23
|
Note: MultiSAX shouldn't load any copyleft libraries.
|
34
24
|
|
35
25
|
- Ruby (REXML): 2-clause BSD License (or Artistic License)
|
36
26
|
- Nokogiri: MIT License
|
37
27
|
- libxml-ruby: MIT License
|
38
28
|
- Ox: 3-clause BSD License
|
29
|
+
- xmlparser: MIT License
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ A module which allows multiple SAX library transparently.
|
|
32
32
|
* gem install xmlparser
|
33
33
|
* to treat cdata, I recommend expat 2.x.
|
34
34
|
* For example, OSX MacPorts users should:
|
35
|
-
* gem install xmlparser --with-expat-include=/opt/local/include --with-expat-lib=/opt/local/lib
|
35
|
+
* gem install xmlparser -- --with-expat-include=/opt/local/include --with-expat-lib=/opt/local/lib
|
36
36
|
|
37
37
|
## Usage
|
38
38
|
* Please check spec/multisax.spec as an example.
|
data/lib/multisax.rb
CHANGED
@@ -8,14 +8,14 @@
|
|
8
8
|
|
9
9
|
module MultiSAX
|
10
10
|
# VERSION string
|
11
|
-
VERSION='0.0.4'
|
11
|
+
VERSION='0.0.4.1'
|
12
12
|
|
13
13
|
# The class to handle XML libraries.
|
14
14
|
class SAX
|
15
|
-
# constructor
|
16
|
-
|
15
|
+
# constructor.
|
16
|
+
# list cannot be passed directly, since you should the retval of open().
|
17
|
+
def initialize
|
17
18
|
@parser=nil
|
18
|
-
open(*list)
|
19
19
|
end
|
20
20
|
# Library loader.
|
21
21
|
# Arguments are list (or Array) of libraries.
|