eventdb 0.6.0 → 0.6.1
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 +4 -4
- data/lib/eventdb/reader.rb +16 -3
- data/lib/eventdb/version.rb +1 -1
- data/test/data/RUBY.md +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 757265d114eb64c9f578024115c21041535b8cd9
|
4
|
+
data.tar.gz: a1c2148b333d7751b77bc65dbb6ebc49dcbf484a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dccfd18666bcf7787a700b0eee990705e74afdbc8fb4e5c530cc8c1b62b3468217624e8d23634a2cc669edf667adfe318cd9e5ed48212861ce0fe6a53c4eb280
|
7
|
+
data.tar.gz: fe3c1037f4c4116236afee2c2f64127adba16478fce58adea00f799b97c794bdb5d7160d38dae52450265f2871172db8e2d0acd4a04c6b83254acd69f1064542
|
data/lib/eventdb/reader.rb
CHANGED
@@ -51,7 +51,7 @@ class EventReader
|
|
51
51
|
## - 2014 @ Porto de Galinhas, Pernambuco; Apr/24-27 (formerly: Abril Pro Ruby)
|
52
52
|
|
53
53
|
DATE_ENTRY_REGEX = /\s+
|
54
|
-
(?<year>
|
54
|
+
(?<year>20\d\d) ## year
|
55
55
|
\s+
|
56
56
|
@ ## at location
|
57
57
|
\s+
|
@@ -98,12 +98,25 @@ class EventReader
|
|
98
98
|
|
99
99
|
text.each_line do |line|
|
100
100
|
|
101
|
-
logger.debug "line: >#{line}<"
|
101
|
+
logger.debug "line: >#{line}<" ## todo/check: line can contain newline??
|
102
102
|
line = line.rstrip ## remove (possible) trailing newline
|
103
103
|
|
104
|
-
break if line =~ /^## More/ # stop when hitting >## More< section
|
105
104
|
next if line =~ /^\s*$/ # skip blank lines
|
106
105
|
|
106
|
+
### hack:
|
107
|
+
## todo - make more configurable ??
|
108
|
+
## skip_headings ?? end_markers/blocks ?? etc. - why, why not??
|
109
|
+
|
110
|
+
# stop when hitting >## More< or <Calendar> or <Thanks> etc. section
|
111
|
+
# note: must escape # e.g. #{2,} must be escaped to \#{2,}
|
112
|
+
break if line =~ /^\#{2,} (More|Calendar|Thanks|Meta)\b/
|
113
|
+
|
114
|
+
|
115
|
+
# skip "pseudo" headings (for contribs etc.)
|
116
|
+
## e.g. #### _Contributions welcome. Anything missing? Send in a pull request. Thanks._
|
117
|
+
next if line =~ /Contributions welcome\.|Anything Missing\?/
|
118
|
+
|
119
|
+
|
107
120
|
m = nil
|
108
121
|
if line =~ /^[ ]*(#+)[ ]+/ ## heading/headers - note: must escpape #
|
109
122
|
s = StringScanner.new( line )
|
data/lib/eventdb/version.rb
CHANGED
data/test/data/RUBY.md
CHANGED
@@ -8,7 +8,7 @@ A collection of awesome Ruby events (meetups, conferences, camps, etc.) from aro
|
|
8
8
|
|
9
9
|
---
|
10
10
|
|
11
|
-
|
11
|
+
#### _Contributions welcome. Anything missing? Send in a pull request. Thanks._
|
12
12
|
|
13
13
|
NOTE: A calendar page ([CALENDAR.md](CALENDAR.md)) gets auto-generated from this page listing conferences sorted by year and month.
|
14
14
|
|
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: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: props
|