authorized_keys 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/authorized_keys/key.rb +1 -1
- data/spec/authorized_keys/key_spec.rb +19 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/authorized_keys/key.rb
CHANGED
@@ -29,8 +29,26 @@ describe AuthorizedKeys::Key do
|
|
29
29
|
|
30
30
|
subject { AuthorizedKeys::Key.new(key) }
|
31
31
|
|
32
|
-
|
32
|
+
context "with RSA key" do
|
33
|
+
it { lambda { subject }.should_not raise_error }
|
34
|
+
end
|
35
|
+
|
36
|
+
context "with DSS key" do
|
37
|
+
let(:content) do
|
38
|
+
'ssh-dss AAAAB3NzaC1kc3MAAACBAKzmLlMEKSrOnGIUCV6cU6l56ves14l6gY/6j8B7weZJxW' +
|
39
|
+
'84yEBYCXUGxYybV0JfBsQ85nSxRqFKih1xjU9SyRVK3fFggffe30gFT0vDGy/Zj6aOFrF8B2RK' +
|
40
|
+
'59VaEyWzZQqKlhtS2M5hBN7JRGKc3haBp+G9fehm42AueAHQBOPXAAAAFQDTBZ3XsR50a3ApSO' +
|
41
|
+
'gqF+3JU+Ey6QAAAIEAlT0VLqGgprONWAupcKBOgaYOBLoDdqsXax4E54cn49d/wyi68NU9RJWq' +
|
42
|
+
'zNCwpNtFWJJ6SCcJXv5vajBmf2WI8LkaCwq4/oyhRD5QR55uro1zWj0pPA5YN0o7EafYZH1HIO' +
|
43
|
+
'+/vM/fbQFd6EGuBbFnortSQgzjHlr8J1UL7f0WbMsAAACAO5A/xv1aQ8uLQQe60VBZRm3pQjb1' +
|
44
|
+
'RYB6ZN63Ts/VSw7TNW3/l8+0pqZkarUHXNDxqwSsb9DozgooeZPqM8bpB+t1zM/7f1Be+yaYyu' +
|
45
|
+
'3OpaPdceJZGLIcXXbytPw+utRcQPrxucBngukL8TmazZvcfrEONdDS+CK1D/ZqtmjtXPU='
|
46
|
+
end
|
33
47
|
|
48
|
+
it { lambda { subject }.should_not raise_error(AuthorizedKeys::BadKeyError) }
|
49
|
+
end
|
50
|
+
|
51
|
+
describe '#initialize' do
|
34
52
|
its(:options) { should == options }
|
35
53
|
its(:content) { should == content }
|
36
54
|
its(:comment) { should == comment }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authorized_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 4079999309947216651
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bodaniel Jeanes
|