dynarex-password 0.1.5 → 0.1.6
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 +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex-password.rb +4 -6
- metadata +34 -41
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 15df5300797fc143158088b69f2de426526b397f
|
4
|
+
data.tar.gz: 970249e0f188fa4942640c5f2fa1af04af6c2d98
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7b8c8fc661fbc7dc908dc9118762340522333570912c688c13de68d28c4e405fe146189b4ac2e09b913a4eaf0dfc5519cbe6108435accd428e7f3468bdba01ab
|
7
|
+
data.tar.gz: 0334f77c6aabe850387cfbbc6caae6fcd099922df52725757e3206589a30ac6916558e0814567849ed376d775dfa0c7e8df331388cbeae5b6626e21529dba7d2
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex-password.rb
CHANGED
@@ -61,11 +61,9 @@ class DynarexPassword
|
|
61
61
|
|
62
62
|
h = dynarex.to_h.inject({}){|r, x| r.merge({x[:value] => x[:index]})}
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
string.join
|
64
|
+
password.split('-').map {|x| x.split(//).each_slice(2)
|
65
|
+
.map {|chars| h[chars.join]}.join }.join '-'
|
66
|
+
|
69
67
|
end
|
70
68
|
|
71
69
|
def save(filepath) @dynarex.save filepath, pretty: true end
|
@@ -76,7 +74,7 @@ class DynarexPassword
|
|
76
74
|
|
77
75
|
size = @fixed_size ? @fixed_size : rand(upper_size)+1
|
78
76
|
newpass = Array.new(size, '').map{@chars[rand(@chars.size)]}.join
|
79
|
-
|
77
|
+
|
80
78
|
# return the encryption providing it doesn't already exist in the lookup table.
|
81
79
|
return !@temp_list.include?(newpass) ? newpass : get_random_chars(size)
|
82
80
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex-password
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.1.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.6
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- James Robertson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
|
-
cert_chain:
|
10
|
+
cert_chain:
|
12
11
|
- |
|
13
12
|
-----BEGIN CERTIFICATE-----
|
14
13
|
MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
@@ -30,56 +29,50 @@ cert_chain:
|
|
30
29
|
jbRy/94v/9srM0/stUsihC/uKQSsvSZIS1uqx9vO6dIUGqlGBcP3Tnd76y108SDa
|
31
30
|
rufFtHK2J579Wqhr7INW61EcXpM0Kz9K
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
32
|
+
date: 2013-07-21 00:00:00.000000000 Z
|
33
|
+
dependencies:
|
34
|
+
- !ruby/object:Gem::Dependency
|
37
35
|
name: dynarex
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: "0"
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
45
41
|
type: :runtime
|
46
|
-
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
47
48
|
description:
|
48
49
|
email:
|
49
50
|
executables: []
|
50
|
-
|
51
51
|
extensions: []
|
52
|
-
|
53
52
|
extra_rdoc_files: []
|
54
|
-
|
55
|
-
files:
|
53
|
+
files:
|
56
54
|
- lib/dynarex-password.rb
|
57
55
|
homepage:
|
58
56
|
licenses: []
|
59
|
-
|
57
|
+
metadata: {}
|
60
58
|
post_install_message:
|
61
59
|
rdoc_options: []
|
62
|
-
|
63
|
-
require_paths:
|
60
|
+
require_paths:
|
64
61
|
- lib
|
65
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: "0"
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
77
72
|
requirements: []
|
78
|
-
|
79
73
|
rubyforge_project:
|
80
|
-
rubygems_version:
|
74
|
+
rubygems_version: 2.0.0.rc.2
|
81
75
|
signing_key:
|
82
|
-
specification_version:
|
76
|
+
specification_version: 4
|
83
77
|
summary: dynarex-password
|
84
78
|
test_files: []
|
85
|
-
|
metadata.gz.sig
CHANGED
Binary file
|