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 +11 -0
- data/Rakefile +5 -1
- data/TODO +2 -0
- data/examples/amazon.rb +1 -1
- data/examples/current_weather.rb +1 -1
- data/examples/dashed_elements.rb +1 -1
- data/examples/posts.rb +1 -1
- data/examples/twitter.rb +1 -1
- data/lib/roxml/extensions/array.rb +8 -0
- data/lib/roxml.rb +5 -2
- data/roxml.gemspec +2 -2
- data/spec/examples/amazon_spec.rb +1 -1
- data/spec/examples/current_weather_spec.rb +1 -1
- data/spec/examples/dashed_elements_spec.rb +1 -1
- data/spec/examples/post_spec.rb +1 -1
- data/spec/examples/twitter_spec.rb +1 -1
- data/spec/spec_helper.rb +7 -3
- metadata +2 -2
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.
|
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
data/examples/amazon.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require File.
|
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).
|
data/examples/current_weather.rb
CHANGED
data/examples/dashed_elements.rb
CHANGED
data/examples/posts.rb
CHANGED
data/examples/twitter.rb
CHANGED
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(
|
5
|
+
require File.join('roxml', file)
|
3
6
|
end
|
4
7
|
|
5
8
|
module ROXML # :nodoc:
|
6
|
-
VERSION = '2.4.
|
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.
|
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
|
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"]
|
data/spec/examples/post_spec.rb
CHANGED
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.
|
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
|
15
|
+
date: 2009-02-01 00:00:00 -08:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|