cohort_analysis 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +2 -0
- data/CHANGELOG +14 -2
- data/Gemfile +0 -9
- data/README.markdown +0 -64
- data/cohort_analysis.gemspec +20 -2
- data/lib/cohort_analysis/active_record_base_class_methods.rb +0 -4
- data/lib/cohort_analysis/active_record_relation_instance_methods.rb +34 -5
- data/lib/cohort_analysis/arel_select_manager_instance_methods.rb +8 -0
- data/lib/cohort_analysis/arel_table_instance_methods.rb +7 -0
- data/lib/cohort_analysis/strategy/big.rb +4 -5
- data/lib/cohort_analysis/strategy/strict.rb +8 -6
- data/lib/cohort_analysis/strategy.rb +98 -11
- data/lib/cohort_analysis/version.rb +1 -1
- data/lib/cohort_analysis.rb +15 -15
- data/test/helper.rb +54 -9
- data/test/test_cohort_analysis.rb +269 -181
- metadata +169 -65
- data/.document +0 -5
metadata
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cohort_analysis
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 0
|
10
|
-
version: 0.4.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Seamus Abshere
|
14
9
|
- Andy Rossmeissl
|
15
10
|
- Derek Kastner
|
@@ -17,52 +12,166 @@ authors:
|
|
17
12
|
autorequire:
|
18
13
|
bindir: bin
|
19
14
|
cert_chain: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
- !ruby/object:Gem::Dependency
|
15
|
+
date: 2012-06-05 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
24
18
|
name: activesupport
|
19
|
+
requirement: !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '3'
|
25
|
+
type: :runtime
|
25
26
|
prerelease: false
|
26
|
-
|
27
|
-
none: false
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: arel
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3'
|
35
41
|
type: :runtime
|
36
|
-
|
37
|
-
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3'
|
49
|
+
- !ruby/object:Gem::Dependency
|
38
50
|
name: activerecord
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3'
|
57
|
+
type: :development
|
39
58
|
prerelease: false
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '3'
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: active_record_inline_schema
|
67
|
+
requirement: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
type: :development
|
74
|
+
prerelease: false
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: minitest
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest-reporters
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: yard
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
125
|
+
requirements:
|
126
|
+
- - ! '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: factory_girl
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
type: :development
|
138
|
+
prerelease: false
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: sqlite3
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
type: :development
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
description: ! 'Lets you do cohort analysis based on two strategies: "big", which
|
162
|
+
discards characteristics for the maximum cohort result, and "strict", which discards
|
163
|
+
characteristics in order until a minimum cohort size is reached.'
|
164
|
+
email:
|
53
165
|
- seamus@abshere.net
|
54
166
|
- andy@rossmeissl.net
|
55
167
|
- dkastner@gmail.com
|
56
168
|
- ijhough@gmail.com
|
57
169
|
executables: []
|
58
|
-
|
59
170
|
extensions: []
|
60
|
-
|
61
171
|
extra_rdoc_files: []
|
62
|
-
|
63
|
-
files:
|
64
|
-
- .document
|
172
|
+
files:
|
65
173
|
- .gitignore
|
174
|
+
- .yardopts
|
66
175
|
- CHANGELOG
|
67
176
|
- Gemfile
|
68
177
|
- LICENSE
|
@@ -72,6 +181,8 @@ files:
|
|
72
181
|
- lib/cohort_analysis.rb
|
73
182
|
- lib/cohort_analysis/active_record_base_class_methods.rb
|
74
183
|
- lib/cohort_analysis/active_record_relation_instance_methods.rb
|
184
|
+
- lib/cohort_analysis/arel_select_manager_instance_methods.rb
|
185
|
+
- lib/cohort_analysis/arel_table_instance_methods.rb
|
75
186
|
- lib/cohort_analysis/arel_visitors_visitor_instance_methods.rb
|
76
187
|
- lib/cohort_analysis/strategy.rb
|
77
188
|
- lib/cohort_analysis/strategy/big.rb
|
@@ -81,38 +192,31 @@ files:
|
|
81
192
|
- test/test_cohort_analysis.rb
|
82
193
|
homepage: https://github.com/seamusabshere/cohort_analysis
|
83
194
|
licenses: []
|
84
|
-
|
85
195
|
post_install_message:
|
86
196
|
rdoc_options: []
|
87
|
-
|
88
|
-
require_paths:
|
197
|
+
require_paths:
|
89
198
|
- lib
|
90
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
199
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
200
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
|
97
|
-
- 0
|
98
|
-
version: "0"
|
99
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
|
+
requirements:
|
202
|
+
- - ! '>='
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '0'
|
205
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
206
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
segments:
|
106
|
-
- 0
|
107
|
-
version: "0"
|
207
|
+
requirements:
|
208
|
+
- - ! '>='
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
108
211
|
requirements: []
|
109
|
-
|
110
212
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.8.
|
213
|
+
rubygems_version: 1.8.24
|
112
214
|
signing_key:
|
113
215
|
specification_version: 3
|
114
|
-
summary:
|
115
|
-
|
216
|
+
summary: ! 'Lets you do cohort analysis based on two strategies: "big", which discards
|
217
|
+
characteristics for the maximum cohort result, and "strict", which discards characteristics
|
218
|
+
in order until a minimum cohort size is reached.'
|
219
|
+
test_files:
|
116
220
|
- test/helper.rb
|
117
221
|
- test/test_cohort_analysis.rb
|
118
222
|
has_rdoc:
|