Skip to content

Commit

Permalink
Update library details.
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location committed Jan 10, 2019
1 parent be0174f commit 1ae4bea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Latest Stable Version](https://img.shields.io/gem/v/ip2proxy_ruby.svg)](https://rubygems.org/gems/ip2proxy_ruby)
[![Total Downloads](https://img.shields.io/gem/dt/ip2proxy_ruby.svg)](https://rubygems.org/gems/ip2proxy_ruby)

# IP2Proxy Ruby Library

This module allows user to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits. It lookup the proxy IP address from **IP2Proxy BIN Data** file. This data file can be downloaded at
Expand Down
17 changes: 12 additions & 5 deletions ip2proxy_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

Gem::Specification.new do |s|
s.name = "ip2proxy_ruby"
s.version = "1.0.3"
s.version = "1.0.4"
s.authors = ["ip2location"]
s.email = ["[email protected]"]

s.summary = "IP2Proxy Ruby library"
s.description = "Ruby library for IP2Proxy"
s.description = "The official IP2Proxy Ruby library to detect anonymous proxy, VPN and Tor exit nodes."
s.homepage = "https://github.com/ip2location/ip2proxy-ruby"
s.licenses = ["MIT"]
s.require_paths = ["lib"]

s.extra_rdoc_files = [
"LICENSE.txt",
"README.md"
Expand All @@ -20,7 +20,6 @@ Gem::Specification.new do |s|
".document",
".gitignore",
"Gemfile",
"Gemfile.lock",
"LICENSE.txt",
"README.md",
"Rakefile",
Expand All @@ -37,7 +36,15 @@ Gem::Specification.new do |s|
"spec/spec_helper.rb",
"rb/data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.SAMPLE.BIN"
]


if s.respond_to?(:metadata=)
s.metadata = {
"bug_tracker_uri" => "https://github.com/ip2location/ip2proxy-ruby/issues",
"homepage_uri" => "https://www.ip2location.com",
"source_code_uri" => "https://github.com/ip2location/ip2proxy-ruby",
}
end

if s.respond_to? :specification_version then
s.specification_version = 4

Expand Down
2 changes: 1 addition & 1 deletion lib/ip2proxy_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Ip2proxy
attr_accessor :record_class4, :record_class6, :v4, :file, :db_index, :count, :base_addr, :ipno, :record, :database, :columns, :ip_version, :ipv4databasecount, :ipv4databaseaddr, :ipv4indexbaseaddr, :ipv6databasecount, :ipv6databaseaddr, :ipv6indexbaseaddr, :databaseyear, :databasemonth, :databaseday

VERSION = '1.0.3'
VERSION = '1.0.4'
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'

Expand Down

0 comments on commit 1ae4bea

Please sign in to comment.