mirror of
https://git.hackliberty.org/Awesome-Mirrors/WebHackersWeapons.git
synced 2024-08-22 23:28:56 -06:00
22 lines
654 B
Ruby
22 lines
654 B
Ruby
require 'yaml'
|
|
|
|
Dir.entries("./weapons").each do | name |
|
|
if name.strip != "." || name != ".."
|
|
begin
|
|
data = YAML.load(File.open("./weapons/#{name}"))
|
|
if data['type'] == "" || data['type'] == nil
|
|
puts "./weapons/#{name} :: none-type"
|
|
end
|
|
if data['lang'] == "" || data['lang'] == nil || data['lang'].length == 0
|
|
if data['url'].include? "github.com"
|
|
puts "./weapons/#{name} :: none-lang"
|
|
end
|
|
end
|
|
if data['tags'].length == 0 || data['tags'] == nil
|
|
#puts "#{name} :: none-tags"
|
|
end
|
|
rescue => e
|
|
puts e
|
|
end
|
|
end
|
|
end |