data_science_theater_3000 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,11 +6,6 @@ module DataScienceTheater3000
6
6
  url = "http://www.datasciencetoolkit.org"
7
7
  response = Curl::Easy.perform( url + "/ip2coordinates/" + ip ).body_str
8
8
  coordinates = make_hashy(response).with_indifferent_access
9
- if coordinates[ip].nil?
10
- coordinates = { ip => {"country_name"=>"United States", "region"=>"AL", "dma_code"=>630, "latitude"=>33.4667015075684, "country_code"=>"US", "area_code"=>205, "postal_code"=>"35209", "locality"=>"Birmingham", "country_code3"=>"USA", "longitude"=>-86.8066024780273}}.with_indifferent_access
11
- else
12
- coordinates
13
- end
14
9
  end
15
10
 
16
11
  def self.street2coordinates address
@@ -1,3 +1,3 @@
1
1
  module DataScienceTheater3000
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_science_theater_3000
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb
16
- requirement: &18404820 !ruby/object:Gem::Requirement
16
+ requirement: &22912060 !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: *18404820
24
+ version_requirements: *22912060
25
25
  description: Ruby interface to issue Data Science Toolkit API calls.
26
26
  email:
27
27
  - tad@isotope11.com