fsquare 1.0.7 → 1.0.8
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 +4 -4
- data/lib/fsquare/version.rb +1 -1
- data/lib/fsquare.rb +4 -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: edab1553e0ddeea88e72b119a3ff5c954a77ad98
|
|
4
|
+
data.tar.gz: a59df1f2b4e6c9f1af905898c93dc340e7a6a9c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be49d897daa3c265e0fdfc3f3cce46e3802cd90e82ceb077f6d16c8641f7537a217325fafe115a6b53b82e383831afaba8482cf091181df80af70cc9aaacaf56
|
|
7
|
+
data.tar.gz: f1e815061017ada5a04bb30026db3a8be702664e91c71d64a085f8b3ade9c1914038710f7aa260650bce31efb1b4e53b3aa361081f7e259a2efb587902748882
|
data/lib/fsquare/version.rb
CHANGED
data/lib/fsquare.rb
CHANGED
|
@@ -16,12 +16,15 @@ module Fsquare
|
|
|
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
18
|
v = data[:v].strftime "%Y%m%d"
|
|
19
|
-
|
|
20
19
|
if @clientId.nil? || @clientSecret.nil?
|
|
21
20
|
raise "client_id or client_secret is not defined. Please call initialize()"
|
|
22
21
|
end
|
|
22
|
+
puts "*************"
|
|
23
23
|
search_url = "https://api.foursquare.com#{path}&client_id=#{@clientId}&client_secret=#{@clientSecret}&" + data.to_query
|
|
24
|
+
puts "search query: " + search_url
|
|
24
25
|
result = HTTParty.get(search_url)
|
|
26
|
+
puts result
|
|
27
|
+
puts "*********************"
|
|
25
28
|
result['response']
|
|
26
29
|
end
|
|
27
30
|
result = Rails.cache.fetch(cacheKey)
|