tramway-event 1.12.1 → 1.12.1.1

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
  SHA256:
3
- metadata.gz: 544f404ca677177924dc37dbd8663450edf84809af2a9ff829506b59aa0b9c83
4
- data.tar.gz: ec912ab9c38d1148f7714505effe8e89db678257e7fbb48c72f21e9235f362ec
3
+ metadata.gz: 8c611ce20cbaa6055b3294faa094760f7ede0568ab3e662b6bce013ced1fcee7
4
+ data.tar.gz: 6b0f5f7dc27b1798fe68f0a619f1b069fa74a2dfaf7c5ca2658dff1c1739cb2e
5
5
  SHA512:
6
- metadata.gz: d74327ad1079f66b9a8909610992efa1107006943839385c625545beb88d51dfff37160089832080f60f11d254341b2173afd163d597b86ba342707befefb78b
7
- data.tar.gz: c3f7915b8c11b268201bab669c3442ac753c7abd5d6c2b49b7f41955e5bceb9ca34ad42089fc339809ac8c118e09af26fb0b0c14b3e06ec9139e0864d0310e60
6
+ metadata.gz: 543bdc304158bc8030fef4d53ed8f133e9ade040cf46d76ec69a7f57c4ca2ee3f3b334188968f21376e35fde1c380d27564a0f843f3fcecb828e039e0d96ba03
7
+ data.tar.gz: 20cc1f6968396204d0051026d6aba955f5e7b173971ca0bb5d817558cb7961c55046b63f2e4b2443f54903709b1515ff1fa27f4a40db4dda43bd5817fb3a724c
@@ -27,6 +27,9 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
27
27
  scope :open, -> { where reach: :open }
28
28
  scope :closed, -> { where reach: :closed }
29
29
 
30
+ validates :begin_date, presence: true
31
+ validates :end_date, presence: true
32
+
30
33
  def request_collecting_state
31
34
  return :not_initialized unless request_collecting_begin_date.present? || request_collecting_end_date.present?
32
35
  return :will_begin_soon if request_collecting_begin_date > DateTime.now
@@ -86,6 +86,10 @@ ru:
86
86
  photo:
87
87
  too_small_image: слишком маленькое (минимальный размер изображения 1920*1080)
88
88
  image_aspect_ratio: не соответствует формату (соотношение сторон должно быть 16 на 9)
89
+ begin_date:
90
+ blank: не может быть пустым
91
+ end_date:
92
+ blank: не может быть пустым
89
93
  tramway/event/participant:
90
94
  attributes:
91
95
  default:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12.1'
5
+ VERSION = '1.12.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-28 00:00:00.000000000 Z
11
+ date: 2020-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus