omnievent 0.1.0.pre1 → 0.1.0.pre3

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: 97d76b9c0d639b3c9dcf7f184c1f73560a6515ca25c18fab1d06a2131943cea3
4
- data.tar.gz: 5ac02e7baf864326addcdb36260902cb3fcce9cee49d6f271721d5d4475eb005
3
+ metadata.gz: bb07327f2d1f44b38d3eb76509641665bae87ed481d152382482617013be525f
4
+ data.tar.gz: 860d9fb49b3a7689cf29711cd4199e75ad8b197b05ae7bb348d5318ecacb806e
5
5
  SHA512:
6
- metadata.gz: f27eb87c7ad6c19388d63291d535df003019f336754c8aba9a80af92963879afedab50d72488179d1941491b5086d6186d1c026bec91acaf15490909f9ba3542
7
- data.tar.gz: 1bed4c1a11a8705604b97d65aefa6b5a2a3a165e8f55a96bf4cfee9335133aff4e00060f1e53f244a4f4a8a77216ed2a56807527e90173e096fa909fb2e2e0d3
6
+ metadata.gz: 78ca39a4647ebdda34b2cda063a5b3b92b34693221b8e159ba68fafbc3e02fa8e067754e4445b96d209e3ad37d0b227d2179088f68c42fa3ffdffe28a761c9cd
7
+ data.tar.gz: 277bb9491cb240e4258d46bc11f4733077544ca356a1b14e6ec080fd98109b32c7f0411b4c38ada623ae0163996d39b825b07c8975fb58d0dba5fbb095c4bbf4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2022-06-13
3
+ ## [0.1.0.pre1] - 2022-09-03
4
4
 
5
- - Initial release
5
+ - Pre release
6
+
7
+ ## [0.1.0.pre2] - 2022-10-05
8
+
9
+ - Update development strategy
10
+
11
+ ## [0.1.0.pre3] - 2022-10-21
12
+
13
+ - Add recurrence metadata
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omnievent (0.1.0.pre1)
4
+ omnievent (0.1.0.pre3)
5
5
  hashie (>= 3.4.6)
6
6
  iso-639 (~> 0.3.5)
7
7
  tzinfo (~> 2.0)
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.0.3.1)
12
+ activesupport (7.0.4)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
@@ -75,4 +75,4 @@ DEPENDENCIES
75
75
  timecop (~> 0.9.5)
76
76
 
77
77
  BUNDLED WITH
78
- 2.3.14
78
+ 2.3.24
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # OmniEvent (In Development)
1
+ # OmniEvent (Pre Release)
2
2
 
3
3
  Manage events from any calendar, event discovery, event ticketing, event management, social network or video conferencing provider in ruby.
4
4
 
@@ -10,11 +10,15 @@ The research and its associated data will be made publicly available in the comi
10
10
 
11
11
  ## Installation
12
12
 
13
- The gem is still being developed and is not yet ready for installation. You can use it locally (see below).
13
+ > Please note that this gem is pre release and is not yet ready for production.
14
14
 
15
- ## Usage (development only)
15
+ Install the gem as follows:
16
16
 
17
- Please note that the gem is still being developed and is not yet ready for production use.
17
+ $ gem install omnievent
18
+
19
+ ## Usage
20
+
21
+ > Please note that this gem is pre release and is not yet ready for production.
18
22
 
19
23
  ### Configure Providers
20
24
 
@@ -122,6 +122,9 @@ module OmniEvent
122
122
  language
123
123
  status
124
124
  taxonomies
125
+ sequence
126
+ series_id
127
+ occurrence_id
125
128
  ]
126
129
  end
127
130
 
@@ -134,7 +137,7 @@ module OmniEvent
134
137
  end
135
138
 
136
139
  def uid_valid?
137
- OmniEvent::Utils.valid_uid?(uid)
140
+ OmniEvent::Utils.valid_type?(uid, :string)
138
141
  end
139
142
 
140
143
  def created_at_valid?
@@ -156,6 +159,18 @@ module OmniEvent
156
159
  def taxonomies_valid?
157
160
  OmniEvent::Utils.all_valid_type?(taxonomies, :string)
158
161
  end
162
+
163
+ def sequence_valid?
164
+ OmniEvent::Utils.valid_type?(sequence, :string)
165
+ end
166
+
167
+ def series_id_valid?
168
+ OmniEvent::Utils.valid_type?(series_id, :string)
169
+ end
170
+
171
+ def occurrence_id_valid?
172
+ OmniEvent::Utils.valid_type?(occurrence_id, :string)
173
+ end
159
174
  end
160
175
 
161
176
  # The event's associated data.
@@ -20,14 +20,14 @@ module OmniEvent
20
20
  include OmniEvent::Strategy
21
21
 
22
22
  option :name, "developer"
23
+ option :uri, File.join(File.expand_path("../../..", __dir__), "spec", "fixtures", "list_events.json")
23
24
 
24
- def self.raw_data
25
- fixture = File.join(File.expand_path("../../..", __dir__), "spec", "fixtures", "list_events.json")
26
- @raw_data ||= JSON.parse(File.open(fixture).read).to_h
25
+ def raw_data
26
+ @raw_data ||= JSON.parse(File.open(options.uri).read).to_h
27
27
  end
28
28
 
29
29
  def raw_events
30
- self.class.raw_data["events"]
30
+ raw_data["events"]
31
31
  end
32
32
 
33
33
  def event_hash(raw_event)
@@ -12,6 +12,8 @@ module OmniEvent
12
12
  base.extend ClassMethods
13
13
  base.class_eval do
14
14
  option :uid_delimiter, "-"
15
+ option :from_time
16
+ option :to_time
15
17
  end
16
18
  end
17
19
 
@@ -70,10 +70,6 @@ module OmniEvent
70
70
  end
71
71
  end
72
72
 
73
- def valid_uid?(value)
74
- value.is_a?(String)
75
- end
76
-
77
73
  def all_valid_type?(array, type)
78
74
  valid_type?(array, :array) && array.all? { |t| valid_type?(t, type) }
79
75
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniEvent
4
- VERSION = "0.1.0.pre1"
4
+ VERSION = "0.1.0.pre3"
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.pre1
4
+ version: 0.1.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: 1.3.1
147
147
  requirements: []
148
- rubygems_version: 3.1.4
148
+ rubygems_version: 3.1.6
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Manage events from multiple providers.