multiparameter_date_time 0.3.2 → 0.3.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: 14e954f9e4482331b9052f712e00dfde4c255bb4
4
- data.tar.gz: 403d50ad5814e7e9ba41a964331f0510253aa3f9
3
+ metadata.gz: 5d0cfeb2fce7550d8d25996a0311794250af84f2
4
+ data.tar.gz: 5309314fdb18b0b2b13ade0535eeae882ed8c0dd
5
5
  SHA512:
6
- metadata.gz: b8e640bdc40e6c67fb1dbaad72469db0ad549effe4a25b72865e6b2818c19ac544b8dfadf2c90d9d348a3edc2725dc3106df92ebe0fb05086dbd72d692bb1698
7
- data.tar.gz: 05d3733a464d1378e297c59e8c4fa3b56e30015b649c40b92e207a8bd209e8d3cf00dbcdad2c1531db6bbce542a5c6a0b21570cbb4d8d0bc442be719a0fcd73c
6
+ metadata.gz: 481030cfc94b83cda61d86cc5c4117676ce829d9440b8a3c0acbb2c336c2f56f5858b0f3a33488aabd937b7210f9b8bcffbb69aed46a9c199a62e2381847d551
7
+ data.tar.gz: 919d1c9d62544e0c887d040a70528df9665308d8d0a01be86cc98cb6fb81c1f99dba83a8225402c9d610f5e8e91d279b17bf5052589f63f4848b298d9312948f
@@ -1,3 +1,5 @@
1
+ require 'active_model/validator'
2
+
1
3
  class IsValidMultiparameterDateTimeValidator < ActiveModel::EachValidator
2
4
  def validate_each(record, attribute, value)
3
5
  date_value = record.public_send(:"#{attribute}_date_part")
@@ -1,3 +1,3 @@
1
1
  module MultiparameterDateTime
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'active_support/concern'
2
+ require 'active_support/core_ext/module/attribute_accessors'
2
3
  require 'active_support/core_ext/time/zones'
3
4
  require 'american_date'
4
5
  require 'is_valid_multiparameter_date_time_validator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiparameter_date_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Case Commons, LLC
@@ -11,76 +11,76 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-07-10 00:00:00.000000000 Z
14
+ date: 2014-09-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: american_date
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activesupport
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - "~>"
34
+ - - ~>
35
35
  - !ruby/object:Gem::Version
36
36
  version: '4.0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: '4.0'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: activerecord
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ">="
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ">="
55
+ - - '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - "~>"
62
+ - - ~>
63
63
  - !ruby/object:Gem::Version
64
64
  version: '2.11'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - "~>"
69
+ - - ~>
70
70
  - !ruby/object:Gem::Version
71
71
  version: '2.11'
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: with_model
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - "~>"
76
+ - - ~>
77
77
  - !ruby/object:Gem::Version
78
78
  version: '1.0'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - "~>"
83
+ - - ~>
84
84
  - !ruby/object:Gem::Version
85
85
  version: '1.0'
86
86
  description:
@@ -93,8 +93,8 @@ executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - ".gitignore"
97
- - ".travis.yml"
96
+ - .gitignore
97
+ - .travis.yml
98
98
  - Gemfile
99
99
  - LICENSE
100
100
  - README.md
@@ -116,12 +116,12 @@ require_paths:
116
116
  - lib
117
117
  required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ">="
119
+ - - '>='
120
120
  - !ruby/object:Gem::Version
121
121
  version: 1.9.2
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">="
124
+ - - '>='
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
@@ -134,4 +134,3 @@ test_files:
134
134
  - spec/is_valid_multiparameter_date_time_validator_spec.rb
135
135
  - spec/multiparameter_date_time_spec.rb
136
136
  - spec/spec_helper.rb
137
- has_rdoc: