most_common_industry 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module CityData
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.find_by_city(address)
|
13
|
-
url = "http://www.city-data.com/city/#{address[:
|
13
|
+
url = "http://www.city-data.com/city/#{address[:city]}-#{address[:state]}.html"
|
14
14
|
doc = Nokogiri::HTML(open(url))
|
15
15
|
industries = doc.css("#hD0_0 li").map { |item| item.child.text }
|
16
16
|
CityData::CityIndustries.new(industries)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: most_common_industry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &70190467178160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70190467178160
|
25
25
|
description: returns the top 6 most common industries for a given US city
|
26
26
|
email:
|
27
27
|
- michael.v.verdi@gmail.com
|