Permalink
Browse files

Tests fixed to run on Ruby 1.9.1 (and pass). Renamed gemspec.

  • Loading branch information...
1 parent 8d260a3 commit 476be04753757d2944656496f52c1dfb6919e130 @grimen committed Sep 27, 2009
View
@@ -1,9 +1,10 @@
+# encoding: utf-8
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
-NAME = "validatious_on_rails"
+NAME = "validatious-on-rails"
SUMMARY = %Q{Rails plugin that maps model validations to class names on form elements to integrate with Validatious.}
HOMEPAGE = "http://github.com/grimen/#{NAME}"
AUTHORS = ["Christian Johansen", "Jonas Grimfelt"]
View
@@ -1,5 +1,7 @@
== TODO
+=== validatious-on-rails
+
* Respect validation macro options:
* :on => :<action> (i.e. if current form action is ACTION)
* :if/:unless => true|false
@@ -13,3 +15,7 @@
* Support for custom validators with adapter-interface
* Support more form helpers - also 3rd party ones (through adapters)?
* Full coverage tests
+
+=== validatious
+
+* Make the submit button be disabled (non-clickable) while the form contains invalid values
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
class ValidatiousGenerator < Rails::Generator::Base
def manifest
View
@@ -1,3 +1,4 @@
+# encoding: utf-8
require File.join(File.dirname(__FILE__), *%w[validatious form_helper])
require File.join(File.dirname(__FILE__), *%w[validatious rails_validation])
@@ -1,3 +1,4 @@
+# encoding: utf-8
#
# Tap into the built-in form helpers to add validatious class names from
# model validations.
@@ -1,3 +1,4 @@
+# encoding: utf-8
begin
require 'validation_reflection'
rescue LoadError
View
@@ -1 +1,2 @@
+# encoding: utf-8
require File.expand_path(File.join(File.dirname(__FILE__), *%w(.. lib validatious)))
View
@@ -1,3 +1,4 @@
+# encoding: utf-8
#
# This file loads up the in-memory database needed to run the tests, and adds a few
# convenience methods.
@@ -11,10 +12,13 @@
gem 'test-unit', '1.2.3'
gem 'activerecord', '>= 1.2.3'
gem 'actionpack', '>= 1.2.3'
+ gem 'sqlite3-ruby', '>= 1.2.0'
require 'test/unit'
require 'active_record'
require 'action_controller'
+ require 'action_controller'
+ require 'sqlite3'
end
begin
@@ -1,3 +1,4 @@
+# encoding: utf-8
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper'))
module Test::Unit::Assertions
@@ -1,3 +1,4 @@
+# encoding: utf-8
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper'))
class RailsValidationTest < Test::Unit::TestCase
@@ -1,3 +1,4 @@
+# encoding: utf-8
require File.join(File.dirname(__FILE__), 'test_helper')
# class ValidatiousTest < Test::Unit::TestCase
@@ -4,19 +4,19 @@
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
- s.name = %q{validatious_on_rails}
+ s.name = %q{validatious-on-rails}
s.version = "0.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Christian Johansen", "Jonas Grimfelt"]
- s.date = %q{2009-09-26}
+ s.date = %q{2009-09-27}
s.description = %q{Rails plugin that maps model validations to class names on form elements to integrate with Validatious.}
s.email = %q{christian@cjohansen.no}
s.extra_rdoc_files = [
"README",
"Rakefile",
"generators/validatious/templates/v2.standalone.full.min.js",
- "generators/validatious/templates/validatious_config.js",
+ "generators/validatious/templates/validatious.config.js",
"generators/validatious/validatious_generator.rb",
"lib/validatious.rb",
"lib/validatious/form_helper.rb",
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
"README",
"Rakefile",
"generators/validatious/templates/v2.standalone.full.min.js",
- "generators/validatious/templates/validatious_config.js",
+ "generators/validatious/templates/validatious.config.js",
"generators/validatious/validatious_generator.rb",
"lib/validatious.rb",
"lib/validatious/form_helper.rb",
@@ -42,10 +42,10 @@ Gem::Specification.new do |s|
"test/validatious/rails_validation_test.rb",
"test/validatious_test.rb"
]
- s.homepage = %q{http://github.com/grimen/validatious_on_rails}
+ s.homepage = %q{http://github.com/grimen/validatious-on-rails}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.3}
+ s.rubygems_version = %q{1.3.5}
s.summary = %q{Rails plugin that maps model validations to class names on form elements to integrate with Validatious.}
s.test_files = [
"test/test_helper.rb",

0 comments on commit 476be04

Please sign in to comment.