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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e21aa623d1a2ba00d25e68b4b83952ff75fa224b
4
- data.tar.gz: b5fbc63a1367a6223e37ecc14bae138cf870c126
3
+ metadata.gz: 52be6f20493ce692c731cb7645ea2a15c1de262a
4
+ data.tar.gz: 16bafa4ccf103346e217e27a02ad8903c831eb57
5
5
  SHA512:
6
- metadata.gz: ba54fea476de7d71383153bbcaa259e972bd1185444c85fa2fee14dcb21ac408402b0a26543cfd04dbcc133475a2ab619acd7775379553a1180fcb855814a76a
7
- data.tar.gz: 17a704f8669a246bda5079298ea091f23c9c9fe51d848928ff2ebff00220b4fd1642d3729c5880929855dcb211999b821c40bbeb3e5e54ee7c71c55a91285f3d
6
+ metadata.gz: 8e080a7bd3590fd4b1dbba4cc10ee62343ee74a7fa918c892d33e6ba022c187e88b1bff142cbd8ac6d7096637b0b7408bc9f1145c4127494aa86de8a569ae673
7
+ data.tar.gz: 4f2161cd106ce44b878b791e943c2f4c92504277d2d7a0fe7d2fda84cc8daf16cfda7bd48886b15637a22a670096f7c5cb354a6bc680ae244c8f379f2a43b964
@@ -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
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Almanack
2
2
  CODENAME = "Garlick"
3
- VERSION = "1.1.0.beta3"
3
+ VERSION = "1.1.0.beta4"
4
4
  HOMEPAGE = "https://github.com/Aupajo/almanack"
5
5
  ISSUES = "https://github.com/Aupajo/almanack/issues"
6
6
  end
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.beta3
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: 2014-12-10 00:00:00.000000000 Z
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.2.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.