omnievent 0.1.0.pre5 → 0.1.0.pre7

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: 5fe7bcccfdc17aa7d63acd4c44143de5006e7cee9c142078656751bc3a5641fe
4
- data.tar.gz: 7be7b177ae90c1eb8d3490e6563956c7d3f1ac702d59e108058c1eac70d4f696
3
+ metadata.gz: f583ab166fd2639f59f77c419d7bd4ac94d0200593a158b2d38d2e0097f81cb2
4
+ data.tar.gz: 6d1eb09d358af89ec16ef881405d33fa731f989e9844c78203fdeff37d532d06
5
5
  SHA512:
6
- metadata.gz: ba6ca77f917e16246ec0bb3d80186b9ae3fb515b4b4bc1947688cd5f2cd51bbf06abe88adaa557448f00c89fd12467c5bebf9f04852f6d92cae6773a12060230
7
- data.tar.gz: 43ebe3948021f40fa946c2bc5a7d200da65fd96754425bda2d378e6fa06dbdb94bfe1a051c53ed3605edfe9593b6a17ede5448065e61c696e5e1097a0d1f6150
6
+ metadata.gz: eee4470410e7134da2912a70912a9547262eabdfe5a6d055dcdad3719c0dc97acb12f6ba297f622801cbcd2fa2774d6a1f21a0af5aace4a4cf450b04ca4a2824
7
+ data.tar.gz: c7b504c29dd14057514789a89647d6a8d306253afe5d32ebceec7c56adea717acf6e9d93d7be257e59942329a493df0cd38cf55e88e0705ec604e9c316a554e0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omnievent (0.1.0.pre5)
4
+ omnievent (0.1.0.pre6)
5
5
  hashie (>= 3.4.6)
6
6
  iso-639 (~> 0.3.5)
7
7
  tzinfo (~> 2.0)
@@ -10,8 +10,7 @@ module OmniEvent
10
10
  # Tells you if this is considered to be a valid EventHash.
11
11
  def valid?
12
12
  provider? &&
13
- data? &&
14
- data.valid? &&
13
+ (!data || data.valid?) &&
15
14
  (!metadata || metadata.valid?) &&
16
15
  (!associated_data || associated_data.valid?)
17
16
  end
@@ -162,7 +162,7 @@ module OmniEvent
162
162
  raw_events.each_with_object([]) do |raw_event, result|
163
163
  event = event_hash(raw_event)
164
164
 
165
- next unless event.valid?
165
+ next unless event&.valid?
166
166
  next if options.from_time && Time.parse(event.data.start_time).utc < options.from_time.utc
167
167
  next if options.to_time && Time.parse(event.data.start_time).utc > options.to_time.utc
168
168
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniEvent
4
- VERSION = "0.1.0.pre5"
4
+ VERSION = "0.1.0.pre7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnievent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre5
4
+ version: 0.1.0.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-03 00:00:00.000000000 Z
11
+ date: 2024-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport