Empact-roxml 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,5 +1,16 @@
1
+ == 2.4.3 (February 1, 2009)
2
+
3
+ * 1 bug fix
4
+
5
+ * Fix roxml to work in ruby 1.8.6, which has been broken since the removal of
6
+ extensions in version 2.4.1. Thanks Pat! [Pat Nakajima]
7
+
1
8
  == 2.4.2 (January 31, 2009)
2
9
 
10
+ * 1 major enhancement
11
+
12
+ * xml_namespace for declaring Class-level, inheritable default namespaces.
13
+
3
14
  * 4 minor enhancements
4
15
 
5
16
  * add :as => Time, DateTime, and Date support
data/Rakefile CHANGED
@@ -1,7 +1,11 @@
1
+ module Enumerable
2
+ undef_method(:one?)
3
+ end if [].respond_to?(:one?)
4
+
1
5
  ENV['RUBY_FLAGS'] = '-W1'
2
6
 
3
7
  %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
4
- require File.join(File.dirname(__FILE__), 'lib/roxml')
8
+ require File.expand_path(File.dirname(__FILE__) + '/lib/roxml')
5
9
 
6
10
  # Generate all the Rake tasks
7
11
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
data/TODO CHANGED
@@ -27,6 +27,8 @@ v 2.5
27
27
 
28
28
  * :self => true for sending method_missing to this attribute?
29
29
 
30
+ * :attributes extensions ala HappyMapper?
31
+
30
32
  v 3.0
31
33
  * remove deprecated functionality
32
34
 
data/examples/amazon.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require File.join(File.dirname(__FILE__), '../spec/spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper')
3
3
 
4
4
  # The document `pita.xml` contains both a default namespace and the 'georss'
5
5
  # namespace (for the 'point' xml_reader).
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require File.join(File.dirname(__FILE__), '../spec/spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper')
3
3
 
4
4
  class Base
5
5
  include ROXML
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require File.join(File.dirname(__FILE__), '../spec/spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper')
3
3
 
4
4
  module GitHub
5
5
  class Commit
data/examples/posts.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require File.join(File.dirname(__FILE__), '../spec/spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper')
3
3
 
4
4
  class Post
5
5
  include ROXML
data/examples/twitter.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require File.join(File.dirname(__FILE__), '../spec/spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper')
3
3
  require 'time'
4
4
 
5
5
  class User
@@ -1,3 +1,11 @@
1
+ module Enumerable #:nodoc:all
2
+ unless method_defined?(:one?)
3
+ def one?
4
+ size == 1
5
+ end
6
+ end
7
+ end
8
+
1
9
  require File.join(File.dirname(__FILE__), 'array/conversions')
2
10
 
3
11
  class Array #:nodoc:
data/lib/roxml.rb CHANGED
@@ -1,9 +1,12 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__)) unless
2
+ $LOAD_PATH.include?(File.dirname(__FILE__)) || $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
3
+
1
4
  %w(extensions definition xml).each do |file|
2
- require File.join(File.dirname(__FILE__), 'roxml', file)
5
+ require File.join('roxml', file)
3
6
  end
4
7
 
5
8
  module ROXML # :nodoc:
6
- VERSION = '2.4.2'
9
+ VERSION = '2.4.3'
7
10
 
8
11
  def self.included(base) # :nodoc:
9
12
  base.extend ClassMethods::Accessors,
data/roxml.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{roxml}
5
- s.version = "2.4.2"
5
+ s.version = "2.4.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Woosley", "Zak Mandhro", "Anders Engstrom", "Russ Olsen"]
9
- s.date = %q{2009-01-31}
9
+ s.date = %q{2009-02-01}
10
10
  s.description = %q{ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML. Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care of the marshalling and unmarshalling of mapped attributes so that developers can focus on building first-class Ruby classes. As a result, ROXML simplifies the development of RESTful applications, Web Services, and XML-RPC.}
11
11
  s.email = %q{ben.woosley@gmail.com}
12
12
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
  require example('amazon')
3
3
 
4
4
  describe PITA::ItemSearchResponse do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
  require example('current_weather')
3
3
 
4
4
  describe Weather do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
  require example('dashed_elements')
3
3
 
4
4
  describe GitHub::Commit do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
  require example('posts')
3
3
 
4
4
  describe Post do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
  require example('twitter')
3
3
 
4
4
  describe Statuses do
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,16 @@
1
1
  require 'pathname'
2
2
 
3
+ module ROXML
4
+ SILENCE_XML_NAME_WARNING = true
5
+ end
6
+
3
7
  DIR = Pathname.new(__FILE__).dirname
4
- require DIR.join('../lib/roxml')
8
+ require DIR.join('../lib/roxml').expand_path
5
9
 
6
10
  def example(name)
7
- DIR.join("../examples/#{name}.rb")
11
+ DIR.join("../examples/#{name}.rb").expand_path
8
12
  end
9
13
 
10
14
  def xml_for(name)
11
- DIR.join("../examples/xml/#{name}.xml")
15
+ DIR.join("../examples/xml/#{name}.xml").expand_path
12
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Empact-roxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Woosley
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-01-31 00:00:00 -08:00
15
+ date: 2009-02-01 00:00:00 -08:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency