charmkit 0.4.9 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/charmkit/helpers/crypt.rb +13 -0
- data/lib/charmkit/version.rb +2 -2
- data/lib/charmkit.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10d0c25d8128a82b90918def008d8e908f528a09
|
4
|
+
data.tar.gz: 146b5a09c853bddb9820ebeae3bd4c8d7cc1dcde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d295bc469620b0b36afae912684e2b0b782c6c93bb6b5c5dcb5598c4c4343fa1bac01d148cc2ff9c85c100ca4a65992d97910d51860a1f15f4d37e5ce377785e
|
7
|
+
data.tar.gz: 94a75b3018d33c28df6f78253831f32c94f8f5a652d41fe86a6e5e10ade542d26e2ed42d549d2701f30181c8c23a4bfe75c14fe49ce22f6be9db3bd73e52e4e4
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Charmkit
|
2
|
+
module Helpers
|
3
|
+
module Crypt
|
4
|
+
# Generate a password salt
|
5
|
+
#
|
6
|
+
# @param [Integer] min mininum number of characters
|
7
|
+
# @param [Integer] max maximum number of characters
|
8
|
+
def gen_salt(min=0, max=20)
|
9
|
+
(min...max).map { ('a'..'z').to_a[rand(26)] }.join
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/charmkit/version.rb
CHANGED
data/lib/charmkit.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charmkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Stokes
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- examples/render_inline.rb
|
162
162
|
- lib/charmkit.rb
|
163
163
|
- lib/charmkit/extend/string_tools.rb
|
164
|
+
- lib/charmkit/helpers/crypt.rb
|
164
165
|
- lib/charmkit/helpers/fs.rb
|
165
166
|
- lib/charmkit/helpers/hookenv.rb
|
166
167
|
- lib/charmkit/helpers/runner.rb
|