oro 1.0.0.2 → 1.0.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: d0380ef86c093d775e831662d68f3704eefef9c8
4
- data.tar.gz: 6045e214724254cfc7909ade545dea77bda2e2d4
3
+ metadata.gz: 39ff41d2fd8d65b944b5aefd4ff70c56e6434a86
4
+ data.tar.gz: a6b8c79dafe47f01c0f242156cf473cbfa6cce11
5
5
  SHA512:
6
- metadata.gz: 62361ea62f0e5664aec526025ac35bb20bf4e904958d2a923c1400bf27f55b04eeea7c3c426195c8dd182c92bf45a25afc26177c5a7f4c1ee652ce3d203cb281
7
- data.tar.gz: 7cf0c7bb8cd3377235b86d5912878bb3c0d2643fa149fcf05ff9306ca04e135fbcf4e312af47c29b18ec43c9bcc6cee98c0c384a5287cfb50e29f6d338e99458
6
+ metadata.gz: 039c12cf3e395eff26aa79198aabb847a76fb52c1ce444245b9288abca5a7f6c53217d73b30e308379d5900bebd08bbb889a3d52d18f9b87237a73206618cb1e
7
+ data.tar.gz: 1a088e5db638891756ed9327aeb5e33d5012e6ed2d65ecd69023d0ffab4778ca1c59fa87f2ff576dfcdefaf8ce00ba00ffcbdcd23f49255d131a7d2e818bb7c7
@@ -64,12 +64,14 @@ class Part
64
64
  end
65
65
 
66
66
  def self.get(size, config = {})
67
- single_character_list? ? get_for_single_character_part(size) : get_for_word_part(size, config)
67
+ single_character_list? ? get_for_single_character_part(size, config) : get_for_word_part(size, config)
68
68
  end
69
69
 
70
- def self.get_for_single_character_part(size)
70
+ def self.get_for_single_character_part(size, config)
71
71
  result = []
72
72
  size.times { result << get_one }
73
+ result.first.capitalize! if config[:capitalize]
74
+ result[rand(result.length)].upcase! if config[:capitalize_random]
73
75
  result.join
74
76
  end
75
77
 
@@ -0,0 +1,29 @@
1
+ # ('a'..'z').to_a
2
+
3
+ ---
4
+ - "a"
5
+ - "b"
6
+ - "c"
7
+ - "d"
8
+ - "e"
9
+ - "f"
10
+ - "g"
11
+ - "h"
12
+ - "i"
13
+ - "j"
14
+ - "k"
15
+ - "l"
16
+ - "m"
17
+ - "n"
18
+ - "o"
19
+ - "p"
20
+ - "q"
21
+ - "r"
22
+ - "s"
23
+ - "t"
24
+ - "u"
25
+ - "v"
26
+ - "w"
27
+ - "x"
28
+ - "y"
29
+ - "z"
@@ -2,8 +2,8 @@ require 'rake' # Provide FileList class
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'oro'
5
- s.version = '1.0.0.2'
6
- s.date = '2016-03-02'
5
+ s.version = '1.0.1'
6
+ s.date = '2016-03-25'
7
7
  s.summary = 'Oro for passwords...'
8
8
  s.description = 'A flexible, command-line utility which generates memorable passwords. The enemy knows the system -- Claude Shannon / Auguste Kerckhoffs'
9
9
  s.authors = ['Joel Wagener']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.2
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Wagener
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A flexible, command-line utility which generates memorable passwords.
14
14
  The enemy knows the system -- Claude Shannon / Auguste Kerckhoffs
@@ -27,6 +27,7 @@ files:
27
27
  - lib/oro/errors.rb
28
28
  - lib/oro/helpers.rb
29
29
  - lib/oro/parts.rb
30
+ - lib/oro/parts/alphabet.yml
30
31
  - lib/oro/parts/braille.yml
31
32
  - lib/oro/parts/emoticon.yml
32
33
  - lib/oro/parts/english.yml