secret_string 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +6 -6
- data/lib/secret_string/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adc3ac2c2e93e1c310c878c4194525a165c390dccd2d6708186f54bb1147be9a
|
4
|
+
data.tar.gz: d7be0b22cd44ec755337957965a140bb155c811f6223cf5264217ab591e17976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b4daa15f269466054ac21521c1d5cf4f7912bcdf7d811807046a2c3f69cbca3f398381a0a9d0d205bb8778a2f59cab0ca7bbb518ece5dca243c6d358d298c90
|
7
|
+
data.tar.gz: d922cfba5e22b7098f7ca19501f364a8d912ef17da44d409152d79e7ad0d901a19031bdabd4fc1a2472703f5e4696510b10a4cc47863360eff1fa16547f94ace
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v1.0.1](https://github.com/Muriel-Salvan/secret_string/compare/v1.0.0...v1.0.1) (2021-06-30 10:46:43)
|
2
|
+
|
3
|
+
### Patches
|
4
|
+
|
5
|
+
* [Corrected typos in doc](https://github.com/Muriel-Salvan/secret_string/commit/46f5bb2e02ec9589818aaddf5a675820a6706b56)
|
6
|
+
|
1
7
|
# [v0.0.1](https://github.com/Muriel-Salvan/secret_string/compare/...v0.0.1) (2021-06-28 16:06:53)
|
2
8
|
|
3
9
|
### Patches
|
data/README.md
CHANGED
@@ -8,15 +8,15 @@ This Rubygem gives you ways to clean sensitive data (secrets, SSH keys, password
|
|
8
8
|
|
9
9
|
## Install
|
10
10
|
|
11
|
-
Via gem
|
11
|
+
Via gem command line:
|
12
12
|
|
13
|
-
```
|
14
|
-
|
13
|
+
```bash
|
14
|
+
gem install secret_string
|
15
15
|
```
|
16
16
|
|
17
17
|
If using `bundler`, add this in your `Gemfile`:
|
18
18
|
|
19
|
-
```
|
19
|
+
```ruby
|
20
20
|
gem 'secret_string'
|
21
21
|
```
|
22
22
|
|
@@ -63,7 +63,7 @@ end
|
|
63
63
|
|
64
64
|
### With the `SecretString` class
|
65
65
|
|
66
|
-
If you need more control (like having a simple scope is not enough), you can directly use the `
|
66
|
+
If you need more control (like having a simple scope is not enough), you can directly use the `SecretString` class to protect your strings.
|
67
67
|
If you do so, don't forget to call the `erase` method to clean their data, and make sure you didn't clone the secret in other variables.
|
68
68
|
|
69
69
|
Example:
|
@@ -102,7 +102,7 @@ puts "My secret after being erased is #{my_secret}"
|
|
102
102
|
# => My secret after being erased is
|
103
103
|
```
|
104
104
|
|
105
|
-
The `erase` and `to_unprotected` methods have also been added to the core String class so that you can treat both `String` and `SecretString` easily within your code logic (no need to plague your code with `if str.is_a?(
|
105
|
+
The `erase` and `to_unprotected` methods have also been added to the core String class so that you can treat both `String` and `SecretString` easily within your code logic (no need to plague your code with `if str.is_a?(SecretString)`). Those methods won't do or change anything to the normal Ruby Strings.
|
106
106
|
|
107
107
|
Example:
|
108
108
|
```ruby
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secret_string
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Muriel Salvan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -72,9 +72,9 @@ email:
|
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files:
|
75
|
-
- CHANGELOG.md
|
76
|
-
- LICENSE.md
|
77
75
|
- README.md
|
76
|
+
- LICENSE.md
|
77
|
+
- CHANGELOG.md
|
78
78
|
files:
|
79
79
|
- CHANGELOG.md
|
80
80
|
- LICENSE.md
|