tansaku 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -15
- data/lib/tansaku.rb +1 -0
- data/lib/tansaku/cli.rb +8 -3
- data/lib/tansaku/crawler.rb +7 -3
- data/lib/tansaku/lists/admin.txt +1683 -0
- data/lib/tansaku/lists/backup.txt +79 -0
- data/lib/tansaku/lists/database.txt +179 -0
- data/lib/tansaku/{fixtures/paths.txt → lists/etc.txt} +0 -2139
- data/lib/tansaku/lists/log.txt +198 -0
- data/lib/tansaku/path.rb +35 -0
- data/lib/tansaku/version.rb +1 -1
- metadata +8 -3
@@ -0,0 +1,198 @@
|
|
1
|
+
_data/error_log
|
2
|
+
_log/
|
3
|
+
_log/access_log
|
4
|
+
_log/access-log
|
5
|
+
_log/access.log
|
6
|
+
_log/error_log
|
7
|
+
_log/error-log
|
8
|
+
_log/error.log
|
9
|
+
_logs/access_log
|
10
|
+
_logs/access-log
|
11
|
+
_logs/access.log
|
12
|
+
_logs/err.log
|
13
|
+
_logs/error_log
|
14
|
+
_logs/error-log
|
15
|
+
_logs/error.log
|
16
|
+
_vti_log
|
17
|
+
_vti_log/
|
18
|
+
.error_log
|
19
|
+
.log
|
20
|
+
.transients_purge.log
|
21
|
+
/log/error.log
|
22
|
+
/log/www-error.log
|
23
|
+
/logs/error.log
|
24
|
+
/logs/liferay.log
|
25
|
+
/logs/www-error.log
|
26
|
+
/php-fpm/error.log
|
27
|
+
/php-fpm/www-error.log
|
28
|
+
/wp-content/debug.log
|
29
|
+
access_.log
|
30
|
+
access_log
|
31
|
+
access-log
|
32
|
+
access-log/
|
33
|
+
access.log
|
34
|
+
accesslog
|
35
|
+
accesslog/
|
36
|
+
activity.log
|
37
|
+
admin_catalog
|
38
|
+
admin/_logs/access_log
|
39
|
+
admin/_logs/access-log
|
40
|
+
admin/_logs/access.log
|
41
|
+
admin/_logs/err.log
|
42
|
+
admin/_logs/error_log
|
43
|
+
admin/_logs/error-log
|
44
|
+
admin/_logs/error.log
|
45
|
+
admin/access_log
|
46
|
+
admin/access.log
|
47
|
+
admin/error_log
|
48
|
+
admin/error.log
|
49
|
+
admin/log
|
50
|
+
admin/logs/access_log
|
51
|
+
admin/logs/access-log
|
52
|
+
admin/logs/access.log
|
53
|
+
admin/logs/err.log
|
54
|
+
admin/logs/error_log
|
55
|
+
admin/logs/error-log
|
56
|
+
admin/logs/error.log
|
57
|
+
adminblog
|
58
|
+
akeeba.backend.log
|
59
|
+
answers/error_log
|
60
|
+
apache/logs/access_log
|
61
|
+
apache/logs/access.log
|
62
|
+
apache/logs/error_log
|
63
|
+
apache/logs/error.log
|
64
|
+
api.log
|
65
|
+
api/error_log
|
66
|
+
app/log/
|
67
|
+
application.log
|
68
|
+
assets/npm-debug.log
|
69
|
+
asterisk.log
|
70
|
+
bitrix/error.log
|
71
|
+
bitrix/modules/error.log
|
72
|
+
bitrix/modules/smtpd.log
|
73
|
+
bitrix/modules/updater_partner.log
|
74
|
+
bitrix/modules/updater.log
|
75
|
+
blog
|
76
|
+
Blog
|
77
|
+
blog/error_log
|
78
|
+
catalog
|
79
|
+
ccbill.log
|
80
|
+
change.log
|
81
|
+
CHANGELOG
|
82
|
+
ChangeLog
|
83
|
+
CHANGELOG.log
|
84
|
+
CHANGELOG.LOG
|
85
|
+
cleanup.log
|
86
|
+
content/debug.log
|
87
|
+
cron_import.log
|
88
|
+
cron_sku.log
|
89
|
+
cron.log
|
90
|
+
customers.log
|
91
|
+
database.log
|
92
|
+
davmail.log
|
93
|
+
db.log
|
94
|
+
dbaccess.log
|
95
|
+
debug.log
|
96
|
+
development.log
|
97
|
+
dump.log
|
98
|
+
err.log
|
99
|
+
error_log
|
100
|
+
error-log
|
101
|
+
error.log
|
102
|
+
errorlog
|
103
|
+
errors.log
|
104
|
+
gitlog
|
105
|
+
http_access.log
|
106
|
+
httpd/logs/access_log
|
107
|
+
httpd/logs/access.log
|
108
|
+
httpd/logs/error_log
|
109
|
+
httpd/logs/error.log
|
110
|
+
import_error.log
|
111
|
+
install.log
|
112
|
+
install/update.log
|
113
|
+
liferay.log
|
114
|
+
lighttpd.access.log
|
115
|
+
lighttpd.error.log
|
116
|
+
linkhub/linkhub.log
|
117
|
+
log
|
118
|
+
LOG/
|
119
|
+
log/
|
120
|
+
log/access_log
|
121
|
+
log/access.log
|
122
|
+
log/development.log
|
123
|
+
log/error_log
|
124
|
+
log/error.log
|
125
|
+
log/log.log
|
126
|
+
log/production.log
|
127
|
+
log/server.log
|
128
|
+
log/test.log
|
129
|
+
logs/access_log
|
130
|
+
logs/access.log
|
131
|
+
logs/error_log
|
132
|
+
logs/error.log
|
133
|
+
logs/mail.log
|
134
|
+
mail.log
|
135
|
+
master/portquotes_new/admin.log
|
136
|
+
members.log
|
137
|
+
mysql.log
|
138
|
+
native_stderr.log
|
139
|
+
native_stdout.log
|
140
|
+
nginx-access.log
|
141
|
+
nginx-error.log
|
142
|
+
nginx-ssl.access.log
|
143
|
+
nginx-ssl.error.log
|
144
|
+
npm-debug.log
|
145
|
+
order_log
|
146
|
+
order.log
|
147
|
+
orders_log
|
148
|
+
orders.log
|
149
|
+
password.log
|
150
|
+
pgadmin.log
|
151
|
+
php_cli_errors.log
|
152
|
+
php_error_log
|
153
|
+
php_error.log
|
154
|
+
php_errorlog
|
155
|
+
php_errors.log
|
156
|
+
php-error.log
|
157
|
+
php-errors.log
|
158
|
+
php.log
|
159
|
+
phperrors.log
|
160
|
+
plugins.log
|
161
|
+
production.log
|
162
|
+
query.log
|
163
|
+
request.log
|
164
|
+
sales.log
|
165
|
+
sentemails.log
|
166
|
+
server.log
|
167
|
+
serverStatus.log
|
168
|
+
site-log/
|
169
|
+
spamlog.log
|
170
|
+
sql_error.log
|
171
|
+
sqlnet.log
|
172
|
+
startServer.log
|
173
|
+
storage/logs/laravel.log
|
174
|
+
sugarcrm.log
|
175
|
+
syncNode.log
|
176
|
+
sys_log/
|
177
|
+
syslog/
|
178
|
+
system.log
|
179
|
+
system/log/
|
180
|
+
SystemErr.log
|
181
|
+
SystemOut.log
|
182
|
+
telphin.log
|
183
|
+
tmp/access_log
|
184
|
+
tmp/access.log
|
185
|
+
tmp/error_log
|
186
|
+
tmp/error.log
|
187
|
+
users.log
|
188
|
+
var/log/
|
189
|
+
wp-app.log
|
190
|
+
wp-content/debug.log
|
191
|
+
WS_FTP.log
|
192
|
+
WS_FTP.LOG
|
193
|
+
www-error.log
|
194
|
+
xferlog
|
195
|
+
xphperrors.log
|
196
|
+
yaml_cron.log
|
197
|
+
yaml.log
|
198
|
+
yum.log
|
data/lib/tansaku/path.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Tansaku
|
4
|
+
class Path
|
5
|
+
def self.get_by_type(type)
|
6
|
+
new.get_by_type(type)
|
7
|
+
end
|
8
|
+
|
9
|
+
def get_by_type(type)
|
10
|
+
raise ArgumentError, "Invalid type is given. #{type} is not supported." unless valid_type?(type)
|
11
|
+
|
12
|
+
return all if type == "all"
|
13
|
+
|
14
|
+
File.readlines(File.expand_path("./lists/#{type}.txt", __dir__))
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def all
|
20
|
+
types.map { |type| get_by_type(type) }.flatten
|
21
|
+
end
|
22
|
+
|
23
|
+
def types
|
24
|
+
@types = Dir.glob(File.expand_path("./lists/*.txt", __dir__)).map do |path|
|
25
|
+
File.basename(path).split(".").first
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def valid_type?(type)
|
30
|
+
return true if type == "all"
|
31
|
+
|
32
|
+
types.include? type
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/tansaku/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -144,7 +144,12 @@ files:
|
|
144
144
|
- lib/tansaku.rb
|
145
145
|
- lib/tansaku/cli.rb
|
146
146
|
- lib/tansaku/crawler.rb
|
147
|
-
- lib/tansaku/
|
147
|
+
- lib/tansaku/lists/admin.txt
|
148
|
+
- lib/tansaku/lists/backup.txt
|
149
|
+
- lib/tansaku/lists/database.txt
|
150
|
+
- lib/tansaku/lists/etc.txt
|
151
|
+
- lib/tansaku/lists/log.txt
|
152
|
+
- lib/tansaku/path.rb
|
148
153
|
- lib/tansaku/version.rb
|
149
154
|
- tansaku.gemspec
|
150
155
|
homepage: https://github.com/ninoseki/tansaku
|