wonkavision 0.5.11 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/lib/wonkavision.rb +28 -1
- data/lib/wonkavision/aggregation.rb +21 -0
- data/lib/wonkavision/event_coordinator.rb +19 -7
- data/lib/wonkavision/extensions/symbol.rb +55 -0
- data/lib/wonkavision/facts.rb +27 -0
- data/lib/wonkavision/local_job_queue.rb +28 -0
- data/lib/wonkavision/message_mapper.rb +2 -2
- data/lib/wonkavision/message_mapper/map.rb +60 -8
- data/lib/wonkavision/persistence/mongo.rb +95 -0
- data/lib/wonkavision/plugins.rb +2 -1
- data/lib/wonkavision/plugins/analytics/aggregation.rb +139 -0
- data/lib/wonkavision/plugins/analytics/aggregation/aggregation_spec.rb +53 -0
- data/lib/wonkavision/plugins/analytics/aggregation/attribute.rb +22 -0
- data/lib/wonkavision/plugins/analytics/aggregation/dimension.rb +64 -0
- data/lib/wonkavision/plugins/analytics/aggregation/measure.rb +240 -0
- data/lib/wonkavision/plugins/analytics/cellset.rb +171 -0
- data/lib/wonkavision/plugins/analytics/facts.rb +106 -0
- data/lib/wonkavision/plugins/analytics/handlers/apply_aggregation.rb +35 -0
- data/lib/wonkavision/plugins/analytics/handlers/split_by_aggregation.rb +60 -0
- data/lib/wonkavision/plugins/analytics/member_filter.rb +106 -0
- data/lib/wonkavision/plugins/analytics/mongo.rb +6 -0
- data/lib/wonkavision/plugins/analytics/persistence/hash_store.rb +59 -0
- data/lib/wonkavision/plugins/analytics/persistence/mongo_store.rb +85 -0
- data/lib/wonkavision/plugins/analytics/persistence/store.rb +105 -0
- data/lib/wonkavision/plugins/analytics/query.rb +76 -0
- data/lib/wonkavision/plugins/event_handling.rb +15 -3
- data/lib/wonkavision/version.rb +1 -1
- data/test/aggregation_spec_test.rb +99 -0
- data/test/aggregation_test.rb +170 -0
- data/test/analytics/test_aggregation.rb +78 -0
- data/test/apply_aggregation_test.rb +92 -0
- data/test/attribute_test.rb +26 -0
- data/test/cellset_test.rb +200 -0
- data/test/dimension_test.rb +186 -0
- data/test/facts_test.rb +146 -0
- data/test/hash_store_test.rb +112 -0
- data/test/log/test.log +96844 -0
- data/test/map_test.rb +48 -1
- data/test/measure_test.rb +146 -0
- data/test/member_filter_test.rb +143 -0
- data/test/mongo_store_test.rb +115 -0
- data/test/query_test.rb +106 -0
- data/test/split_by_aggregation_test.rb +114 -0
- data/test/store_test.rb +71 -0
- data/test/symbol_test.rb +62 -0
- data/test/test_activity_models.rb +1 -1
- data/test/test_aggregation.rb +42 -0
- data/test/test_data.tuples +100 -0
- data/test/test_helper.rb +7 -0
- metadata +57 -5
data/test/test_helper.rb
CHANGED
@@ -7,9 +7,12 @@ require "mongoid"
|
|
7
7
|
require "erb"
|
8
8
|
require 'active_support/test_case'
|
9
9
|
require "shoulda"
|
10
|
+
require "mocha"
|
11
|
+
|
10
12
|
|
11
13
|
dir = File.dirname(__FILE__)
|
12
14
|
require File.join(dir,"..","lib","wonkavision")
|
15
|
+
require File.join(dir,"..","lib","wonkavision","plugins","analytics","mongo")
|
13
16
|
|
14
17
|
dir = File.expand_path(File.dirname(__FILE__))
|
15
18
|
logdir = File.join(dir,'log')
|
@@ -23,6 +26,10 @@ Mongoid.configure do |config|
|
|
23
26
|
config.logger = Logger.new(File.join(logdir,'test.log'))
|
24
27
|
end
|
25
28
|
|
29
|
+
Wonkavision::Mongo.setup(msettings, "test")
|
30
|
+
|
31
|
+
$test_dir = dir
|
32
|
+
|
26
33
|
module ActiveSupport
|
27
34
|
class TestCase
|
28
35
|
def setup
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wonkavision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 6
|
9
|
+
- 0
|
10
|
+
version: 0.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Stults
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-11 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -62,6 +62,20 @@ dependencies:
|
|
62
62
|
- 11
|
63
63
|
version: "2.11"
|
64
64
|
requirement: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
type: :development
|
67
|
+
name: mocha
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
version: "0"
|
78
|
+
requirement: *id004
|
65
79
|
description:
|
66
80
|
email:
|
67
81
|
- hereiam@sonic.net
|
@@ -73,6 +87,21 @@ extra_rdoc_files: []
|
|
73
87
|
|
74
88
|
files:
|
75
89
|
- lib/wonkavision/event_handler.rb
|
90
|
+
- lib/wonkavision/plugins/analytics/persistence/store.rb
|
91
|
+
- lib/wonkavision/plugins/analytics/persistence/hash_store.rb
|
92
|
+
- lib/wonkavision/plugins/analytics/persistence/mongo_store.rb
|
93
|
+
- lib/wonkavision/plugins/analytics/handlers/split_by_aggregation.rb
|
94
|
+
- lib/wonkavision/plugins/analytics/handlers/apply_aggregation.rb
|
95
|
+
- lib/wonkavision/plugins/analytics/aggregation.rb
|
96
|
+
- lib/wonkavision/plugins/analytics/mongo.rb
|
97
|
+
- lib/wonkavision/plugins/analytics/cellset.rb
|
98
|
+
- lib/wonkavision/plugins/analytics/facts.rb
|
99
|
+
- lib/wonkavision/plugins/analytics/aggregation/aggregation_spec.rb
|
100
|
+
- lib/wonkavision/plugins/analytics/aggregation/attribute.rb
|
101
|
+
- lib/wonkavision/plugins/analytics/aggregation/measure.rb
|
102
|
+
- lib/wonkavision/plugins/analytics/aggregation/dimension.rb
|
103
|
+
- lib/wonkavision/plugins/analytics/query.rb
|
104
|
+
- lib/wonkavision/plugins/analytics/member_filter.rb
|
76
105
|
- lib/wonkavision/plugins/timeline.rb
|
77
106
|
- lib/wonkavision/plugins/business_activity.rb
|
78
107
|
- lib/wonkavision/plugins/business_activity/event_binding.rb
|
@@ -81,33 +110,56 @@ files:
|
|
81
110
|
- lib/wonkavision/support.rb
|
82
111
|
- lib/wonkavision/plugins.rb
|
83
112
|
- lib/wonkavision/event_path_segment.rb
|
113
|
+
- lib/wonkavision/persistence/mongo.rb
|
84
114
|
- lib/wonkavision/persistence/mongo_mapper_adapter.rb
|
85
115
|
- lib/wonkavision/persistence/mongoid_adapter.rb
|
116
|
+
- lib/wonkavision/local_job_queue.rb
|
117
|
+
- lib/wonkavision/aggregation.rb
|
86
118
|
- lib/wonkavision/event_coordinator.rb
|
87
119
|
- lib/wonkavision/acts_as_oompa_loompa.rb
|
88
120
|
- lib/wonkavision/event_namespace.rb
|
89
121
|
- lib/wonkavision/message_mapper.rb
|
90
122
|
- lib/wonkavision/event.rb
|
123
|
+
- lib/wonkavision/facts.rb
|
91
124
|
- lib/wonkavision/event_context.rb
|
92
125
|
- lib/wonkavision/version.rb
|
93
126
|
- lib/wonkavision/message_mapper/indifferent_access.rb
|
94
127
|
- lib/wonkavision/message_mapper/map.rb
|
128
|
+
- lib/wonkavision/extensions/symbol.rb
|
95
129
|
- lib/wonkavision/event_binding.rb
|
96
130
|
- lib/wonkavision.rb
|
97
131
|
- test/message_mapper_test.rb
|
132
|
+
- test/aggregation_test.rb
|
133
|
+
- test/apply_aggregation_test.rb
|
134
|
+
- test/test_aggregation.rb
|
98
135
|
- test/wonkavision_test.rb
|
99
136
|
- test/event_namespace_test.rb
|
137
|
+
- test/dimension_test.rb
|
100
138
|
- test/event_coordinator_test.rb
|
101
139
|
- test/event_path_segment_test.rb
|
140
|
+
- test/mongo_store_test.rb
|
141
|
+
- test/facts_test.rb
|
102
142
|
- test/test_activity_models.rb
|
103
143
|
- test/config/database.yml
|
104
144
|
- test/test_helper.rb
|
145
|
+
- test/measure_test.rb
|
146
|
+
- test/hash_store_test.rb
|
147
|
+
- test/analytics/test_aggregation.rb
|
148
|
+
- test/test_data.tuples
|
149
|
+
- test/attribute_test.rb
|
150
|
+
- test/store_test.rb
|
151
|
+
- test/query_test.rb
|
152
|
+
- test/cellset_test.rb
|
105
153
|
- test/map_test.rb
|
154
|
+
- test/split_by_aggregation_test.rb
|
106
155
|
- test/timeline_test.rb
|
107
156
|
- test/business_activity_test.rb
|
108
157
|
- test/event_test.rb
|
158
|
+
- test/member_filter_test.rb
|
159
|
+
- test/aggregation_spec_test.rb
|
109
160
|
- test/event_handler_test.rb
|
110
161
|
- test/log/test.log
|
162
|
+
- test/symbol_test.rb
|
111
163
|
- LICENSE.txt
|
112
164
|
- README.rdoc
|
113
165
|
- CHANGELOG.rdoc
|