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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff3fc4f874b2494d17acd4781ead4b775d83f5498258e77ccea97bfeae90ab00
4
- data.tar.gz: 015f7ae1c0567a0c403e31447c6f2f4ce63342128a9e9da6b41da95c3930ef22
3
+ metadata.gz: 94850d04cc8972554e1b6c4dd116d8d5384db0c3e9fe30c497e29d2754eb2f41
4
+ data.tar.gz: 911e0aceac7fc0e8541a91bfddad7c9b79eca9366a52284c009164483977573a
5
5
  SHA512:
6
- metadata.gz: 9a6e5995afa0b9eb6ffa5b0973587f925b2989a1beed08d7a2bd1681266288c18a06d146964f829fd5f9b6acdacb6768c2e47adacb5d15f1bbccb98c607d0d60
7
- data.tar.gz: 8320a134f57d210ee2e47e87571dfa3937e903d9c8dd2c0225e017a2d89cbdd695bc07cf3c5440b5eadbc148c09a868bdb73a146f14322d08a0069306fd1ab49
6
+ metadata.gz: f6754943013ca5a6b8b0e02688169bffe6d342fb39a9fffce3b367975e62e2e7940d87c0d9e8f429c9605ca10ba6bff724f9fe4810ff5c8ba24696a3b0728ec1
7
+ data.tar.gz: 0da5e37177cf219176488fa49f7c1e07db7be43345b50737692ac92f9e4fc6b16629e23f947c3d63e564aa8a3ad6412abdb4eb1636236974a2b3db5e97969f40
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ gem "ffi", :platforms => [:mswin, :mingw] # Required by Clipboard on Windows
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 it as `.txt` file.
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 system('bin/randpass --version')
23
- puts 'was found on the system'
24
- return
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Randpass
4
4
  # gem version
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.3'
6
6
  end
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.2'
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.0
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-22 00:00:00.000000000 Z
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.0
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.2'
111
+ version: '3.3'
111
112
  required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  requirements:
113
114
  - - ">="