effective_events 0.6.1 → 0.6.2

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: f65483dcf8a4afeea90171c934a922a5425dc9a11bff4e2494f52ed50be52c3c
4
- data.tar.gz: 0542dd1e060b1026adcb8e1358b0a069eebce29e48daadd7fb22d6c5fdb12355
3
+ metadata.gz: '03792a86651968a66d776678245154a7e1315bd4927a5f6803cf822831b11b54'
4
+ data.tar.gz: fff7d1415683e67b7982fd82bfdfa0f258e10451ea1645f00ce2b7a86fd86abd
5
5
  SHA512:
6
- metadata.gz: f959bc908fb33c74d0a59802c9829533bd1363ceb2d34b3db456c011bef45654fbb0c485a2ff7c5e6cbac494fd1340a8ba45402e5a4eaaabb8840e510c98c041
7
- data.tar.gz: 04350d65ef635616230e72cd86ef6ebd835d5943164133948c8ad5f8b8492bc713fbaf934c0b331b3292b74c782c0c21486bb09061028cd0e040ac844ea1107f
6
+ metadata.gz: a760d7c086e811c0bd6f64f36e2bcddefd725c86c533f922448f8242f0c60edade3dbe7c3f96b07b034200d19f99efd3cd161b1de460eed9e24ba26965f569ba
7
+ data.tar.gz: 7157dfd23817e90be3102d6ce494b027f392b94568557dccf85b99c0622150e33311db116d256f3a9996e7fff8fea4d2fb6d9c08bd5eb9438ee00b889de9b18e
@@ -117,7 +117,6 @@ module Effective
117
117
 
118
118
  validates :registration_start_at, presence: true, unless: -> { external_registration? }
119
119
  validates :registration_end_at, presence: true, unless: -> { external_registration? }
120
- validates :external_registration_url, presence: true, if: -> { external_registration? }
121
120
 
122
121
  validate(if: -> { start_at && end_at }) do
123
122
  self.errors.add(:end_at, 'must be after start date') unless start_at < end_at
@@ -167,7 +166,7 @@ module Effective
167
166
  return false if closed?
168
167
  return false if sold_out?
169
168
 
170
- external_registration? || event_tickets.present?
169
+ (external_registration? && external_registration_url.present?) || event_tickets.present?
171
170
  end
172
171
 
173
172
  def closed?
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-24 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails