validate_attributes 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0ef32269028ad47448aebcac5b90d33ab5143d0
4
- data.tar.gz: 4115d5bc3547df367aeef55f7c5fc87bf3616511
3
+ metadata.gz: ff499dec8719ed7916e53993c9bc7ac0e4e69d18
4
+ data.tar.gz: b6ef8c6c1ae01ac6590cd644de6ac56e797354f4
5
5
  SHA512:
6
- metadata.gz: 57460bf5fea66ab7c84e672fcf3dec198495421c73a01c886d5e516a6bae88cb38e842e414680a94a74bd5fb9b82f81547f9df7bd8c6f8e4f4e76a8507b0f11e
7
- data.tar.gz: 37cc4b0250c4cbd2a61fe952a06118554ff6f01a41a3cba429b0ba6a7006857cb7209e286998f3279cd2ce9af43e562c046cad3182897d5e231ab8bd3734ac2a
6
+ metadata.gz: '084c346e671be92c56311b61a33849f2b1ded9813af96beef6414db2c9622ec896682ccc49154566e6e6f9a2149db46f058b728be55fdd5bfac838a39f574e9f'
7
+ data.tar.gz: 3494d7962e7f6527fa2ac0d5d5b2e7014481b3803f38f0cd0eba2883b04dc913075f1956092b5543ab205701bfbde2ca6357cf104acb26629ab03344614bbd61
@@ -1,4 +1,5 @@
1
1
  require 'active_model'
2
+ require 'active_record'
2
3
  require "validate_attributes/version"
3
4
 
4
5
  module ValidateAttributes
@@ -63,3 +64,7 @@ end
63
64
  module ActiveModel::Validations
64
65
  include ValidateAttributes
65
66
  end
67
+
68
+ class ActiveRecord::Base
69
+ include ValidateAttributes
70
+ end
@@ -1,3 +1,3 @@
1
1
  module ValidateAttributes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency('activemodel', '>= 3.0.0')
20
+ spec.add_dependency('activerecord', '>= 3.0.0')
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.7"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Rios
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activemodel
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.2.2
134
+ rubygems_version: 2.6.11
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Allow for validation of only some attributes