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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 819663f5ded527ed7b8bb6be0612019a16043a29
4
- data.tar.gz: 48830bde0cd6dba3a4a97467d16495c33effe64b
3
+ metadata.gz: d12c661aeddeda3b21906170ae0733bacd4955cf
4
+ data.tar.gz: 77f95d97acdd5a3e29f5d47b461e6a11310c645e
5
5
  SHA512:
6
- metadata.gz: 697ddd964a222f88fb9d6a49a21e3381698ea8673b92c2c5c31f30898cd696b6725d6b5ed4146e68801eee44730c2fbccc0d42c1749785e3e85a6411a2fcd69a
7
- data.tar.gz: f628fd5e99711ea2009acee5a4d0eb9303ce0f003ec0621d0659f212bc23adb6ec835f4e6196cb51ed7cf421d6a5b1cf6e1c3dcd1c9f5f2ad179138cee47e566
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["responseData"] && json["responseData"]["concert"] || []
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["id"], title: entry["title"], link: entry["link"], date: Time.at(entry["modifiedTimeStamp"].to_i)
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
@@ -1,3 +1,3 @@
1
1
  class Eventify
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman