almanack 1.1.0.beta4 → 1.1.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/almanack/configuration.rb +1 -0
- data/lib/almanack/event.rb +7 -3
- 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: 0c36d9bfa065a70d2b6e3b5299213dc8ea38132b
|
4
|
+
data.tar.gz: 522b3819c8bc819ba3499f07c9d9e15d3d6476ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7abe8380eab8d1a8ad8a7ba45ca92de6b8abbac1764fcd7e83f7d29b6c83b023d00f3530fb4c0604770aedaadbadafd69bc2a9f1b808a27fa8acfcdda0210047
|
7
|
+
data.tar.gz: 4cfe46e37c3570ff50858a05869754c501fb2a413b573caaa8038e04a3da79c7296b20172e1f9767b9c6cc83975f5e753c50eea6987772a6f81cc9f69c2bae49
|
data/lib/almanack/event.rb
CHANGED
@@ -15,15 +15,15 @@ module Almanack
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def title
|
18
|
-
|
18
|
+
safely_encoded(:title)
|
19
19
|
end
|
20
20
|
|
21
21
|
def location
|
22
|
-
|
22
|
+
safely_encoded(:location)
|
23
23
|
end
|
24
24
|
|
25
25
|
def description
|
26
|
-
|
26
|
+
safely_encoded(:description)
|
27
27
|
end
|
28
28
|
|
29
29
|
# Deprecated in favour of start_time
|
@@ -52,6 +52,10 @@ module Almanack
|
|
52
52
|
|
53
53
|
private
|
54
54
|
|
55
|
+
def safely_encoded(attr)
|
56
|
+
self[attr].try(:force_encoding, 'UTF-8')
|
57
|
+
end
|
58
|
+
|
55
59
|
def serialize_attribute(attribute)
|
56
60
|
value = send(attribute)
|
57
61
|
value.is_a?(Time) ? value.iso8601 : value
|
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.beta5
|
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: 2016-02-29 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.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.
|