roxml 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ == 3.1.1 (October 17, 2009)
2
+
3
+ * bug fix
4
+
5
+ * Fix bad load paths
6
+
1
7
  == 3.1 (October 16, 2009)
2
8
 
3
9
  * major enhancements
data/Rakefile CHANGED
@@ -36,60 +36,7 @@ end
36
36
 
37
37
  Dir['tasks/**/*.rake'].each { |t| load t }
38
38
 
39
- task :default => [:test, :spec]
40
- task :all => [:libxml, :nokogiri]
39
+ task :default => [:test, :spec, 'test:load']
40
+ task :all => [:libxml, :nokogiri, 'test:load']
41
41
  task :libxml => ['test:libxml', 'spec:libxml']
42
42
  task :nokogiri => ['test:nokogiri', 'spec:nokogiri']
43
-
44
- # $hoe = Hoe.new('roxml', ROXML::VERSION) do |p|
45
- # p.changes = File.read("History.txt").split(/^==/)[1].strip
46
- #
47
- # p.test_globs = 'test/unit/*_test.rb'
48
- # p.clean_globs |= %w[**/.DS_Store tmp *.log]
49
- # path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
50
- # p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
51
- # p.rsync_args = '-av --delete --ignore-errors'
52
- # end
53
-
54
- ## Provide the username used to upload website etc.
55
- #RubyForgeConfig = {
56
- # :unix_name=>"roxml",
57
- # :user_name=>"zakmandhro"
58
- #}
59
-
60
- #Rake::RDocTask.new do |rd|
61
- # rd.rdoc_dir = "doc"
62
- # rd.rdoc_files.include('MIT-LICENSE', 'README.rdoc', "lib/**/*.rb")
63
- # rd.options << '--main' << 'README.rdoc' << '--title' << 'ROXML Documentation'
64
- #end
65
- #
66
- #desc "Publish Ruby on Rails plug-in on RubyForge"
67
- #task :release_plugin=>:rails_plugin do |task|
68
- # pub = Rake::SshDirPublisher.new("#{RubyForgeConfig[:user_name]}@rubyforge.org",
69
- # "/var/www/gforge-projects/#{RubyForgeConfig[:unix_name]}",
70
- # "pkg/rails_plugin")
71
- # pub.upload()
72
- #end
73
- #
74
- #desc "Publish and plugin site on RubyForge"
75
- #task :publish do |task|
76
- # pub = Rake::RubyForgePublisher.new(RubyForgeConfig[:unix_name], RubyForgeConfig[:user_name])
77
- # pub.upload()
78
- #end
79
- #
80
- #desc "Create the ZIP package"
81
- #Rake::PackageTask.new(spec.name, spec.version) do |p|
82
- # p.need_zip = true
83
- # p.package_files = FileList[
84
- # "lib/**/*.rb", "*.txt", "README.rdoc", "Rakefile",
85
- # "rake/**/*","test/**/*.rb", "test/**/*.xml", "html/**/*"]
86
- #end
87
- #
88
- #task :package=>:rdoc
89
- #task :rdoc=>:test
90
- #
91
- #desc "Create a RubyGem project"
92
- #Rake::GemPackageTask.new(spec).define
93
- #
94
- #desc "Clobber generated files"
95
- #task :clobber=>[:clobber_package, :clobber_rdoc]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.1
@@ -1,11 +1,11 @@
1
1
  require 'uri'
2
2
  require 'active_support'
3
3
 
4
- require 'lib/roxml/definition'
5
- require 'lib/roxml/xml'
4
+ require 'roxml/definition'
5
+ require 'roxml/xml'
6
6
 
7
7
  module ROXML # :nodoc:
8
- VERSION = '3.1.0'
8
+ VERSION = '3.1.1'
9
9
 
10
10
  def self.included(base) # :nodoc:
11
11
  base.class_eval do
@@ -1,4 +1,4 @@
1
- require 'lib/roxml/hash_definition'
1
+ require 'roxml/hash_definition'
2
2
 
3
3
  class Module
4
4
  def bool_attr_reader(*attrs)
@@ -1,21 +1,18 @@
1
1
  module ROXML
2
+ PARSERS = %w[nokogiri libxml].freeze
2
3
  unless const_defined? 'XML_PARSER'
3
- PREFERRED_PARSERS = %w[nokogiri libxml].freeze
4
- parsers = PREFERRED_PARSERS.dup
4
+ parsers = PARSERS.dup
5
5
  begin
6
6
  require parsers.first
7
7
  XML_PARSER = parsers.first # :nodoc:
8
8
  rescue LoadError
9
- if parsers.size > 1
10
- parsers.shift
11
- retry
12
- else
13
- raise "Could not load either nokogiri or libxml"
14
- end
9
+ parsers.shift
10
+ retry unless parsers.empty?
11
+ raise "Could not load a parser. Tried #{PARSERS.to_sentence}"
15
12
  end
16
13
  end
17
14
 
18
- require File.join('lib/roxml/xml/parsers', XML_PARSER)
15
+ require File.join('roxml/xml/parsers', XML_PARSER)
19
16
 
20
17
  module XML
21
18
  class Node
@@ -40,4 +37,4 @@ module ROXML
40
37
  end
41
38
  end
42
39
 
43
- require 'lib/roxml/xml/references'
40
+ require 'roxml/xml/references'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roxml}
8
- s.version = "3.1.0"
8
+ s.version = "3.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Woosley", "Zak Mandhro", "Anders Engstrom", "Russ Olsen"]
12
- s.date = %q{2009-10-16}
12
+ s.date = %q{2009-10-17}
13
13
  s.description = %q{ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML.
14
14
  Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care
15
15
  of the marshalling and unmarshalling of mapped attributes so that developers can focus on
@@ -103,6 +103,7 @@ RESTful applications, Web Services, and XML-RPC.
103
103
  "test/fixtures/person.xml",
104
104
  "test/fixtures/person_with_guarded_mothers.xml",
105
105
  "test/fixtures/person_with_mothers.xml",
106
+ "test/load_test.rb",
106
107
  "test/mocks/dictionaries.rb",
107
108
  "test/mocks/mocks.rb",
108
109
  "test/support/fixtures.rb",
@@ -147,6 +148,7 @@ RESTful applications, Web Services, and XML-RPC.
147
148
  "spec/xml/namespace_spec.rb",
148
149
  "spec/xml/namespaces_spec.rb",
149
150
  "spec/xml/parser_spec.rb",
151
+ "test/load_test.rb",
150
152
  "test/mocks/dictionaries.rb",
151
153
  "test/mocks/mocks.rb",
152
154
  "test/support/fixtures.rb",
@@ -28,6 +28,11 @@ namespace :test do
28
28
  Rake::Task["test"].invoke
29
29
  end
30
30
 
31
+ task :load do
32
+ `ruby test/load_test.rb`
33
+ puts "Load Success!" if $?.success?
34
+ end
35
+
31
36
  desc "Runs tests under RCOV"
32
37
  task :rcov do
33
38
  system "rcov -T --no-html -x '^/' #{FileList['test/unit/*_test.rb']}"
@@ -0,0 +1,6 @@
1
+ require 'fileutils'
2
+ FileUtils.cd(File.dirname(__FILE__))
3
+
4
+ require 'rubygems'
5
+ require 'roxml'
6
+ puts ROXML::VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
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-10-16 00:00:00 -04:00
15
+ date: 2009-10-17 00:00:00 -04:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -162,6 +162,7 @@ files:
162
162
  - test/fixtures/person.xml
163
163
  - test/fixtures/person_with_guarded_mothers.xml
164
164
  - test/fixtures/person_with_mothers.xml
165
+ - test/load_test.rb
165
166
  - test/mocks/dictionaries.rb
166
167
  - test/mocks/mocks.rb
167
168
  - test/support/fixtures.rb
@@ -227,6 +228,7 @@ test_files:
227
228
  - spec/xml/namespace_spec.rb
228
229
  - spec/xml/namespaces_spec.rb
229
230
  - spec/xml/parser_spec.rb
231
+ - test/load_test.rb
230
232
  - test/mocks/dictionaries.rb
231
233
  - test/mocks/mocks.rb
232
234
  - test/support/fixtures.rb