eventdb 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Manifest.txt +2 -0
- data/NOTES.md +12 -0
- data/README.md +20 -8
- data/Rakefile +1 -1
- data/lib/eventdb/calendar.rb +0 -1
- data/lib/eventdb/database.rb +0 -1
- data/lib/eventdb/models.rb +0 -1
- data/lib/eventdb/outline_reader.rb +0 -1
- data/lib/eventdb/reader.rb +36 -2
- data/lib/eventdb/schema.rb +0 -1
- data/lib/eventdb/version.rb +3 -4
- data/lib/eventdb.rb +8 -9
- data/test/data/conferences.csv +15 -15
- data/test/data/conferences.yml +111 -111
- data/test/data/conferences_ii.yml +68 -68
- data/test/data/test.txt +5 -0
- data/test/helper.rb +0 -2
- data/test/test_calendar.rb +1 -2
- data/test/test_database.rb +0 -2
- data/test/test_parser.rb +0 -2
- data/test/test_reader.rb +5 -2
- data/test/test_version.rb +0 -2
- metadata +19 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 852d8d4c29ae286792106ed5f5ae262d3a51ddb6a6e84da8ec3bb00ef3c57863
|
|
4
|
+
data.tar.gz: bafec2dc649f8508f73ac2180c0369eb9cc5f229f83f2bbd7bab0b9aa8cdd957
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf86cec6c0423cb206c128f4544c3bf1d270aa0dd8086890ef02c25334207303fbe43c2d509e5b9772080ba75c302d1c987a783bc959977c532b3ec4b530659a
|
|
7
|
+
data.tar.gz: bf8edecea2325eff08448b6fb93d134853375b644839dc05ec4b0ae70cf5bc869a8fda362d30676449563017025da601ca3cfa6eaa9ef4c32d438c7f21bcc5ac
|
data/Manifest.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
CHANGELOG.md
|
|
2
2
|
Manifest.txt
|
|
3
|
+
NOTES.md
|
|
3
4
|
README.md
|
|
4
5
|
Rakefile
|
|
5
6
|
lib/eventdb.rb
|
|
@@ -14,6 +15,7 @@ test/data/RUBY.md
|
|
|
14
15
|
test/data/conferences.csv
|
|
15
16
|
test/data/conferences.yml
|
|
16
17
|
test/data/conferences_ii.yml
|
|
18
|
+
test/data/test.txt
|
|
17
19
|
test/helper.rb
|
|
18
20
|
test/templates/RUBY.md.erb
|
|
19
21
|
test/test_calendar.rb
|
data/NOTES.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Notes
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# ToDos
|
|
5
|
+
|
|
6
|
+
- add to schema tags - why? why not?
|
|
7
|
+
- add an (optional) country and city field to schema - why? why not?
|
|
8
|
+
- lets you search/filter by country
|
|
9
|
+
- lets you add geocoords (via nominatum/openstreetmap?) for adding maps?
|
|
10
|
+
- save database - optional? why? why not?
|
|
11
|
+
- use default as :memory: or something?
|
|
12
|
+
- add a config/ini file for (easy) database setup/reuse - why? why not?
|
data/README.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
event.db schema 'n' models for easy (re)use
|
|
4
4
|
|
|
5
|
-
* home :: [github.com/
|
|
6
|
-
* bugs :: [github.com/
|
|
5
|
+
* home :: [github.com/rubycocos/events](https://github.com/rubycocos/events)
|
|
6
|
+
* bugs :: [github.com/rubycocos/events/issues](https://github.com/rubycocos/events/issues)
|
|
7
7
|
* gem :: [rubygems.org/gems/eventdb](https://rubygems.org/gems/eventdb)
|
|
8
8
|
* rdoc :: [rubydoc.info/gems/eventdb](http://rubydoc.info/gems/eventdb)
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
NOTE: Command Line Tools - `rubyconf`, `kickoff`, `beerfest` - Now in `whatson` Package
|
|
14
|
+
NOTE: Command Line Tools - `rubyconf`, `kickoff`, `beerfest` - Now in `whatson` Package
|
|
15
15
|
|
|
16
16
|
The "out-of-the-box" ready-to-use command line tools (that is, `rubyconf`, `kickoff`, `beerfest`, etc.)
|
|
17
17
|
for listing upcoming events (ruby conferences, football tournaments, beer festivals, etc.)
|
|
18
18
|
moved to its own package / library, that is, `whatson`.
|
|
19
|
-
See the [whatson project for more »](
|
|
19
|
+
See the [whatson project for more »](../whatson)
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -29,7 +29,7 @@ require 'eventdb'
|
|
|
29
29
|
|
|
30
30
|
## Step 1 - Setup (In-Memory) Database and Read-in / Fetch Events
|
|
31
31
|
|
|
32
|
-
url = "https://github.com/planetruby/calendar/raw/master/_data/
|
|
32
|
+
url = "https://github.com/planetruby/calendar/raw/master/_data/conferences2023.yml"
|
|
33
33
|
|
|
34
34
|
db = EventDb::Memory.new # note: use in-memory SQLite database
|
|
35
35
|
db.read( url )
|
|
@@ -55,8 +55,20 @@ up.each do |e|
|
|
|
55
55
|
end
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
will print in 2023:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Upcoming Ruby Conferences:
|
|
62
|
+
|
|
63
|
+
in 33d RubyConf Australia, Mon+Tue Feb/20+21 (2d) @ Melbourne, Australia
|
|
64
|
+
in 96d RailsConf (United States), Mon-Wed Apr/24-26 (3d) @ Atlanta, Georgia, United States
|
|
65
|
+
in 113d RubyKaigi, Thu-Sat May/11-13 (3d) @ Nagano, Japan
|
|
66
|
+
in 162d Punk's Not Dead Conf - Ruby (Pixel) Art Programming, Thu+Fri Jun/29+30 (2d) @ Vienna, Austria
|
|
67
|
+
...
|
|
68
|
+
```
|
|
69
|
+
|
|
58
70
|
|
|
59
|
-
|
|
71
|
+
and back in 2020:
|
|
60
72
|
|
|
61
73
|
```
|
|
62
74
|
Upcoming Ruby Conferences:
|
|
@@ -148,7 +160,7 @@ Option 2b) Style B
|
|
|
148
160
|
Option 3a) Style A
|
|
149
161
|
|
|
150
162
|
``` csv
|
|
151
|
-
title, link, place, start_date, end_date
|
|
163
|
+
title, link, place, start_date, end_date
|
|
152
164
|
European Ruby Konference - EuRuKo, http://euruko.org, "Helsinki, Finnland", 2020-08-21, 2020-08-22
|
|
153
165
|
```
|
|
154
166
|
|
data/Rakefile
CHANGED
|
@@ -8,7 +8,7 @@ Hoe.spec 'eventdb' do
|
|
|
8
8
|
self.summary = "eventdb - event.db schema 'n' models for easy (re)use"
|
|
9
9
|
self.description = summary
|
|
10
10
|
|
|
11
|
-
self.urls =
|
|
11
|
+
self.urls = { home: 'https://github.com/textkit/event.db' }
|
|
12
12
|
|
|
13
13
|
self.author = 'Gerald Bauer'
|
|
14
14
|
self.email = 'ruby-talk@ruby-lang.org'
|
data/lib/eventdb/calendar.rb
CHANGED
data/lib/eventdb/database.rb
CHANGED
data/lib/eventdb/models.rb
CHANGED
data/lib/eventdb/reader.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
1
|
|
|
3
2
|
|
|
4
3
|
module EventDb
|
|
@@ -25,6 +24,8 @@ class EventReader
|
|
|
25
24
|
YamlParser.new( txt )
|
|
26
25
|
elsif path.end_with?( '.csv')
|
|
27
26
|
CsvParser.new( txt )
|
|
27
|
+
elsif path.end_with?( '.txt')
|
|
28
|
+
DatafileParser.new( txt )
|
|
28
29
|
else
|
|
29
30
|
MarkdownParser.new( txt )
|
|
30
31
|
end
|
|
@@ -32,6 +33,34 @@ class EventReader
|
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
|
|
36
|
+
class DatafileParser
|
|
37
|
+
def self.parse( text ) new( text ).parse; end
|
|
38
|
+
|
|
39
|
+
include LogUtils::Logging
|
|
40
|
+
|
|
41
|
+
def initialize( text )
|
|
42
|
+
@text = text
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def parse
|
|
46
|
+
events = []
|
|
47
|
+
|
|
48
|
+
@text.each_line do |line|
|
|
49
|
+
line = line.strip
|
|
50
|
+
next if line.empty? ## skip empty lines
|
|
51
|
+
next if line.start_with?( '#') ## skip comment lines
|
|
52
|
+
|
|
53
|
+
## todo/check: add inline comments too - why? why not?
|
|
54
|
+
|
|
55
|
+
puts " reading >#{line}<..."
|
|
56
|
+
events += EventReader.read( line )
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
events
|
|
60
|
+
end
|
|
61
|
+
end # class DatafileParser
|
|
62
|
+
|
|
63
|
+
|
|
35
64
|
class CsvParser
|
|
36
65
|
def self.parse( text ) new( text ).parse; end
|
|
37
66
|
|
|
@@ -84,7 +113,12 @@ class YamlParser
|
|
|
84
113
|
|
|
85
114
|
def parse
|
|
86
115
|
events = []
|
|
87
|
-
|
|
116
|
+
## fix: unquoted dates e.g. 2022-11-27 no longer supported!!
|
|
117
|
+
## with YAML.safe_load
|
|
118
|
+
##
|
|
119
|
+
## quick fix: assume Pysch yaml parser
|
|
120
|
+
## and allow Date!!!
|
|
121
|
+
recs = YAML.load( @text, permitted_classes: [Date] )
|
|
88
122
|
|
|
89
123
|
recs.each do |rec|
|
|
90
124
|
title = rec['name'] || rec['title']
|
data/lib/eventdb/schema.rb
CHANGED
data/lib/eventdb/version.rb
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
1
|
|
|
3
2
|
module EventDb
|
|
4
3
|
|
|
5
4
|
MAJOR = 1 ## todo: namespace inside version or something - why? why not??
|
|
6
5
|
MINOR = 1
|
|
7
|
-
PATCH =
|
|
6
|
+
PATCH = 2
|
|
8
7
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
|
9
8
|
|
|
10
9
|
def self.version
|
|
@@ -12,11 +11,11 @@ module EventDb
|
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
def self.banner
|
|
15
|
-
"eventdb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
|
14
|
+
"eventdb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in root (#{root})"
|
|
16
15
|
end
|
|
17
16
|
|
|
18
17
|
def self.root
|
|
19
|
-
|
|
18
|
+
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
|
20
19
|
end
|
|
21
20
|
|
|
22
21
|
end # module EventDb
|
data/lib/eventdb.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
1
|
|
|
3
2
|
# stdlibs
|
|
4
3
|
require 'pp'
|
|
@@ -18,17 +17,17 @@ require 'logutils/activerecord'
|
|
|
18
17
|
|
|
19
18
|
# our own code
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
require_relative 'eventdb/version' ## let version always go first
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
require_relative 'eventdb/schema'
|
|
23
|
+
require_relative 'eventdb/models'
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
require_relative 'eventdb/outline_reader'
|
|
26
|
+
require_relative 'eventdb/reader'
|
|
27
|
+
require_relative 'eventdb/calendar' # note: depends (requires) models (first)
|
|
28
|
+
require_relative 'eventdb/database'
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
|
|
33
32
|
# say hello
|
|
34
|
-
puts EventDb.banner if defined?($
|
|
33
|
+
puts EventDb.banner if defined?($RUBYCOCOS_DEBUG) && $RUBYCOCOS_DEBUG
|
data/test/data/conferences.csv
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
## source: https://github.com/python-organizers/conferences/blob/master/2020.csv
|
|
2
|
-
|
|
3
|
-
Subject,Start Date,End Date,Location,Country,Venue,Tutorial Deadline,Talk Deadline,Website URL,Proposal URL,Sponsorship URL
|
|
4
|
-
PyCascades,2020-02-08,2020-02-09,"Portland, Oregon, United States of America",USA,Revolution Hall,,2019-10-01,https://2020.pycascades.com,https://www.papercall.io/pycascades-2020,https://2020.pycascades.com/become-a-sponsor/
|
|
5
|
-
PyCon Namibia,2020-02-18,2020-02-20,"Windhoek, Namibia",NAM,,,2019-12-27,https://na.pycon.org/,https://na.pycon.org/call-proposals/,
|
|
6
|
-
PyTennessee,2020-03-07,2020-03-08,"Nashville, Tennessee, United States of America",USA,Nashville School of Law,,,https://www.pytennessee.org/,https://www.pytennessee.org/prospectus,
|
|
7
|
-
PyCon US,2020-04-15,2020-04-23,"Pittsburgh, Pennsylvania, United States of America",USA,David L. Lawrence Convention Center,2019-11-22,2019-12-20,https://us.pycon.org/,https://us.pycon.org/2020/speaking/talks/,https://us.pycon.org/2020/sponsors/
|
|
8
|
-
PyTexas,2020-05-16,2020-05-17,"Austin, Texas, United States of America",USA,,,,https://www.pytexas.org/2020/,,
|
|
9
|
-
PyCon Italy,2020-04-02,2020-04-05,"Florence, Italy",ITA,"Grand Hotel Mediterraneo",,,https://www.pycon.it/en/,,https://www.pycon.it/en/sponsor/
|
|
10
|
-
EuroPython,2020-07-20,2020-07-26,"Dublin, Ireland",IRL,,,,,,
|
|
11
|
-
PyOhio,2020-07-25,2020-07-26,"Columbus, Ohio, United States of America",USA,"The Ohio Union",,,https://www.pyohio.org/2020/,,
|
|
12
|
-
EuroSciPy,2020-07-27,2020-07-31,"Bilbao, Spain",ESP,"Bizkaia Aretoa",,,https://www.euroscipy.org/,,
|
|
13
|
-
GeoPython,2020-07-27,2020-07-31,"Bilbao, Spain",ESP,"Bizkaia Aretoa",,,http://2020.geopython.net,,
|
|
14
|
-
"PyConDE & PyData Berlin 2020",2020-10-14,2020-10-16,"Berlin, Germany",DEU,,,,https://de.pycon.org,,https://de.pycon.org/sponsors/
|
|
15
|
-
"Moscow Python Conf ++ 2020",2020-03-27,2020-03-27,"Moscow, Russia",RUS,"Infospace",,2020-01-13,https://conf.python.ru/en/2020,https://onticoconferences.typeform.com/to/OySCUQ,
|
|
1
|
+
## source: https://github.com/python-organizers/conferences/blob/master/2020.csv
|
|
2
|
+
|
|
3
|
+
Subject,Start Date,End Date,Location,Country,Venue,Tutorial Deadline,Talk Deadline,Website URL,Proposal URL,Sponsorship URL
|
|
4
|
+
PyCascades,2020-02-08,2020-02-09,"Portland, Oregon, United States of America",USA,Revolution Hall,,2019-10-01,https://2020.pycascades.com,https://www.papercall.io/pycascades-2020,https://2020.pycascades.com/become-a-sponsor/
|
|
5
|
+
PyCon Namibia,2020-02-18,2020-02-20,"Windhoek, Namibia",NAM,,,2019-12-27,https://na.pycon.org/,https://na.pycon.org/call-proposals/,
|
|
6
|
+
PyTennessee,2020-03-07,2020-03-08,"Nashville, Tennessee, United States of America",USA,Nashville School of Law,,,https://www.pytennessee.org/,https://www.pytennessee.org/prospectus,
|
|
7
|
+
PyCon US,2020-04-15,2020-04-23,"Pittsburgh, Pennsylvania, United States of America",USA,David L. Lawrence Convention Center,2019-11-22,2019-12-20,https://us.pycon.org/,https://us.pycon.org/2020/speaking/talks/,https://us.pycon.org/2020/sponsors/
|
|
8
|
+
PyTexas,2020-05-16,2020-05-17,"Austin, Texas, United States of America",USA,,,,https://www.pytexas.org/2020/,,
|
|
9
|
+
PyCon Italy,2020-04-02,2020-04-05,"Florence, Italy",ITA,"Grand Hotel Mediterraneo",,,https://www.pycon.it/en/,,https://www.pycon.it/en/sponsor/
|
|
10
|
+
EuroPython,2020-07-20,2020-07-26,"Dublin, Ireland",IRL,,,,,,
|
|
11
|
+
PyOhio,2020-07-25,2020-07-26,"Columbus, Ohio, United States of America",USA,"The Ohio Union",,,https://www.pyohio.org/2020/,,
|
|
12
|
+
EuroSciPy,2020-07-27,2020-07-31,"Bilbao, Spain",ESP,"Bizkaia Aretoa",,,https://www.euroscipy.org/,,
|
|
13
|
+
GeoPython,2020-07-27,2020-07-31,"Bilbao, Spain",ESP,"Bizkaia Aretoa",,,http://2020.geopython.net,,
|
|
14
|
+
"PyConDE & PyData Berlin 2020",2020-10-14,2020-10-16,"Berlin, Germany",DEU,,,,https://de.pycon.org,,https://de.pycon.org/sponsors/
|
|
15
|
+
"Moscow Python Conf ++ 2020",2020-03-27,2020-03-27,"Moscow, Russia",RUS,"Infospace",,2020-01-13,https://conf.python.ru/en/2020,https://onticoconferences.typeform.com/to/OySCUQ,
|
data/test/data/conferences.yml
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
#############################
|
|
2
|
-
# ruby event news in 2020
|
|
3
|
-
#
|
|
4
|
-
# source: https://github.com/planetruby/calendar/blob/master/_data/conferences2020.yml
|
|
5
|
-
|
|
6
|
-
- name: Rubyfuza
|
|
7
|
-
location: Cape Town, South Africa
|
|
8
|
-
start: 2020-02-06 # February 6-8, 2020
|
|
9
|
-
end: 2020-02-08
|
|
10
|
-
url: http://www.rubyfuza.org
|
|
11
|
-
twitter: rubyfuza
|
|
12
|
-
|
|
13
|
-
- name: ParisRB Conf
|
|
14
|
-
location: Paris, France
|
|
15
|
-
start: 2020-02-18 # February 18-19, 2020
|
|
16
|
-
end: 2020-02-19
|
|
17
|
-
url: https://2020.rubyparis.org
|
|
18
|
-
twitter: parisrb
|
|
19
|
-
|
|
20
|
-
- name: RubyConf Australia
|
|
21
|
-
location: Melbourne, Victoria, Australia
|
|
22
|
-
start: 2020-02-20
|
|
23
|
-
end: 2020-02-21
|
|
24
|
-
url: https://www.rubyconf.org.au/2020
|
|
25
|
-
twitter: rubyconf_au
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- name: Wrocław <3 Ruby (wroclove.rb)
|
|
29
|
-
location: Wrocław, Poland
|
|
30
|
-
start: 2020-03-20 # 20-22th March, 2020
|
|
31
|
-
end: 2020-03-22
|
|
32
|
-
url: https://wrocloverb.com
|
|
33
|
-
twitter: wrocloverb
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- name: RubyDay Italy
|
|
37
|
-
location: Verona, Veneto, Italy
|
|
38
|
-
start: 2020-04-02
|
|
39
|
-
end: 2020-04-02
|
|
40
|
-
url: https://2020.rubyday.it
|
|
41
|
-
twitter: rubydayit
|
|
42
|
-
|
|
43
|
-
# RubyKaigi 2020: April 9th - 11th, 2020 @ Matsumoto, Nagano, Japan https://rubykaigi.org/2020
|
|
44
|
-
- name: RubyKaigi
|
|
45
|
-
location: Nagano, Japan
|
|
46
|
-
start: 2020-04-09
|
|
47
|
-
end: 2020-04-11
|
|
48
|
-
url: https://rubykaigi.org/2020
|
|
49
|
-
twitter: rubykaigi
|
|
50
|
-
|
|
51
|
-
- name: RubyConf India
|
|
52
|
-
location: Goa, India
|
|
53
|
-
start: 2020-04-25 # April 25-26 2020
|
|
54
|
-
end: 2020-04-26
|
|
55
|
-
url: http://rubyconfindia.org
|
|
56
|
-
twitter: rubyconfindia
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# RailsConf 2020 will be in Portland, OR from May 5-7
|
|
60
|
-
- name: RailsConf (United States)
|
|
61
|
-
location: Portland, Oregon, United States
|
|
62
|
-
start: 2020-05-05
|
|
63
|
-
end: 2020-05-07
|
|
64
|
-
url: https://railsconf.com
|
|
65
|
-
twitter: railsconf
|
|
66
|
-
|
|
67
|
-
- name: Balkan Ruby
|
|
68
|
-
location: Sofia, Bulgaria
|
|
69
|
-
start: 2020-05-15
|
|
70
|
-
end: 2020-05-16
|
|
71
|
-
url: https://balkanruby.com
|
|
72
|
-
twitter: balkanruby
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- name: Ruby Unconf Hamburg
|
|
76
|
-
location: Hamburg, Germany
|
|
77
|
-
start: 2020-06-06 ## June 6th & 7th 2020
|
|
78
|
-
end: 2020-06-07
|
|
79
|
-
url: http://2020.rubyunconf.eu
|
|
80
|
-
twitter: rubyunconfeu
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- name: Brighton RubyConf
|
|
84
|
-
location: Brighton, Sussex, England, United Kingdom
|
|
85
|
-
start: 2020-07-03
|
|
86
|
-
end: 2020-07-03
|
|
87
|
-
url: https://brightonruby.com
|
|
88
|
-
twitter: brightonruby
|
|
89
|
-
|
|
90
|
-
- name: RubyConf Kenya
|
|
91
|
-
location: Nairobi, Kenya
|
|
92
|
-
start: 2020-07-23
|
|
93
|
-
end: 2020-07-25
|
|
94
|
-
url: http://rubyconf.nairuby.org/2020
|
|
95
|
-
twitter: nairubyke
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- name: European Ruby Konference (EuRuKo)
|
|
99
|
-
location: Helsinki, Finnland
|
|
100
|
-
start: 2020-08-21 # 21–22.8.2020
|
|
101
|
-
end: 2020-08-22
|
|
102
|
-
url: https://euruko2020.org
|
|
103
|
-
twitter: euruko
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
- name: RubyConf (United States)
|
|
107
|
-
location: Houston, Texas, United States
|
|
108
|
-
start: 2020-11-17
|
|
109
|
-
end: 2020-11-19
|
|
110
|
-
url: https://rubyconf.org
|
|
111
|
-
twitter: rubyconf
|
|
1
|
+
#############################
|
|
2
|
+
# ruby event news in 2020
|
|
3
|
+
#
|
|
4
|
+
# source: https://github.com/planetruby/calendar/blob/master/_data/conferences2020.yml
|
|
5
|
+
|
|
6
|
+
- name: Rubyfuza
|
|
7
|
+
location: Cape Town, South Africa
|
|
8
|
+
start: 2020-02-06 # February 6-8, 2020
|
|
9
|
+
end: 2020-02-08
|
|
10
|
+
url: http://www.rubyfuza.org
|
|
11
|
+
twitter: rubyfuza
|
|
12
|
+
|
|
13
|
+
- name: ParisRB Conf
|
|
14
|
+
location: Paris, France
|
|
15
|
+
start: 2020-02-18 # February 18-19, 2020
|
|
16
|
+
end: 2020-02-19
|
|
17
|
+
url: https://2020.rubyparis.org
|
|
18
|
+
twitter: parisrb
|
|
19
|
+
|
|
20
|
+
- name: RubyConf Australia
|
|
21
|
+
location: Melbourne, Victoria, Australia
|
|
22
|
+
start: 2020-02-20
|
|
23
|
+
end: 2020-02-21
|
|
24
|
+
url: https://www.rubyconf.org.au/2020
|
|
25
|
+
twitter: rubyconf_au
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
- name: Wrocław <3 Ruby (wroclove.rb)
|
|
29
|
+
location: Wrocław, Poland
|
|
30
|
+
start: 2020-03-20 # 20-22th March, 2020
|
|
31
|
+
end: 2020-03-22
|
|
32
|
+
url: https://wrocloverb.com
|
|
33
|
+
twitter: wrocloverb
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
- name: RubyDay Italy
|
|
37
|
+
location: Verona, Veneto, Italy
|
|
38
|
+
start: 2020-04-02
|
|
39
|
+
end: 2020-04-02
|
|
40
|
+
url: https://2020.rubyday.it
|
|
41
|
+
twitter: rubydayit
|
|
42
|
+
|
|
43
|
+
# RubyKaigi 2020: April 9th - 11th, 2020 @ Matsumoto, Nagano, Japan https://rubykaigi.org/2020
|
|
44
|
+
- name: RubyKaigi
|
|
45
|
+
location: Nagano, Japan
|
|
46
|
+
start: 2020-04-09
|
|
47
|
+
end: 2020-04-11
|
|
48
|
+
url: https://rubykaigi.org/2020
|
|
49
|
+
twitter: rubykaigi
|
|
50
|
+
|
|
51
|
+
- name: RubyConf India
|
|
52
|
+
location: Goa, India
|
|
53
|
+
start: 2020-04-25 # April 25-26 2020
|
|
54
|
+
end: 2020-04-26
|
|
55
|
+
url: http://rubyconfindia.org
|
|
56
|
+
twitter: rubyconfindia
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# RailsConf 2020 will be in Portland, OR from May 5-7
|
|
60
|
+
- name: RailsConf (United States)
|
|
61
|
+
location: Portland, Oregon, United States
|
|
62
|
+
start: 2020-05-05
|
|
63
|
+
end: 2020-05-07
|
|
64
|
+
url: https://railsconf.com
|
|
65
|
+
twitter: railsconf
|
|
66
|
+
|
|
67
|
+
- name: Balkan Ruby
|
|
68
|
+
location: Sofia, Bulgaria
|
|
69
|
+
start: 2020-05-15
|
|
70
|
+
end: 2020-05-16
|
|
71
|
+
url: https://balkanruby.com
|
|
72
|
+
twitter: balkanruby
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
- name: Ruby Unconf Hamburg
|
|
76
|
+
location: Hamburg, Germany
|
|
77
|
+
start: 2020-06-06 ## June 6th & 7th 2020
|
|
78
|
+
end: 2020-06-07
|
|
79
|
+
url: http://2020.rubyunconf.eu
|
|
80
|
+
twitter: rubyunconfeu
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- name: Brighton RubyConf
|
|
84
|
+
location: Brighton, Sussex, England, United Kingdom
|
|
85
|
+
start: 2020-07-03
|
|
86
|
+
end: 2020-07-03
|
|
87
|
+
url: https://brightonruby.com
|
|
88
|
+
twitter: brightonruby
|
|
89
|
+
|
|
90
|
+
- name: RubyConf Kenya
|
|
91
|
+
location: Nairobi, Kenya
|
|
92
|
+
start: 2020-07-23
|
|
93
|
+
end: 2020-07-25
|
|
94
|
+
url: http://rubyconf.nairuby.org/2020
|
|
95
|
+
twitter: nairubyke
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- name: European Ruby Konference (EuRuKo)
|
|
99
|
+
location: Helsinki, Finnland
|
|
100
|
+
start: 2020-08-21 # 21–22.8.2020
|
|
101
|
+
end: 2020-08-22
|
|
102
|
+
url: https://euruko2020.org
|
|
103
|
+
twitter: euruko
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- name: RubyConf (United States)
|
|
107
|
+
location: Houston, Texas, United States
|
|
108
|
+
start: 2020-11-17
|
|
109
|
+
end: 2020-11-19
|
|
110
|
+
url: https://rubyconf.org
|
|
111
|
+
twitter: rubyconf
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
## source: https://github.com/ruby-conferences/ruby-conferences.github.io/blob/master/_data/conferences.yml
|
|
2
|
-
|
|
3
|
-
- name: Rubyfuza
|
|
4
|
-
location: Cape Town, South Africa
|
|
5
|
-
start_date: 2020-02-06
|
|
6
|
-
end_date: 2020-02-08
|
|
7
|
-
url: http://www.rubyfuza.org
|
|
8
|
-
twitter: rubyfuza
|
|
9
|
-
|
|
10
|
-
- name: ParisRB Conf
|
|
11
|
-
location: Paris, France
|
|
12
|
-
url: https://2020.rubyparis.org/
|
|
13
|
-
start_date: 2020-02-18
|
|
14
|
-
end_date: 2020-02-19
|
|
15
|
-
twitter: parisrb
|
|
16
|
-
|
|
17
|
-
- name: RubyConf AU
|
|
18
|
-
location: Melbourne, Australia
|
|
19
|
-
url: https://www.rubyconf.org.au/2020
|
|
20
|
-
start_date: 2020-02-20
|
|
21
|
-
end_date: 2020-02-21
|
|
22
|
-
twitter: rubyconf_au
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- name: RubyDay
|
|
26
|
-
location: Verona, Italy
|
|
27
|
-
start_date: 2020-04-02
|
|
28
|
-
end_date: 2020-04-02
|
|
29
|
-
url: https://2020.rubyday.it
|
|
30
|
-
twitter: rubydayit
|
|
31
|
-
|
|
32
|
-
- name: RubyKaigi
|
|
33
|
-
location: Nagano, Japan
|
|
34
|
-
start_date: 2020-04-09
|
|
35
|
-
end_date: 2020-04-11
|
|
36
|
-
url: https://rubykaigi.org/2020
|
|
37
|
-
twitter: rubykaigi
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- name: RailsConf
|
|
41
|
-
location: Portland, OR
|
|
42
|
-
start_date: 2020-05-05
|
|
43
|
-
end_date: 2020-05-07
|
|
44
|
-
url: https://railsconf.com/
|
|
45
|
-
twitter: railsconf
|
|
46
|
-
|
|
47
|
-
- name: Balkan Ruby
|
|
48
|
-
location: Sofia, Bulgaria
|
|
49
|
-
start_date: 2020-05-15
|
|
50
|
-
end_date: 2020-05-16
|
|
51
|
-
url: https://balkanruby.com
|
|
52
|
-
twitter: balkanruby
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- name: Brighton Ruby Conf
|
|
56
|
-
location: Brighton, UK
|
|
57
|
-
start_date: 2020-07-03
|
|
58
|
-
end_date: 2020-07-03
|
|
59
|
-
url: https://brightonruby.com
|
|
60
|
-
twitter: brightonruby
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- name: RubyConf
|
|
64
|
-
location: Houston, TX
|
|
65
|
-
start_date: 2020-11-17
|
|
66
|
-
end_date: 2020-11-19
|
|
67
|
-
url: https://rubyconf.org
|
|
68
|
-
twitter: rubyconf
|
|
1
|
+
## source: https://github.com/ruby-conferences/ruby-conferences.github.io/blob/master/_data/conferences.yml
|
|
2
|
+
|
|
3
|
+
- name: Rubyfuza
|
|
4
|
+
location: Cape Town, South Africa
|
|
5
|
+
start_date: 2020-02-06
|
|
6
|
+
end_date: 2020-02-08
|
|
7
|
+
url: http://www.rubyfuza.org
|
|
8
|
+
twitter: rubyfuza
|
|
9
|
+
|
|
10
|
+
- name: ParisRB Conf
|
|
11
|
+
location: Paris, France
|
|
12
|
+
url: https://2020.rubyparis.org/
|
|
13
|
+
start_date: 2020-02-18
|
|
14
|
+
end_date: 2020-02-19
|
|
15
|
+
twitter: parisrb
|
|
16
|
+
|
|
17
|
+
- name: RubyConf AU
|
|
18
|
+
location: Melbourne, Australia
|
|
19
|
+
url: https://www.rubyconf.org.au/2020
|
|
20
|
+
start_date: 2020-02-20
|
|
21
|
+
end_date: 2020-02-21
|
|
22
|
+
twitter: rubyconf_au
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
- name: RubyDay
|
|
26
|
+
location: Verona, Italy
|
|
27
|
+
start_date: 2020-04-02
|
|
28
|
+
end_date: 2020-04-02
|
|
29
|
+
url: https://2020.rubyday.it
|
|
30
|
+
twitter: rubydayit
|
|
31
|
+
|
|
32
|
+
- name: RubyKaigi
|
|
33
|
+
location: Nagano, Japan
|
|
34
|
+
start_date: 2020-04-09
|
|
35
|
+
end_date: 2020-04-11
|
|
36
|
+
url: https://rubykaigi.org/2020
|
|
37
|
+
twitter: rubykaigi
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
- name: RailsConf
|
|
41
|
+
location: Portland, OR
|
|
42
|
+
start_date: 2020-05-05
|
|
43
|
+
end_date: 2020-05-07
|
|
44
|
+
url: https://railsconf.com/
|
|
45
|
+
twitter: railsconf
|
|
46
|
+
|
|
47
|
+
- name: Balkan Ruby
|
|
48
|
+
location: Sofia, Bulgaria
|
|
49
|
+
start_date: 2020-05-15
|
|
50
|
+
end_date: 2020-05-16
|
|
51
|
+
url: https://balkanruby.com
|
|
52
|
+
twitter: balkanruby
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- name: Brighton Ruby Conf
|
|
56
|
+
location: Brighton, UK
|
|
57
|
+
start_date: 2020-07-03
|
|
58
|
+
end_date: 2020-07-03
|
|
59
|
+
url: https://brightonruby.com
|
|
60
|
+
twitter: brightonruby
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
- name: RubyConf
|
|
64
|
+
location: Houston, TX
|
|
65
|
+
start_date: 2020-11-17
|
|
66
|
+
end_date: 2020-11-19
|
|
67
|
+
url: https://rubyconf.org
|
|
68
|
+
twitter: rubyconf
|
data/test/data/test.txt
ADDED
data/test/helper.rb
CHANGED
data/test/test_calendar.rb
CHANGED
data/test/test_database.rb
CHANGED
data/test/test_parser.rb
CHANGED
data/test/test_reader.rb
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
|
|
3
1
|
###
|
|
4
2
|
# to run use
|
|
5
3
|
# ruby -I ./lib -I ./test test/test_reader.rb
|
|
@@ -9,6 +7,11 @@ require 'helper'
|
|
|
9
7
|
|
|
10
8
|
class TestReader < MiniTest::Test
|
|
11
9
|
|
|
10
|
+
def test_datafiles
|
|
11
|
+
events = EventDb::EventReader.read( "#{EventDb.root}/test/data/test.txt" )
|
|
12
|
+
pp events
|
|
13
|
+
end
|
|
14
|
+
|
|
12
15
|
def test_markdown
|
|
13
16
|
events = EventDb::EventReader.read( "#{EventDb.root}/test/data/RUBY.md" )
|
|
14
17
|
|
data/test/test_version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eventdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gerald Bauer
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: props
|
|
@@ -98,30 +98,36 @@ dependencies:
|
|
|
98
98
|
name: rdoc
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- - "
|
|
101
|
+
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '4.0'
|
|
104
|
+
- - "<"
|
|
105
|
+
- !ruby/object:Gem::Version
|
|
106
|
+
version: '7'
|
|
104
107
|
type: :development
|
|
105
108
|
prerelease: false
|
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
110
|
requirements:
|
|
108
|
-
- - "
|
|
111
|
+
- - ">="
|
|
109
112
|
- !ruby/object:Gem::Version
|
|
110
113
|
version: '4.0'
|
|
114
|
+
- - "<"
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: '7'
|
|
111
117
|
- !ruby/object:Gem::Dependency
|
|
112
118
|
name: hoe
|
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|
|
114
120
|
requirements:
|
|
115
121
|
- - "~>"
|
|
116
122
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '3.
|
|
123
|
+
version: '3.23'
|
|
118
124
|
type: :development
|
|
119
125
|
prerelease: false
|
|
120
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
127
|
requirements:
|
|
122
128
|
- - "~>"
|
|
123
129
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '3.
|
|
130
|
+
version: '3.23'
|
|
125
131
|
description: eventdb - event.db schema 'n' models for easy (re)use
|
|
126
132
|
email: ruby-talk@ruby-lang.org
|
|
127
133
|
executables: []
|
|
@@ -129,10 +135,12 @@ extensions: []
|
|
|
129
135
|
extra_rdoc_files:
|
|
130
136
|
- CHANGELOG.md
|
|
131
137
|
- Manifest.txt
|
|
138
|
+
- NOTES.md
|
|
132
139
|
- README.md
|
|
133
140
|
files:
|
|
134
141
|
- CHANGELOG.md
|
|
135
142
|
- Manifest.txt
|
|
143
|
+
- NOTES.md
|
|
136
144
|
- README.md
|
|
137
145
|
- Rakefile
|
|
138
146
|
- lib/eventdb.rb
|
|
@@ -147,6 +155,7 @@ files:
|
|
|
147
155
|
- test/data/conferences.csv
|
|
148
156
|
- test/data/conferences.yml
|
|
149
157
|
- test/data/conferences_ii.yml
|
|
158
|
+
- test/data/test.txt
|
|
150
159
|
- test/helper.rb
|
|
151
160
|
- test/templates/RUBY.md.erb
|
|
152
161
|
- test/test_calendar.rb
|
|
@@ -158,7 +167,7 @@ homepage: https://github.com/textkit/event.db
|
|
|
158
167
|
licenses:
|
|
159
168
|
- Public Domain
|
|
160
169
|
metadata: {}
|
|
161
|
-
post_install_message:
|
|
170
|
+
post_install_message:
|
|
162
171
|
rdoc_options:
|
|
163
172
|
- "--main"
|
|
164
173
|
- README.md
|
|
@@ -175,9 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
175
184
|
- !ruby/object:Gem::Version
|
|
176
185
|
version: '0'
|
|
177
186
|
requirements: []
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
signing_key:
|
|
187
|
+
rubygems_version: 3.3.7
|
|
188
|
+
signing_key:
|
|
181
189
|
specification_version: 4
|
|
182
190
|
summary: eventdb - event.db schema 'n' models for easy (re)use
|
|
183
191
|
test_files: []
|