-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Melvin Lammerts
committed
Nov 24, 2016
1 parent
971a31d
commit 2f4af24
Showing
25 changed files
with
85 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.swp | ||
!output/.gitkeep | ||
output/* | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ source 'https://rubygems.org' | |
|
||
gem 'pry' | ||
|
||
gem 'require_all' | ||
gem 'tty' | ||
gem 'http' | ||
gem 'nokogiri' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.unshift(File.dirname(File.realpath(__FILE__)) + '/../lib') | ||
|
||
require 'vcsmap' | ||
|
||
cli = Vcsmap::CLI.new(ARGV) | ||
cli.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require 'http' | ||
require 'yaml' | ||
require 'nokogiri' | ||
|
||
# TODO: include only if needed | ||
require_relative 'vcsmap/cli' | ||
require_relative 'vcsmap/csv_writer' | ||
require_relative 'vcsmap/progress_bar' | ||
|
||
require_relative 'vcsmap/helpers' | ||
require_relative 'vcsmap/plugin' | ||
require_relative 'vcsmap/plugin_list' | ||
require_relative 'vcsmap/provider' | ||
|
||
# TODO: work on require_all | ||
require_relative 'vcsmap/plugins/base_plugin' | ||
require_relative 'vcsmap/plugins/aws_access_token' | ||
require_relative 'vcsmap/plugins/facebook_client_secrets' | ||
require_relative 'vcsmap/plugins/filezilla_xml' | ||
require_relative 'vcsmap/plugins/github_sublimesettings' | ||
require_relative 'vcsmap/plugins/google_oauth' | ||
require_relative 'vcsmap/plugins/instagram_tokens' | ||
require_relative 'vcsmap/plugins/solr_dataconfig' | ||
require_relative 'vcsmap/plugins/wordpress_config' | ||
|
||
require_relative 'vcsmap/providers/github' | ||
|
||
module Vcsmap | ||
VERSION = '2.0.0'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module Vcsmap | ||
module Helpers | ||
def self.project_directory | ||
"#{File.dirname(File.dirname(__FILE__))}" | ||
File.dirname(File.dirname(__FILE__)).to_s | ||
end | ||
end | ||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'tty' | ||
|
||
module Vcsmap | ||
class ProgressBar | ||
def initialize(count) | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require_relative 'lib/vcsmap' | ||
|
||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'vcsmap' | ||
s.version = Vcsmap::VERSION | ||
s.licenses = ['MIT'] | ||
s.summary = 'Scans public repositories for sensitive information.' | ||
s.description = 'A plugin-based tool to scan public version control systems for sensitive information.' | ||
s.authors = ['Melvin Lammerts'] | ||
s.email = 'hi@melvin.sh' | ||
s.files = Dir['lib/**/*.rb'] | ||
s.require_paths = ['lib'] | ||
s.executables = 'vcsmap' | ||
s.homepage = 'http://vcsmap.org' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +0,0 @@ | ||
require 'tty' | ||
require 'csv' | ||
require 'http' | ||
require 'yaml' | ||
require 'nokogiri' | ||
require 'require_all' | ||
|
||
require_relative 'lib/cli' | ||
require_relative 'lib/csv_writer' | ||
require_relative 'lib/helpers' | ||
require_relative 'lib/plugin' | ||
require_relative 'lib/plugin_list' | ||
require_relative 'lib/provider' | ||
require_relative 'lib/progress_bar' | ||
|
||
require_all 'lib/plugins' | ||
require_all 'lib/providers' | ||
|
||
module Vcsmap | ||
VERSION = '1.0.3'.freeze | ||
|
||
cli = Vcsmap::CLI.new(ARGV) | ||
cli.run | ||
end | ||