bluecap 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ require 'helper'
2
+
3
+ describe Bluecap::Report do
4
+
5
+ before do
6
+ Bluecap.redis.flushall
7
+ end
8
+
9
+ subject do
10
+ Bluecap::Report.new(
11
+ initial_event: 'Created Account',
12
+ engagement_event: 'Logged In',
13
+ attributes: {
14
+ country: 'Australia',
15
+ gender: 'Female'
16
+ },
17
+ start_date: '20120401',
18
+ end_date: '20120430'
19
+ )
20
+
21
+ end
22
+
23
+ it 'should generate report' do
24
+ json = subject.handle
25
+ body = MultiJson.load(json, symbolize_keys: true)
26
+ end
27
+
28
+ end
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bluecap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Christopher Wright
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: redis
16
+ requirement: &70321392400620 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70321392400620
25
+ - !ruby/object:Gem::Dependency
26
+ name: eventmachine
27
+ requirement: &70321392400140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 0.12.10
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70321392400140
36
+ - !ruby/object:Gem::Dependency
37
+ name: multi_json
38
+ requirement: &70321392399680 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.6
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70321392399680
47
+ description: ! " Bluecap is a Redis-backed system for measuring user engagement
48
+ over time.\n It tracks events passed in from external systems, such as when a
49
+ user\n creates an account, logs in or performs some other key action. Bluecap
50
+ can\n also track properties of users like their gender or location.\n"
51
+ email: christopherwright@gmail.com
52
+ executables:
53
+ - bluecap
54
+ extensions: []
55
+ extra_rdoc_files: []
56
+ files:
57
+ - README.md
58
+ - LICENSE
59
+ - lib/bluecap/cohort.rb
60
+ - lib/bluecap/engagement.rb
61
+ - lib/bluecap/handlers/attributes.rb
62
+ - lib/bluecap/handlers/event.rb
63
+ - lib/bluecap/handlers/identify.rb
64
+ - lib/bluecap/handlers/null_handler.rb
65
+ - lib/bluecap/handlers/report.rb
66
+ - lib/bluecap/keys.rb
67
+ - lib/bluecap/message.rb
68
+ - lib/bluecap/server.rb
69
+ - lib/bluecap.rb
70
+ - bin/bluecap
71
+ - spec/attributes_spec.rb
72
+ - spec/cohort_spec.rb
73
+ - spec/engagement_spec.rb
74
+ - spec/event_spec.rb
75
+ - spec/helper.rb
76
+ - spec/identify_spec.rb
77
+ - spec/key_spec.rb
78
+ - spec/redis-test.conf
79
+ - spec/report_spec.rb
80
+ homepage: https://github.com/christopherwright/bluecap
81
+ licenses: []
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 1.8.11
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: Bluecap measures user engagement.
104
+ test_files: []