jinni 0.3.2 → 0.3.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: a0f79f6c7ca99a3e844ec4c1d9d333d2cd1180af
4
- data.tar.gz: 1a50257f304821f54c245f953d16954a4edbdda3
3
+ metadata.gz: cd4398aec5ab4731e936b92312e4ad0ce6836712
4
+ data.tar.gz: b9ee409a49994c860f65b6374a87e62aadb378b6
5
5
  SHA512:
6
- metadata.gz: 813486f90cc727e5d87997593a799828158261c03694c4224c836998158a5eddc3e7a723e2d0eb8bcbb18c1a1191599009e6a38f7c4e05fbab76adacd753d9b1
7
- data.tar.gz: 4f708c1c65d01878c8021e1157885d1a9c9e75056928147673d95d65172ddb184b85f5a7111258d1ea23f1c05f47ba14babd32384e121336c116b5ac8228c122
6
+ metadata.gz: 55bbe63e329ea8ba921cf0746793f40498285b5cbaf6ec5d6ed1be1f659cd59d483623eaa96efd3b1d2ec2cb3a89ed2b53ed02b825294d91760d979c0c04f89f
7
+ data.tar.gz: d9947762668127a6eb556341a924f2acf59200438367a8adedb7b64b23a5f2611c8f11720076c23f9713508309d4efe66d30e82388cdd1cd1e5446787876de2b
data/README.md CHANGED
@@ -42,7 +42,7 @@ Or install it yourself as:
42
42
 
43
43
  ### Put some creatures in a genepool
44
44
 
45
- fishes = Genepool.new
45
+ fishes = Jinni::Genepool.new
46
46
  10.times { fishes.push(Fish.random_new) } # `random_new` respects min and max
47
47
 
48
48
  ### have some more offspring
@@ -40,7 +40,7 @@ module Jinni
40
40
 
41
41
  binary = rand(1) == 1 ? output_one : output_two
42
42
 
43
- initialize_from_binary(binary)
43
+ self.class.new_from_binary(binary)
44
44
  end
45
45
  alias :<< :cross
46
46
 
@@ -1,4 +1,4 @@
1
- class Genepool < Array
1
+ class Jinni::Genepool < Array
2
2
  def roulette(n, quality = :fitness)
3
3
  scratch = self.clone
4
4
 
@@ -26,7 +26,7 @@ class Genepool < Array
26
26
 
27
27
  pool = scratch.roulette(n * 2, quality)
28
28
 
29
- generation = Genepool.new
29
+ generation = Jinni::Genepool.new
30
30
 
31
31
  pool.each_slice(2) do |pair|
32
32
  child = pair[0] << pair[1]
@@ -1,3 +1,3 @@
1
1
  module Jinni
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jinni
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Monks