dgen 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cfb3588e2b4bcadcad552501b70b42ea1d31ec2
4
- data.tar.gz: 016f9d876d44657a84c05e5c51a136cdd8eb9e3e
3
+ metadata.gz: 0b4e97d160a790de39dfc8ffe12e5e43dd71f9e0
4
+ data.tar.gz: 52d7dfb9b70f0db972e19da29d593e202a75721d
5
5
  SHA512:
6
- metadata.gz: e382e30496b8935d16c985fda4906a5191831d6d2c4add1227e162cc0efb4ca143f6aee849c6058ad5a37b86aee1109903658655aee7e0e5ce19501349db10bf
7
- data.tar.gz: b0755d41f68d3a493dbacbfbd510979807b4677f4315a0d9a74f06b613ab56de66086b2b5125039f9a7f784817561b69d0284fec87947713370f2fe0651ba85d
6
+ metadata.gz: 1632f406a509240eaa56c32c41ebf835fde80b366df78945a24f49b9d965741031886a097616ee3a49ae022c286394e7d1af0436b08da406e4d1592c24081f55
7
+ data.tar.gz: 70ad86ca87eb92701fb4787cf54043d08cdd74eb701e1839cebcbc768b02a3f6e4cc149fff6b0edcc4c72908081d7345810b397ddb20cee62c185dacf9790425
@@ -48,6 +48,9 @@ if options[:open]
48
48
  puts 'An error occurred while trying to open the file.'
49
49
  exit
50
50
  end
51
+ elsif options.empty?
52
+ puts 'You did not enter a valid option. Try --help.'
53
+ exit
51
54
  end
52
55
 
53
56
  print 'Number of words for phrase (recommended minimum is 6 words) => '
@@ -77,6 +80,4 @@ elsif options[:batch]
77
80
  puts 'Unable to save passphrases to output file.'
78
81
  exit
79
82
  end
80
- else
81
- puts 'You did not enter a valid option. Try --help.'
82
83
  end
@@ -1,16 +1,14 @@
1
1
  ##
2
2
  # OutputFile Module
3
3
  #
4
- # This module provides the methods that enable saving generated passwords
5
- # securely to a file.
6
- #
7
- # The encryption algorithm used is Blowfish, developed by Bruce Schneier.
8
- #
9
4
  # Copyright 2015 Richard Davis GPL v3
10
5
  require 'crypt/blowfish'
11
6
 
12
7
  ##
13
- # Provides the output file module for use as a mixin.
8
+ # This module provides the methods that enable saving generated passwords
9
+ # securely to a file.
10
+ #
11
+ # The encryption algorithm used is Blowfish, developed by Bruce Schneier.
14
12
  #
15
13
  module OutputFile
16
14
  ##
@@ -1,16 +1,14 @@
1
1
  ##
2
2
  # PassGen Module
3
3
  #
4
- # This module provides the methods that compose the password generator.
5
- #
6
- # The algorithm used to generate passwords is the Diceware method, developed
7
- # by Arnold Reinhold.
8
- #
9
4
  # Copyright 2015 Richard Davis GPL v3
10
5
  require 'securerandom'
11
6
 
12
7
  ##
13
- # Provides the password generation module for use as a mixin.
8
+ # This module provides the methods that compose the password generator.
9
+ #
10
+ # The algorithm used to generate passwords is the Diceware method, developed
11
+ # by Arnold Reinhold.
14
12
  #
15
13
  module PassGen
16
14
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Davis
@@ -14,20 +14,20 @@ dependencies:
14
14
  name: crypt
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.2'
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.2.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.2'
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.2.1
33
33
  description: |2
@@ -57,12 +57,12 @@ require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - '>='
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []