data_science_theater_3000 0.0.3.3 → 0.0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # data_science_toolkit_3000
1
+ # data_science_theater_3000
2
2
 
3
3
 
4
4
  ## Development Installation
@@ -9,6 +9,10 @@
9
9
  ### Then:
10
10
  $ gem install data_science_theater_3000
11
11
 
12
+ ## Usage
13
+
14
+ Just ...
15
+ require "data_science_theater_3000"
12
16
 
13
17
  ## Contributing
14
18
 
@@ -4,7 +4,7 @@ require "data_science_theater_3000/version"
4
4
  module DataScienceTheater3000
5
5
  # Converts an ip address into a location hash
6
6
  #
7
- # @param [String] ip the ip address to be located.
7
+ # @param [String] ip the ip address to be located
8
8
  # @return [Hash] key is the ip string passed in as parameter, value is a hash of location information.
9
9
  def self.ip2coordinates ip
10
10
  url = "http://www.datasciencetoolkit.org"
@@ -12,6 +12,10 @@ module DataScienceTheater3000
12
12
  coordinates = make_hashy(response).with_indifferent_access
13
13
  end
14
14
 
15
+ # Converts a street address into a location hash
16
+ #
17
+ # @param [String] address the address to be located
18
+ # @return [Hash] key is the address string passed in as a paremeter, value is a hash of location information
15
19
  def self.street2coordinates address
16
20
  url = "http://www.datasciencetoolkit.org"
17
21
  address.gsub!( "," , "%2c" )
@@ -21,6 +25,11 @@ module DataScienceTheater3000
21
25
  coordinates = make_hashy(response)
22
26
  end
23
27
 
28
+ # Uses latitude,longitude pair to find detailed political information about a location.
29
+ # Currently supporting a single pair.
30
+ #
31
+ # @param [String] "latitude,longitude"
32
+ # @return [Array] Array containing hashes with detailed political information about a location
24
33
  def self.coordinates2politics coords
25
34
  url = "http://www.datasciencetoolkit.org"
26
35
  coords.gsub!( "," , "%2c" )
@@ -1,3 +1,3 @@
1
1
  module DataScienceTheater3000
2
- VERSION = "0.0.3.3"
2
+ VERSION = "0.0.3.4"
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.3.3
4
+ version: 0.0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb
16
- requirement: &17514820 !ruby/object:Gem::Requirement
16
+ requirement: &16748520 !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: *17514820
24
+ version_requirements: *16748520
25
25
  description: Ruby interface to issue Data Science Toolkit API calls.
26
26
  email:
27
27
  - tad@isotope11.com