matrext 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b140527c163a70fb6788a697c621c1ab9743f51
4
- data.tar.gz: 4a785c70818a7475ff215e3338cbf4ed837646a4
3
+ metadata.gz: 11f0007288eee30bce2eba583cc439d4577b8dc8
4
+ data.tar.gz: f71bd8ad4bfb395196bfe9d7895383b26aa2e9ce
5
5
  SHA512:
6
- metadata.gz: 175c8c31b98da4b2a6b63c5c201210adb2bfc28f70b455be9da3a385b79ce9d0fb8084b36042911f4c19fe3965c10aca13a91043a79ec3190e68f092033db751
7
- data.tar.gz: db11252c750b6e47b0a37098065d0e44d61912ce9fe8440c283e9881983273ece755f43a13a8cea243b64f2127bb16f01bc41557034feb80644393e5280ee793
6
+ metadata.gz: 0fd608bad5906bab64540b7bd8f6cf42854e5cb02e650c4fec0817b6e548910364f1cd306b4660768c1dde81c36d9d1a54c09f2ae225e6e61156c5c73d8f9630
7
+ data.tar.gz: e37f1279cc8a35df95f63994999b09a2067686ce5ab0982aa79c004e23f831e82d897807df87652e7d6af2f99aeeda1de8b77a9cea0095962f62e6dab768a5c2
data/lib/matrext/core.rb CHANGED
@@ -84,6 +84,10 @@ module Matrext
84
84
  end
85
85
 
86
86
  def self.get_random_letter(chars)
87
+ if chars.length <= 0
88
+ chars = ['X']
89
+ end
90
+
87
91
  chars[rand(0..chars.length-1)]
88
92
  end
89
93
  end
@@ -1,3 +1,3 @@
1
1
  module Matrext
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
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.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick