genderize_io 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/genderize_io-0.0.1.gem +0 -0
- data/lib/genderize.rb +2 -2
- data/lib/genderize/version.rb +1 -1
- metadata +3 -3
- data/genderize-0.0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6442c76678be767483f63ec57088ec3d2006be5a
|
4
|
+
data.tar.gz: 35bc17a9015a1d2aa0a60b5637813834e589501d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb09e83cbc3c20a4e35a58a96c276b9afd816d8ff509a6061253e155e7738f629f8ccb34f8010584e0222bf6108d2bf7e2037a3c4a778d412a0fd0ae496a3d9
|
7
|
+
data.tar.gz: 84d941b632c097d8f9bc81ec8f0d3281a9cd0aaee6321a40dd2889d927d8c1c84a07107ee60615d780c77d0b9597a3a4e84b0d7d180405205dd6a30f0d6098ad
|
Binary file
|
data/lib/genderize.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
require 'json'
|
3
3
|
|
4
|
-
BASE_URL = 'https://api.genderize.io?'
|
5
4
|
module Genderize
|
6
5
|
def create_query names
|
7
6
|
if names.class == Array
|
@@ -14,7 +13,8 @@ module Genderize
|
|
14
13
|
end
|
15
14
|
|
16
15
|
def gender names
|
17
|
-
|
16
|
+
base_url = 'https://api.genderize.io?'
|
17
|
+
uri = URI(base_url + create_query(names))
|
18
18
|
begin
|
19
19
|
response = Net::HTTP.get(uri)
|
20
20
|
JSON.parse(response)
|
data/lib/genderize/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genderize_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dilkhush Soni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -49,8 +49,8 @@ files:
|
|
49
49
|
- LICENSE.txt
|
50
50
|
- README.md
|
51
51
|
- Rakefile
|
52
|
-
- genderize-0.0.1.gem
|
53
52
|
- genderize.gemspec
|
53
|
+
- genderize_io-0.0.1.gem
|
54
54
|
- lib/genderize.rb
|
55
55
|
- lib/genderize/version.rb
|
56
56
|
homepage: ''
|
data/genderize-0.0.1.gem
DELETED
Binary file
|