lazy-sax-machine 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/VERSION +1 -1
- data/lazy-sax-machine.gemspec +2 -1
- data/lib/lazy-sax-machine/sax_attribute_config.rb +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fbffa255bf3c72d2fb2ac3add484000c7268aeb
|
4
|
+
data.tar.gz: ddddbb105cc38b7c4f5f5736676e20c5fb7a1ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 548d04c741e9dbfd3132a1d99447f9e1401befb99cbd9aac75ab5f16bfbeb61b2947ecb2442c293656fafbc691ebc7ad053f8ab2606bc4f3204a70172ad8b1bf
|
7
|
+
data.tar.gz: 0dc88452420b2627e22d15bf721fcec1f9e645c33291946921128ece0bd97e2462faf7eacd19a9839c0fa60c30bffb210a380f74bd5facac6fa7f8a10653d11e
|
data/README.md
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
Tired of writing parsers for XML files? Now you can parse XML into Ruby objects with ease! SAXMachine provides a simple declarative language for describing how to convert XML into Ruby objects.
|
6
6
|
|
7
|
-
This
|
7
|
+
This library can parse __gigantic__ XML files without blowing up your computer. (Unlike the original [SAXMachine](https://github.com/pauldix/sax-machine) gem.)
|
8
|
+
|
9
|
+
As long as you declare the root object as "lazy", the parser will parse the XML file as a stream and return an enumerable, which allows you to pluck one object out of the XML file at a time, storing as little of the XML file in memory as possible.
|
8
10
|
|
9
11
|
## Installation
|
10
12
|
|
@@ -23,7 +25,7 @@ $ bundle
|
|
23
25
|
|
24
26
|
## Usage
|
25
27
|
|
26
|
-
SAX Machine currently only supports `nokogiri`, but eventually it will try to find the best XML library automatically. (First looking for `ox`, then `oga
|
28
|
+
SAX Machine currently only supports `nokogiri`, but eventually it will try to find the best XML library automatically. (First looking for `ox`, then `oga`, then `nokogiri`.)
|
27
29
|
|
28
30
|
|
29
31
|
## Examples
|
@@ -194,8 +196,9 @@ Copyright (c) 2009-2015:
|
|
194
196
|
|
195
197
|
* [Paul Dix](http://www.pauldix.net)
|
196
198
|
* [Julien Kirch](http://www.archiloque.net)
|
197
|
-
* [Ezekiel Templin](http://zeke.templ.in)
|
198
199
|
* [Dmitry Krasnoukhov](http://krasnoukhov.com)
|
200
|
+
* [Ezekiel Templin](http://zeke.templ.in)
|
201
|
+
* [Greg Weber](http://blog.gregweber.info/)
|
199
202
|
* [Chris Gahan](http://github.com/epitron)
|
200
203
|
|
201
204
|
Permission is hereby granted, free of charge, to any person obtaining
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lazy-sax-machine.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
]
|
16
16
|
s.authors, s.email = authors.transpose
|
17
17
|
|
18
|
-
s.description = "Parse (
|
18
|
+
s.description = "Parse (huge) XML documents into Ruby objects with a nifty declarative language!"
|
19
19
|
s.summary = "Tired of writing parsers for XML files? Now you can parse XML into Ruby objects with ease! SAXMachine provides a simple declarative language for describing how to convert XML into Ruby objects."
|
20
20
|
s.homepage = "https://github.com/epitron/lazy-sax-machine"
|
21
21
|
s.licenses = ["MIT"]
|
@@ -26,4 +26,5 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.require_paths = ["lib"]
|
27
27
|
|
28
28
|
s.add_dependency("nokogiri", "> 1.4")
|
29
|
+
s.add_development_dependency("rspec", "> 2.4")
|
29
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazy-sax-machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dix
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-05-31 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nokogiri
|
@@ -27,7 +27,21 @@ dependencies:
|
|
27
27
|
- - ">"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '1.4'
|
30
|
-
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2.4'
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.4'
|
44
|
+
description: Parse (huge) XML documents into Ruby objects with a nifty declarative
|
31
45
|
language!
|
32
46
|
email:
|
33
47
|
- paul@pauldix.net
|