eenie_meenie 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 73e543a3111fa5993f72818b82fffe79202aba5c
4
+ data.tar.gz: 8ab7440cb759556baf00cca7cda72ba83e16b762
5
+ SHA512:
6
+ metadata.gz: 0b8cbc7b3fcc455d6eaf1a58d910a7799d052c5468891d6f94f717d8d60bf4ac2b3957066b62387a78dbf23ab77d3dd19486eb3b1892881ecd29165ca1410ecb
7
+ data.tar.gz: 16968fd95bc91d9e2d68267624f7d68aa9f9f9033d56ae6e9729bbfc086ce2838fb46e4119ba3d3a15a00f858273c0365e689cfa2092218a66f2234c9efdfb9b
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ - 1.9.2
6
+ - jruby-19mode
7
+ - ruby-head
8
+ - jruby-head
9
+ script: bundle exec rake test
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  EenieMeenie
2
2
  ========
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/eenie_meenie.png)](http://badge.fury.io/rb/eenie_meenie) [![Build Status](https://travis-ci.org/rthbound/eenie_meenie.png?branch=master)](https://travis-ci.org/rthbound/eenie_meenie) [![Coverage Status](https://coveralls.io/repos/rthbound/eenie_meenie/badge.png?branch=master)](https://coveralls.io/r/rthbound/eenie_meenie?branch=master) [![Code Climate](https://codeclimate.com/github/rthbound/eenie_meenie.png)](https://codeclimate.com/github/rthbound/eenie_meenie)
5
+
4
6
  Decides to which experimental group a member of a population should be assigned.
5
7
 
6
8
  Installation
@@ -8,16 +10,16 @@ Installation
8
10
 
9
11
  EenieMeenie is a Ruby gem, and can be installed using `gem install eenie_meenie` or by adding the following to your application's Gemfile:
10
12
 
11
- gem 'eenie_meenie', '0.1.1'
13
+ gem 'eenie_meenie', '1.0.0'
12
14
 
13
15
  Usage
14
16
  -----
15
17
 
16
- Attention! The usage of `EeenieMeenie::Assignment` changed with the release of version 0.1.0. With the new algorithm you'll be able to:
18
+ When using this gem, you'll be able to:
17
19
 
18
- 1. Assign a threshold (a `Float` to represent percentage) to each experimental group.
19
- 2. Assign a threshold of "DO NOT CARE" to any group by passing `false` instead of a `Float`
20
- 3. Tell EeenieMeenie which groups can be assigned by the algorithm. Any group with a threshold should be included here.
20
+ 1. Assign as a threshold a number somewhere in the range of (0,1] to each experimental group.
21
+ 2. Assign a threshold of "DO NOT CARE" to any group by passing `false` instead of a number.
22
+ 3. Tell it to which groups a member can be assigned. Any group with a threshold should be included here (otherwise the threshold is pointless).
21
23
  4. Tell it how to scope the member class (tell it which study, if you're using one member class for all studies)
22
24
  5. Specify the population to be used when calculating whether a group's population threshold has been reached.
23
25
 
@@ -89,14 +91,14 @@ EenieMeenie::Assignment.new({
89
91
  groups: ["Control", "Experimental"], # EenieMeenie's assignment options
90
92
  member: @obj, # Member of population
91
93
  group_rules: {
92
- "Control" => { threshold: 0.5 }, # No more than one half
93
- "Experimental" => { threshold: 0.5 }, # No more than one half
94
- "Experimental A" => { threshold: false } # Don't care
95
- "Experimental B" => { threshold: false } # Don't care
94
+ "Control" => { threshold: 0.5 }, # No more than one half
95
+ "Experimental" => { threshold: 0.5 }, # No more than one half
96
+ "Experimental A" => { threshold: false } # Don't care
97
+ "Experimental B" => { threshold: false } # Don't care
96
98
  }
97
99
  }).execute!
98
100
  ```
99
101
 
100
102
  ### Pull requests/issues
101
103
 
102
- Please submit any useful pull requests through GitHub. Please report any bugs using Github's issue tracker.
104
+ Use GitHub's issue tracker to report problems or request changes. Pull Requests are encouraged. Don't forget to add tests for any changes you'd like merged.
data/eenie_meenie.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_development_dependency "rake"
27
27
  s.add_development_dependency "pry"
28
+ s.add_development_dependency "coveralls"
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module EenieMeenie
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,3 +1,5 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
1
3
  # Testing frameworks
2
4
  require "minitest/spec"
3
5
  require "minitest/autorun"
metadata CHANGED
@@ -1,89 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eenie_meenie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tad Hosford
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2013-06-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: pay_dirt
16
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - ~>
19
18
  - !ruby/object:Gem::Version
20
19
  version: 0.0.5
21
- none: false
22
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.0.5
27
- none: false
28
- prerelease: false
29
- type: :runtime
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
32
36
  version_requirements: !ruby/object:Gem::Requirement
33
37
  requirements:
34
- - - ! '>='
38
+ - - '>='
35
39
  - !ruby/object:Gem::Version
36
- version: !binary |-
37
- MA==
38
- none: false
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
39
43
  requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
- version: !binary |-
44
- MA==
45
- none: false
46
- prerelease: false
47
+ version: '0'
47
48
  type: :development
48
- - !ruby/object:Gem::Dependency
49
- name: rake
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: !binary |-
55
- MA==
56
- none: false
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: !binary |-
62
- MA==
63
- none: false
64
- prerelease: false
61
+ version: '0'
65
62
  type: :development
66
- - !ruby/object:Gem::Dependency
67
- name: pry
63
+ prerelease: false
68
64
  version_requirements: !ruby/object:Gem::Requirement
69
65
  requirements:
70
- - - ! '>='
66
+ - - '>='
71
67
  - !ruby/object:Gem::Version
72
- version: !binary |-
73
- MA==
74
- none: false
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coveralls
75
71
  requirement: !ruby/object:Gem::Requirement
76
72
  requirements:
77
- - - ! '>='
73
+ - - '>='
78
74
  - !ruby/object:Gem::Version
79
- version: !binary |-
80
- MA==
81
- none: false
82
- prerelease: false
75
+ version: '0'
83
76
  type: :development
84
- description: ! " Attempts to provide a random but (mostly)\n \
85
- \ even distribution of samples amongst\n specified groups\n\
86
- \ "
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: " Attempts to provide a random but (mostly)\n even
84
+ distribution of samples amongst\n specified groups\n "
87
85
  email:
88
86
  - tad.hosford@gmail.com
89
87
  executables: []
@@ -91,6 +89,7 @@ extensions: []
91
89
  extra_rdoc_files: []
92
90
  files:
93
91
  - .gitignore
92
+ - .travis.yml
94
93
  - Gemfile
95
94
  - README.md
96
95
  - Rakefile
@@ -102,34 +101,25 @@ files:
102
101
  - test/minitest_helper.rb
103
102
  homepage: http://github.com/rthbound/eenie_meenie
104
103
  licenses: []
105
- post_install_message:
104
+ metadata: {}
105
+ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
109
109
  required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ! '>='
111
+ - - '>='
112
112
  - !ruby/object:Gem::Version
113
- segments:
114
- - 0
115
- version: !binary |-
116
- MA==
117
- hash: 2
118
- none: false
113
+ version: '0'
119
114
  required_rubygems_version: !ruby/object:Gem::Requirement
120
115
  requirements:
121
- - - ! '>='
116
+ - - '>='
122
117
  - !ruby/object:Gem::Version
123
- segments:
124
- - 0
125
- version: !binary |-
126
- MA==
127
- hash: 2
128
- none: false
118
+ version: '0'
129
119
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 1.8.24
132
- signing_key:
133
- specification_version: 3
120
+ rubyforge_project:
121
+ rubygems_version: 2.0.3
122
+ signing_key:
123
+ specification_version: 4
134
124
  summary: ''
135
125
  test_files: []