diff --git a/README b/README deleted file mode 100644 index 5dbba8a..0000000 --- a/README +++ /dev/null @@ -1,4 +0,0 @@ -ValidatesXml -============ - -Description goes here \ No newline at end of file diff --git a/README.textile b/README.textile new file mode 100644 index 0000000..d44df40 --- /dev/null +++ b/README.textile @@ -0,0 +1,14 @@ +ValidatesXml +============ + +Provides validates_xml method allowing to validate xml correctness of ActiveRecord attributes. + +Acknowledgment +-------------- + +It's just a repacking as gem of plugin published on http://code.google.com/p/validates-xml/ by johnwulff + +License +------- + +MIT License \ No newline at end of file diff --git a/Rakefile b/Rakefile deleted file mode 100644 index da7c00c..0000000 --- a/Rakefile +++ /dev/null @@ -1,22 +0,0 @@ -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -desc 'Default: run unit tests.' -task :default => :test - -desc 'Test the validates_xml plugin.' -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.pattern = 'test/**/*_test.rb' - t.verbose = true -end - -desc 'Generate documentation for the validates_xml plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'ValidatesXml' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README') - rdoc.rdoc_files.include('lib/**/*.rb') -end diff --git a/lib/validates_xml.rb b/lib/validates_xml.rb index ea6728c..47855ac 100644 --- a/lib/validates_xml.rb +++ b/lib/validates_xml.rb @@ -17,4 +17,4 @@ def validates_xml(*attr_names) end end end -end \ No newline at end of file +end diff --git a/init.rb b/rails/init.rb similarity index 100% rename from init.rb rename to rails/init.rb diff --git a/test/README b/test/README deleted file mode 100644 index 5dbba8a..0000000 --- a/test/README +++ /dev/null @@ -1,4 +0,0 @@ -ValidatesXml -============ - -Description goes here \ No newline at end of file diff --git a/test/Rakefile b/test/Rakefile deleted file mode 100644 index da7c00c..0000000 --- a/test/Rakefile +++ /dev/null @@ -1,22 +0,0 @@ -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -desc 'Default: run unit tests.' -task :default => :test - -desc 'Test the validates_xml plugin.' -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.pattern = 'test/**/*_test.rb' - t.verbose = true -end - -desc 'Generate documentation for the validates_xml plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'ValidatesXml' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README') - rdoc.rdoc_files.include('lib/**/*.rb') -end diff --git a/test/init.rb b/test/init.rb deleted file mode 100644 index 9f6f6e5..0000000 --- a/test/init.rb +++ /dev/null @@ -1,2 +0,0 @@ -# Include hook code here -require 'validates_xml' \ No newline at end of file diff --git a/test/validates_xml_test.rb b/test/validates_xml_test.rb deleted file mode 100644 index 862d386..0000000 --- a/test/validates_xml_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'test/unit' - -class ValidatesXmlTest < Test::Unit::TestCase - # Replace this with your real tests. - def test_this_plugin - flunk - end -end diff --git a/validates_xml.gemspec b/validates_xml.gemspec new file mode 100644 index 0000000..01e4bab --- /dev/null +++ b/validates_xml.gemspec @@ -0,0 +1,34 @@ +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{validates_xml} + s.version = "1.0.0" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Lukasz Piestrzeniewicz"] + s.date = %q{2009-08-29} + s.description = %q{Provides validates_xml method allowing to validate xml correctness of ActiveRecord attributes.} + s.email = ["bragi@ragnarson.com"] + s.extra_rdoc_files = ["README.textile"] + s.files = ["lib/validates_xml.rb", "rails/init.rb", "README.textile"] + s.has_rdoc = true + s.homepage = %q{http://github.com/bragi/validates_xml} + s.rdoc_options = ["--main", "README.textile"] + s.require_paths = ["lib"] + s.rubyforge_project = %q{validates_xml} + s.rubygems_version = %q{1.3.1} + s.summary = %q{Rails helper for validating xml attributes.} + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 2 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, [">= 2.0.0"]) + else + s.add_dependency(%q, [">= 2.0.0"]) + end + else + s.add_dependency(%q, [">= 2.0.0"]) + end +end