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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cecab9d7489f099dba3ad64fa7438deefb56faf7ab6cde65ccd7671a57f9fb4
4
- data.tar.gz: c5cb514d16e736a38a2f2d522c456f6ea48bb8aea372f7e42a078cb07f454d23
3
+ metadata.gz: 3a92c3d747e0c1c7a5a1cec2e66b55aacf9fa6fba9ef78d8e35717e76f1c5444
4
+ data.tar.gz: e3b931d2ca111a75ba2a2795959b925e1be508c98bcab5d3dd81dbb32fc49501
5
5
  SHA512:
6
- metadata.gz: 952b3e2a65850d6eb35d0ff8245f05e3df0b8eabcf480618c4d8e645ee7369da0462fdce4ac9b51578fbb885c0d7a138ad4e1c1b70909ee12c362436753f624a
7
- data.tar.gz: b5cbe1acf3c4835475403a315ede9a43a3239456540d5c5424df6f4a907538e5480962242c0c455abc323d463b6b298007a06362a9b144279f7df370d4711248
6
+ metadata.gz: c1490b34b1a9e69986d533c04946398a1d9d787efdf9e2f117909dfb19669bb0f8640d35b019c1681d2e6fa3ce65c0794681a648ccb4fe99e025589c4734b807
7
+ data.tar.gz: e856b6eae13542cdce8b5fca1a389d1df52e94ef095ef709e8c0295d5e0f92a7d68520211a7812ac4209e534ee912f4d58da810248eb709ef4bff9c082fc34b5
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2023 - 2024 IP2Location ( support@ip2location.com )
1
+ Copyright (c) 2025 IP2Location ( support@ip2location.com )
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Latest Stable Version](https://img.shields.io/gem/v/ip2proxy_rails.svg)](https://rubygems.org/gems/ip2proxy_rails)
2
+ [![Total Downloads](https://img.shields.io/gem/dt/ip2proxy_rails.svg)](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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ip2proxy_rails'
3
- s.version = '1.0.0'
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
@@ -65,4 +65,8 @@ class Ip2proxyRails
65
65
  def provider
66
66
  proxy['provider']
67
67
  end
68
+
69
+ def fraud_score
70
+ proxy['fraud_score']
71
+ end
68
72
  end
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.0.0
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: 2024-11-21 00:00:00.000000000 Z
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
- post_install_message:
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.5.23
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: []