fsquare 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15e0f5c047e000c4a600d4b3a943a1871facb41d
4
- data.tar.gz: af575071a4777095062bc6322a0c2bbfbd813c9d
3
+ metadata.gz: eee6881451aadced14ebeb2532a69c11d5a134e8
4
+ data.tar.gz: 54a5166685c448b743ebe7724f20f87ecdbdf500
5
5
  SHA512:
6
- metadata.gz: 4f6b90fea2da701aef0d65105c05284e6400a74b3c26d405aaa9ac424ac084fe8416adf37ef3aee339ab1a56930becd7c6ea0f6a04d6344ed87b72ca36bb4321
7
- data.tar.gz: 86982979f002ca3694017404fcf759212b59019cc1ab589ec2d4f65d9879dae1a32b637ec7623e84ca6d097a452e070c188e9a2a250f6ed9771aac1c79af7490
6
+ metadata.gz: 9d34858679e8b9b3342afeba7830ada018ba54f295afd3db093453a995550f74a4bca35c0fce0c2d6cef488b116ee1ee590803902c69ec1ee8e6812d43d75fe0
7
+ data.tar.gz: 43e9c311f00edf5367f6ad3804cf3106f503cbbe18a28e17ef76d4ab8d2d4a872b1bafb11c8410ca33da3bb4e8efe0f8fce398f7b973badaa0f3320ef823cd3e
@@ -1,3 +1,3 @@
1
1
  module Fsquare
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
data/lib/fsquare.rb CHANGED
@@ -15,14 +15,12 @@ module Fsquare
15
15
  if data.nil? || data[:v].nil?
16
16
  raise "'v' is a required field in Foursquare API. You need to pass the value for 'v' in your data variable. Please see Foursquare API documentation for more information"
17
17
  end
18
- v = data[:v].strftime "%Y%m%d"
18
+ data[:v] = data[:v].strftime "%Y%m%d"
19
19
  if @clientId.nil? || @clientSecret.nil?
20
20
  raise "client_id or client_secret is not defined. Please call initialize()"
21
21
  end
22
22
  search_url = "https://api.foursquare.com#{path}&client_id=#{@clientId}&client_secret=#{@clientSecret}&" + data.to_query
23
- return search_url
24
- #result = HTTParty.get(search_url)
25
- #result['response']
23
+ HTTParty.get(search_url)
26
24
  end
27
25
  result = Rails.cache.fetch(cacheKey)
28
26
  return result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fsquare
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry Won