tansaku 0.1.1 → 0.1.2

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: e1df6b0d432754c0859695d783db4cbd51523593c787aa5e42cb8553003d1d9d
4
- data.tar.gz: 48c390edf8d05445e2165845953852eee656a4e1e9d55aae005296e37e2d3f89
3
+ metadata.gz: 7b2d6b1f3a8ebdc03d00e298d206cb6d308fc6bec5394b9001c1be011a9d7b2c
4
+ data.tar.gz: 9251455cc8b9a2e88e3f3e8eace6ae4f374243c937539db40da436a33ca6d198
5
5
  SHA512:
6
- metadata.gz: bfa5f53b9e860efe887ad22d1bd419c97466bd9a42e589b6c8ef5540b9d87e518254eedca346c31b72e19d182b0180784a49e4ada9960919e173101e59deceee
7
- data.tar.gz: 11af402ceafdad601111261d733a6a47c1377a8d1cbd2c2227918405580f23d7d3404c196227701af7c171518c1c6adb21dce3ebe30ddb246342d39a26733df8
6
+ metadata.gz: 2ee18eab1740f6d5e9fbd41c5d27f294a5aa58e01b0cac3cd69a9001ea1002d925401a39735be4325a2d67a294b54a82f828be7c8c78e6b78e260ac359c03f49
7
+ data.tar.gz: 0a2087bf4754a28fc7146a453c04db635a484794e6143903c11c7ea545aca746ce60d05a3b0213d634ba3259c31db3dd4d66732baf198c55f2b75800ea6b1096
data/.travis.yml CHANGED
@@ -2,5 +2,8 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.5.1
6
- before_install: gem install bundler -v 1.17.1
5
+ - 2.5
6
+ - 2.6
7
+ before_install:
8
+ - gem update --system
9
+ - gem install bundler
@@ -26,7 +26,7 @@ module Tansaku
26
26
  end
27
27
 
28
28
  def online?(url)
29
- res = get(url)
29
+ res = head(url)
30
30
  [200, 401, 302].include? res.code.to_i
31
31
  end
32
32
 
@@ -65,10 +65,10 @@ module Tansaku
65
65
  Net::HTTP.start(base_uri.host, base_uri.port) { |http| http.request(req) }
66
66
  end
67
67
 
68
- def get(url)
69
- get = Net::HTTP::Get.new(url)
70
- get["User-Agent"] = user_agent
71
- request(get)
68
+ def head(url)
69
+ head = Net::HTTP::Head.new(url)
70
+ head["User-Agent"] = user_agent
71
+ request(head)
72
72
  end
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tansaku
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/tansaku.gemspec CHANGED
@@ -24,13 +24,13 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_development_dependency "bundler", "~> 1.16"
27
+ spec.add_development_dependency "bundler", "~> 2.0"
28
28
  spec.add_development_dependency "coveralls", "~> 0.8"
29
29
  spec.add_development_dependency "glint", "~> 0.1"
30
30
  spec.add_development_dependency "rake", "~> 12.3"
31
31
  spec.add_development_dependency "rspec", "~> 3.8"
32
- spec.add_development_dependency "webmock", "~> 3.4"
32
+ spec.add_development_dependency "webmock", "~> 3.5"
33
33
 
34
- spec.add_dependency "parallel", "~> 1.12"
34
+ spec.add_dependency "parallel", "~> 1.14"
35
35
  spec.add_dependency "thor", "~> 0.19"
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tansaku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2019-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2.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
- version: '1.16'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.4'
89
+ version: '3.5'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.4'
96
+ version: '3.5'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: parallel
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.12'
103
+ version: '1.14'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.12'
110
+ version: '1.14'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: thor
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -166,8 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubyforge_project:
170
- rubygems_version: 2.7.6
169
+ rubygems_version: 3.0.2
171
170
  signing_key:
172
171
  specification_version: 4
173
172
  summary: Yet another dirbuster tool