ecm_courses2 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ecm/courses/course_date.rb +2 -0
- data/lib/ecm/courses/version.rb +1 -1
- data/lib/ecm_courses2.rb +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dfc6e912f248798cf1e9e130eb64eaf4b7ebf02
|
4
|
+
data.tar.gz: f00491ee08728287b419a2ed3332f03a849975cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16fa484f0ee0f796eefe4fd020e13803c8fe9ae3c49a210f8819a2955e098bae065229fc3d0c9a5a555352109e7826d05a7fa8dd0e27b74089b35801829c872a
|
7
|
+
data.tar.gz: d4b2df587eb85e7aac20b640917a4eba8453f67b4949e3cf6377ddfc7ffbe789f9efb76f33ec492034542352caf5a6003a8b7e4913f6f76bd7238ac635108dcb
|
@@ -13,6 +13,8 @@ module Ecm::Courses
|
|
13
13
|
validates :end_at, presence: true
|
14
14
|
validates :start_at, presence: true
|
15
15
|
|
16
|
+
validates :end_at, timeliness: { after: :start_at }
|
17
|
+
|
16
18
|
def self.for_month(date)
|
17
19
|
date ||= Time.zone.now.to_date
|
18
20
|
where(start_at: (date.beginning_of_month..(date.end_of_month + 1.day)))
|
data/lib/ecm/courses/version.rb
CHANGED
data/lib/ecm_courses2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_courses2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.0.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: validates_timeliness
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rspec-rails
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|