lazy-sax-machine 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e029e750c2e7bb91432c6408e903d571d867857
4
- data.tar.gz: bdb35f8d313e90d57509b289c7c2de94542ade0b
3
+ metadata.gz: 3fbffa255bf3c72d2fb2ac3add484000c7268aeb
4
+ data.tar.gz: ddddbb105cc38b7c4f5f5736676e20c5fb7a1ef8
5
5
  SHA512:
6
- metadata.gz: 60aa0a0743af32344bc7bb615f02193110b4d1b2a5e9384abf1db55db16b542c41e89e2c10041ed1d05e6d9d59508ac252791ecbd06235742161aa28334e4eb6
7
- data.tar.gz: 2a515f10565329f62661b2a028d825b6a6ec187ca2400caf405104367e083ecf8b0abf5ae2a25c8e23056ada14245602b0d8c7b6873b578678954ad38077c5e6
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 is Lazy version of [SAXMachine](https://github.com/pauldix/sax-machine) which lets you parse huge XML files (by streaming the objects one at a time as the XML file is parsed, instead of loading the whole thing into memory and crashing your machine.)
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, then `nokogiri`.)
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.0
1
+ 0.1.1
@@ -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 (hueg) XML documents into Ruby objects with a nifty declarative language!"
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
@@ -7,6 +7,7 @@ module SAXMachine
7
7
  def initialize(name, options)
8
8
  @name = name.to_s
9
9
  @as = options[:as]
10
+ @class = options[:class]
10
11
  @setter = "#{@as}="
11
12
  @required = options[:required]
12
13
  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.0
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-03-04 00:00:00.000000000 Z
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
- description: Parse (hueg) XML documents into Ruby objects with a nifty declarative
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