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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTY0ZTY4MjBiZjI2MDI0ZmYxNTVhN2QxYWFlMTdjZmYzOTNhOGM2Yw==
4
+ MDM4NGE1YTIyMGVhMzg0MTJjOGRkM2FmNDA5MDdhNDg0MDljM2M1OA==
5
5
  data.tar.gz: !binary |-
6
- NzFkZDJkMDMwZTI0ZWY1NjQ0MDZkNjMyOTcyOGVkMzdhNmNlOTNhMg==
6
+ N2MyMmViOWJkMWVkYzU2NGY2YWYxNmVkMzVmYWZlZjM0ZjQyZDdlZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmJmYjVhY2E0MjdjNDMyZjc1MmY4ODgwNWFhNTc3ODcyYjViOWMwOWJhMzgz
10
- MzhiNzZlYTEwNWI5NWMyNjc0OGE4MjFhNDU4NWJmYWQ4NjY0NzUyYjBlZDYz
11
- ODNjYWMyZjA3ZjI5ZDdkMDQ4YjQzMDVkYmNjOTNhZWM5OWNlNDg=
9
+ N2ViMDA2ZjQ4ZWE0ZjgxZDRmYzFiNWU1NzVlNTIzMDg3ZTFhOWIyNGE3ZTgw
10
+ YWI2ZGQxYTVkNWY3ZWExNGZiOTkzODg3OWMyNGM4ZjM0NDMzZGM0ZjBhY2Q2
11
+ NGQ4NmQxMjdhZWM3NjBhYjI0OTdmODlmMWJjYTMwNjcwOGJkZWE=
12
12
  data.tar.gz: !binary |-
13
- MTVlZTVlNjg3MTZlNmQ0YTA5MTVmYmI2ZGI3ZWI2MzFlM2QwZmUyMjQxZDkz
14
- Mjg0M2M3MzViZmM3ZWI1ODFlY2E5NjE1ZjRiOGM1NzRhNjhmZmViMTA5N2Vk
15
- NjgxYTlhZTY0ZDE2Y2QwM2JmOTNhZDFmNmZlMzg0ZWYxYjE0MWI=
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).collect {|i| Hashie::Mash.new(i) }
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
 
@@ -1,3 +1,3 @@
1
1
  module PartyTime
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: party_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Ballantyne