guided_randomness 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/guided_randomness.gemspec +1 -12
- data/lib/guided_randomness/version.rb +1 -1
- metadata +2 -2
data/guided_randomness.gemspec
CHANGED
@@ -10,19 +10,8 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["p.szmielew@roflcopter.pl"]
|
11
11
|
s.homepage = ""
|
12
12
|
s.summary = %q{Simple gem for Ruby which extends Array class, and gave possibility to pick element from it at random, however with certain probability (probability is given for each element).}
|
13
|
-
s.description = %q{
|
14
|
-
Usage:
|
15
|
-
|
16
|
-
require 'guided_randomness'
|
17
|
-
[1,2,3].get_rand([0.5, 0.3, 0.2])
|
18
|
-
|
19
|
-
or
|
20
|
-
require 'guided_randomness'
|
21
|
-
[1,2,3].get_rand([4,12,9])
|
22
|
-
}
|
23
|
-
|
13
|
+
s.description = %q{Simple gem for Ruby which extends Array class, and gave possibility to pick element from it at random, however with certain probability (probability is given for each element). Adds the get_rand function to array class, which take array of chances as arguments (for example [1,2,3].get_rand([3,4,5]))}
|
24
14
|
s.rubyforge_project = "guided_randomness"
|
25
|
-
|
26
15
|
s.files = `git ls-files`.split("\n")
|
27
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
28
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: guided_randomness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Piotr Esse Szmielew
|
@@ -13,7 +13,7 @@ cert_chain: []
|
|
13
13
|
date: 2011-05-12 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
16
|
+
description: Simple gem for Ruby which extends Array class, and gave possibility to pick element from it at random, however with certain probability (probability is given for each element). Adds the get_rand function to array class, which take array of chances as arguments (for example [1,2,3].get_rand([3,4,5]))
|
17
17
|
email:
|
18
18
|
- p.szmielew@roflcopter.pl
|
19
19
|
executables: []
|