almanack 1.1.0.beta5 → 1.1.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +3 -6
- data/README.md +0 -1
- data/almanack.gemspec +0 -2
- data/lib/almanack/configuration.rb +0 -1
- data/lib/almanack/event.rb +3 -7
- data/lib/almanack/version.rb +1 -1
- data/spec/spec_helper.rb +1 -5
- metadata +3 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 05426dcc39293d4df6b54f8c3f54e8bb30aecfc45e1e49ef7949b66932e1c9e5
|
4
|
+
data.tar.gz: 5ce2e06a75cd667fcc429366ea6bf8a595c2f5bd7fd395e54c75a4506f31512a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd20eb9a10afb336b9b5b514e3b1cb0784110a5932769ecbfd55b70029c399aec355e3294f77690882fb64b98eb8e79a359e7e2144f5e518aaffb6ea2ce50b7d
|
7
|
+
data.tar.gz: c946d50086a0d5638cb47323875d6e8032e58e42b864ba6f1aea22a7e6344e10748d93114ac59795b17b9b00595c666531a20599d128bde1ea6b4ddb8e15b77e
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Almanack
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/Aupajo/almanack.svg)](https://travis-ci.org/Aupajo/almanack)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/Aupajo/almanack.png)](https://codeclimate.com/github/Aupajo/almanack)
|
5
4
|
[![Gem Version](https://badge.fury.io/rb/almanack.svg)](http://badge.fury.io/rb/almanack)
|
6
5
|
|
7
6
|
A calendar that combines events from different sources (such as Google Calendar, Meetup.com, and iCal feeds), and can be hosted for free on [Heroku](http://heroku.com).
|
data/almanack.gemspec
CHANGED
@@ -28,7 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency "rack-contrib"
|
29
29
|
spec.add_dependency "activesupport"
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler", "~> 1.5"
|
32
31
|
spec.add_development_dependency "pry"
|
33
32
|
spec.add_development_dependency "rake"
|
34
33
|
spec.add_development_dependency "rspec"
|
@@ -37,5 +36,4 @@ Gem::Specification.new do |spec|
|
|
37
36
|
spec.add_development_dependency "vcr"
|
38
37
|
spec.add_development_dependency "timecop"
|
39
38
|
spec.add_development_dependency "nokogiri"
|
40
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
41
39
|
end
|
data/lib/almanack/event.rb
CHANGED
@@ -15,15 +15,15 @@ module Almanack
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def title
|
18
|
-
|
18
|
+
self[:title]&.force_encoding('UTF-8')
|
19
19
|
end
|
20
20
|
|
21
21
|
def location
|
22
|
-
|
22
|
+
self[:location]&.force_encoding('UTF-8')
|
23
23
|
end
|
24
24
|
|
25
25
|
def description
|
26
|
-
|
26
|
+
self[:description]&.force_encoding('UTF-8')
|
27
27
|
end
|
28
28
|
|
29
29
|
# Deprecated in favour of start_time
|
@@ -52,10 +52,6 @@ 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
|
-
|
59
55
|
def serialize_attribute(attribute)
|
60
56
|
value = send(attribute)
|
61
57
|
value.is_a?(Time) ? value.iso8601 : value
|
data/lib/almanack/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -2,9 +2,6 @@ require 'webmock/rspec'
|
|
2
2
|
require 'vcr'
|
3
3
|
require 'timecop'
|
4
4
|
require 'nokogiri'
|
5
|
-
require 'codeclimate-test-reporter'
|
6
|
-
|
7
|
-
CodeClimate::TestReporter.start if ENV['CODECLIMATE_REPO_TOKEN']
|
8
5
|
|
9
6
|
require 'almanack'
|
10
7
|
|
@@ -18,8 +15,7 @@ end
|
|
18
15
|
|
19
16
|
VCR.configure do |config|
|
20
17
|
config.cassette_library_dir = File.expand_path('../fixtures/responses', __FILE__)
|
21
|
-
config.ignore_hosts 'codeclimate.com'
|
22
18
|
config.hook_into :webmock
|
23
19
|
end
|
24
20
|
|
25
|
-
WebMock.disable_net_connect!
|
21
|
+
WebMock.disable_net_connect!
|
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.beta6
|
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: 2019-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -150,20 +150,6 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: bundler
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.5'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.5'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: pry
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,20 +262,6 @@ dependencies:
|
|
276
262
|
- - ">="
|
277
263
|
- !ruby/object:Gem::Version
|
278
264
|
version: '0'
|
279
|
-
- !ruby/object:Gem::Dependency
|
280
|
-
name: codeclimate-test-reporter
|
281
|
-
requirement: !ruby/object:Gem::Requirement
|
282
|
-
requirements:
|
283
|
-
- - ">="
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: '0'
|
286
|
-
type: :development
|
287
|
-
prerelease: false
|
288
|
-
version_requirements: !ruby/object:Gem::Requirement
|
289
|
-
requirements:
|
290
|
-
- - ">="
|
291
|
-
- !ruby/object:Gem::Version
|
292
|
-
version: '0'
|
293
265
|
description:
|
294
266
|
email:
|
295
267
|
- pete@metanation.com
|
@@ -377,8 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
349
|
- !ruby/object:Gem::Version
|
378
350
|
version: 1.3.1
|
379
351
|
requirements: []
|
380
|
-
|
381
|
-
rubygems_version: 2.5.1
|
352
|
+
rubygems_version: 3.0.3
|
382
353
|
signing_key:
|
383
354
|
specification_version: 4
|
384
355
|
summary: Combined events calendar for Google Calendar, iCal, Meetup.com and friends.
|