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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b09c23bc0b0cec49e88cdc272d546f63f9db4c38
4
- data.tar.gz: be802ba26499fedec234d71f23ffe9032352d630
3
+ metadata.gz: 7a29b9d8f4aeab931118cc7697b023f70fdab58c
4
+ data.tar.gz: 9e2f62c51b82cdcffffad3cd0b83d7c36ea5724a
5
5
  SHA512:
6
- metadata.gz: 8207ec390e51fa0462f319503e12fd89f4fc0819ed212610a8dd6fdbb070b6ff7e60a89d9a401c2c440c76a9fa267b1307ff234e9dd7058a0368dd3a6b89371d
7
- data.tar.gz: b7da72aa807e72220ea52fe9167d13697dd0342e551f54b06a48d424bc2e6eb621b20d049993fe90df6f43d68a21c372ab61533a25219e7fad6a32231db3e948
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 = {:oneline => false, :alpha => true, :numeric => true, :random => true})
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.fetch(:alpha)
80
- chars = chars | numeric_chars if options.fetch(:numeric)
81
- chars = chars | random_chars if options.fetch(:random)
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
@@ -1,3 +1,3 @@
1
1
  module Matrext
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick