pwqgen.rb 0.0.2.pre → 0.0.2.pre.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  * Added unit tests.
4
4
  * Simplified invocation. You can now just call `Pwqgen.generate`.
5
+ * Fixed a bug where `pwqgen.rb` did not produce output.
5
6
 
6
7
  = 0.0.1 / 2012-06-28
7
8
 
@@ -14,13 +14,11 @@ Options:
14
14
 
15
15
  require 'docopt'
16
16
 
17
- if __FILE__ == $0
18
- options = Docopt(doc, Pwqgen::VERSION)
19
-
20
- if ARGV.length > 0 && ARGV[0].to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/) then
21
- p Pwqgen.generate(ARGV[0].to_i)
22
- else
23
- p Pwqgen.generate
24
- end
17
+ options = Docopt(doc, Pwqgen::VERSION)
18
+
19
+ if ARGV.length > 0 && ARGV[0].to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/) then
20
+ p Pwqgen.generate(ARGV[0].to_i)
21
+ else
22
+ p Pwqgen.generate
25
23
  end
26
24
 
@@ -1,3 +1,3 @@
1
1
  module Pwqgen
2
- VERSION = "0.0.2.pre"
2
+ VERSION = "0.0.2.pre.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwqgen.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre
4
+ version: 0.0.2.pre.1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: