eventify 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: 87fc46638793a6f58c659b1f1d4410cc4fc15f323e829a7e62f97b169f22761b
4
- data.tar.gz: 9076ebd85ff66f6b6a01efd54a30399c39e9c721325eaa2ec6187b7c4e11a73d
3
+ metadata.gz: b160ce59dce5068d9d3f23501755da3663557966554a460f717409160843dea0
4
+ data.tar.gz: a7418a7630badca41964915df6d7aed2b57152f55c9598f96fb8103345d97516
5
5
  SHA512:
6
- metadata.gz: fc41f7752a36c1c98466faaa31629e2736ea05825a9f7b8fa15a9aa54243a303d1d7d51aa92a4d1dad4ae67a778effe49bffd6d6a4b58a8420f823c48cd255b0
7
- data.tar.gz: 0a08fc417a2950789bf9830667d9617453610ddd5257344d01659535a647e8f37d3b0eb1baf3c2f1df3d7062f86077da2ddb4f8bfea7f6acccdd9b6af183d752
6
+ metadata.gz: f6e9938df2ca2f5628b761edae72261acfaad2f27db13e5bc3014d2e328a17d5ec60cbb5be939da813fecdff87c5f9afdd12f76697a443b74192265d2076b868
7
+ data.tar.gz: 9f3e4882076cbaa8be4d3940ab77f685de07c2b07725f313da5d7b54d13c0d9d464cd8b676492d15434a4896a93eea15a266a7269be3e1aad928b9cca9971a53
@@ -23,7 +23,9 @@ module Eventify::Provider
23
23
  def events(json)
24
24
  entries = json["responseData"]["event"]
25
25
  entries.map do |entry|
26
- new id: entry["id"], title: entry["title"], link: entry["link"], date: Time.at(entry["startTime"]["stamp"])
26
+ link = URI.parse(entry["link"])
27
+ link.scheme = "https" unless link.scheme
28
+ new id: entry["id"], title: entry["title"], link: link.to_s, date: Time.at(entry["startTime"]["stamp"])
27
29
  end
28
30
  end
29
31
  end
@@ -1,3 +1,3 @@
1
1
  class Eventify
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -16,7 +16,7 @@ describe Eventify::Provider::Piletilevi do
16
16
  ),
17
17
  Eventify::Provider::Piletilevi.new(
18
18
  title: "Huumoriteater ''ENSV kohvik''",
19
- link: "//www.kinkekaart.ee/est/piletid/teater/komoodia/huumoriteater-ensv-kohvik-318916/",
19
+ link: "https://www.kinkekaart.ee/est/piletid/teater/komoodia/huumoriteater-ensv-kohvik-318916/",
20
20
  date: Time.at(1577898000),
21
21
  id: 21428
22
22
  ),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-30 00:00:00.000000000 Z
11
+ date: 2021-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple-rss