crazy_validators 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -2,3 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
5
+ before_install:
6
+ - gem install bundler
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "crazy_validators"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril Picard"]
12
- s.date = "2012-10-15"
12
+ s.date = "2012-10-16"
13
13
  s.description = " CrazyValidators enables easy validation of attributs of an ActiveModel class, such as alphanumericality, presence in a Blacklist. "
14
14
  s.email = "Cyril@picard.ch"
15
15
  s.extra_rdoc_files = [
@@ -15,8 +15,8 @@ module CrazyValidators
15
15
  type = [options[:type]].flatten.map(&:to_s).keep_if do |e|
16
16
  AUTHORIZED_TYPES.include? e
17
17
  end
18
- oembed_options = options.extract!(:maxwidth, :maxheight).keep_if do |k,v|
19
- v.is_a? Fixnum
18
+ oembed_options = options.keep_if do |k,v|
19
+ [:maxwidth, :maxheight].include?(k) && v.is_a?(Fixnum)
20
20
  end
21
21
  if record.send(attribute.to_s + "_changed?")
22
22
  OEmbed::Providers.register_all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crazy_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-15 00:00:00.000000000 Z
12
+ date: 2012-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -193,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  segments:
195
195
  - 0
196
- hash: 1647732643492294825
196
+ hash: 2892237728348053315
197
197
  required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  none: false
199
199
  requirements: