gitrob 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/lib/gitrob/version.rb +1 -1
- data/patterns.json +2 -2
- data/spec/lib/gitrob/observers/sensitive_files_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67ff947e44f57832ac04e0cc36bad170b6168b32
|
|
4
|
+
data.tar.gz: 541eff757e7caa083bd25da0265b1823f7335b81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17c6f678592140b9d9fc9e44bf00224baf4736cf90447408686fb428fd6690acfa5813f3017ef5758394f7b2201faeb8776c721af879ef14298ea605888edfe1
|
|
7
|
+
data.tar.gz: af13933e20cbaa53cf3f32d800e83402320470bfea427603cf9b94ea166b6184927b8db00b48f393553a2828028768cb106f273560648ec260ec59ec725efc21
|
data/lib/gitrob/version.rb
CHANGED
data/patterns.json
CHANGED
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
{
|
|
115
115
|
"part": "path",
|
|
116
116
|
"type": "regex",
|
|
117
|
-
"pattern": "\\.?
|
|
118
|
-
"caption": "
|
|
117
|
+
"pattern": "\\.?irssi\\/config\\z",
|
|
118
|
+
"caption": "Irssi IRC client configuration file",
|
|
119
119
|
"description": null
|
|
120
120
|
},
|
|
121
121
|
{
|
|
@@ -245,13 +245,13 @@ RSpec.describe Gitrob::Observers::SensitiveFiles do
|
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
it 'detects irrsi IRC client configuration files' do
|
|
248
|
-
['.
|
|
249
|
-
'
|
|
250
|
-
'config/.
|
|
248
|
+
['.irssi/config',
|
|
249
|
+
'irssi/config',
|
|
250
|
+
'config/.irssi/config'
|
|
251
251
|
].each do |path|
|
|
252
252
|
blob = Gitrob::Github::Blob.new(path, 1, repo).to_model(org, repo.to_model(org))
|
|
253
253
|
described_class.observe(blob)
|
|
254
|
-
expect(blob.findings.first.caption).to eq("
|
|
254
|
+
expect(blob.findings.first.caption).to eq("Irssi IRC client configuration file")
|
|
255
255
|
end
|
|
256
256
|
end
|
|
257
257
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitrob
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Henriksen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|