sshakery 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -436,29 +436,29 @@ class AuthKeys
436
436
  end
437
437
  end
438
438
 
439
- if self.key_data.nil?:
439
+ if self.key_data.nil?
440
440
  self.errors.push ERRORS[:data_nil]
441
441
  return false
442
442
  end
443
443
 
444
- if self.key_type.nil?:
444
+ if self.key_type.nil?
445
445
  self.errors.push ERRORS[:type_nil]
446
446
  return false
447
447
  end
448
448
 
449
- if not self.key_data.match "^#{B64_REGEX}$":
449
+ if not self.key_data.match "^#{B64_REGEX}$"
450
450
  self.errors.push ERRORS[:data_char]
451
451
  end
452
452
 
453
- if self.key_data.size < 30:
453
+ if self.key_data.size < 30
454
454
  self.errors.push ERRORS[:data_short]
455
455
  end
456
456
 
457
- if self.key_data.size > 1000:
457
+ if self.key_data.size > 1000
458
458
  self.errors.push ERRORS[:data_long]
459
459
  end
460
460
 
461
- if self.key_data.size % 4 != 0:
461
+ if self.key_data.size % 4 != 0
462
462
  self.errors.push ERRORS[:data_modulus]
463
463
  end
464
464
 
@@ -1,4 +1,4 @@
1
1
  module Sshakery
2
2
  # Sshakery version
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshakery
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - hattwj
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-10 00:00:00 Z
18
+ date: 2012-11-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest
@@ -100,3 +100,4 @@ test_files:
100
100
  - test/lib/sshakery/version_test.rb
101
101
  - test/lib/sshakery_test.rb
102
102
  - test/test_helper.rb
103
+ has_rdoc: