party_time 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/party_time.rb +2 -2
- data/lib/party_time/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDM4NGE1YTIyMGVhMzg0MTJjOGRkM2FmNDA5MDdhNDg0MDljM2M1OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2MyMmViOWJkMWVkYzU2NGY2YWYxNmVkMzVmYWZlZjM0ZjQyZDdlZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2ViMDA2ZjQ4ZWE0ZjgxZDRmYzFiNWU1NzVlNTIzMDg3ZTFhOWIyNGE3ZTgw
|
10
|
+
YWI2ZGQxYTVkNWY3ZWExNGZiOTkzODg3OWMyNGM4ZjM0NDMzZGM0ZjBhY2Q2
|
11
|
+
NGQ4NmQxMjdhZWM3NjBhYjI0OTdmODlmMWJjYTMwNjcwOGJkZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzQ1MTE2YmZhNzkyNGU4NDBiNzRjZmE1ZTYxODZkMGRhZWU5ODU1NjMzZTU0
|
14
|
+
NWMyYmVjOTJkMTYzZWU3NDI1YmNlZWFlNzUzNWY1OTFkOTI2ZjEzY2EzY2Y4
|
15
|
+
ZjJkZDVlODgyZmEwMTUyMDFkMWJmODAzZDYzYzFjNDJlNWYzNzc=
|
data/lib/party_time.rb
CHANGED
@@ -13,14 +13,14 @@ module PartyTime
|
|
13
13
|
opts = options.merge('apikey' => PartyTime::Config.api_key, 'format' => 'json')
|
14
14
|
url = base_url + endpoint + "?" + opts.to_query
|
15
15
|
# puts url
|
16
|
-
response = JSON.parse(RestClient.get(url).to_str)
|
16
|
+
response = Hashie::Mash.new(JSON.parse(RestClient.get(url).to_str))
|
17
17
|
response
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
class Hash
|
22
22
|
def to_query
|
23
|
-
self.map{|k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v)}"}.join("&")
|
23
|
+
self.map{|k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"}.join("&")
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
data/lib/party_time/version.rb
CHANGED