g_live_validator 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/g_live_validator.gemspec +7 -5
- data/lib/g_live_validator.rb +6 -6
- metadata +63 -18
- data/live_validator.gemspec +0 -41
data/Rakefile
CHANGED
@@ -11,6 +11,7 @@ begin
|
|
11
11
|
gem.authors = ["C. Jason Harrelson (midas)"]
|
12
12
|
gem.add_dependency "rails", ">= 2.2.0"
|
13
13
|
gem.add_dependency "guilded", ">= 1.0.3"
|
14
|
+
gem.add_dependency "validation_reflection", ">= 0.3.5"
|
14
15
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
15
16
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
17
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
data/g_live_validator.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{g_live_validator}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["C. Jason Harrelson (midas)"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-25}
|
13
13
|
s.email = %q{jason@lookforwardenterprises.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/g_live_validator/active_record_extensions.rb",
|
28
28
|
"lib/g_live_validator/validation_definition.rb",
|
29
29
|
"lib/g_live_validator/view_helpers.rb",
|
30
|
-
"live_validator.gemspec",
|
31
30
|
"rails_generators/live_validator_assets/live_validator_assets_generator.rb",
|
32
31
|
"rails_generators/live_validator_assets/templates/default.css",
|
33
32
|
"rails_generators/live_validator_assets/templates/guilded.live_validator.js",
|
@@ -45,7 +44,7 @@ Gem::Specification.new do |s|
|
|
45
44
|
s.homepage = %q{http://github.com/midas/g_live_validator}
|
46
45
|
s.rdoc_options = ["--charset=UTF-8"]
|
47
46
|
s.require_paths = ["lib"]
|
48
|
-
s.rubygems_version = %q{1.3.
|
47
|
+
s.rubygems_version = %q{1.3.7}
|
49
48
|
s.summary = %q{A Guilded (http://github.com/midas/guilded/tree/master) component that will reflect ActiveRecord validations and use them to live validate forms.}
|
50
49
|
s.test_files = [
|
51
50
|
"spec/live_validator_spec.rb",
|
@@ -56,18 +55,21 @@ Gem::Specification.new do |s|
|
|
56
55
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
57
56
|
s.specification_version = 3
|
58
57
|
|
59
|
-
if Gem::Version.new(Gem::
|
58
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
60
59
|
s.add_runtime_dependency(%q<rails>, [">= 2.2.0"])
|
61
60
|
s.add_runtime_dependency(%q<guilded>, [">= 1.0.3"])
|
61
|
+
s.add_runtime_dependency(%q<validation_reflection>, [">= 0.3.5"])
|
62
62
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
63
63
|
else
|
64
64
|
s.add_dependency(%q<rails>, [">= 2.2.0"])
|
65
65
|
s.add_dependency(%q<guilded>, [">= 1.0.3"])
|
66
|
+
s.add_dependency(%q<validation_reflection>, [">= 0.3.5"])
|
66
67
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
67
68
|
end
|
68
69
|
else
|
69
70
|
s.add_dependency(%q<rails>, [">= 2.2.0"])
|
70
71
|
s.add_dependency(%q<guilded>, [">= 1.0.3"])
|
72
|
+
s.add_dependency(%q<validation_reflection>, [">= 0.3.5"])
|
71
73
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
72
74
|
end
|
73
75
|
end
|
data/lib/g_live_validator.rb
CHANGED
@@ -6,7 +6,7 @@ require 'g_live_validator/validation_definition'
|
|
6
6
|
require 'g_live_validator/active_record_extensions'
|
7
7
|
|
8
8
|
module GLiveValidator
|
9
|
-
VERSION = '1.0.
|
9
|
+
VERSION = '1.0.8'
|
10
10
|
end
|
11
11
|
|
12
12
|
if defined?( ActiveRecord::Base )
|
@@ -15,11 +15,11 @@ if defined?( ActiveRecord::Base )
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
if defined?( InactiveRecord::Base )
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
18
|
+
# if defined?( InactiveRecord::Base )
|
19
|
+
# InactiveRecord::Base.class_eval do
|
20
|
+
# include GLiveValidator::ActiveRecordExtensions::ValidationReflection
|
21
|
+
# end
|
22
|
+
# end
|
23
23
|
|
24
24
|
if defined?( ActionView::Base )
|
25
25
|
ActionView::Base.send( :include, GLiveValidator::ViewHelpers ) unless ActionView::Base.include?( GLiveValidator::ViewHelpers )
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g_live_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 7
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 8
|
10
|
+
version: 1.0.8
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- C. Jason Harrelson (midas)
|
@@ -9,39 +15,73 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-08-25 00:00:00 -05:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: rails
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 2
|
33
|
+
- 0
|
23
34
|
version: 2.2.0
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
- !ruby/object:Gem::Dependency
|
26
38
|
name: guilded
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
30
42
|
requirements:
|
31
43
|
- - ">="
|
32
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 17
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 0
|
49
|
+
- 3
|
33
50
|
version: 1.0.3
|
34
|
-
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: validation_reflection
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 25
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 3
|
65
|
+
- 5
|
66
|
+
version: 0.3.5
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
35
69
|
- !ruby/object:Gem::Dependency
|
36
70
|
name: rspec
|
37
|
-
|
38
|
-
|
39
|
-
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
40
74
|
requirements:
|
41
75
|
- - ">="
|
42
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 13
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 2
|
81
|
+
- 9
|
43
82
|
version: 1.2.9
|
44
|
-
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id004
|
45
85
|
description:
|
46
86
|
email: jason@lookforwardenterprises.com
|
47
87
|
executables: []
|
@@ -63,7 +103,6 @@ files:
|
|
63
103
|
- lib/g_live_validator/active_record_extensions.rb
|
64
104
|
- lib/g_live_validator/validation_definition.rb
|
65
105
|
- lib/g_live_validator/view_helpers.rb
|
66
|
-
- live_validator.gemspec
|
67
106
|
- rails_generators/live_validator_assets/live_validator_assets_generator.rb
|
68
107
|
- rails_generators/live_validator_assets/templates/default.css
|
69
108
|
- rails_generators/live_validator_assets/templates/guilded.live_validator.js
|
@@ -87,21 +126,27 @@ rdoc_options:
|
|
87
126
|
require_paths:
|
88
127
|
- lib
|
89
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
90
130
|
requirements:
|
91
131
|
- - ">="
|
92
132
|
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
93
136
|
version: "0"
|
94
|
-
version:
|
95
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
96
139
|
requirements:
|
97
140
|
- - ">="
|
98
141
|
- !ruby/object:Gem::Version
|
142
|
+
hash: 3
|
143
|
+
segments:
|
144
|
+
- 0
|
99
145
|
version: "0"
|
100
|
-
version:
|
101
146
|
requirements: []
|
102
147
|
|
103
148
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.3.
|
149
|
+
rubygems_version: 1.3.7
|
105
150
|
signing_key:
|
106
151
|
specification_version: 3
|
107
152
|
summary: A Guilded (http://github.com/midas/guilded/tree/master) component that will reflect ActiveRecord validations and use them to live validate forms.
|
data/live_validator.gemspec
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{live_validator}
|
5
|
-
s.version = "1.0.2"
|
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-03-13}
|
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", "lib/live_validator.rb", "lib/live_validator/active_record_extensions.rb", "lib/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.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{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<midas-guilded>, [">= 0.1.3"])
|
30
|
-
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
31
|
-
else
|
32
|
-
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
33
|
-
s.add_dependency(%q<midas-guilded>, [">= 0.1.3"])
|
34
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
35
|
-
end
|
36
|
-
else
|
37
|
-
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
38
|
-
s.add_dependency(%q<midas-guilded>, [">= 0.1.3"])
|
39
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
40
|
-
end
|
41
|
-
end
|