tansaku 0.2.0 → 0.2.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: 6e8675539d26284b1f7fbc02c6f893df6021fad51e3795979546a1151ea2445a
4
- data.tar.gz: 285e063a1993a8f3f523160ea65bedfc1824cacb310f0d97862b108ce90d1141
3
+ metadata.gz: f3a7dd23e82bdd5e86fbd86220b17dabeadcddeccb693d0d92a6cc9f71c84083
4
+ data.tar.gz: aee98c47d5c9ce69a0e8a3eea7132726903cc7754cb3ba9f5559ebe674225712
5
5
  SHA512:
6
- metadata.gz: 539f207f205402d93e13dda144d91e5efb2338739e7276ee523fffb6deaae629d07f69da5dae176d006ff3a96a14f44c5a50ee680f4d72f899572354a7a6532b
7
- data.tar.gz: 1d0d2a162aeb9d95d8791ac484f5766ed06c4fea7d7c60b953b24e479e2f77ab718f4f73c70589b84f74f55d06d73def55263ce08b0fd76bd8e536d088e48269
6
+ metadata.gz: 34dc59a1cfb62886a4ad2f79ad398a3c5de46bf6a58c11daf21346ef93b6f093bc83d766fb44d4a54658c0d38ee2cc0eb9d94cb5a5c661138dddc0df80ed160a
7
+ data.tar.gz: fdfc332c0ad35dfd9c05a134222a3750a781da8146b222f970e8604fbf9865906716b574700eea74fd16c39889ff4a5d2cd85e85804653ca7cf552babdec6376
@@ -2,8 +2,8 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.5
6
5
  - 2.6
6
+ - 2.7
7
7
  before_install:
8
8
  - gem update --system
9
9
  - gem install bundler
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Tansaku
2
2
 
3
- [![Build Status](https://travis-ci.org/ninoseki/tansaku.svg?branch=master)](https://travis-ci.org/ninoseki/tansaku)
3
+ [![Gem Version](https://badge.fury.io/rb/tansaku.svg)](https://badge.fury.io/rb/tansaku)
4
+ [![Build Status](https://travis-ci.com/ninoseki/tansaku.svg?branch=master)](https://travis-ci.com/ninoseki/tansaku)
4
5
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b8c176423480493182a6d52e56f6fd35)](https://www.codacy.com/app/ninoseki/tansaku)
5
6
  [![Coverage Status](https://coveralls.io/repos/github/ninoseki/tansaku/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/tansaku?branch=master)
6
7
 
@@ -14,7 +14,7 @@ module Tansaku
14
14
  def crawl(url)
15
15
  params = options.compact.map { |k, v| [k.to_sym, v] }.to_h
16
16
  begin
17
- crawler = Crawler.new(url, params)
17
+ crawler = Crawler.new(url, **params)
18
18
  results = crawler.crawl
19
19
  puts results.to_json
20
20
  rescue ArgumentError => e
@@ -12,7 +12,7 @@ module Tansaku
12
12
  attr_reader :base_uri
13
13
  attr_reader :additional_list, :threads, :user_agent, :type
14
14
 
15
- def initialize(base_uri, additional_list: nil, threads: 10, user_agent: DEFAULT_USER_AGENT, type: "all")
15
+ def initialize(base_uri, additional_list: nil, threads: Parallel.processor_count, user_agent: DEFAULT_USER_AGENT, type: "all")
16
16
  @base_uri = URI.parse(base_uri)
17
17
  raise ArgumentError, "Invalid URI" unless valid_uri?
18
18
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tansaku
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -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", "~> 2.0"
27
+ spec.add_development_dependency "bundler", "~> 2.1"
28
28
  spec.add_development_dependency "coveralls", "~> 0.8"
29
29
  spec.add_development_dependency "glint", "~> 0.1"
30
- spec.add_development_dependency "rake", "~> 12.3"
31
- spec.add_development_dependency "rspec", "~> 3.8"
32
- spec.add_development_dependency "webmock", "~> 3.5"
30
+ spec.add_development_dependency "rake", "~> 13.0"
31
+ spec.add_development_dependency "rspec", "~> 3.9"
32
+ spec.add_development_dependency "webmock", "~> 3.8"
33
33
 
34
- spec.add_dependency "parallel", "~> 1.14"
35
- spec.add_dependency "thor", "~> 0.19"
34
+ spec.add_dependency "parallel", "~> 1.19"
35
+ spec.add_dependency "thor", "~> 1.0"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-30 00:00:00.000000000 Z
11
+ date: 2020-06-14 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: '2.0'
19
+ version: '2.1'
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: '2.0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,70 +58,70 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '12.3'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '12.3'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.8'
75
+ version: '3.9'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.8'
82
+ version: '3.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: webmock
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.5'
89
+ version: '3.8'
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.5'
96
+ version: '3.8'
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.14'
103
+ version: '1.19'
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.14'
110
+ version: '1.19'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: thor
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.19'
117
+ version: '1.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.19'
124
+ version: '1.0'
125
125
  description: Yet another dirbuster tool
126
126
  email:
127
127
  - manabu.niseki@gmail.com
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubygems_version: 3.0.2
174
+ rubygems_version: 3.1.2
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: Yet another dirbuster tool