randpass 0.3.0 → 0.3.3
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 +4 -4
- data/Gemfile +7 -0
- data/README.md +1 -1
- data/bin/setup_gem.rb +7 -5
- data/lib/randpass/version.rb +1 -1
- data/randpass.gemspec +2 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94850d04cc8972554e1b6c4dd116d8d5384db0c3e9fe30c497e29d2754eb2f41
|
4
|
+
data.tar.gz: 911e0aceac7fc0e8541a91bfddad7c9b79eca9366a52284c009164483977573a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6754943013ca5a6b8b0e02688169bffe6d342fb39a9fffce3b367975e62e2e7940d87c0d9e8f429c9605ca10ba6bff724f9fe4810ff5c8ba24696a3b0728ec1
|
7
|
+
data.tar.gz: 0da5e37177cf219176488fa49f7c1e07db7be43345b50737692ac92f9e4fc6b16629e23f947c3d63e564aa8a3ad6412abdb4eb1636236974a2b3db5e97969f40
|
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Randpass v0.3.0
|
2
2
|
|
3
3
|
Ruby random password generator.
|
4
|
-
Generate password and copy in clipboard, or generate list and/or save
|
4
|
+
Generate password and copy in clipboard, or generate list and/or save as `.txt` file.
|
5
5
|
File is saved as plain text, it is up to end-user to decide how to secure it.
|
6
6
|
|
7
7
|
Password is generated with `SecureRandom#base64` and a few (random) special characters `! # * $ % _ @`
|
data/bin/setup_gem.rb
CHANGED
@@ -19,12 +19,14 @@ module UserOS
|
|
19
19
|
|
20
20
|
# Call setup script based on user OS, if randpass is not installed
|
21
21
|
def gem_init
|
22
|
-
if
|
23
|
-
|
24
|
-
|
22
|
+
if windows?
|
23
|
+
dir = File.expand_path(__FILE__).gsub('\bin\setup_gem.rb', '')
|
24
|
+
system("bundle install")
|
25
|
+
else
|
26
|
+
dir = File.expand_path(__FILE__).gsub('/bin/setup_gem.rb', '')
|
27
|
+
Dir.chdir(dir)
|
28
|
+
mac? ? system("bundle install") : system("bin/setup")
|
25
29
|
end
|
26
|
-
Dir.chdir GEM_ROOT
|
27
|
-
linux? ? system('bin/setup') : system('bundle install')
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
data/lib/randpass/version.rb
CHANGED
data/randpass.gemspec
CHANGED
@@ -35,9 +35,10 @@ Gem::Specification.new do |s|
|
|
35
35
|
bin/setup
|
36
36
|
LICENSE
|
37
37
|
README.md
|
38
|
+
Gemfile
|
38
39
|
randpass.gemspec]
|
39
40
|
|
40
|
-
s.required_ruby_version = '>= 2.6', '< 3.
|
41
|
+
s.required_ruby_version = '>= 2.6', '< 3.3'
|
41
42
|
|
42
43
|
s.add_runtime_dependency 'clipboard', '~> 1.3'
|
43
44
|
s.add_runtime_dependency 'optimist', '~> 3.0.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: randpass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alx3dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clipboard
|
@@ -75,6 +75,7 @@ executables:
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- Gemfile
|
78
79
|
- LICENSE
|
79
80
|
- README.md
|
80
81
|
- bin/output.rb
|
@@ -94,7 +95,7 @@ metadata:
|
|
94
95
|
source_code_uri: https://github.com/alx3dev/randpass
|
95
96
|
bug_tracker_uri: https://github.com/alx3dev/randpass/issues
|
96
97
|
changelog_uri: https://github.com/alx3dev/randpass/changelog.md
|
97
|
-
documentation_uri: https://rubydoc.info/gems/randpass/0.3.
|
98
|
+
documentation_uri: https://rubydoc.info/gems/randpass/0.3.3
|
98
99
|
rubygems_mfa_required: 'true'
|
99
100
|
post_install_message:
|
100
101
|
rdoc_options: []
|
@@ -107,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
108
|
version: '2.6'
|
108
109
|
- - "<"
|
109
110
|
- !ruby/object:Gem::Version
|
110
|
-
version: '3.
|
111
|
+
version: '3.3'
|
111
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
113
|
requirements:
|
113
114
|
- - ">="
|