randprize 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODZjZmE4Zjk1M2IyOTUzOTI4YmQwZTM0YmRmNzM5MzQ4YTZiNjM4OA==
4
+ YTgzNGNhYWFjZmI1MjcxMmIzYTZmMmE1YjVhM2Y2YWVlMDAyM2QxYQ==
5
5
  data.tar.gz: !binary |-
6
- ODRjMTY4ZTExMDAxMzkwNDVkMGRmMzEwYTE3ZWE5Yjc0YzZkNTY4OA==
6
+ MGIxMzYxMWU0MWY5MjYzYjA1YTY2Y2UzMjIwMWZkNDExODVmMzEyNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Mjg2YjQ3ZGUyZWE5YTUxODY4YzI4MWNiYzNjM2NjZDMwOGQzZWNlNjcyNzQx
10
- ODI3MWRjOTg3ZTFmZjQ2MDgwMmRkY2E2MzMyYWNhNmExMGU0Y2U5MDUyOGY1
11
- ODY3MDVhMGRlMzVjOGExM2EyMmJhN2Q5ZjE0NjZkM2MwYjNiZjc=
9
+ MDIwNWVhYzU3NTc2ZjJiMTMxMDgwMmQ4MTgxYzc4NjFmNzk0YjhiMjNiNTNh
10
+ N2Q2MTcyMzcyNzhlMjZlOTg4ODRlMWEyOTk3NDgwMmFhYmRjMjgyN2ZlNGJi
11
+ OGQwNGIyOWIwMDk5YTUyNmI0ZmQ5NmQwYzZlZTljNGI4ZTQ3YzM=
12
12
  data.tar.gz: !binary |-
13
- YTA4N2I5ZDE0NGEzNmMxMTlmZjAzYmYwNmQzOGZlYTJmZThlY2M1MWUyNjE0
14
- ZDM3YWU2MDY2NzQzNDc4NTcyMWFjMThhZWU1NzAxOGU3NDI4YmNlZGU2ZTc1
15
- ZWVkN2I0OWJmZTg2NzQ0NTRmMmFmOGU5OGRlNDFiMmY2NTIwNmI=
13
+ MmMxOGMzN2UxMTczNDhkODllZmUzY2ZjZDA3ZDMzYmEzNTlmNGJmNWVlYmRj
14
+ ZTZlMDc1ZTQwNDIzOWZjN2JhMjgwOGI2MDFjNDA1OGNlMWY2NGI1YjkyNzc2
15
+ NzhiMGNhMTllMjczNmI1OTU2ZGZmZjdhZmFlYWE3YjU5MGQyOWU=
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
  gemspec
3
3
  gem "codeclimate-test-reporter", group: :test, require: nil
4
4
  gem "multi_json"
5
+ gem "minitest"
data/Gemfile.lock CHANGED
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- randprize (0.1.2)
4
+ randprize (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  codeclimate-test-reporter (0.1.1)
10
10
  simplecov (>= 0.7.1, < 1.0.0)
11
+ minitest (4.7.5)
11
12
  multi_json (1.8.0)
12
13
  simplecov (0.7.1)
13
14
  multi_json (~> 1.0)
@@ -19,5 +20,6 @@ PLATFORMS
19
20
 
20
21
  DEPENDENCIES
21
22
  codeclimate-test-reporter
23
+ minitest
22
24
  multi_json
23
25
  randprize!
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env rake
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+ Bundler::GemHelper.install_tasks
5
+ require 'rake/testtask'
6
+ task :default => [:test]
@@ -12,7 +12,7 @@ module Randprize
12
12
  raise 'prizelist must have at least two entries' if self.keylist.size<2
13
13
  self.myranges={}
14
14
  self.worstoddprize=0
15
- self.totalwinodds=0
15
+ self.totalwinodds=1
16
16
  calculate_worst_odds
17
17
  normalize_odds
18
18
 
data/test/test_helper.rb CHANGED
@@ -1,7 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
1
3
  require 'stringio'
2
4
  require 'test/unit'
3
5
  require File.dirname(__FILE__) + '/../lib/randprize'
4
- require 'rubygems'
5
6
  require "codeclimate-test-reporter"
6
7
  CodeClimate::TestReporter.start
7
8
 
9
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: randprize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-28 00:00:00.000000000 Z
11
+ date: 2013-09-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Select a random prize from a list with odds
14
14
  email: scott.sproule@ficonab.com
@@ -24,6 +24,7 @@ files:
24
24
  - bin/instantwindemo.rb
25
25
  - Gemfile
26
26
  - Gemfile.lock
27
+ - Rakefile
27
28
  - README.md
28
29
  homepage: http://github.com/semdinsp/randprize
29
30
  licenses: []