data_science_theater_3000 0.0.4.1 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,9 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
+ s.add_runtime_dependency 'active_support'
21
22
  s.add_dependency 'curb'
23
+ s.add_dependency 'json'
22
24
 
23
25
  # specify any dependencies here; for example:
24
26
  # s.add_development_dependency "rspec"
@@ -1,3 +1,5 @@
1
+ require "active_support"
2
+ require "json"
1
3
  require "curb"
2
4
  require "data_science_theater_3000/version"
3
5
 
@@ -9,7 +11,8 @@ module DataScienceTheater3000
9
11
  def self.ip2coordinates ip
10
12
  url = "http://www.datasciencetoolkit.org"
11
13
  response = Curl::Easy.perform( url + "/ip2coordinates/" + ip ).body_str
12
- coordinates = make_hashy(response).with_indifferent_access
14
+
15
+ coordinates = make_hashy(response)
13
16
  end
14
17
 
15
18
  # Converts a street address into a location hash
@@ -1,3 +1,3 @@
1
1
  module DataScienceTheater3000
2
- VERSION = "0.0.4.1"
2
+ VERSION = "0.0.5"
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.4.1
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,9 +11,31 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-01-20 00:00:00.000000000Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: active_support
16
+ requirement: &20685060 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *20685060
14
25
  - !ruby/object:Gem::Dependency
15
26
  name: curb
16
- requirement: &10301380 !ruby/object:Gem::Requirement
27
+ requirement: &20684140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *20684140
36
+ - !ruby/object:Gem::Dependency
37
+ name: json
38
+ requirement: &20683500 !ruby/object:Gem::Requirement
17
39
  none: false
18
40
  requirements:
19
41
  - - ! '>='
@@ -21,7 +43,7 @@ dependencies:
21
43
  version: '0'
22
44
  type: :runtime
23
45
  prerelease: false
24
- version_requirements: *10301380
46
+ version_requirements: *20683500
25
47
  description: Ruby interface to issue Data Science Toolkit API calls.
26
48
  email:
27
49
  - tad@isotope11.com