eventify 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eventify/provider/piletilevi.rb +3 -3
- data/lib/eventify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12c661aeddeda3b21906170ae0733bacd4955cf
|
4
|
+
data.tar.gz: 77f95d97acdd5a3e29f5d47b461e6a11310c645e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7612082438791eece6892b1451ff32df633e63782f8d27cae840efba2592dc6f978f5177b6695fdede5c47e012202b59b11884e680f51a970b23c3e6c0c4d971
|
7
|
+
data.tar.gz: e899ba549bf18b38603bd52a3671d0627959e9f3f6a29cf48f057b7a841b75b7c14fcb5028a5913db12d8fe4cf0fcd1289626ffe449158f5003d53430380e9a2
|
@@ -7,10 +7,10 @@ module Eventify::Provider
|
|
7
7
|
|
8
8
|
class << self
|
9
9
|
def fetch
|
10
|
-
json = JSON.parse(Faraday.new(url: "#{URL.scheme}://#{URL.host}").get(URL.path).body) rescue {}
|
11
|
-
entries = json[
|
10
|
+
json = JSON.parse(Faraday.new(url: "#{URL.scheme}://#{URL.host}").get(URL.path).body, symbolize_names: true) rescue {}
|
11
|
+
entries = json[:responseData] && json[:responseData][:concert] || []
|
12
12
|
entries.map do |entry|
|
13
|
-
new id: entry[
|
13
|
+
new id: entry[:id], title: entry[:title], link: entry[:link], date: Time.at(entry[:modifiedTimeStamp].to_i)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/eventify/version.rb
CHANGED