cracklib_reloaded 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2b6096ce9c9708f4edc757c90ce9adbf0a96777
4
- data.tar.gz: 4d2ccfcecc12280e87be8f38c6ded990833482a9
3
+ metadata.gz: eea29b197e29343152c1b1b1ac57cd512358f7df
4
+ data.tar.gz: 1d84810ce942d53cf91476c59fd51f1cc9cbd40b
5
5
  SHA512:
6
- metadata.gz: 7a0e7b54d64dd65c501479dd67989bb419b870ff230bd02101fe312457a60334887886a6d1d5a719c6d51035f3441132cc051b3c60cf0047985eea0d3a113023
7
- data.tar.gz: 242b7187733312fee9cadbd29200222db57a4d3060f25ff3150a47a09a3ea732e7f7fc274b3ca658037f20a7b6cb2bef401b6fe3b019c7d7834cd5c05c27ede7
6
+ metadata.gz: c4e8b4a38ef0ab5dbc70c2d50afed8a28546a35d7aa15d829838dcda022416eafe5dda5d1abce96d64705922d98e7c93411e36f1e9a81b0b55b5e76c8d2db1b4
7
+ data.tar.gz: b1237fcd78f8886c1288807289a12e38105258e0592828f92058fbac4a3075060f63d0e84559c5b9a2af26c92c50b9db50eee2ae8a8f3f7dc183459588acb09b
@@ -0,0 +1,28 @@
1
+ ---
2
+ engines:
3
+ fixme:
4
+ enabled: true
5
+ duplication:
6
+ enabled: true
7
+ config:
8
+ languages:
9
+ - ruby
10
+ rubocop:
11
+ enabled: true
12
+ reek:
13
+ enabled: true
14
+ flog:
15
+ enabled: true
16
+ config:
17
+ score_threshold: 20.0
18
+ # https://github.com/rubysec/bundler-audit/pull/87/commits/59b50f8423cba24dbb6cde3ad7df0358c77bbd29
19
+ # bundler-audit:
20
+ # enabled: true
21
+ ratings:
22
+ paths:
23
+ # - Gemfile.lock
24
+ - "**.rb"
25
+ exclude_paths:
26
+ - "test/"
27
+ - "spec/"
28
+ - "**/vendor/"
@@ -1,7 +1,14 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-05-08 13:08:19 +0200 using RuboCop version 0.48.1.
3
+ # on 2017-07-07 09:30:06 +0200 using RuboCop version 0.48.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
11
+ # SupportedStyles: if, case, both
12
+ Style/MissingElse:
13
+ Exclude:
14
+ - 'lib/cracklib_reloaded/password.rb'
@@ -0,0 +1,28 @@
1
+ .codeclimate.yml
2
+ .gitignore
3
+ .rspec
4
+ .rubocop.yml
5
+ .rubocop_todo.yml
6
+ .travis.yml
7
+ CHANGELOG.md
8
+ CODE_OF_CONDUCT.md
9
+ Gemfile
10
+ Guardfile
11
+ LICENSE.txt
12
+ Manifest.txt
13
+ README.md
14
+ Rakefile
15
+ bin/console
16
+ bin/setup
17
+ config.reek
18
+ cracklib_reloaded.gemspec
19
+ env.rb
20
+ init.rb
21
+ lib/.keep
22
+ lib/cracklib_reloaded.rb
23
+ lib/cracklib_reloaded/password.rb
24
+ lib/cracklib_reloaded/version.rb
25
+ spec/cracklib_reloaded_spec.rb
26
+ spec/lib/.keep
27
+ spec/lib/cracklib_reloaded/password_spec.rb
28
+ spec/spec_helper.rb
data/README.md CHANGED
@@ -4,7 +4,7 @@ CrackLib is a library for checking that a password is not based on a simple char
4
4
 
5
5
  ## Dependencies
6
6
 
7
- * CENTOS 5.x: sudo yum install cracklib cracklib-dicts
7
+ * CENTOS 5.x: NOT SUPPORTED
8
8
  * CENTOS 6.x: sudo yum install cracklib cracklib-devel
9
9
  * UBUNTU: sudo apt-get install libcrack2 libcrack2-dev cracklib-runtime
10
10
  * MAC: sudo port install cracklib cracklib-words
@@ -31,7 +31,10 @@ Or install it yourself as:
31
31
 
32
32
  ## Usage
33
33
 
34
+ $ bundle exec irb
35
+
34
36
  ```
37
+ require_relative 'env'
35
38
  password = CracklibReloaded::Password.new
36
39
  password.weak?('admin123')
37
40
  => true
@@ -56,7 +59,7 @@ $ guard # require './lib/cracklib_reloaded'
56
59
 
57
60
  ## Run script
58
61
 
59
- CAUTION: Using password as a script argument may not safe
62
+ CAUTION: Using password as a script argument may not be safe
60
63
 
61
64
  ```
62
65
  $ ruby init.rb 'admin123'
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative '../env'
4
3
  require 'cracklib_reloaded/version'
5
4
  require 'cracklib_reloaded/password'
6
5
 
@@ -13,7 +13,8 @@ module CracklibReloaded
13
13
  libcrack_so_paths << '/usr/lib64/libcrack.so.2'
14
14
  libcrack_so_paths << '/usr/lib/x86_64-linux-gnu/libcrack.so.2'
15
15
  end
16
- libcrack_so_paths << '/usr/lib/libcrack.so.2' # generic
16
+ # generic
17
+ libcrack_so_paths << '/usr/lib/libcrack.so.2'
17
18
  libcrack_so_paths << '/usr/lib/i386-linux-gnu/libcrack.so.2'
18
19
  LIBCRACK_SO_PATH = libcrack_so_paths.select { |file| File.readable?(file) }.first.freeze
19
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CracklibReloaded
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cracklib_reloaded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kalita
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2017-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -276,6 +276,7 @@ executables: []
276
276
  extensions: []
277
277
  extra_rdoc_files: []
278
278
  files:
279
+ - ".codeclimate.yml"
279
280
  - ".gitignore"
280
281
  - ".rspec"
281
282
  - ".rubocop.yml"
@@ -286,6 +287,7 @@ files:
286
287
  - Gemfile
287
288
  - Guardfile
288
289
  - LICENSE.txt
290
+ - Manifest.txt
289
291
  - README.md
290
292
  - Rakefile
291
293
  - bin/console