midas-g_live_validator 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.4 2009-04-03
2
+
3
+ * Added support for InacvtiveRecord (http://github.com/midas/inactive_record/tree/master) validations
4
+
5
+
1
6
  == 1.0.3
2
7
 
3
8
  * Updated JavaScript to keep a collection LiveValidation objects indexed by field name accessible in th g namespace
data/Manifest.txt CHANGED
@@ -3,6 +3,7 @@ Manifest.txt
3
3
  PostInstall.txt
4
4
  README.rdoc
5
5
  Rakefile
6
+ g_live_validator.gemspec
6
7
  lib/g_live_validator.rb
7
8
  lib/g_live_validator/active_record_extensions.rb
8
9
  lib/g_live_validator/view_helpers.rb
data/README.rdoc CHANGED
@@ -52,6 +52,7 @@ Make a call to the view_helper within a form:
52
52
  :except - List of fields not to validate. Foreign key fields (that end in _id) are automatically excluded. Can be a string,
53
53
  symbol or an array of string or sybmols.
54
54
 
55
+
55
56
  == REQUIREMENTS:
56
57
 
57
58
  * Guilded >= 0.1.3 (http://github.com/midas/guilded/tree/master)
@@ -0,0 +1,44 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{g_live_validator}
5
+ s.version = "1.0.4"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["C. Jason Harrelson (midas)"]
9
+ s.date = %q{2009-04-03}
10
+ s.description = %q{Live validator is a Rails Guilded (http://github.com/midas/guilded/tree/master) component that will reflect ActiveRecord validations and use them to live validate forms. Live validator uses the Live Validation (http://www.livevalidation.com) JavaScript library to accomplish this task. It also uses an ActiveRecord extension authored by Michael Schuerig to mre easily reflect on the ActiveRecord valdiations.}
11
+ s.email = ["jason@lookforwardenterprises.com"]
12
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
13
+ s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "g_live_validator.gemspec", "lib/g_live_validator.rb", "lib/g_live_validator/active_record_extensions.rb", "lib/g_live_validator/view_helpers.rb", "live_validator.gemspec", "rails_generators/live_validator_assets/live_validator_assets_generator.rb", "rails_generators/live_validator_assets/templates/default.css", "rails_generators/live_validator_assets/templates/guilded.live_validator.js", "rails_generators/live_validator_assets/templates/guilded.live_validator.min.js", "rails_generators/live_validator_assets/templates/livevalidation-1.3.js", "rails_generators/live_validator_assets/templates/livevalidation-1.3.min.js", "script/console", "script/destroy", "script/generate", "spec/live_validator_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
14
+ s.has_rdoc = true
15
+ s.homepage = %q{http://github.com/midas/live_validator/tree/master}
16
+ s.post_install_message = %q{PostInstall.txt}
17
+ s.rdoc_options = ["--main", "README.rdoc"]
18
+ s.require_paths = ["lib"]
19
+ s.rubyforge_project = %q{g_live_validator}
20
+ s.rubygems_version = %q{1.3.1}
21
+ s.summary = %q{Live validator is a Rails Guilded (http://github.com/midas/guilded/tree/master) component that will reflect ActiveRecord validations and use them to live validate forms}
22
+
23
+ if s.respond_to? :specification_version then
24
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
+ s.specification_version = 2
26
+
27
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
+ s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
29
+ s.add_development_dependency(%q<rails>, [">= 2.2.0"])
30
+ s.add_development_dependency(%q<midas-guilded>, [">= 0.1.4"])
31
+ s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
32
+ else
33
+ s.add_dependency(%q<newgem>, [">= 1.2.3"])
34
+ s.add_dependency(%q<rails>, [">= 2.2.0"])
35
+ s.add_dependency(%q<midas-guilded>, [">= 0.1.4"])
36
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
37
+ end
38
+ else
39
+ s.add_dependency(%q<newgem>, [">= 1.2.3"])
40
+ s.add_dependency(%q<rails>, [">= 2.2.0"])
41
+ s.add_dependency(%q<midas-guilded>, [">= 0.1.4"])
42
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
43
+ end
44
+ end
@@ -5,7 +5,7 @@ require 'g_live_validator/view_helpers'
5
5
  require 'g_live_validator/active_record_extensions'
6
6
 
7
7
  module GLiveValidator
8
- VERSION = '1.0.3'
8
+ VERSION = '1.0.4'
9
9
  end
10
10
 
11
11
  if defined?( ActiveRecord::Base )
@@ -14,6 +14,12 @@ if defined?( ActiveRecord::Base )
14
14
  end
15
15
  end
16
16
 
17
+ if defined?( InactiveRecord::Base )
18
+ InactiveRecord::Base.class_eval do
19
+ include GLiveValidator::ActiveRecordExtensions::ValidationReflection
20
+ end
21
+ end
22
+
17
23
  if defined?( ActionView::Base )
18
24
  ActionView::Base.send( :include, GLiveValidator::ViewHelpers ) unless ActionView::Base.include?( GLiveValidator::ViewHelpers )
19
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midas-g_live_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson (midas)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-22 00:00:00 -07:00
12
+ date: 2009-04-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -70,6 +70,7 @@ files:
70
70
  - PostInstall.txt
71
71
  - README.rdoc
72
72
  - Rakefile
73
+ - g_live_validator.gemspec
73
74
  - lib/g_live_validator.rb
74
75
  - lib/g_live_validator/active_record_extensions.rb
75
76
  - lib/g_live_validator/view_helpers.rb