sexy_validations 0.5.1 → 0.5.2
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/VERSION +1 -1
- data/lib/sexy_validations/validators/image.rb +1 -1
- data/sexy_validations.gemspec +29 -31
- metadata +6 -7
- data/.gitignore +0 -22
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.2
|
|
@@ -14,7 +14,7 @@ module SexyValidations
|
|
|
14
14
|
file = SexyValidations.load_validator(:file).file_from_value(value)
|
|
15
15
|
return unless file
|
|
16
16
|
|
|
17
|
-
if options[:geometry]
|
|
17
|
+
if options[:geometry].is_a?(String)
|
|
18
18
|
geo1 = Sequel::Plugins::Paperclip::Processors::Image::Geometry.from_s(options[:geometry])
|
|
19
19
|
geo2 = Sequel::Plugins::Paperclip::Processors::Image::Geometry.from_file(file)
|
|
20
20
|
if geo2
|
data/sexy_validations.gemspec
CHANGED
|
@@ -1,56 +1,54 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{sexy_validations}
|
|
8
|
-
s.version = "0.5.
|
|
8
|
+
s.version = "0.5.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Corin Langosch"]
|
|
12
|
-
s.date = %q{2010-11-
|
|
12
|
+
s.date = %q{2010-11-20}
|
|
13
13
|
s.description = %q{Module which provides sexy validations for models.}
|
|
14
14
|
s.email = %q{info@netskin.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE",
|
|
17
|
-
|
|
17
|
+
"README.rdoc"
|
|
18
18
|
]
|
|
19
19
|
s.files = [
|
|
20
20
|
".document",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"spec/spec_helper.rb"
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"README.rdoc",
|
|
23
|
+
"Rakefile",
|
|
24
|
+
"VERSION",
|
|
25
|
+
"lib/sexy_validations.rb",
|
|
26
|
+
"lib/sexy_validations/errors.rb",
|
|
27
|
+
"lib/sexy_validations/validators/acceptance.rb",
|
|
28
|
+
"lib/sexy_validations/validators/age.rb",
|
|
29
|
+
"lib/sexy_validations/validators/confirmation.rb",
|
|
30
|
+
"lib/sexy_validations/validators/count.rb",
|
|
31
|
+
"lib/sexy_validations/validators/date.rb",
|
|
32
|
+
"lib/sexy_validations/validators/email.rb",
|
|
33
|
+
"lib/sexy_validations/validators/file.rb",
|
|
34
|
+
"lib/sexy_validations/validators/format.rb",
|
|
35
|
+
"lib/sexy_validations/validators/image.rb",
|
|
36
|
+
"lib/sexy_validations/validators/inclusion.rb",
|
|
37
|
+
"lib/sexy_validations/validators/length.rb",
|
|
38
|
+
"lib/sexy_validations/validators/password.rb",
|
|
39
|
+
"lib/sexy_validations/validators/presence.rb",
|
|
40
|
+
"sexy_validations.gemspec",
|
|
41
|
+
"spec/sequel_sexy_validations_spec.rb",
|
|
42
|
+
"spec/spec.opts",
|
|
43
|
+
"spec/spec_helper.rb"
|
|
45
44
|
]
|
|
46
45
|
s.homepage = %q{http://github.com/gucki/sexy_validations}
|
|
47
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
|
48
46
|
s.require_paths = ["lib"]
|
|
49
47
|
s.rubygems_version = %q{1.3.7}
|
|
50
48
|
s.summary = %q{Sexy validations for Models}
|
|
51
49
|
s.test_files = [
|
|
52
|
-
"spec/
|
|
53
|
-
|
|
50
|
+
"spec/sequel_sexy_validations_spec.rb",
|
|
51
|
+
"spec/spec_helper.rb"
|
|
54
52
|
]
|
|
55
53
|
|
|
56
54
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 5
|
|
8
|
-
-
|
|
9
|
-
version: 0.5.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.5.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Corin Langosch
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-11-
|
|
17
|
+
date: 2010-11-20 00:00:00 +00:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -43,7 +43,6 @@ extra_rdoc_files:
|
|
|
43
43
|
- README.rdoc
|
|
44
44
|
files:
|
|
45
45
|
- .document
|
|
46
|
-
- .gitignore
|
|
47
46
|
- LICENSE
|
|
48
47
|
- README.rdoc
|
|
49
48
|
- Rakefile
|
|
@@ -72,8 +71,8 @@ homepage: http://github.com/gucki/sexy_validations
|
|
|
72
71
|
licenses: []
|
|
73
72
|
|
|
74
73
|
post_install_message:
|
|
75
|
-
rdoc_options:
|
|
76
|
-
|
|
74
|
+
rdoc_options: []
|
|
75
|
+
|
|
77
76
|
require_paths:
|
|
78
77
|
- lib
|
|
79
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -100,5 +99,5 @@ signing_key:
|
|
|
100
99
|
specification_version: 3
|
|
101
100
|
summary: Sexy validations for Models
|
|
102
101
|
test_files:
|
|
103
|
-
- spec/spec_helper.rb
|
|
104
102
|
- spec/sequel_sexy_validations_spec.rb
|
|
103
|
+
- spec/spec_helper.rb
|