nobspw 0.6.0 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/lib/nobspw/configuration.rb +1 -1
- data/lib/nobspw/validation_methods.rb +2 -2
- data/lib/nobspw/version.rb +1 -1
- data/nobspw.gemspec +2 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d81c15016a1b06dc3d38fc995120b526574a65cd5fd13ed98bc05e614f189b5b
|
4
|
+
data.tar.gz: a7303590e8fa254ad9718fda4444a2c3d5faabb77cc528d5a5284e52792742be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e8b250a5a326593bab9f576cdc7ec15da4e03573c273bacc62b74f46c4977df5e323b079aa43f613d17f458f1417b1f569e2f7dd19f190be16af5b0b68e7a13
|
7
|
+
data.tar.gz: 6ab6462e6c32b58a1f79cd01ffa0a540fab446f22db43b43c52366821a3a185f7c5a1c5b78cd938f4a5be94c2f93ba1cc094f9a456c8d957c68cfa079c7a2cba
|
data/.travis.yml
CHANGED
data/lib/nobspw/configuration.rb
CHANGED
@@ -17,7 +17,7 @@ module NOBSPW
|
|
17
17
|
@min_unique_characters = 5
|
18
18
|
@dictionary_path = File.join(File.dirname(__FILE__), "..", "db", "dictionary.txt")
|
19
19
|
@grep_path = `which grep`.strip
|
20
|
-
@use_ruby_grep =
|
20
|
+
@use_ruby_grep = @grep_path.empty?
|
21
21
|
@domain_name = nil
|
22
22
|
@blacklist = nil
|
23
23
|
@validation_methods = NOBSPW::ValidationMethods::DEFAULT_VALIDATION_METHODS
|
@@ -96,7 +96,7 @@ module NOBSPW
|
|
96
96
|
if !File.exist?(NOBSPW.configuration.grep_path)
|
97
97
|
|
98
98
|
output = Open3.popen3(STDIN_GREP_COMMAND.join(" "), out: '/dev/null') { |stdin, stdout, stderr, wait_thr|
|
99
|
-
stdin.puts "^#{
|
99
|
+
stdin.puts "^#{escaped_password}$"
|
100
100
|
stdin.close
|
101
101
|
wait_thr.value
|
102
102
|
}
|
@@ -104,7 +104,7 @@ module NOBSPW
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def ruby_grep
|
107
|
-
File.open(NOBSPW.configuration.dictionary_path).grep(/^#{escaped_password}$/).
|
107
|
+
File.open(NOBSPW.configuration.dictionary_path).grep(/^#{escaped_password}$/).any?
|
108
108
|
end
|
109
109
|
|
110
110
|
def email_without_extension(email)
|
data/lib/nobspw/version.rb
CHANGED
data/nobspw.gemspec
CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler"
|
25
|
-
spec.add_development_dependency "rake", "~>
|
24
|
+
spec.add_development_dependency "bundler"
|
25
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
27
|
spec.add_development_dependency "simplecov", "~> 0.13"
|
28
28
|
spec.add_development_dependency "guard", "~> 2.14"
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nobspw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Mercier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,8 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
|
-
|
228
|
-
rubygems_version: 2.7.6
|
227
|
+
rubygems_version: 3.1.2
|
229
228
|
signing_key:
|
230
229
|
specification_version: 4
|
231
230
|
summary: No Bullshit Password strength checker
|