portero 0.0.4 → 0.0.5

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.
@@ -36,7 +36,7 @@ module Portero
36
36
  venue.country = found_venue["location"]["country"]
37
37
  venue.category = found_venue["categories"].first["name"] if found_venue["categories"].first
38
38
  venue.icon = found_venue["categories"].first["icon"]["prefix"] + "64" + found_venue["categories"].first["icon"]["suffix"] if found_venue["categories"].first
39
- venue.extra = HashWithIndifferentAccess.new({categories: found_venue["categories"], url: found_venue["url"]})
39
+ venue.extra = HashWithIndifferentAccess.new({categories: found_venue["categories"], url: found_venue["url"], contact: found_venue["contact"]})
40
40
 
41
41
  results << venue
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module Portero
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -83,6 +83,12 @@ describe Portero::SearchProvider::Foursquare do
83
83
  @results.first.extra["categories"].first["icon"]["prefix"] == "https://foursquare.com/img/categories_v2/nightlife/bar_"
84
84
  @results.first.extra[:categories].first[:icon][:suffix] == ".png"
85
85
  end
86
+
87
+ it 'should have extra data for categories, contact, and url' do
88
+ @results.first.extra["categories"].present?.should be_true
89
+ @results.first.extra["contact"].present?.should be_true
90
+ @results.first.extra["url"].present?.should be_true
91
+ end
86
92
  end
87
93
  end
88
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-28 00:00:00.000000000 Z
12
+ date: 2012-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec