almanack 1.1.0.beta3 → 1.1.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/almanack/calendar.rb +2 -2
- data/lib/almanack/event.rb +12 -0
- data/lib/almanack/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52be6f20493ce692c731cb7645ea2a15c1de262a
|
4
|
+
data.tar.gz: 16bafa4ccf103346e217e27a02ad8903c831eb57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e080a7bd3590fd4b1dbba4cc10ee62343ee74a7fa918c892d33e6ba022c187e88b1bff142cbd8ac6d7096637b0b7408bc9f1145c4127494aa86de8a569ae673
|
7
|
+
data.tar.gz: 4f2161cd106ce44b878b791e943c2f4c92504277d2d7a0fe7d2fda84cc8daf16cfda7bd48886b15637a22a670096f7c5cb354a6bc680ae244c8f379f2a43b964
|
data/lib/almanack/calendar.rb
CHANGED
@@ -20,8 +20,8 @@ module Almanack
|
|
20
20
|
|
21
21
|
def events_between(date_range)
|
22
22
|
event_list = event_sources.map do |event_source|
|
23
|
-
event_source.events_between(date_range)
|
24
|
-
end.flatten
|
23
|
+
Thread.new { event_source.events_between(date_range) }
|
24
|
+
end.map(&:value).flatten
|
25
25
|
|
26
26
|
event_list.sort_by do |event|
|
27
27
|
event.start_time.to_time
|
data/lib/almanack/event.rb
CHANGED
@@ -14,6 +14,18 @@ module Almanack
|
|
14
14
|
formatted
|
15
15
|
end
|
16
16
|
|
17
|
+
def title
|
18
|
+
self[:title].force_encoding('UTF-8')
|
19
|
+
end
|
20
|
+
|
21
|
+
def location
|
22
|
+
self[:location].force_encoding('UTF-8')
|
23
|
+
end
|
24
|
+
|
25
|
+
def description
|
26
|
+
self[:description].force_encoding('UTF-8')
|
27
|
+
end
|
28
|
+
|
17
29
|
# Deprecated in favour of start_time
|
18
30
|
def start_date
|
19
31
|
deprecated :start_date, newer_method: :start_time
|
data/lib/almanack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: almanack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Nicholls
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -378,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
378
378
|
version: 1.3.1
|
379
379
|
requirements: []
|
380
380
|
rubyforge_project:
|
381
|
-
rubygems_version: 2.
|
381
|
+
rubygems_version: 2.4.5.1
|
382
382
|
signing_key:
|
383
383
|
specification_version: 4
|
384
384
|
summary: Combined events calendar for Google Calendar, iCal, Meetup.com and friends.
|