sexy_validations 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
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
@@ -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 the gemspec command
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.1"
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-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
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/sexy_validations.rb",
27
- "lib/sexy_validations/errors.rb",
28
- "lib/sexy_validations/validators/acceptance.rb",
29
- "lib/sexy_validations/validators/age.rb",
30
- "lib/sexy_validations/validators/confirmation.rb",
31
- "lib/sexy_validations/validators/count.rb",
32
- "lib/sexy_validations/validators/date.rb",
33
- "lib/sexy_validations/validators/email.rb",
34
- "lib/sexy_validations/validators/file.rb",
35
- "lib/sexy_validations/validators/format.rb",
36
- "lib/sexy_validations/validators/image.rb",
37
- "lib/sexy_validations/validators/inclusion.rb",
38
- "lib/sexy_validations/validators/length.rb",
39
- "lib/sexy_validations/validators/password.rb",
40
- "lib/sexy_validations/validators/presence.rb",
41
- "sexy_validations.gemspec",
42
- "spec/sequel_sexy_validations_spec.rb",
43
- "spec/spec.opts",
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/spec_helper.rb",
53
- "spec/sequel_sexy_validations_spec.rb"
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
- - 1
9
- version: 0.5.1
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-11 00:00:00 +00:00
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
- - --charset=UTF-8
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
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
- nbproject
21
-
22
- ## PROJECT::SPECIFIC