moat 0.0.4 → 0.0.5

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
@@ -21,3 +21,9 @@
21
21
  * 1 major enhancement:
22
22
 
23
23
  * Adding grep command-line argument
24
+
25
+ === 0.0.5 / 2010-04-02
26
+
27
+ * 1 major enhancement:
28
+
29
+ * Bugfix for generate (-G) command-line argument
data/lib/moat.rb CHANGED
@@ -29,11 +29,11 @@ module Moat
29
29
  end
30
30
  end
31
31
 
32
- def generate
32
+ def generate(length = 9)
33
33
  letters = ('a'..'z').to_a
34
34
  numbers = ('0'..'9').to_a
35
35
  alphanumeric_array = letters + numbers
36
- alphanumeric_array.shuffle[0..9].join
36
+ alphanumeric_array.shuffle[0..length].join
37
37
  end
38
38
 
39
39
  end
data/moat-0.0.4.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.4"
5
+ s.version = "0.0.5"
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
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
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.3.gem
34
+ - moat-0.0.4.gem
35
35
  - moat.gemspec
36
36
  - Rakefile
37
37
  - README.txt
data/moat-0.0.3.gem DELETED
Binary file