rangescan 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7560ddf707ab1d55befca7e8cdffd4274618845256d4da74575d99d613c4ab9
4
- data.tar.gz: 296098c05eac8e1c7e6294a503aa6b591b2617d2fcdc3f6f4093299e9a174a53
3
+ metadata.gz: bacbfd805037d62c75718f21ef09116eb30a675606267959c9008b6a23c11607
4
+ data.tar.gz: 60c0236c232a57d66a72e7926e820b8a0940b20d4bdd5970c2dd5dccdef2bfd5
5
5
  SHA512:
6
- metadata.gz: c8a7d6badbbaa041657f86015462f3049cce8e852073a268caadfcfc76fbfd555b31c69b1380ee4846bc92279ce98cb4758d33612d7a4656bad6ca5e2a1d06f0
7
- data.tar.gz: 51537dc5b498beb430a225486b6b2ce259172e485d5bde54ed5400b191f2d909a7cb01bcf4372f1a6af72d8b1dd33e06da605449c53270d69bc60077b8e1748d
6
+ metadata.gz: 3cf068f8884b6abf3231ae183a9190573d9371ec3054a66ee5fe85e9ed5babf5dcf3ff7ffc1f7e9ded672bc99e128fee3ec37023fb47f5e124c73afeefd30570
7
+ data.tar.gz: aa5cb7c38d41199fec63a3b04b0456e20fe36a6cf51a95fa8870fe5220e00c1ea11e277a5dc7810c8fb9c5a7e6528dbb40cd4fdfe7a7f6f05b9c5923427f9bbf
data/.gitignore CHANGED
@@ -45,9 +45,9 @@ build-iPhoneSimulator/
45
45
 
46
46
  # for a library or gem, you might want to ignore these files since the code is
47
47
  # intended to run in multiple environments; otherwise, check them in:
48
- # Gemfile.lock
49
- # .ruby-version
50
- # .ruby-gemset
48
+ Gemfile.lock
49
+ .ruby-version
50
+ .ruby-gemset
51
51
 
52
52
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
53
  .rvmrc
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # rangescan
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/rangescan.svg)](https://badge.fury.io/rb/rangescan)
3
4
  [![Build Status](https://travis-ci.com/ninoseki/rangescan.svg?branch=master)](https://travis-ci.com/ninoseki/rangescan)
4
5
  [![Coverage Status](https://coveralls.io/repos/github/ninoseki/rangescan/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/rangescan?branch=master)
5
6
  [![CodeFactor](https://www.codefactor.io/repository/github/ninoseki/rangescan/badge)](https://www.codefactor.io/repository/github/ninoseki/rangescan)
@@ -45,7 +45,13 @@ module RangeScan
45
45
 
46
46
  begin
47
47
  res = HTTP.timeout(timeout).headers(default_headers).get(url, ssl_options)
48
- { ipv4: ipv4, code: res.code, body: res.body.to_s }
48
+ {
49
+ url: url,
50
+ ipv4: ipv4,
51
+ code: res.code,
52
+ headers: res.headers.to_h,
53
+ body: res.body.to_s
54
+ }
49
55
  rescue StandardError
50
56
  nil
51
57
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RangeScan
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rangescan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
@@ -162,7 +162,6 @@ files:
162
162
  - ".rspec"
163
163
  - ".travis.yml"
164
164
  - Gemfile
165
- - Gemfile.lock
166
165
  - LICENSE
167
166
  - README.md
168
167
  - Rakefile
@@ -1,94 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rangescan (0.1.0)
5
- http (~> 4.4)
6
- ipaddress (~> 0.8)
7
- parallel (~> 1.19)
8
- thor (~> 1.0)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- addressable (2.7.0)
14
- public_suffix (>= 2.0.2, < 5.0)
15
- coveralls (0.8.23)
16
- json (>= 1.8, < 3)
17
- simplecov (~> 0.16.1)
18
- term-ansicolor (~> 1.3)
19
- thor (>= 0.19.4, < 2.0)
20
- tins (~> 1.6)
21
- crack (0.4.3)
22
- safe_yaml (~> 1.0.0)
23
- diff-lcs (1.3)
24
- docile (1.3.2)
25
- domain_name (0.5.20190701)
26
- unf (>= 0.0.5, < 1.0.0)
27
- ffi (1.13.1)
28
- ffi-compiler (1.0.1)
29
- ffi (>= 1.0.0)
30
- rake
31
- glint (0.1.0)
32
- hashdiff (1.0.1)
33
- http (4.4.1)
34
- addressable (~> 2.3)
35
- http-cookie (~> 1.0)
36
- http-form_data (~> 2.2)
37
- http-parser (~> 1.2.0)
38
- http-cookie (1.0.3)
39
- domain_name (~> 0.5)
40
- http-form_data (2.3.0)
41
- http-parser (1.2.1)
42
- ffi-compiler (>= 1.0, < 2.0)
43
- ipaddress (0.8.3)
44
- json (2.3.0)
45
- parallel (1.19.1)
46
- public_suffix (4.0.5)
47
- rake (13.0.1)
48
- rspec (3.9.0)
49
- rspec-core (~> 3.9.0)
50
- rspec-expectations (~> 3.9.0)
51
- rspec-mocks (~> 3.9.0)
52
- rspec-core (3.9.2)
53
- rspec-support (~> 3.9.3)
54
- rspec-expectations (3.9.2)
55
- diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.9.0)
57
- rspec-mocks (3.9.1)
58
- diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.9.0)
60
- rspec-support (3.9.3)
61
- safe_yaml (1.0.5)
62
- simplecov (0.16.1)
63
- docile (~> 1.1)
64
- json (>= 1.8, < 3)
65
- simplecov-html (~> 0.10.0)
66
- simplecov-html (0.10.2)
67
- sync (0.5.0)
68
- term-ansicolor (1.7.1)
69
- tins (~> 1.0)
70
- thor (1.0.1)
71
- tins (1.25.0)
72
- sync
73
- unf (0.1.4)
74
- unf_ext
75
- unf_ext (0.0.7.7)
76
- webmock (3.8.3)
77
- addressable (>= 2.3.6)
78
- crack (>= 0.3.2)
79
- hashdiff (>= 0.4.0, < 2.0.0)
80
-
81
- PLATFORMS
82
- ruby
83
-
84
- DEPENDENCIES
85
- bundler (~> 2.1)
86
- coveralls (~> 0.8)
87
- glint (~> 0.1)
88
- rake (~> 13.0)
89
- rangescan!
90
- rspec (~> 3.9)
91
- webmock (~> 3.8)
92
-
93
- BUNDLED WITH
94
- 2.1.4