trocla 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -7
- data/CHANGELOG.md +83 -0
- data/Gemfile +7 -16
- data/README.md +63 -50
- data/bin/trocla +35 -14
- data/ext/redhat/rubygem-trocla.spec +120 -0
- data/lib/VERSION +1 -1
- data/lib/trocla.rb +49 -10
- data/lib/trocla/default_config.yaml +10 -0
- data/lib/trocla/formats.rb +14 -0
- data/lib/trocla/formats/bcrypt.rb +2 -1
- data/lib/trocla/formats/sshkey.rb +46 -0
- data/lib/trocla/formats/x509.rb +37 -10
- data/lib/trocla/store.rb +16 -0
- data/lib/trocla/stores/memory.rb +9 -0
- data/lib/trocla/stores/moneta.rb +30 -0
- data/lib/trocla/stores/vault.rb +50 -0
- data/lib/trocla/util.rb +4 -0
- data/spec/spec_helper.rb +19 -1
- data/spec/trocla/formats/sshkey_spec.rb +52 -0
- data/spec/trocla/formats/x509_spec.rb +107 -20
- data/spec/trocla/util_spec.rb +8 -0
- data/spec/trocla_spec.rb +227 -100
- data/trocla.gemspec +39 -38
- metadata +44 -12
data/trocla.gemspec
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: trocla 0.
|
5
|
+
# stub: trocla 0.4.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "trocla"
|
9
|
-
s.version = "0.
|
8
|
+
s.name = "trocla".freeze
|
9
|
+
s.version = "0.4.0"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["mh"]
|
14
|
-
s.date = "
|
15
|
-
s.description = "Trocla helps you to generate random passwords and to store them in various formats (plain, MD5, bcrypt) for later retrival."
|
16
|
-
s.email = "mh+trocla@immerda.ch"
|
17
|
-
s.executables = ["trocla"]
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["mh".freeze]
|
14
|
+
s.date = "2021-05-11"
|
15
|
+
s.description = "Trocla helps you to generate random passwords and to store them in various formats (plain, MD5, bcrypt) for later retrival.".freeze
|
16
|
+
s.email = "mh+trocla@immerda.ch".freeze
|
17
|
+
s.executables = ["trocla".freeze]
|
18
18
|
s.extra_rdoc_files = [
|
19
19
|
"LICENSE.txt",
|
20
20
|
"README.md"
|
@@ -23,11 +23,13 @@ Gem::Specification.new do |s|
|
|
23
23
|
".document",
|
24
24
|
".rspec",
|
25
25
|
".travis.yml",
|
26
|
+
"CHANGELOG.md",
|
26
27
|
"Gemfile",
|
27
28
|
"LICENSE.txt",
|
28
29
|
"README.md",
|
29
30
|
"Rakefile",
|
30
31
|
"bin/trocla",
|
32
|
+
"ext/redhat/rubygem-trocla.spec",
|
31
33
|
"lib/VERSION",
|
32
34
|
"lib/trocla.rb",
|
33
35
|
"lib/trocla/default_config.yaml",
|
@@ -44,17 +46,20 @@ Gem::Specification.new do |s|
|
|
44
46
|
"lib/trocla/formats/sha256crypt.rb",
|
45
47
|
"lib/trocla/formats/sha512crypt.rb",
|
46
48
|
"lib/trocla/formats/ssha.rb",
|
49
|
+
"lib/trocla/formats/sshkey.rb",
|
47
50
|
"lib/trocla/formats/x509.rb",
|
48
51
|
"lib/trocla/store.rb",
|
49
52
|
"lib/trocla/stores.rb",
|
50
53
|
"lib/trocla/stores/memory.rb",
|
51
54
|
"lib/trocla/stores/moneta.rb",
|
55
|
+
"lib/trocla/stores/vault.rb",
|
52
56
|
"lib/trocla/util.rb",
|
53
57
|
"lib/trocla/version.rb",
|
54
58
|
"spec/data/.keep",
|
55
59
|
"spec/spec_helper.rb",
|
56
60
|
"spec/trocla/encryptions/none_spec.rb",
|
57
61
|
"spec/trocla/encryptions/ssl_spec.rb",
|
62
|
+
"spec/trocla/formats/sshkey_spec.rb",
|
58
63
|
"spec/trocla/formats/x509_spec.rb",
|
59
64
|
"spec/trocla/store/memory_spec.rb",
|
60
65
|
"spec/trocla/store/moneta_spec.rb",
|
@@ -62,39 +67,35 @@ Gem::Specification.new do |s|
|
|
62
67
|
"spec/trocla_spec.rb",
|
63
68
|
"trocla.gemspec"
|
64
69
|
]
|
65
|
-
s.homepage = "https://tech.immerda.ch/2011/12/trocla-get-hashed-passwords-out-of-puppet-manifests/"
|
66
|
-
s.licenses = ["GPLv3"]
|
67
|
-
s.rubygems_version = "
|
68
|
-
s.summary = "Trocla a simple password generator and storage"
|
70
|
+
s.homepage = "https://tech.immerda.ch/2011/12/trocla-get-hashed-passwords-out-of-puppet-manifests/".freeze
|
71
|
+
s.licenses = ["GPLv3".freeze]
|
72
|
+
s.rubygems_version = "3.1.2".freeze
|
73
|
+
s.summary = "Trocla a simple password generator and storage".freeze
|
69
74
|
|
70
75
|
if s.respond_to? :specification_version then
|
71
76
|
s.specification_version = 4
|
77
|
+
end
|
72
78
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
s.add_dependency(%q<highline>, [">= 0"])
|
84
|
-
s.add_dependency(%q<bcrypt>, [">= 0"])
|
85
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
86
|
-
s.add_dependency(%q<rdoc>, [">= 0"])
|
87
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
88
|
-
s.add_dependency(%q<rspec-pending_for>, [">= 0"])
|
89
|
-
end
|
79
|
+
if s.respond_to? :add_runtime_dependency then
|
80
|
+
s.add_runtime_dependency(%q<moneta>.freeze, ["~> 1.4.0"])
|
81
|
+
s.add_runtime_dependency(%q<highline>.freeze, ["~> 2.0.0"])
|
82
|
+
s.add_runtime_dependency(%q<bcrypt>.freeze, [">= 0"])
|
83
|
+
s.add_runtime_dependency(%q<sshkey>.freeze, [">= 0"])
|
84
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
85
|
+
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
|
86
|
+
s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
|
87
|
+
s.add_development_dependency(%q<addressable>.freeze, [">= 0"])
|
88
|
+
s.add_development_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
|
90
89
|
else
|
91
|
-
s.add_dependency(%q<moneta
|
92
|
-
s.add_dependency(%q<highline
|
93
|
-
s.add_dependency(%q<bcrypt
|
94
|
-
s.add_dependency(%q<
|
95
|
-
s.add_dependency(%q<
|
96
|
-
s.add_dependency(%q<
|
97
|
-
s.add_dependency(%q<
|
90
|
+
s.add_dependency(%q<moneta>.freeze, ["~> 1.4.0"])
|
91
|
+
s.add_dependency(%q<highline>.freeze, ["~> 2.0.0"])
|
92
|
+
s.add_dependency(%q<bcrypt>.freeze, [">= 0"])
|
93
|
+
s.add_dependency(%q<sshkey>.freeze, [">= 0"])
|
94
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
95
|
+
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
96
|
+
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
97
|
+
s.add_dependency(%q<addressable>.freeze, [">= 0"])
|
98
|
+
s.add_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
|
98
99
|
end
|
99
100
|
end
|
100
101
|
|
metadata
CHANGED
@@ -1,31 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trocla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mh
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: moneta
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: highline
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bcrypt
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - ">="
|
@@ -39,7 +53,7 @@ dependencies:
|
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: sshkey
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - ">="
|
@@ -94,6 +108,20 @@ dependencies:
|
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: addressable
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: rspec-pending_for
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,11 +149,13 @@ files:
|
|
121
149
|
- ".document"
|
122
150
|
- ".rspec"
|
123
151
|
- ".travis.yml"
|
152
|
+
- CHANGELOG.md
|
124
153
|
- Gemfile
|
125
154
|
- LICENSE.txt
|
126
155
|
- README.md
|
127
156
|
- Rakefile
|
128
157
|
- bin/trocla
|
158
|
+
- ext/redhat/rubygem-trocla.spec
|
129
159
|
- lib/VERSION
|
130
160
|
- lib/trocla.rb
|
131
161
|
- lib/trocla/default_config.yaml
|
@@ -142,17 +172,20 @@ files:
|
|
142
172
|
- lib/trocla/formats/sha256crypt.rb
|
143
173
|
- lib/trocla/formats/sha512crypt.rb
|
144
174
|
- lib/trocla/formats/ssha.rb
|
175
|
+
- lib/trocla/formats/sshkey.rb
|
145
176
|
- lib/trocla/formats/x509.rb
|
146
177
|
- lib/trocla/store.rb
|
147
178
|
- lib/trocla/stores.rb
|
148
179
|
- lib/trocla/stores/memory.rb
|
149
180
|
- lib/trocla/stores/moneta.rb
|
181
|
+
- lib/trocla/stores/vault.rb
|
150
182
|
- lib/trocla/util.rb
|
151
183
|
- lib/trocla/version.rb
|
152
184
|
- spec/data/.keep
|
153
185
|
- spec/spec_helper.rb
|
154
186
|
- spec/trocla/encryptions/none_spec.rb
|
155
187
|
- spec/trocla/encryptions/ssl_spec.rb
|
188
|
+
- spec/trocla/formats/sshkey_spec.rb
|
156
189
|
- spec/trocla/formats/x509_spec.rb
|
157
190
|
- spec/trocla/store/memory_spec.rb
|
158
191
|
- spec/trocla/store/moneta_spec.rb
|
@@ -163,7 +196,7 @@ homepage: https://tech.immerda.ch/2011/12/trocla-get-hashed-passwords-out-of-pup
|
|
163
196
|
licenses:
|
164
197
|
- GPLv3
|
165
198
|
metadata: {}
|
166
|
-
post_install_message:
|
199
|
+
post_install_message:
|
167
200
|
rdoc_options: []
|
168
201
|
require_paths:
|
169
202
|
- lib
|
@@ -178,9 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
211
|
- !ruby/object:Gem::Version
|
179
212
|
version: '0'
|
180
213
|
requirements: []
|
181
|
-
|
182
|
-
|
183
|
-
signing_key:
|
214
|
+
rubygems_version: 3.1.2
|
215
|
+
signing_key:
|
184
216
|
specification_version: 4
|
185
217
|
summary: Trocla a simple password generator and storage
|
186
218
|
test_files: []
|