ipcat 2.0.8 → 2.0.9

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -10
  3. data/data/datacenters +0 -0
  4. data/lib/ipcat/version.rb +1 -1
  5. metadata +14 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d2c81fe7e10d6a42149933f67bfb300e2d7f329
4
- data.tar.gz: 3a1161026744105312972ca02b073c34ed9ca16e
3
+ metadata.gz: ff9b027db51f52115ac58ee8162a572f7c57b1eb
4
+ data.tar.gz: 141cc9ef82fc4c630caf5e461ba21ab2d62f4023
5
5
  SHA512:
6
- metadata.gz: 4beb6f3af6606971819cc5e923b1442f76b7e2067dee7b07dcbedb3a94efd90ee5b3b42d11c734b8a6b4498e95a6d59f634ad40fe845f98accb1ba0a83ec2071
7
- data.tar.gz: 918e0c4130dcbb344b7ad7260c14ee1231f1758845dcd8d89fa042947541cdc3a57d36b1cd9796c01c04b524a1c60e7f5897689864e6dcde15ed2296a142385a
6
+ metadata.gz: 73635dfde2c9811418fa55a89a1319eda2a4e765decefcd501dd4ec5370d596acc812dcd92a8266627a01b124d6e85eef08a2d6c38b310b08409cc2a80b08be8
7
+ data.tar.gz: df41de8d2e26be06c0aaaf1732ec22a8b4cc5801fb50e3dfd83239a1afb79e212c7ac724405f1eaea59e33f881311240d4e98b61adcd4019bc958bd291626fbf
data/README.md CHANGED
@@ -2,32 +2,40 @@
2
2
 
3
3
  A ruby port of the [ipcat](https://github.com/client9/ipcat) library to classify IP addresses from known datacenters
4
4
 
5
- [![Build Status](https://travis-ci.org/kickstarter/ipcat-ruby.png?branch=master)](https://travis-ci.org/kickstarter/ipcat-ruby)
6
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/kickstarter/ipcat-ruby)
5
+ [![Build Status](https://travis-ci.org/kickstarter/ipcat-ruby.svg?branch=master)](https://travis-ci.org/kickstarter/ipcat-ruby)
6
+ [![Code Climate](https://img.shields.io/codeclimate/github/kickstarter/ipcat-ruby.svg?style=flat)](https://codeclimate.com/github/kickstarter/ipcat-ruby)
7
7
 
8
8
  ## Installation
9
9
 
10
10
  With bundler:
11
11
 
12
- # In Gemfile
13
- gem 'ipcat'
12
+ ```ruby
13
+ # In Gemfile
14
+ gem 'ipcat'
15
+ ```
14
16
 
15
17
  Or with rubygems:
16
18
 
17
- gem install ipcat
19
+ ```shell
20
+ gem install ipcat
21
+ ```
18
22
 
19
23
  ## Usage
20
24
 
21
- IPCat.datacenter?(ip_address)
25
+ ```ruby
26
+ IPCat.datacenter?(ip_address)
27
+ ```
22
28
 
23
- It will return an IPCat::IPRange if ip_address is from a known datacenter; nil otherwise.
29
+ It will return an `IPCat::IPRange` if `ip_address` is from a known datacenter; `nil` otherwise.
24
30
 
25
31
  For example,
26
32
 
27
- range = IPCat.datacenter?('52.95.252.0') # => instance of IPCat::IPRange
28
- range.name # => 'Amazon AWS'
33
+ ```ruby
34
+ range = IPCat.datacenter?('52.95.252.0') # => instance of IPCat::IPRange
35
+ range.name # => 'Amazon AWS'
29
36
 
30
- IPCat.datacenter?('127.0.0.1') # => nil
37
+ IPCat.datacenter?('127.0.0.1') # => nil
38
+ ```
31
39
 
32
40
  ## License
33
41
 
data/data/datacenters CHANGED
Binary file
data/lib/ipcat/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class IPCat
4
- VERSION = '2.0.8'
4
+ VERSION = '2.0.9'
5
5
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Suggs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.4.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: 'A ruby port of the ipcat library: https://github.com/client9/ipcat/'
@@ -44,12 +44,12 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - README.md
48
+ - Rakefile
49
+ - data/datacenters
50
+ - lib/ipcat.rb
47
51
  - lib/ipcat/iprange.rb
48
52
  - lib/ipcat/version.rb
49
- - lib/ipcat.rb
50
- - data/datacenters
51
- - Rakefile
52
- - README.md
53
53
  - spec/benchmark_spec.rb
54
54
  - spec/ipcat_iprange_spec.rb
55
55
  - spec/ipcat_spec.rb
@@ -59,22 +59,22 @@ licenses: []
59
59
  metadata: {}
60
60
  post_install_message:
61
61
  rdoc_options:
62
- - --charset=UTF-8
62
+ - "--charset=UTF-8"
63
63
  require_paths:
64
64
  - lib
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: 1.9.3
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.0.14.1
77
+ rubygems_version: 2.6.11
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: dataset for categorizing IP addresses in ruby