memorable_password 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
CHANGED
@@ -47,3 +47,6 @@ Generates a password that is two 4-char words joined by non-ambiguous digit (not
|
|
47
47
|
Contact me at [github@kevinmcphillips.ca](mailto:github@kevinmcphillips.ca) with questions or feedback.
|
48
48
|
|
49
49
|
|
50
|
+
## Contributions
|
51
|
+
|
52
|
+
- knody on August 1, 2013: Improve support for Ruby 1.8.7
|
data/lib/memorable_password.rb
CHANGED
@@ -31,6 +31,12 @@ describe MemorablePassword do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
describe "#to_s" do
|
35
|
+
it "should have a more resonable string representation than echoing all the arrays" do
|
36
|
+
memorable_password.inspect.should match(/#<MemorablePassword:0x.{14}>/)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
34
40
|
describe "#add_word" do
|
35
41
|
it "should not add words that are less than 2 characters" do
|
36
42
|
subject.add_word('i')
|
@@ -151,7 +157,7 @@ describe MemorablePassword do
|
|
151
157
|
it "should raise an exception if both the length and min_length options are supplied" do
|
152
158
|
expect {
|
153
159
|
memorable_password.generate(:length => 5, :min_length => 2)
|
154
|
-
}.
|
160
|
+
}.to raise_exception('You cannot specify :length and :min_length at the same time')
|
155
161
|
end
|
156
162
|
end
|
157
163
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memorable_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
17
|
-
requirement: &
|
17
|
+
requirement: &83405870 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 2.6.0
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *83405870
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: yard
|
28
|
-
requirement: &
|
28
|
+
requirement: &83405510 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *83405510
|
37
37
|
description: This simple gem generates a random password that is easy to read and
|
38
38
|
remember. It uses dictionary words as well as a list of proper names mixed in with
|
39
39
|
numbers and special characters.
|
@@ -87,3 +87,4 @@ signing_key:
|
|
87
87
|
specification_version: 3
|
88
88
|
summary: Generate human readable and easy to remember passwords
|
89
89
|
test_files: []
|
90
|
+
has_rdoc:
|