filecop 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 424c8eb0af3e229e81d62aa09e9a6455723e8ff7
4
+ data.tar.gz: 4ce5d1e3a221866847a27ef2d8e37e346a6a2250
5
+ SHA512:
6
+ metadata.gz: 22944c03a082c180c00a1ad555656fa60e59f57e55534f0dce1dbe7800b74d24b1fb91a994db07e55ae50f8077bc196ab598c75d5b48da6901fd93ad8950983c
7
+ data.tar.gz: 3017e1fe14f90ff1388c1423cf5523d240ab705a7c67562eba1fff68699cbecdb241a0b00fa036eb32958c72be82d78b9f44512c1d5bd9d25e3df9a335abe9f0
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in filecop.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Tom Moor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,69 @@
1
+ # Filecop
2
+
3
+ Filecop is designed to find sensitive files in a provided list. Ideally this would be integrated into something like a git pre-commit hook or post commit check to reduce instances of leaked credentials.
4
+
5
+ The base list of sensitive files is from [jandre/safe-commit-hook](https://github.com/jandre/safe-commit-hook/blob/master/git-deny-patterns.json) - I hope to add to this and contribute back over time.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'filecop'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install filecop
22
+
23
+ ## Usage
24
+
25
+ Using filecop is easy, pass no arguments to check all files in the current directory:
26
+
27
+ $ filecop
28
+
29
+ or pass a list of individual files to check:
30
+
31
+ $ filecop private.key README.md .bashrc
32
+
33
+ Output will look something like this:
34
+
35
+ ```
36
+ Checking 3 files
37
+
38
+ Issues:
39
+
40
+ private.key: Potential cryptographic private key
41
+ .bashrc: Shell configuration file
42
+
43
+ 3 files checked, 2 potential problems
44
+ ```
45
+
46
+ Or pass the `--json` flag to get a machine parseable output
47
+
48
+ ```
49
+ [
50
+ {"file": "private.key", "message": "Potential cryptographic private key"},
51
+ {"file": ".bashrc", "message": "Shell configuration file"}
52
+ ]
53
+ ```
54
+
55
+ ## Development
56
+
57
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
58
+
59
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
60
+
61
+ ## Contributing
62
+
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tommoor/filecop.
64
+
65
+
66
+ ## License
67
+
68
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
69
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "filecop"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: utf-8
3
+
4
+ $LOAD_PATH.unshift(File.dirname(File.realpath(__FILE__)) + '/../lib')
5
+
6
+ require 'filecop'
7
+
8
+ cli = Filecop::CLI.new
9
+ exit cli.run
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'filecop/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "filecop"
8
+ spec.version = Filecop::VERSION
9
+ spec.authors = ["Tom Moor"]
10
+ spec.email = ["tom.moor@gmail.com"]
11
+
12
+ spec.summary = %q{Checks filenames against a library of rules to find sensitive files}
13
+ spec.homepage = "https://github.com/tommoor/filecop"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.11"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "rspec", "~> 3.0"
24
+ end
@@ -0,0 +1,63 @@
1
+ require "json"
2
+ require "pathname"
3
+
4
+ require "filecop/version"
5
+ require "filecop/options"
6
+ require "filecop/rule"
7
+
8
+ module Filecop
9
+ class CLI
10
+
11
+ def run(args = ARGV)
12
+ @options, @paths = Options.parse!(args)
13
+ @paths = Dir.entries(".") if @paths.length==0
14
+
15
+ unless @options.json
16
+ puts "Checking #{@paths.length} files\n"
17
+ end
18
+
19
+ files = matching_files
20
+
21
+ if @options.json
22
+ puts JSON.generate files.map { |p| { file: p[:file], message: p[:rule].message } }
23
+ else
24
+ if files.length>0
25
+ puts "\nIssues:\n\n"
26
+ end
27
+ puts files.map { |p| "#{p[:file]}: #{p[:rule].message}" }
28
+ puts "\n"
29
+ puts "#{@paths.length} files checked, #{files.length} potential problems"
30
+ end
31
+
32
+ return files.length>0 ? 1 : 0
33
+ rescue StandardError, SyntaxError => e
34
+ $stderr.puts e.message
35
+ $stderr.puts e.backtrace
36
+ return 1
37
+ end
38
+
39
+ private
40
+
41
+ def matching_files
42
+ # load banned patterns from config file
43
+ patterns = JSON.parse File.read(File.join(File.dirname(__FILE__), 'patterns.json'))
44
+ rules = patterns.map { |o| Rule.new(o) }
45
+ output = []
46
+
47
+ @paths.each do |file|
48
+ rules.each do |rule|
49
+ if rule.matches?(file)
50
+ output << {
51
+ file: file,
52
+ rule: rule
53
+ }
54
+ break
55
+ end
56
+ end
57
+ end
58
+
59
+ output
60
+ end
61
+
62
+ end
63
+ end
@@ -0,0 +1,27 @@
1
+ require 'optparse'
2
+
3
+ module Filecop
4
+ class Options
5
+ def self.parse!(args)
6
+ # The options specified on the command line will be collected here
7
+ options = OpenStruct.new
8
+ options.json = false
9
+
10
+ opt_parser = OptionParser.new do |opts|
11
+ opts.banner = 'Usage: filecop [options] [file1, file2, ...]'
12
+
13
+ opts.on("-j", "--json", "Output as JSON") do |v|
14
+ options.json = true
15
+ end
16
+
17
+ opts.on_tail('--version', 'Show version') do
18
+ puts Filecop::VERSION
19
+ exit
20
+ end
21
+ end
22
+
23
+ opt_parser.parse!(args)
24
+ [options, args]
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,33 @@
1
+ module Filecop
2
+ class Rule
3
+ def initialize(options)
4
+ @part = options['part']
5
+ @type = options['type']
6
+ @pattern = options['pattern']
7
+ @caption = options['caption']
8
+ @description = options['description']
9
+ end
10
+
11
+ def matches?(file)
12
+ parts = {
13
+ path: file,
14
+ filename: Pathname.new(file).basename,
15
+ extension: File.extname(file).delete('.')
16
+ }
17
+ to_check = parts[@part.to_sym].to_s
18
+
19
+ if @type == 'regex'
20
+ reg = Regexp.new(@pattern, true)
21
+ reg.match(to_check)
22
+ else
23
+ to_check == @pattern
24
+ end
25
+ end
26
+
27
+ def message
28
+ output = "#{@caption}."
29
+ output += " #{@description}" if @description
30
+ output
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,3 @@
1
+ module Filecop
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,408 @@
1
+ [
2
+ {
3
+ "part": "filename",
4
+ "type": "regex",
5
+ "pattern": ".*_rsa",
6
+ "caption": "Private SSH key",
7
+ "description": null
8
+ },
9
+ {
10
+ "part": "filename",
11
+ "type": "regex",
12
+ "pattern": ".*_dsa",
13
+ "caption": "Private SSH key",
14
+ "description": null
15
+ },
16
+ {
17
+ "part": "filename",
18
+ "type": "regex",
19
+ "pattern": ".*_ed25519",
20
+ "caption": "Private SSH key",
21
+ "description": null
22
+ },
23
+ {
24
+ "part": "filename",
25
+ "type": "regex",
26
+ "pattern": ".*_ecdsa",
27
+ "caption": "Private SSH key",
28
+ "description": null
29
+ },
30
+ {
31
+ "part": "extension",
32
+ "type": "match",
33
+ "pattern": "pem",
34
+ "caption": "Potential cryptographic private key",
35
+ "description": null
36
+ },
37
+ {
38
+ "part": "extension",
39
+ "type": "match",
40
+ "pattern": "ppk",
41
+ "caption": "Potential cryptographic private key",
42
+ "description": null
43
+ },
44
+ {
45
+ "part": "extension",
46
+ "type": "regex",
47
+ "pattern": "key(pair)?",
48
+ "caption": "Potential cryptographic private key",
49
+ "description": null
50
+ },
51
+ {
52
+ "part": "extension",
53
+ "type": "match",
54
+ "pattern": "pkcs12",
55
+ "caption": "Potential cryptographic key bundle",
56
+ "description": null
57
+ },
58
+ {
59
+ "part": "extension",
60
+ "type": "match",
61
+ "pattern": "pfx",
62
+ "caption": "Potential cryptographic key bundle",
63
+ "description": null
64
+ },
65
+ {
66
+ "part": "extension",
67
+ "type": "match",
68
+ "pattern": "p12",
69
+ "caption": "Potential cryptographic key bundle",
70
+ "description": null
71
+ },
72
+ {
73
+ "part": "extension",
74
+ "type": "match",
75
+ "pattern": "asc",
76
+ "caption": "Potential cryptographic key bundle",
77
+ "description": null
78
+ },
79
+ {
80
+ "part": "filename",
81
+ "type": "match",
82
+ "pattern": "otr.private_key",
83
+ "caption": "Pidgin OTR private key",
84
+ "description": null
85
+ },
86
+ {
87
+ "part": "filename",
88
+ "type": "regex",
89
+ "pattern": "\\.?(bash_|zsh_|z)?history",
90
+ "caption": "Shell command history file",
91
+ "description": null
92
+ },
93
+ {
94
+ "part": "filename",
95
+ "type": "regex",
96
+ "pattern": "\\.?mysql_history",
97
+ "caption": "MySQL client command history file",
98
+ "description": null
99
+ },
100
+ {
101
+ "part": "filename",
102
+ "type": "regex",
103
+ "pattern": "\\.?psql_history",
104
+ "caption": "PostgreSQL client command history file",
105
+ "description": null
106
+ },
107
+ {
108
+ "part": "filename",
109
+ "type": "regex",
110
+ "pattern": "\\.?irb_history",
111
+ "caption": "Ruby IRB console history file",
112
+ "description": null
113
+ },
114
+ {
115
+ "part": "path",
116
+ "type": "regex",
117
+ "pattern": "\\.?purple\\/accounts\\.xml",
118
+ "caption": "Pidgin chat client account configuration file",
119
+ "description": null
120
+ },
121
+ {
122
+ "part": "path",
123
+ "type": "regex",
124
+ "pattern": "\\.?xchat2?\\/servlist_?\\.conf",
125
+ "caption": "Hexchat/XChat IRC client server list configuration file",
126
+ "description": null
127
+ },
128
+ {
129
+ "part": "path",
130
+ "type": "regex",
131
+ "pattern": "\\.?irssi\\/config",
132
+ "caption": "Irssi IRC client configuration file",
133
+ "description": null
134
+ },
135
+ {
136
+ "part": "path",
137
+ "type": "regex",
138
+ "pattern": "\\.?recon-ng\\/keys\\.db",
139
+ "caption": "Recon-ng web reconnaissance framework API key database",
140
+ "description": null
141
+ },
142
+ {
143
+ "part": "filename",
144
+ "type": "regex",
145
+ "pattern": "\\.?dbeaver-data-sources.xml",
146
+ "caption": "DBeaver SQL database manager configuration file",
147
+ "description": null
148
+ },
149
+ {
150
+ "part": "filename",
151
+ "type": "regex",
152
+ "pattern": "\\.?muttrc",
153
+ "caption": "Mutt e-mail client configuration file",
154
+ "description": null
155
+ },
156
+ {
157
+ "part": "filename",
158
+ "type": "regex",
159
+ "pattern": "\\.?s3cfg",
160
+ "caption": "S3cmd configuration file",
161
+ "description": null
162
+ },
163
+ {
164
+ "part": "filename",
165
+ "type": "regex",
166
+ "pattern": "\\.?trc",
167
+ "caption": "T command-line Twitter client configuration file",
168
+ "description": null
169
+ },
170
+ {
171
+ "part": "extension",
172
+ "type": "match",
173
+ "pattern": "ovpn",
174
+ "caption": "OpenVPN client configuration file",
175
+ "description": null
176
+ },
177
+ {
178
+ "part": "filename",
179
+ "type": "regex",
180
+ "pattern": "\\.?gitrobrc",
181
+ "caption": "Well, this is awkward... Gitrob configuration file",
182
+ "description": null
183
+ },
184
+ {
185
+ "part": "filename",
186
+ "type": "regex",
187
+ "pattern": "\\.?(bash|zsh)rc",
188
+ "caption": "Shell configuration file",
189
+ "description": "Shell configuration files might contain information such as server hostnames, passwords and API keys."
190
+ },
191
+ {
192
+ "part": "filename",
193
+ "type": "regex",
194
+ "pattern": "\\.?(bash_|zsh_)?profile",
195
+ "caption": "Shell profile configuration file",
196
+ "description": "Shell configuration files might contain information such as server hostnames, passwords and API keys."
197
+ },
198
+ {
199
+ "part": "filename",
200
+ "type": "regex",
201
+ "pattern": "\\.?(bash_|zsh_)?aliases",
202
+ "caption": "Shell command alias configuration file",
203
+ "description": "Shell configuration files might contain information such as server hostnames, passwords and API keys."
204
+ },
205
+ {
206
+ "part": "filename",
207
+ "type": "match",
208
+ "pattern": "secret_token.rb",
209
+ "caption": "Ruby On Rails secret token configuration file",
210
+ "description": "If the Rails secret token is known, it can allow for remote code execution. (http://www.exploit-db.com/exploits/27527/)"
211
+ },
212
+ {
213
+ "part": "filename",
214
+ "type": "match",
215
+ "pattern": "omniauth.rb",
216
+ "caption": "OmniAuth configuration file",
217
+ "description": "The OmniAuth configuration file might contain client application secrets."
218
+ },
219
+ {
220
+ "part": "filename",
221
+ "type": "match",
222
+ "pattern": "carrierwave.rb",
223
+ "caption": "Carrierwave configuration file",
224
+ "description": "Can contain credentials for online storage systems such as Amazon S3 and Google Storage."
225
+ },
226
+ {
227
+ "part": "filename",
228
+ "type": "match",
229
+ "pattern": "schema.rb",
230
+ "caption": "Ruby On Rails database schema file",
231
+ "description": "Contains information on the database schema of a Ruby On Rails application."
232
+ },
233
+ {
234
+ "part": "filename",
235
+ "type": "match",
236
+ "pattern": "database.yml",
237
+ "caption": "Potential Ruby On Rails database configuration file",
238
+ "description": "Might contain database credentials."
239
+ },
240
+ {
241
+ "part": "filename",
242
+ "type": "match",
243
+ "pattern": "settings.py",
244
+ "caption": "Django configuration file",
245
+ "description": "Might contain database credentials, online storage system credentials, secret keys, etc."
246
+ },
247
+ {
248
+ "part": "filename",
249
+ "type": "regex",
250
+ "pattern": "(.*)?config(\\.inc)?\\.php",
251
+ "caption": "PHP configuration file",
252
+ "description": "Might contain credentials and keys."
253
+ },
254
+ {
255
+ "part": "extension",
256
+ "type": "match",
257
+ "pattern": "kdb",
258
+ "caption": "KeePass password manager database file",
259
+ "description": null
260
+ },
261
+ {
262
+ "part": "extension",
263
+ "type": "match",
264
+ "pattern": "agilekeychain",
265
+ "caption": "1Password password manager database file",
266
+ "description": null
267
+ },
268
+ {
269
+ "part": "extension",
270
+ "type": "match",
271
+ "pattern": "keychain",
272
+ "caption": "Apple Keychain database file",
273
+ "description": null
274
+ },
275
+ {
276
+ "part": "extension",
277
+ "type": "regex",
278
+ "pattern": "key(store|ring)",
279
+ "caption": "GNOME Keyring database file",
280
+ "description": null
281
+ },
282
+ {
283
+ "part": "extension",
284
+ "type": "match",
285
+ "pattern": "log",
286
+ "caption": "Log file",
287
+ "description": "Log files might contain information such as references to secret HTTP endpoints, session IDs, user information, passwords and API keys."
288
+ },
289
+ {
290
+ "part": "extension",
291
+ "type": "match",
292
+ "pattern": "pcap",
293
+ "caption": "Network traffic capture file",
294
+ "description": null
295
+ },
296
+ {
297
+ "part": "extension",
298
+ "type": "regex",
299
+ "pattern": "sql(dump)?",
300
+ "caption": "SQL dump file",
301
+ "description": null
302
+ },
303
+ {
304
+ "part": "extension",
305
+ "type": "match",
306
+ "pattern": "gnucash",
307
+ "caption": "GnuCash database file",
308
+ "description": null
309
+ },
310
+ {
311
+ "part": "filename",
312
+ "type": "regex",
313
+ "pattern": "backup",
314
+ "caption": "Contains word: backup",
315
+ "description": null
316
+ },
317
+ {
318
+ "part": "filename",
319
+ "type": "regex",
320
+ "pattern": "dump",
321
+ "caption": "Contains word: dump",
322
+ "description": null
323
+ },
324
+ {
325
+ "part": "filename",
326
+ "type": "regex",
327
+ "pattern": "password",
328
+ "caption": "Contains word: password",
329
+ "description": null
330
+ },
331
+ {
332
+ "part": "filename",
333
+ "type": "regex",
334
+ "pattern": "private.*key",
335
+ "caption": "Contains words: private, key",
336
+ "description": null
337
+ },
338
+ {
339
+ "part": "filename",
340
+ "type": "match",
341
+ "pattern": "jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml",
342
+ "caption": "Jenkins publish over SSH plugin file",
343
+ "description": null
344
+ },
345
+ {
346
+ "part": "filename",
347
+ "type": "match",
348
+ "pattern": "credentials.xml",
349
+ "caption": "Potential Jenkins credentials file",
350
+ "description": null
351
+ },
352
+ {
353
+ "part": "filename",
354
+ "type": "regex",
355
+ "pattern": "\\.?htpasswd",
356
+ "caption": "Apache htpasswd file",
357
+ "description": null
358
+ },
359
+ {
360
+ "part": "filename",
361
+ "type": "regex",
362
+ "pattern": "\\.?netrc",
363
+ "caption": "Configuration file for auto-login process",
364
+ "description": "Might contain username and password."
365
+ },
366
+ {
367
+ "part": "extension",
368
+ "type": "match",
369
+ "pattern": "kwallet",
370
+ "caption": "KDE Wallet Manager database file",
371
+ "description": null
372
+ },
373
+ {
374
+ "part": "filename",
375
+ "type": "match",
376
+ "pattern": "LocalSettings.php",
377
+ "caption": "Potential MediaWiki configuration file",
378
+ "description": null
379
+ },
380
+ {
381
+ "part": "extension",
382
+ "type": "match",
383
+ "pattern": "tblk",
384
+ "caption": "Tunnelblick VPN configuration file",
385
+ "description": null
386
+ },
387
+ {
388
+ "part": "path",
389
+ "type": "regex",
390
+ "pattern": "\\.?gem/credentials",
391
+ "caption": "Rubygems credentials file",
392
+ "description": "Might contain API key for a rubygems.org account."
393
+ },
394
+ {
395
+ "part": "filename",
396
+ "type": "regex",
397
+ "pattern": ".*\\.pubxml(\\.user)?",
398
+ "caption": "Potential MSBuild publish profile",
399
+ "description": null
400
+ },
401
+ {
402
+ "part": "filename",
403
+ "type": "match",
404
+ "pattern": ".env",
405
+ "caption": "dotenv",
406
+ "description": "Environment file that contains sensitive data"
407
+ }
408
+ ]
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: filecop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tom Moor
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-01-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - tom.moor@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - .rspec
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - bin/console
69
+ - bin/filecop
70
+ - bin/setup
71
+ - filecop.gemspec
72
+ - lib/filecop.rb
73
+ - lib/filecop/options.rb
74
+ - lib/filecop/rule.rb
75
+ - lib/filecop/version.rb
76
+ - lib/patterns.json
77
+ homepage: https://github.com/tommoor/filecop
78
+ licenses:
79
+ - MIT
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.0.14
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Checks filenames against a library of rules to find sensitive files
101
+ test_files: []