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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 704dbbca1cbaf29522f803689f93d961a45a3d85
4
- data.tar.gz: d68498b7a9edf3c65351aa2a27aa18d3b6430820
3
+ metadata.gz: 6442c76678be767483f63ec57088ec3d2006be5a
4
+ data.tar.gz: 35bc17a9015a1d2aa0a60b5637813834e589501d
5
5
  SHA512:
6
- metadata.gz: 2f6da52bb2f1a281ff4b2bb49c4c074080807cd4b89d064417d3b8ab255a968cfb47cd573f124da1e217bb9492ccca6e0458cb5458f80e26f223100f0754e577
7
- data.tar.gz: 5cdae4fa65b1e8a9a0417f27713006060fccd1cb09cdbb12109592d5443610265af1f218948d0794d6cba3b6f3fc662ca2bcb62e743364d050cf6b986ba6f9df
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
- uri = URI(BASE_URL << create_query(names))
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)
@@ -1,3 +1,3 @@
1
1
  module Genderize
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
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.1
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-09 00:00:00.000000000 Z
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