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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 606f648fe903f7ef4e34988d58abe946814e24b8
4
- data.tar.gz: 8651ed7af47f45ef800f3ccf7e0372c59b57391d
3
+ metadata.gz: edab1553e0ddeea88e72b119a3ff5c954a77ad98
4
+ data.tar.gz: a59df1f2b4e6c9f1af905898c93dc340e7a6a9c3
5
5
  SHA512:
6
- metadata.gz: 0773fdd600dfca557c22d884f73c2b0070705b11fe3a2d351b81d437ab70934bc8783ad38f3ea38451364c1effc1d9177e6db1cf9193f9579e986d880f0af7fb
7
- data.tar.gz: 15e8f5b785654961b0e8c68e8195787f280e9a64735cf228c3fb5f1c2eaa50874785190e12cf784bd14a57673d0d0fc0fec5eb063b55e3f9045c0f5f029a5250
6
+ metadata.gz: be49d897daa3c265e0fdfc3f3cce46e3802cd90e82ceb077f6d16c8641f7537a217325fafe115a6b53b82e383831afaba8482cf091181df80af70cc9aaacaf56
7
+ data.tar.gz: f1e815061017ada5a04bb30026db3a8be702664e91c71d64a085f8b3ade9c1914038710f7aa260650bce31efb1b4e53b3aa361081f7e259a2efb587902748882
@@ -1,3 +1,3 @@
1
1
  module Fsquare
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
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)
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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry Won