Skip to content

Commit 1ae4bea

Browse files
committed
Update library details.
1 parent be0174f commit 1ae4bea

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![Latest Stable Version](https://img.shields.io/gem/v/ip2proxy_ruby.svg)](https://rubygems.org/gems/ip2proxy_ruby)
2+
[![Total Downloads](https://img.shields.io/gem/dt/ip2proxy_ruby.svg)](https://rubygems.org/gems/ip2proxy_ruby)
3+
14
# IP2Proxy Ruby Library
25

36
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

ip2proxy_ruby.gemspec

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
Gem::Specification.new do |s|
44
s.name = "ip2proxy_ruby"
5-
s.version = "1.0.3"
5+
s.version = "1.0.4"
66
s.authors = ["ip2location"]
77
s.email = ["[email protected]"]
88

99
s.summary = "IP2Proxy Ruby library"
10-
s.description = "Ruby library for IP2Proxy"
10+
s.description = "The official IP2Proxy Ruby library to detect anonymous proxy, VPN and Tor exit nodes."
1111
s.homepage = "https://github.com/ip2location/ip2proxy-ruby"
1212
s.licenses = ["MIT"]
1313
s.require_paths = ["lib"]
14-
14+
1515
s.extra_rdoc_files = [
1616
"LICENSE.txt",
1717
"README.md"
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
2020
".document",
2121
".gitignore",
2222
"Gemfile",
23-
"Gemfile.lock",
2423
"LICENSE.txt",
2524
"README.md",
2625
"Rakefile",
@@ -37,7 +36,15 @@ Gem::Specification.new do |s|
3736
"spec/spec_helper.rb",
3837
"rb/data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.SAMPLE.BIN"
3938
]
40-
39+
40+
if s.respond_to?(:metadata=)
41+
s.metadata = {
42+
"bug_tracker_uri" => "https://github.com/ip2location/ip2proxy-ruby/issues",
43+
"homepage_uri" => "https://www.ip2location.com",
44+
"source_code_uri" => "https://github.com/ip2location/ip2proxy-ruby",
45+
}
46+
end
47+
4148
if s.respond_to? :specification_version then
4249
s.specification_version = 4
4350

lib/ip2proxy_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class Ip2proxy
1010
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
1111

12-
VERSION = '1.0.3'
12+
VERSION = '1.0.4'
1313
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
1414
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
1515

0 commit comments

Comments
 (0)