ip2proxy_rails 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +5 -0
- data/ip2proxy_rails.gemspec +9 -1
- data/lib/ip2proxy_rails.rb +4 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a92c3d747e0c1c7a5a1cec2e66b55aacf9fa6fba9ef78d8e35717e76f1c5444
|
4
|
+
data.tar.gz: e3b931d2ca111a75ba2a2795959b925e1be508c98bcab5d3dd81dbb32fc49501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1490b34b1a9e69986d533c04946398a1d9d787efdf9e2f117909dfb19669bb0f8640d35b019c1681d2e6fa3ce65c0794681a648ccb4fe99e025589c4734b807
|
7
|
+
data.tar.gz: e856b6eae13542cdce8b5fca1a389d1df52e94ef095ef709e8c0295d5e0f92a7d68520211a7812ac4209e534ee912f4d58da810248eb709ef4bff9c082fc34b5
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[](https://rubygems.org/gems/ip2proxy_rails)
|
2
|
+
[](https://rubygems.org/gems/ip2proxy_rails)
|
3
|
+
|
1
4
|
# IP2Proxy Ruby on Rails Library
|
2
5
|
This IP2Proxy Ruby on Rails library allows user to reverse search of IP address to detect VPN servers, open proxies, web proxies, Tor exit nodes, search engine robots, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks using IP2Proxy BIN database. Other information available includes proxy type, country, state, city, ISP, domain name, usage type, AS number, AS name, threats, last seen date and provider names. It lookup the proxy IP address from **IP2Proxy BIN Data** file.
|
3
6
|
|
@@ -49,6 +52,7 @@ class TestController < ApplicationController
|
|
49
52
|
@last_seen = proxy_service.last_seen
|
50
53
|
@threat = proxy_service.threat
|
51
54
|
@provider = proxy_service.provider
|
55
|
+
@fraud_score = proxy_service.fraud_score
|
52
56
|
end
|
53
57
|
end
|
54
58
|
```
|
@@ -68,6 +72,7 @@ end
|
|
68
72
|
<p>Last Seen: <%= @last_seen %></p>
|
69
73
|
<p>Threat: <%= @threat %></p>
|
70
74
|
<p>Provider: <%= @provider %></p>
|
75
|
+
<p>Fraud Score: <%= @fraud_score %></p>
|
71
76
|
```
|
72
77
|
9. Add the following line into the *config/routes.rb* file after the `Rails.application.routes.draw do` line.
|
73
78
|
```ruby
|
data/ip2proxy_rails.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ip2proxy_rails'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.1.0'
|
4
4
|
s.required_ruby_version = '>= 2.5.0'
|
5
5
|
s.require_paths = ["lib"]
|
6
6
|
s.authors = ["ip2location"]
|
@@ -16,5 +16,13 @@ Gem::Specification.new do |s|
|
|
16
16
|
"ip2proxy_rails.gemspec",
|
17
17
|
"lib/ip2proxy_rails.rb",
|
18
18
|
]
|
19
|
+
if s.respond_to?(:metadata=)
|
20
|
+
s.metadata = {
|
21
|
+
"bug_tracker_uri" => "https://github.com/ip2location/ip2proxy-rails/issues",
|
22
|
+
"documentation_uri" => "https://www.rubydoc.info/gems/ip2proxy_rails",
|
23
|
+
"homepage_uri" => "https://www.ip2proxy.com",
|
24
|
+
"source_code_uri" => "https://github.com/ip2location/ip2proxy-rails",
|
25
|
+
}
|
26
|
+
end
|
19
27
|
s.add_runtime_dependency 'ip2proxy_ruby', '>= 3.3.1'
|
20
28
|
end
|
data/lib/ip2proxy_rails.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ip2proxy_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ip2location
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: ip2proxy_ruby
|
@@ -45,8 +44,11 @@ files:
|
|
45
44
|
homepage: https://www.ip2location.com
|
46
45
|
licenses:
|
47
46
|
- MIT
|
48
|
-
metadata:
|
49
|
-
|
47
|
+
metadata:
|
48
|
+
bug_tracker_uri: https://github.com/ip2location/ip2proxy-rails/issues
|
49
|
+
documentation_uri: https://www.rubydoc.info/gems/ip2proxy_rails
|
50
|
+
homepage_uri: https://www.ip2proxy.com
|
51
|
+
source_code_uri: https://github.com/ip2location/ip2proxy-rails
|
50
52
|
rdoc_options: []
|
51
53
|
require_paths:
|
52
54
|
- lib
|
@@ -61,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
63
|
- !ruby/object:Gem::Version
|
62
64
|
version: '0'
|
63
65
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
66
|
+
rubygems_version: 3.6.4
|
66
67
|
specification_version: 4
|
67
68
|
summary: IP2Proxy Ruby on Rails library
|
68
69
|
test_files: []
|