Browse files

Gemified

  • Loading branch information...
1 parent 8a59d5c commit ac8de60ac42d8445cb061cecfb4afe31a4c3c4e8 @bragi bragi committed Jul 29, 2009
Showing with 49 additions and 63 deletions.
  1. +0 −4 README
  2. +14 −0 README.textile
  3. +0 −22 Rakefile
  4. +0 −2 init.rb
  5. +1 −1 lib/validates_xml.rb
  6. 0 {test → rails}/init.rb
  7. +0 −4 test/README
  8. +0 −22 test/Rakefile
  9. +0 −8 test/validates_xml_test.rb
  10. +34 −0 validates_xml.gemspec
View
4 README
@@ -1,4 +0,0 @@
-ValidatesXml
-============
-
-Description goes here
View
14 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
View
22 Rakefile
@@ -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
View
2 init.rb
@@ -1,2 +0,0 @@
-# Include hook code here
-require 'validates_xml'
View
2 lib/validates_xml.rb
@@ -17,4 +17,4 @@ def validates_xml(*attr_names)
end
end
end
-end
+end
View
0 test/init.rb → rails/init.rb
File renamed without changes.
View
4 test/README
@@ -1,4 +0,0 @@
-ValidatesXml
-============
-
-Description goes here
View
22 test/Rakefile
@@ -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
View
8 test/validates_xml_test.rb
@@ -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
View
34 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<activerecord>, [">= 2.0.0"])
+ else
+ s.add_dependency(%q<activerecord>, [">= 2.0.0"])
+ end
+ else
+ s.add_dependency(%q<activerecord>, [">= 2.0.0"])
+ end
+end

0 comments on commit ac8de60

Please sign in to comment.