pass-station 1.4.0 → 3.0.0

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.
@@ -15,7 +15,7 @@ module PassStation
15
15
  },
16
16
  DEFAULT_CREDENTIALS_CHEAT_SHEET: {
17
17
  URL: 'https://raw.githubusercontent.com/ihebski/DefaultCreds-cheat-sheet/main/DefaultCreds-Cheat-Sheet.csv',
18
- HASH: 'f03f3ed77a8a932b1b2891fbec705d42b1eec4911fb76ccf36cde9e79a385556',
18
+ HASH: 'ebb75cee7ac72535aadbad2c8c068603c8c98193a863807e1b42397a27c9ba94',
19
19
  FILENAME: 'DefaultCreds-Cheat-Sheet.csv',
20
20
  COLUMNS: {
21
21
  productvendor: 'Product/Vendor',
@@ -25,7 +25,7 @@ module PassStation
25
25
  },
26
26
  MANY_PASSWORDS: {
27
27
  URL: 'https://raw.githubusercontent.com/many-passwords/many-passwords/main/passwords.csv',
28
- HASH: '293ce4411446c702aeda977b9a446ff42d045d980be0b5287a848b5bd7d39402',
28
+ HASH: '5eb85093f03dcc6a377fe7263e0629574088892dc283d5f53f93d1db80c7287a',
29
29
  FILENAME: 'many-passwords.csv',
30
30
  COLUMNS: {
31
31
  vendor: 'Vendor',
@@ -61,7 +61,7 @@ module PassStation
61
61
  # @return [Boolean] `true` if there is, `false` else.
62
62
  def check_for_update
63
63
  ret_vals = []
64
- UPSTREAM_DATABASE[:MAPPING].each do |_k, v|
64
+ UPSTREAM_DATABASE[:MAPPING].each_value do |v|
65
65
  file = download_file(UPSTREAM_DATABASE[v][:URL], Dir.mktmpdir)
66
66
  # Same hash = no update
67
67
  ret_vals << !check_hash(file, UPSTREAM_DATABASE[v][:HASH])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Version
4
- VERSION = '1.4.0'
3
+ module PassStation
4
+ VERSION = '3.0.0'
5
5
  end
data/lib/pass_station.rb CHANGED
@@ -10,9 +10,6 @@ require 'pass_station/version'
10
10
 
11
11
  # Pass Station module
12
12
  module PassStation
13
- # Constants
14
- include Version
15
-
16
13
  # Password database handling
17
14
  class DB
18
15
  # Get / set storage location, where will be stored the password database.
@@ -47,7 +44,7 @@ module PassStation
47
44
  # @return [String] absolute filename of the DB
48
45
  def absolute_db_path
49
46
  pn = Pathname.new(__FILE__)
50
- install_dir = pn.dirname.parent.to_s + Pathname::SEPARATOR_LIST
47
+ install_dir = pn.dirname.parent.to_s + File::SEPARATOR
51
48
  install_dir + @storage_location + @database_name
52
49
  end
53
50
 
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pass-station
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre ZANNI
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-09-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: csv
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3.3'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '3.3'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: docopt
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +43,14 @@ dependencies:
30
43
  requirements:
31
44
  - - "~>"
32
45
  - !ruby/object:Gem::Version
33
- version: '2.2'
46
+ version: '2.3'
34
47
  type: :runtime
35
48
  prerelease: false
36
49
  version_requirements: !ruby/object:Gem::Requirement
37
50
  requirements:
38
51
  - - "~>"
39
52
  - !ruby/object:Gem::Version
40
- version: '2.2'
53
+ version: '2.3'
41
54
  description: CLI & library to search for default credentials among thousands of Products
42
55
  / Vendors
43
56
  email: alexandre.zanni@engineer.com
@@ -68,8 +81,8 @@ metadata:
68
81
  documentation_uri: https://noraj.github.io/pass-station/yard/
69
82
  homepage_uri: https://noraj.github.io/pass-station/
70
83
  source_code_uri: https://github.com/noraj/pass-station/
84
+ funding_uri: https://github.com/sponsors/noraj
71
85
  rubygems_mfa_required: 'true'
72
- post_install_message:
73
86
  rdoc_options: []
74
87
  require_paths:
75
88
  - lib
@@ -77,18 +90,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
90
  requirements:
78
91
  - - ">="
79
92
  - !ruby/object:Gem::Version
80
- version: 2.6.0
93
+ version: 3.2.0
81
94
  - - "<"
82
95
  - !ruby/object:Gem::Version
83
- version: '3.2'
96
+ version: '5.0'
84
97
  required_rubygems_version: !ruby/object:Gem::Requirement
85
98
  requirements:
86
99
  - - ">="
87
100
  - !ruby/object:Gem::Version
88
101
  version: '0'
89
102
  requirements: []
90
- rubygems_version: 3.3.3
91
- signing_key:
103
+ rubygems_version: 4.0.3
92
104
  specification_version: 4
93
105
  summary: CLI & library to search for default credentials among thousands of Products
94
106
  / Vendors