debian/0000755000000000000000000000000012162015372007165 5ustar debian/source/0000755000000000000000000000000012144147434010472 5ustar debian/source/format0000644000000000000000000000001412111135621011665 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000112312144147434010247 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems export DH_RUBY_IGNORE_TESTS=ruby1.8 # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby #move VERSION file inside lib/roxml override_dh_auto_install: cp VERSION lib/roxml/VERSION dh_auto_install debian/copyright0000644000000000000000000000273512144147434011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: roxml Source: https://github.com/Empact/roxml/ Files: * Copyright: 2004-2009 Ben Woosley 2004-2009 Zak Mandhro 2004-2009 Anders Engstrom License: Expat Files: debian/* Copyright: 2013 Cédric Boutillier 2012-2013 Praveen Arimbrathodiyil License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/ruby-roxml.examples0000644000000000000000000000001312144147434013044 0ustar examples/* debian/ruby-tests.rake0000644000000000000000000000044512144147434012162 0ustar require 'rspec/core/rake_task' require 'rake/testtask' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = './spec/**/*_spec.rb' spec.ruby_opts = "-Iexamples" end Rake::TestTask.new(:test) do |test| test.test_files=Dir["./test/**/*_test.rb"] end task :default => [:spec, :test] debian/clean0000644000000000000000000000002212144147434010171 0ustar lib/roxml/VERSION debian/control0000644000000000000000000000241112144147434010573 0ustar Source: ruby-roxml Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier , Praveen Arimbrathodiyil Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), rake, ruby-nokogiri, ruby-sqlite3, ruby-activerecord, ruby-activesupport, ruby-rspec, ruby-test-unit Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-roxml.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-roxml.git;a=summary Homepage: http://roxml.rubyforge.org XS-Ruby-Versions: all Package: ruby-roxml Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-nokogiri, ruby-libxml, ruby-activesupport Description: Ruby Object to XML mapping library 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. debian/changelog0000644000000000000000000000104712162015372011041 0ustar ruby-roxml (3.3.1-2) unstable; urgency=low * Set urgency to medium as an RC bug is fixed. * Add deactivate_activesupport_gem_version_test.patch, disabling a failing version check based on rubygems for activesupport, which prevented extension to be loaded, and thus caused FTBFS. (Closes: #713137) -- Cédric Boutillier Sun, 23 Jun 2013 22:26:31 +0200 ruby-roxml (3.3.1-1) unstable; urgency=low * Initial release (Closes: #657952) -- Cédric Boutillier Thu, 18 Apr 2013 14:48:16 +0200 debian/patches/0000755000000000000000000000000012162015372010614 5ustar debian/patches/use_moved_VERSION.patch0000644000000000000000000000107712144147434015042 0ustar Description: use moved version of VERSION file VERSION file is moved from the root of the source package to lib/roxml The relative path of VERSION should be adapted in roxml.rb file Author: Cédric Boutillier Last-Update: 2013-04-18 Forwarded: no --- a/lib/roxml.rb +++ b/lib/roxml.rb @@ -14,7 +14,7 @@ require 'roxml/xml' module ROXML # :nodoc: - VERSION = File.read(File.expand_path("../../VERSION", __FILE__)) + VERSION = File.read(File.expand_path("../roxml/VERSION", __FILE__)) def self.included(base) # :nodoc: base.class_eval do debian/patches/series0000644000000000000000000000023012162015372012024 0ustar deactivate_activesupport_gem_version_test.patch require-system-roxml.patch require-rspec.patch use_moved_VERSION.patch remove_rubygems_from_tests.patch debian/patches/require-system-roxml.patch0000644000000000000000000000244112144147434016000 0ustar Description: use system path for roxml library The version that should be used is the one in the debian/ directory, not the one in the lib/ dir of the source package Author: Praveen Arimbrathodiyil Forwarded: no Last-Update: 2013-04-18 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,9 +2,9 @@ require 'rubygems' require 'pathname' require 'ostruct' +require 'roxml' require_relative './../test/support/fixtures' -require_relative './../lib/roxml' require_relative './shared_specs' def xml_for(name) --- a/test/mocks/dictionaries.rb +++ b/test/mocks/dictionaries.rb @@ -1,4 +1,4 @@ -require_relative "./../../lib/roxml" +require "roxml" class DictionaryOfAttrs include ROXML @@ -54,4 +54,4 @@ xml_name :dictionary xml_reader :definitions, :as => {:key => '@name', :value => 'content'}, :from => :definition -end \ No newline at end of file +end --- a/test/mocks/mocks.rb +++ b/test/mocks/mocks.rb @@ -1,4 +1,4 @@ -require_relative "./../../lib/roxml" +require "roxml" class Muffins include ROXML @@ -276,4 +276,4 @@ xml_reader :age, :from => :attr, :else => 21 xml_reader :name, :else => 'Anonymous' xml_reader :mother,:as => PersonWithMotherOrMissing, :else => Person.blank -end \ No newline at end of file +end debian/patches/deactivate_activesupport_gem_version_test.patch0000644000000000000000000000216512162015372022376 0ustar Description: deactivate Gem test version for active_support Debian Jessie has already ruby-activesupport version >= 3. Since it is not loaded via rubygems, ruby-activesupport are not available, the test fails, and core extensions are not loaded, which causes errors when the library is loaded. Author: Cédric Boutillier Origin: vendor Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713137 Last-Update: 2013-06-23 --- a/lib/roxml.rb +++ b/lib/roxml.rb @@ -1,14 +1,14 @@ require 'uri' require 'active_support' -if Gem.loaded_specs['activesupport'] && Gem.loaded_specs['activesupport'].version >= Gem::Version.new('3') +#if Gem.loaded_specs['activesupport'] && Gem.loaded_specs['activesupport'].version >= Gem::Version.new('3') require 'active_support/inflector' require 'active_support/core_ext/object/duplicable' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/array/extract_options' require 'active_support/core_ext/hash' require 'active_support/core_ext/string/starts_ends_with' -end +#end require 'roxml/definition' require 'roxml/xml' debian/patches/remove_rubygems_from_tests.patch0000644000000000000000000000111012144147434017312 0ustar Description: do not require explicitly rubygems in tests Author: Cédric Boutillier Forwarded: no Last-Update: 2013-04-18 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,4 @@ require 'ostruct' -require 'rubygems' require 'pathname' require 'ostruct' require 'roxml' --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,4 +1,3 @@ -require 'rubygems' require 'active_support/test_case' require_relative './mocks/mocks' require_relative './mocks/dictionaries' @@ -31,4 +30,4 @@ end end xml -end \ No newline at end of file +end debian/patches/require-rspec.patch0000644000000000000000000000056312144147434014434 0ustar Description: add missing requirement to rspec library Author: Praveen Arimbrathodiyil Forwarded: no Last-Update: 2013-04-18 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,6 +3,7 @@ require 'pathname' require 'ostruct' require 'roxml' +require 'rspec' require_relative './../test/support/fixtures' require_relative './shared_specs' debian/ruby-roxml.docs0000644000000000000000000000001412144147434012157 0ustar README.rdoc debian/watch0000644000000000000000000000013712111135621010211 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/roxml .*/roxml-(.*).tar.gz debian/compat0000644000000000000000000000000212111135621010355 0ustar 7