fibonacci_rng 1.2.1 → 1.2.2

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: 22cbdf19766e5f31416393eeabb3a5b60aa68fa9
4
- data.tar.gz: e6deeb3eaeaca2700613ed28b74dbcc83ce67c3e
3
+ metadata.gz: d021360d01262bc88f42bb0409b33e9c04c33144
4
+ data.tar.gz: a5eb5486ea555e67393ff9fd3fcfecb85828590f
5
5
  SHA512:
6
- metadata.gz: 641404c311f664c1b56c37415054d133ea6376afafaacd44ddb1456f33bfd81b6262ac366a96d92de2142e543dd53ca23f971200323e99d3575ec334ca273187
7
- data.tar.gz: accb5987d69ba8c2623ef7fcdecdf69a409c8be30a140d9d84a082fa3aea68ab8ab72138490ddd39c5c6c9fb1e14d15b4c7ee0f0e5aa2bf822f3a258a29a9a71
6
+ metadata.gz: 9e6187821b05139f645793d7bbd81320e6dbf2c294bd51205ee708d7aaaac476fbbdc0ff5fb31155a72638f500fb5fe5c4ab247472cdcab8002ec785a12ea66b
7
+ data.tar.gz: 195b0f63944978fcea173b7c08bd6a7fc26c21a8f70a207d70cbab60c472ddb91ab8f71178233cdaa339cee17cb6e20b7d8b91570d840fb1b2b3d2746d867e39
data/irbt.rb CHANGED
@@ -2,8 +2,6 @@
2
2
  # An IRB + fibonacci_rng Test bed
3
3
 
4
4
  require 'irb'
5
- $force_alias_read_line_module = true
6
- require 'mini_readline'
7
5
 
8
6
  puts "Starting an IRB console with fibonacci_rng loaded."
9
7
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  #The class of Fibonacci inspired random number generators.
4
4
  class FibonacciRng
5
- VERSION = "1.2.1"
5
+ VERSION = "1.2.2"
6
6
  end
@@ -167,10 +167,13 @@ class FibonacciRngTester < Minitest::Test
167
167
 
168
168
  def test_building_strings
169
169
  rng = FibonacciRng.new(0)
170
-
171
170
  assert_equal("c}l'(q@g\\z", rng.string(10))
172
171
  assert_equal('2727573312', rng.string(10, '0123456789'))
173
172
  assert_equal('khto lk si', rng.string(10, 'Always look on the bright side of life.'))
173
+
174
+ rng = FibonacciRng.new("%s*08^_Tg{NnirtZ-94)q9z2l+~bB5")
175
+ assert_equal(",-+Idi6~ ~", rng.string(10))
176
+ assert_equal('5901964804', rng.string(10, '0123456789'))
174
177
  end
175
178
 
176
179
  def test_for_data_stability
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fibonacci_rng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest_visible