matrext 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/matrext/core.rb +4 -4
- data/lib/matrext/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a29b9d8f4aeab931118cc7697b023f70fdab58c
|
4
|
+
data.tar.gz: 9e2f62c51b82cdcffffad3cd0b83d7c36ea5724a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ac91e5c0736a3d4afbc7784dda5443025f731459c0a7645f69238ed11965050c06ad98f2d5b853befa02bef8cea82f8a1c3dc28ac2adb5d527b32e3c84d887
|
7
|
+
data.tar.gz: 9c19aa0008c32d91dc95d73c17ac57fc605129cadb02b42b0b7c395456a6177954715638a8eb214ff766c7ee4fd53fe6c5fdd47a6366fd9d3bac4df9ee895650
|
data/lib/matrext/core.rb
CHANGED
@@ -9,7 +9,7 @@ module Matrext
|
|
9
9
|
|
10
10
|
attr_accessor :alpha_chars, :numeric_chars, :random_chars
|
11
11
|
|
12
|
-
def self.process(options
|
12
|
+
def self.process(options)
|
13
13
|
character_pool = self.create_character_pool(options)
|
14
14
|
|
15
15
|
letters = options[:phrase]
|
@@ -76,9 +76,9 @@ module Matrext
|
|
76
76
|
def self.create_character_pool(options)
|
77
77
|
chars = []
|
78
78
|
|
79
|
-
chars = chars | alpha_chars if options
|
80
|
-
chars = chars | numeric_chars if options.
|
81
|
-
chars = chars | random_chars if options.
|
79
|
+
chars = chars | alpha_chars if options[:alpha]
|
80
|
+
chars = chars | numeric_chars if options.[:numeric]
|
81
|
+
chars = chars | random_chars if options.[:random]
|
82
82
|
|
83
83
|
return chars
|
84
84
|
end
|
data/lib/matrext/version.rb
CHANGED