mkpassword 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae27d5e22631a72a4ead9357f420418dfdd9e173e52f6ff04086586eb044fe56
4
- data.tar.gz: 5009835f386f53598863b4f522d6f771a8a0686176c1bf5abccede7a53fb99e9
3
+ metadata.gz: f6111b81e0f12431b98b1156ddf826c4ca2e069299da95c12954b14a1e56ec95
4
+ data.tar.gz: 627cca5fecd0b0e5bbb669f9bbb4d9860851893774d379b22d06590860ac11a8
5
5
  SHA512:
6
- metadata.gz: 48d5f8433fd03224e935e27e711b3de6cbf7342b042681481176b28536a7566bb024f632da429f898575cc3d2809c4e1f61729cb54447a5ed1b88555c92636e2
7
- data.tar.gz: 34fae129daa1403fe62466b8a5523af088b6fbcdb50a785223ea5d836052b2f0bd981fbd6d509563ab219e8b448dcbe08c4df0a5e67d6cb775213e1cd4141575
6
+ metadata.gz: 7399b7b7ab4404102a83050c3453af918333e4575890f6faad5980649cf2bad2ff55ed43e56457602bed1e83e2ba4f04b2b9fbe974f1c2b38242115275e3cb42
7
+ data.tar.gz: f90985bbc56557793169b3bf8f693be090ed95735c6afcee232a47ae344e4f8a1fed7e376d3548dca7abcbf02540b723b3eac797ec3e1d1106f13c75a8cc5d50
data/README.md CHANGED
@@ -34,6 +34,22 @@ UsJgZSR1^K0W;kM
34
34
 
35
35
  ```
36
36
 
37
+ ## Usage with docker
38
+
39
+ ```
40
+ $ docker run ruby:2.6.5 /bin/bash -c "gem install mkpassword >/dev/null ; mkpassword -s 2 -l 15 -c 10"
41
+ 0Ojuik'5p&pjnaS
42
+ yN9nHg_#PE571FG
43
+ 60Idwa53\3EtXS'
44
+ -2&JiiZ43uDh5Js
45
+ ?h88$wu8w2y86YE
46
+ gF@1wSHInnAeZ&p
47
+ 9R%MjV6xF3ivil_
48
+ 95x9rvhNze"1nY/
49
+ NAwEOoE*FQg$R7d
50
+ bHUHUzcnTc2{L^o
51
+ ```
52
+
37
53
  ## Contributing
38
54
 
39
55
  Bug reports and pull requests are welcome on GitHub at https://github.com/s3fxn/mkpassword.
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'mkpassword'
3
4
  require 'optparse'
4
5
  require 'securerandom'
5
6
 
7
+ Version = Mkpassword::VERSION
6
8
  params = ARGV.getopts("l:s:c:","help")
7
9
 
8
10
  if params['help']
@@ -11,6 +13,7 @@ Usage: #{$0} [options]
11
13
  -l length (default:12)
12
14
  -s number of special characters (default:0)
13
15
  -c count (default:1)
16
+ -v show version
14
17
 
15
18
  "
16
19
  exit
@@ -1,3 +1,3 @@
1
1
  module Mkpassword
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkpassword
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - s3fxn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-06 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler