eventdb 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +2 -0
- data/README.md +24 -4
- data/bin/beerfest +18 -0
- data/lib/eventdb/beerfest.rb +40 -0
- data/lib/eventdb/version.rb +1 -1
- data/lib/eventdb.rb +2 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b70e8ad30cf78baa0d12cb0b6551ea3fd6176639
|
4
|
+
data.tar.gz: 4a3eaf01f136569c7213892566c75e4a13a30460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa45f7e75736a32f1bc049706aee236699e859ad15e94b29e9f9a9f60182c711dfe0533c78db41582fd284f83ec26e1d530c4797a14a7555ee7d8c9438706d28
|
7
|
+
data.tar.gz: 1434e0b8c81f5f4ce6976355b4e7b34f2ffc3d79dc19a47c4438ea2b469105b12bdf9d98deac04537178bc71abd57b44602225c304c34f23f4f2b1a423ee3eaf
|
data/Manifest.txt
CHANGED
data/README.md
CHANGED
@@ -11,7 +11,8 @@ event.db models n tools
|
|
11
11
|
|
12
12
|
## Command-Line Tool Usage
|
13
13
|
|
14
|
-
The eventdb gem includes command-line tools
|
14
|
+
The eventdb gem includes command-line tools
|
15
|
+
to list upcoming events (ruby conferences, beer festivals. etc.).
|
15
16
|
|
16
17
|
|
17
18
|
### Upcoming Ruby Conferences
|
@@ -22,7 +23,7 @@ Use
|
|
22
23
|
$ rubyconf
|
23
24
|
~~~
|
24
25
|
|
25
|
-
to list
|
26
|
+
to list upcoming Ruby (un)conferences from around the world. Will print:
|
26
27
|
|
27
28
|
~~~
|
28
29
|
Upcoming Ruby Conferences:
|
@@ -30,7 +31,7 @@ Upcoming Ruby Conferences:
|
|
30
31
|
Jul/1+2 - RubyMotion Conference - #inspect @ Paris, France › Europe
|
31
32
|
Jul/20 - Brighton Ruby Conference @ Brighton, East Sussex › England (en) › Western Europe › Europe
|
32
33
|
Jul/31-Aug/2 - European Ruby Camp - eurucamp @ Berlin (Potsdam), Germany › Europe
|
33
|
-
Jul/31 - JRuby Conference Europe - JRubyConf EU @ Berlin (
|
34
|
+
Jul/31 - JRuby Conference Europe - JRubyConf EU @ Berlin (Potsdam), Germany › Europe
|
34
35
|
Aug/1+2 - Burlington Ruby Conference @ Burlington, Vermont › New England › United States (us) › North America › America
|
35
36
|
Aug/21+22 - Madison+ Ruby @ Madison, Wisconsin › Great Lakes › United States (us) › North America › America
|
36
37
|
Sept/1–5 - Full Stack Fest - Barcelona Ruby Conference (BaRuCo) + Barcelona Future JS @ Barcelona, Catalonia › Spain / España (es) › Southern Europe › Europe
|
@@ -43,15 +44,34 @@ Upcoming Ruby Conferences:
|
|
43
44
|
Oct/15+16 - RubyConf Colombia @ Medellin › Colombia (co) › South America › America
|
44
45
|
Oct/17+18 - European Ruby Konference - EuRuKo @ Salzburg, Austria › Europe
|
45
46
|
Nov/11+12 - RubyWorld Conference @ Matsue › Japan (jp) › Asia
|
47
|
+
~~~
|
48
|
+
|
49
|
+
### Upcoming Beerfests
|
50
|
+
|
51
|
+
Use
|
46
52
|
|
47
|
-
More @ github.com/planetruby/awesome-events
|
48
53
|
~~~
|
54
|
+
$ beerfest
|
55
|
+
~~~
|
56
|
+
|
57
|
+
to list upcoming beer festivals from around the world. Will print:
|
49
58
|
|
59
|
+
~~~
|
60
|
+
Upcoming Beerfests:
|
61
|
+
|
62
|
+
Jul/2-Sept/2 - Ottakringer Braukultur Wochen (9 Brauereien in 9 Wochen) @ 16., Ottakring › Vienna / Wien › Austria / Österreich (at) › Central Europe › Europe
|
63
|
+
Jul/24-Aug/3 - Annafest ("Auf den Kellern") @ Forchheim › Upper Franconia / Oberfranken › Bavaria / Bayern › Germany / Deutschland (de) › Central Europe › Europe
|
64
|
+
Jul/25-Aug/2 - Kulmbacher Bierwoche @ Kulmbach › Upper Franconia / Oberfranken › Bavaria / Bayern › Germany / Deutschland (de) › Central Europe › Europe
|
65
|
+
Aug/20-24 - Sandwerka (Sandkirchweih) @ Bamberg › Upper Franconia / Oberfranken › Bavaria / Bayern › Germany / Deutschland (de) › Central Europe › Europe
|
66
|
+
Sept/19-Oct/4 - Oktoberfest ("Die Wiesn") @ Munich / München › Upper Bavaria / Oberbayern › Bavaria / Bayern › Germany / Deutschland (de) › Central Europe › Europe
|
67
|
+
Oct/24+25 - Biermesse Ried (Festival der Biervielfalt) @ Ried i. Innkreis › Upper Austria / Oberösterreich › Austria / Österreich (at) › Central Europe › Europe
|
68
|
+
~~~
|
50
69
|
|
51
70
|
|
52
71
|
## Public Event Datasets
|
53
72
|
|
54
73
|
- [awesome-events @ Planet Ruby](https://github.com/planetruby/awesome-events) - a collection of awesome Ruby events (meetups, conferences, camps, etc.) from around the world
|
74
|
+
- [calendar @ beer.db](https://github.com/openbeer/calendar) - a collection of awesome beer events (oktoberfest, starkbierfest, etc.) from around the world
|
55
75
|
|
56
76
|
|
57
77
|
## Install
|
data/bin/beerfest
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
###################
|
4
|
+
# == DEV TIPS:
|
5
|
+
#
|
6
|
+
# For local testing run like:
|
7
|
+
#
|
8
|
+
# ruby -Ilib bin/beerfest
|
9
|
+
#
|
10
|
+
# Set the executable bit in Linux. Example:
|
11
|
+
#
|
12
|
+
# % chmod a+x bin/beerfest
|
13
|
+
#
|
14
|
+
|
15
|
+
require 'eventdb'
|
16
|
+
|
17
|
+
EventDb::BeerFest.new.print
|
18
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module EventDb
|
4
|
+
|
5
|
+
class BeerFest
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
## turn down logger (default :debug?)
|
9
|
+
LogUtils::Logger.root.level = :info
|
10
|
+
|
11
|
+
r = EventDb::EventReader.from_url( "https://github.com/openbeer/calendar/raw/master/README.md" )
|
12
|
+
events = r.read
|
13
|
+
|
14
|
+
@db = EventDb::Database.new
|
15
|
+
@db.add( events )
|
16
|
+
end
|
17
|
+
|
18
|
+
def print
|
19
|
+
## get next 17 events
|
20
|
+
up = EventDb::Model::Event.limit( 17 )
|
21
|
+
.order( 'start_date' )
|
22
|
+
.where( 'start_date >= ?', Date.today )
|
23
|
+
## pp up.to_sql
|
24
|
+
## pp up
|
25
|
+
|
26
|
+
puts ''
|
27
|
+
puts ''
|
28
|
+
puts "Upcoming Beerfests:"
|
29
|
+
puts ''
|
30
|
+
up.each do |e|
|
31
|
+
puts " #{e.date} - #{e.title} @ #{e.place}"
|
32
|
+
end
|
33
|
+
puts ''
|
34
|
+
puts " More @ github.com/openbeer/calendar"
|
35
|
+
puts ''
|
36
|
+
end
|
37
|
+
|
38
|
+
end # class BeerFest
|
39
|
+
|
40
|
+
end # module EventDb
|
data/lib/eventdb/version.rb
CHANGED
data/lib/eventdb.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
@@ -181,6 +181,7 @@ dependencies:
|
|
181
181
|
description: eventdb - event.db models n tools
|
182
182
|
email: ruby-talk@ruby-lang.org
|
183
183
|
executables:
|
184
|
+
- beerfest
|
184
185
|
- rubyconf
|
185
186
|
extensions: []
|
186
187
|
extra_rdoc_files:
|
@@ -193,8 +194,10 @@ files:
|
|
193
194
|
- Manifest.txt
|
194
195
|
- README.md
|
195
196
|
- Rakefile
|
197
|
+
- bin/beerfest
|
196
198
|
- bin/rubyconf
|
197
199
|
- lib/eventdb.rb
|
200
|
+
- lib/eventdb/beerfest.rb
|
198
201
|
- lib/eventdb/calendar.rb
|
199
202
|
- lib/eventdb/database.rb
|
200
203
|
- lib/eventdb/models.rb
|