xml-object 0.9.91 → 0.9.92

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,24 +7,28 @@ convenient, by providing a syntax that fits well in most Ruby programs.
7
7
 
8
8
  == Dependencies
9
9
 
10
- None outside of Ruby, though some optional gems add additional features. See
11
- more below.
10
+ None outside of Ruby, though some optional gems add additional features and
11
+ speedups. See more below.
12
12
 
13
- At the moment, I aim for compatibility with Ruby 1.8, 1.9, and JRuby 1.1.
13
+ == Compatibility
14
14
 
15
- == Installation instructions
15
+ I've tested this release under:
16
16
 
17
- From Rubyforge's gem server:
17
+ ruby 1.9.1
18
+ ruby 1.8.7
19
+ ruby 1.8.6
20
+ JRuby 1.4.0RC3 (REXML only)
18
21
 
19
- gem install xml-object
22
+ And with the following optionals:
20
23
 
21
- Or from Github's gem server:
24
+ version 1.1.3 of libxml-ruby (for faster execution)
25
+ version 2.3.4 of activesupport (for inflected plurals)
22
26
 
23
- gem install jordi-xml-object --source http://gems.github.com
27
+ == Installation instructions
24
28
 
25
- Both are the same, and are loaded the same way:
29
+ From Gemcutter's gem server (soon to be the new Rubyforge):
26
30
 
27
- require 'xml-object'
31
+ gem install xml-object --source http://gemcutter.org
28
32
 
29
33
  == Example usage
30
34
 
@@ -132,9 +136,8 @@ With the same file as in the example above:
132
136
  student.courses.first == student.course.first => true
133
137
 
134
138
  Note that the pluralization algorithm is just tacking an 's' at the end of
135
- the singular, unless +ActiveSupport+ is installed, in which case you get
136
- proper plurals, as well as the ability to teach the +Inflector+ about
137
- new ones.
139
+ the singular, unless +ActiveSupport+ is required, in which case you get
140
+ inflected plurals.
138
141
 
139
142
  === Collection proxy
140
143
 
data/WHATSNEW CHANGED
@@ -1,4 +1,16 @@
1
- * 0.9.91 (????-??-??):
1
+ * 0.9.92 (2009-10-29):
2
+ - Tested under 1.9.1, 1.8.7, 1.8.6, and JRuby 1.4.0RC3
3
+ - [API CHANGE!] No longer requires rubygems (ooops)
4
+ - [API CHANGE!] No longer attempts to require 'activesupport', you must
5
+ do it yourself to use inflections and such.
6
+ - [API CHANGE!] Removed 'jordi-xml-object' since Github gem serving is
7
+ going away, you must require 'xml-object' now.
8
+ - Added VERSION constant
9
+ - Changing gemspec to take advantage Gemcutter workflow
10
+ - Better global namespace hygiene
11
+ - Back to using Test::Unit (ze tools, ze tools, le sigh)
12
+
13
+ * 0.9.91 (2009-06-23):
2
14
  - Fixes a bug where consecutive collection proxies confused XMLObject
3
15
  mid-parsing (Thanks to Josef Spillner)
4
16
  - Dropped the Hpricot support. Not worth it, API changes too often, and
@@ -1,13 +1,9 @@
1
- begin; require 'rubygems'; rescue Exception, StandardError; nil; end
2
- begin; require 'activesupport'; rescue Exception, StandardError; nil; end
3
-
4
- $:.unshift File.join(File.dirname(__FILE__), 'xml-object')
5
-
6
- require 'adapters'
7
- require 'adapters/rexml'
8
- require 'properties'
9
- require 'collection_proxy'
10
- require 'element'
1
+ require 'xml-object/version'
2
+ require 'xml-object/adapters'
3
+ require 'xml-object/adapters/rexml'
4
+ require 'xml-object/properties'
5
+ require 'xml-object/collection_proxy'
6
+ require 'xml-object/element'
11
7
 
12
8
  module XMLObject
13
9
  # Returns a String or Array object representing the given XML, decorated
@@ -1,5 +1,4 @@
1
1
  module XMLObject # :nodoc:
2
-
3
2
  class << self # :nodoc:
4
3
  attr_accessor :adapter # :nodoc:
5
4
  end
@@ -27,4 +26,4 @@ module XMLObject # :nodoc:
27
26
  end
28
27
  end
29
28
  end
30
- end
29
+ end
@@ -1,7 +1,6 @@
1
1
  require 'libxml'
2
2
 
3
3
  module XMLObject::Adapters::LibXML
4
-
5
4
  # Can take a String of XML data, or anything that responds to
6
5
  # either +read+ or +to_s+.
7
6
  def self.new(duck)
@@ -32,4 +31,4 @@ module XMLObject::Adapters::LibXML
32
31
  end
33
32
  end
34
33
 
35
- ::XMLObject.adapter = ::XMLObject::Adapters::LibXML
34
+ ::XMLObject.adapter = ::XMLObject::Adapters::LibXML
@@ -1,7 +1,6 @@
1
1
  require 'rexml/document'
2
2
 
3
3
  module XMLObject::Adapters::REXML
4
-
5
4
  # Can take a String of XML data, or anything that responds to
6
5
  # either +read+ or +to_s+.
7
6
  def self.new(duck)
@@ -35,4 +34,4 @@ module XMLObject::Adapters::REXML
35
34
  end
36
35
  end
37
36
 
38
- ::XMLObject.adapter = ::XMLObject::Adapters::REXML
37
+ ::XMLObject.adapter = ::XMLObject::Adapters::REXML
@@ -1,5 +1,4 @@
1
1
  class XMLObject::CollectionProxy # :nodoc:
2
-
3
2
  instance_methods.each do |m|
4
3
  meth_str, meth_sym = m.to_s, m.to_sym # Ruby 1.8 and 1.9 differ, so...
5
4
 
@@ -1,5 +1,4 @@
1
1
  module XMLObject::Properties
2
-
3
2
  # Array-bracket (+[]+) notation access to elements and attributes. Use
4
3
  # when the element or attribute you need to reach is not reachable via dot
5
4
  # notation (because it's not a valid method name, or because the method
@@ -0,0 +1,4 @@
1
+ module XMLObject
2
+ VERSION = '0.9.92'
3
+ LOCATION = File.dirname __FILE__ # :nodoc:
4
+ end
@@ -1,9 +1,10 @@
1
- XMLOBJECT_GEMSPEC = Gem::Specification.new do |gem|
2
- gem.name = gem.rubyforge_project = 'xml-object'
3
- gem.homepage = 'http://xml-object.rubyforge.org'
1
+ require 'lib/xml-object/version'
4
2
 
5
- gem.version, gem.date = '0.9.91', '2009-06-23'
6
- gem.author, gem.email = 'Jordi Bunster', 'jordi@bunster.org'
3
+ Gem::Specification.new do |gem|
4
+ gem.name = 'xml-object'
5
+ gem.version = XMLObject::VERSION
6
+
7
+ gem.author, gem.email = 'Jordi Bunster', 'jordi@bunster.org'
7
8
 
8
9
  gem.summary = "The Rubyista's way to do quick XML sit-ups"
9
10
  gem.description = %{ XMLObject is a library for reading (not writing) XML.
@@ -11,11 +12,12 @@ XMLOBJECT_GEMSPEC = Gem::Specification.new do |gem|
11
12
  documents of a known structure. While not devoid of caveats, it does
12
13
  have a very pleasant, idiomatic Ruby syntax. }.strip!.gsub! /\s+/, ' '
13
14
 
14
- gem.has_rdoc = !!(gem.extra_rdoc_files = %w[
15
- README.rdoc MIT-LICENSE WHATSNEW ])
15
+ gem.required_ruby_version = '>= 1.8.6'
16
16
 
17
- gem.rdoc_options += %w[
18
- --title XMLObject --main README.rdoc --inline-source ]
17
+ gem.has_rdoc = true
18
+ gem.extra_rdoc_files = %w[ README.rdoc MIT-LICENSE WHATSNEW ]
19
+ gem.rdoc_options +=
20
+ %w[ --title XMLObject --main README.rdoc --inline-source ]
19
21
 
20
22
  gem.files = %w[
21
23
  MIT-LICENSE
@@ -23,8 +25,8 @@ XMLOBJECT_GEMSPEC = Gem::Specification.new do |gem|
23
25
  TODO
24
26
  WHATSNEW
25
27
  lib
26
- lib/jordi-xml-object.rb
27
28
  lib/xml-object
29
+ lib/xml-object/version.rb
28
30
  lib/xml-object/adapters
29
31
  lib/xml-object/adapters/libxml.rb
30
32
  lib/xml-object/adapters/rexml.rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.91
4
+ version: 0.9.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Bunster
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-23 00:00:00 -04:00
12
+ date: 2009-10-30 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -28,10 +28,7 @@ files:
28
28
  - README.rdoc
29
29
  - TODO
30
30
  - WHATSNEW
31
- - lib
32
- - lib/jordi-xml-object.rb
33
- - lib/xml-object
34
- - lib/xml-object/adapters
31
+ - lib/xml-object/version.rb
35
32
  - lib/xml-object/adapters/libxml.rb
36
33
  - lib/xml-object/adapters/rexml.rb
37
34
  - lib/xml-object/adapters.rb
@@ -41,7 +38,9 @@ files:
41
38
  - lib/xml-object.rb
42
39
  - xml-object.gemspec
43
40
  has_rdoc: true
44
- homepage: http://xml-object.rubyforge.org
41
+ homepage:
42
+ licenses: []
43
+
45
44
  post_install_message:
46
45
  rdoc_options:
47
46
  - --title
@@ -55,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
54
  requirements:
56
55
  - - ">="
57
56
  - !ruby/object:Gem::Version
58
- version: "0"
57
+ version: 1.8.6
59
58
  version:
60
59
  required_rubygems_version: !ruby/object:Gem::Requirement
61
60
  requirements:
@@ -65,10 +64,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
64
  version:
66
65
  requirements: []
67
66
 
68
- rubyforge_project: xml-object
69
- rubygems_version: 1.3.1
67
+ rubyforge_project:
68
+ rubygems_version: 1.3.5
70
69
  signing_key:
71
- specification_version: 2
70
+ specification_version: 3
72
71
  summary: The Rubyista's way to do quick XML sit-ups
73
72
  test_files: []
74
73
 
@@ -1 +0,0 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), 'xml-object'))