eventdb 0.6.0 → 0.6.1

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
  SHA1:
3
- metadata.gz: e654b4516eb35c7b99b568fc10b10fa9236d9886
4
- data.tar.gz: 8e2b5920e684344fd7177f484783482efce0c859
3
+ metadata.gz: 757265d114eb64c9f578024115c21041535b8cd9
4
+ data.tar.gz: a1c2148b333d7751b77bc65dbb6ebc49dcbf484a
5
5
  SHA512:
6
- metadata.gz: e2055488d9f4f913557b59f6b01ecb28e5e84c88b24933443eb19c8148e46a9599b9f8ea5605baebdb308293ccff282817ec1c474a80438fc198ef5a990e77d0
7
- data.tar.gz: afaeae0de077a297795e27e2ed19d8924caf2c1358ff4c1559c496609332da95db606ffc2227246dc7942f320b8eae8db23d54fadba42691b16bf83cc0e75289
6
+ metadata.gz: dccfd18666bcf7787a700b0eee990705e74afdbc8fb4e5c530cc8c1b62b3468217624e8d23634a2cc669edf667adfe318cd9e5ed48212861ce0fe6a53c4eb280
7
+ data.tar.gz: fe3c1037f4c4116236afee2c2f64127adba16478fce58adea00f799b97c794bdb5d7160d38dae52450265f2871172db8e2d0acd4a04c6b83254acd69f1064542
@@ -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>201\d) ## 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 )
@@ -4,7 +4,7 @@ module EventDb
4
4
 
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 6
7
- PATCH = 0
7
+ PATCH = 1
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
@@ -8,7 +8,7 @@ A collection of awesome Ruby events (meetups, conferences, camps, etc.) from aro
8
8
 
9
9
  ---
10
10
 
11
- Contributions welcome. Anything missing? Send in a pull request. Thanks.
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.0
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-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: props