moat 0.0.6 → 0.0.7

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.
data/History.txt CHANGED
@@ -34,3 +34,9 @@
34
34
 
35
35
  * Hacky fix to off-by-one bug when generating password with --length argument
36
36
 
37
+ === 0.0.7 / 2010-04-02
38
+
39
+ * 1 major enhancement:
40
+
41
+ * Adding capital letters for better 'security'
42
+
data/lib/moat.rb CHANGED
@@ -30,9 +30,10 @@ module Moat
30
30
  end
31
31
 
32
32
  def generate(length = 9)
33
- letters = ('a'..'z').to_a
33
+ lowercase_letters = ('a'..'z').to_a
34
+ uppercase_letters = ('A'..'Z').to_a
34
35
  numbers = ('0'..'9').to_a
35
- alphanumeric_array = letters + numbers
36
+ alphanumeric_array = lowercase_letters + uppercase_letters + numbers
36
37
  alphanumeric_array.shuffle[0..length].join
37
38
  end
38
39
 
data/moat-0.0.6.gem ADDED
Binary file
data/moat.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "moat"
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
  s.author = "Bryan Woods"
7
7
  s.email = "bryanwoods4e@gmail.com"
8
8
  s.platform = Gem::Platform::RUBY
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bryan Woods
@@ -31,7 +31,7 @@ files:
31
31
  - History.txt
32
32
  - lib/moat.rb
33
33
  - Manifest.txt
34
- - moat-0.0.5.gem
34
+ - moat-0.0.6.gem
35
35
  - moat.gemspec
36
36
  - Rakefile
37
37
  - README.txt
data/moat-0.0.5.gem DELETED
Binary file