objectify-xml 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -0
- data/Manifest.txt +16 -0
- data/README.txt +120 -0
- data/Rakefile +15 -0
- data/lib/objectify_xml.rb +104 -0
- data/lib/objectify_xml/atom.rb +60 -0
- data/lib/objectify_xml/document_parser.rb +70 -0
- data/lib/objectify_xml/dsl.rb +156 -0
- data/lib/objectify_xml/element_parser.rb +18 -0
- data/spec/atom_spec.rb +63 -0
- data/spec/document_parser_spec.rb +156 -0
- data/spec/dsl_spec.rb +164 -0
- data/spec/element_parser_spec.rb +38 -0
- data/spec/objectify_xml_spec.rb +81 -0
- data/spec/sample/wikipedia.atom +3793 -0
- data/spec/spec_helper.rb +13 -0
- metadata +101 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/objectify_xml'))
|
3
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/objectify_xml/atom'))
|
4
|
+
require 'spec'
|
5
|
+
require 'mocha'
|
6
|
+
|
7
|
+
def sample_feed(name)
|
8
|
+
open(File.join(File.dirname(__FILE__), File.join('sample', name)))
|
9
|
+
end
|
10
|
+
|
11
|
+
Spec::Runner.configure do |config|
|
12
|
+
config.mock_with :mocha
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: objectify-xml
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- pangloss
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-02-26 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: nokogiri
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: hoe
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.8.3
|
44
|
+
version:
|
45
|
+
description: Provides an easy to use DSL resembling ActiveRecord for defining objects representing any XML document, including deeply nested ones. This project was extracted from my ruby-picasa gem. You can find ruby-picasa at http://github.com/pangloss/ruby_picasa or available as a gem. The project also has significant (if not complete) Atom support.
|
46
|
+
email:
|
47
|
+
- darrick@innatesoftware.com
|
48
|
+
executables: []
|
49
|
+
|
50
|
+
extensions: []
|
51
|
+
|
52
|
+
extra_rdoc_files:
|
53
|
+
- History.txt
|
54
|
+
- Manifest.txt
|
55
|
+
- README.txt
|
56
|
+
files:
|
57
|
+
- History.txt
|
58
|
+
- Manifest.txt
|
59
|
+
- README.txt
|
60
|
+
- Rakefile
|
61
|
+
- lib/objectify_xml.rb
|
62
|
+
- lib/objectify_xml/atom.rb
|
63
|
+
- lib/objectify_xml/document_parser.rb
|
64
|
+
- lib/objectify_xml/dsl.rb
|
65
|
+
- lib/objectify_xml/element_parser.rb
|
66
|
+
- spec/spec_helper.rb
|
67
|
+
- spec/atom_spec.rb
|
68
|
+
- spec/document_parser_spec.rb
|
69
|
+
- spec/dsl_spec.rb
|
70
|
+
- spec/element_parser_spec.rb
|
71
|
+
- spec/objectify_xml_spec.rb
|
72
|
+
- spec/sample/wikipedia.atom
|
73
|
+
has_rdoc: true
|
74
|
+
homepage: http://github.com/pangloss/objectify_xml
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options:
|
77
|
+
- --main
|
78
|
+
- README.txt
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: "0"
|
86
|
+
version:
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: "0"
|
92
|
+
version:
|
93
|
+
requirements: []
|
94
|
+
|
95
|
+
rubyforge_project: objectify-xml
|
96
|
+
rubygems_version: 1.3.1
|
97
|
+
signing_key:
|
98
|
+
specification_version: 2
|
99
|
+
summary: Provides an easy to use DSL resembling ActiveRecord for defining objects representing any XML document, including deeply nested ones
|
100
|
+
test_files: []
|
101
|
+
|