trocla 0.5.0 → 0.5.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: 2d6d84b42cc62b4ab04eea0478d9e4801939c1d31accd0dba4a27e272f56dad2
4
- data.tar.gz: 6a322a8ae343b6723476b53e9ff7158adaa8d1537bbb46fbc81ef5ebd5a6cff2
3
+ metadata.gz: 0c97189ff5ad5fa72b1bd544184e6f6d7908f5a2c4bb2a7e26354e8752f0896d
4
+ data.tar.gz: 98dce1e963a7e1be22e74fe5664cd1e691af5ed7feed97e87f43f584991d433f
5
5
  SHA512:
6
- metadata.gz: 9bf44101c733c550f2ca6cd76e9a3788e8e2ac9f44576af255f6ea42271b0cb0cc6c004c6d66c9a4c49e5d74ab647e1cfc8f52bf1c0944176e5e529334effd11
7
- data.tar.gz: d8e988c515297525975ca3b2339cfe81ba21444cf45c42637131d3f949871ab6a993f30b62ac2992d8388a2874bf8d4d43fcc9714383ac55fb22ad176f340dbc
6
+ metadata.gz: b860303d450b55006d09ec67af5827b5d5f4421d00ec37a83258a6be04f0b5689af23edba371839650d196f95b2d2a9563fc836743888554fbafcc777a4f00a5
7
+ data.tar.gz: 3d3aec51b897e5236e0936f791bc100c00524fb16dd1524b23766ac8716b5ad93b439b86cf2a31ab7cf547b5b0834701fb76b3332c100aa83076f590a3276d6b
@@ -21,4 +21,4 @@ jobs:
21
21
  strategy:
22
22
  fail-fast: false
23
23
  matrix:
24
- ruby: [2.5, 2.7, 3.0, 3.1]
24
+ ruby: ['2.5','2.7', '3.0', '3.1','head','jruby','jruby-head']
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## to 0.5.1
4
+
5
+ * support more moneta versions (#78) - Thank you [jcharaoui](https://github.com/jcharaoui)
6
+ * Fix issue with passing down expires to vault (#79) - Thank you [Steffy Fort](https://github.com/fe80)
7
+ * Don't require openssl Gem and make sure we don't regress on JRuby
8
+
3
9
  ## to 0.5.0
4
10
 
5
11
  * moved from travis ci to github actions (#73) - Thank you [Georg-g](https://github.com/geor-g)
data/Gemfile CHANGED
@@ -4,20 +4,20 @@ source 'http://rubygems.org'
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
6
  gem 'highline', '~> 2.0.0'
7
- gem 'moneta', '~> 1.4.0'
7
+ gem 'moneta', '~> 1.0'
8
8
 
9
9
  if defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby')
10
10
  gem 'jruby-openssl'
11
11
  end
12
12
  gem 'bcrypt'
13
- gem 'openssl'
14
13
  gem 'sshkey'
15
14
 
16
15
  # Add dependencies to develop your gem here.
17
16
  # Include everything needed to run rake, tests, features, etc.
18
17
  group :development do
18
+ gem 'rake'
19
19
  gem 'addressable'
20
- gem 'jeweler'
20
+ gem 'jeweler', '~> 2.0'
21
21
  gem 'rdoc'
22
22
  gem 'rspec'
23
23
  gem 'rspec-pending_for'
data/README.md CHANGED
@@ -302,7 +302,7 @@ We expect storage backends to implement support for the `expires` option, so tha
302
302
 
303
303
  New backends should be tested using the provided shared example.
304
304
 
305
- > **WARNING**: Vault backend use metadatas. It's set if an option is define. `expire` is automaticly change to `delete_version_after`, and you can use an interger or [format string](https://www.vaultproject.io/api-docs/secret/kv/kv-v2#parameters)
305
+ > **WARNING**: Vault backend use metadatas. It's set if an option is define. `expires` is automaticly change to `delete_version_after`, and you can use an interger or [format string](https://www.vaultproject.io/api-docs/secret/kv/kv-v2#parameters)
306
306
 
307
307
  #### Moneta backends
308
308
 
data/lib/VERSION CHANGED
@@ -1,4 +1,4 @@
1
1
  major:0
2
2
  minor:5
3
- patch:0
3
+ patch:1
4
4
  build:
@@ -71,7 +71,7 @@ class Trocla::Stores::Vault < Trocla::Store
71
71
 
72
72
  def convert_metadata(metadatas)
73
73
  metadatas.transform_keys!(&:to_sym)
74
- metadatas[:delete_version_after] = metadatas.delete(:expire) if metadatas[:expire]
74
+ metadatas[:delete_version_after] = metadatas.delete(:expires) if metadatas[:expires]
75
75
  %i[random profiles expires length].each { |k| metadatas.delete(k) }
76
76
  metadatas
77
77
  end
data/spec/spec_helper.rb CHANGED
@@ -235,7 +235,7 @@ def default_config
235
235
  config_path = [
236
236
  File.expand_path(base_dir+'/lib/trocla/default_config.yaml'),
237
237
  File.expand_path(File.dirname($LOADED_FEATURES.grep(/trocla.rb/)[0])+'/trocla/default_config.yaml'),
238
- ].find { |p| File.exists?(p) }
238
+ ].find { |p| File.exist?(p) }
239
239
  YAML.load(File.read(config_path))
240
240
  end
241
241
  end
data/trocla.gemspec CHANGED
@@ -2,16 +2,16 @@
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.0 ruby lib
5
+ # stub: trocla 0.5.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "trocla".freeze
9
- s.version = "0.5.0"
9
+ s.version = "0.5.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["mh".freeze]
14
- s.date = "2023-01-01"
14
+ s.date = "2023-02-17"
15
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
16
  s.email = "mh+trocla@immerda.ch".freeze
17
17
  s.executables = ["trocla".freeze]
@@ -80,23 +80,23 @@ Gem::Specification.new do |s|
80
80
 
81
81
  if s.respond_to? :add_runtime_dependency then
82
82
  s.add_runtime_dependency(%q<highline>.freeze, ["~> 2.0.0"])
83
- s.add_runtime_dependency(%q<moneta>.freeze, ["~> 1.4.0"])
83
+ s.add_runtime_dependency(%q<moneta>.freeze, ["~> 1.0"])
84
84
  s.add_runtime_dependency(%q<bcrypt>.freeze, [">= 0"])
85
- s.add_runtime_dependency(%q<openssl>.freeze, [">= 0"])
86
85
  s.add_runtime_dependency(%q<sshkey>.freeze, [">= 0"])
86
+ s.add_development_dependency(%q<rake>.freeze, [">= 0"])
87
87
  s.add_development_dependency(%q<addressable>.freeze, [">= 0"])
88
- s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
88
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
89
89
  s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
90
90
  s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
91
91
  s.add_development_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
92
92
  else
93
93
  s.add_dependency(%q<highline>.freeze, ["~> 2.0.0"])
94
- s.add_dependency(%q<moneta>.freeze, ["~> 1.4.0"])
94
+ s.add_dependency(%q<moneta>.freeze, ["~> 1.0"])
95
95
  s.add_dependency(%q<bcrypt>.freeze, [">= 0"])
96
- s.add_dependency(%q<openssl>.freeze, [">= 0"])
97
96
  s.add_dependency(%q<sshkey>.freeze, [">= 0"])
97
+ s.add_dependency(%q<rake>.freeze, [">= 0"])
98
98
  s.add_dependency(%q<addressable>.freeze, [">= 0"])
99
- s.add_dependency(%q<jeweler>.freeze, [">= 0"])
99
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
100
100
  s.add_dependency(%q<rdoc>.freeze, [">= 0"])
101
101
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
102
102
  s.add_dependency(%q<rspec-pending_for>.freeze, [">= 0"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trocla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-01 00:00:00.000000000 Z
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.0
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bcrypt
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: openssl
56
+ name: sshkey
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,13 +67,13 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: sshkey
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
- type: :runtime
76
+ type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: jeweler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '2.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '2.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rdoc
113
113
  requirement: !ruby/object:Gem::Requirement