i_wonder 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -24
- data/app/assets/javascripts/i_wonder/application.js +1 -0
- data/app/assets/javascripts/i_wonder/reports.js +11 -1
- data/app/assets/stylesheets/i_wonder/_shared.css.scss +6 -0
- data/app/assets/stylesheets/i_wonder/application.css.scss +2 -5
- data/app/assets/stylesheets/i_wonder/reports.css.scss +7 -0
- data/app/controllers/i_wonder/reports_controller.rb +36 -3
- data/app/models/i_wonder/event.rb +16 -6
- data/app/models/i_wonder/metric.rb +57 -14
- data/app/models/i_wonder/report.rb +2 -2
- data/app/models/i_wonder/snapshot.rb +2 -1
- data/app/views/i_wonder/events/index.html.erb +4 -0
- data/app/views/i_wonder/metrics/_options_for_custom.html.erb +2 -2
- data/app/views/i_wonder/metrics/_options_for_model_counter.html.erb +2 -2
- data/app/views/i_wonder/metrics/index.html.erb +3 -1
- data/app/views/i_wonder/reports/_form.html.erb +1 -1
- data/app/views/i_wonder/reports/_line_report.html.erb +10 -33
- data/app/views/i_wonder/reports/_line_report.js.erb +20 -0
- data/app/views/layouts/i_wonder.html.erb +4 -0
- data/db/migrate/20111022230720_i_wonder_migrations.rb +5 -0
- data/lib/i_wonder/configuration.rb +3 -3
- data/lib/i_wonder/logging/middleware.rb +5 -4
- data/lib/i_wonder/version.rb +1 -1
- data/lib/tasks/i_wonder_tasks.rake +4 -0
- data/test/dummy/app/assets/javascripts/application.js +1 -0
- data/test/dummy/db/schema.rb +5 -0
- data/test/dummy/log/development.log +1941 -0
- data/test/dummy/log/test.log +25698 -0
- data/test/dummy/tmp/cache/assets/D8E/250/sprockets%2Fefe57e932e1d26c3b6af42a5311f0a1c +0 -0
- data/test/dummy/tmp/cache/assets/DA7/BA0/sprockets%2F463a9dd811f2418d96fa72cfe05fb8cd +0 -0
- data/test/integration/i_wonder/reports_controller_test.rb +3 -3
- data/test/unit/i_wonder/event_test.rb +25 -0
- data/test/unit/i_wonder/metric_collection_test.rb +53 -29
- data/test/unit/i_wonder/metric_creation_test.rb +9 -7
- data/test/unit/i_wonder/report_test.rb +9 -9
- metadata +22 -23
- data/test/dummy/tmp/pids/server.pid +0 -1
Binary file
|
Binary file
|
@@ -4,8 +4,8 @@ require File.expand_path("../../test_helper.rb", File.dirname(__FILE__))
|
|
4
4
|
|
5
5
|
module IWonder
|
6
6
|
class ReportsControllerTest < ActionDispatch::IntegrationTest
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
test "setting proper inteval length for line graph" do
|
8
|
+
pending
|
9
|
+
end
|
10
10
|
end
|
11
11
|
end
|
@@ -51,6 +51,31 @@ module IWonder
|
|
51
51
|
|
52
52
|
end
|
53
53
|
|
54
|
+
test "merging events to a user" do
|
55
|
+
Event.delete_all
|
56
|
+
|
57
|
+
Timecop.travel(Time.zone.now - 30.days) do
|
58
|
+
@e11 = Event.create :event_type => "new_visitor", :session_id => "123"
|
59
|
+
@e12 = Event.create :event_type => "hit", :session_id => "123"
|
60
|
+
@e13 = Event.create :event_type => "hit", :session_id => "123", :user_id => "1"
|
61
|
+
|
62
|
+
Event.merge_session_to_user("123", "1")
|
63
|
+
|
64
|
+
assert_equal 3, Event.where(:user_id => "1").count
|
65
|
+
assert_equal 3, Event.where(:session_id => "123").count
|
66
|
+
assert_equal 1, Event.where(:session_id => "123", :user_id => "1", :event_type => "new_visitor").count
|
67
|
+
end
|
68
|
+
|
69
|
+
@e21 = Event.create :event_type => "new_visitor", :session_id => "321"
|
70
|
+
@e22 = Event.create :event_type => "hit", :session_id => "321"
|
71
|
+
Event.merge_session_to_user("321", "1")
|
72
|
+
|
73
|
+
assert_equal 4, Event.where(:session_id => "123").count
|
74
|
+
assert_equal 1, Event.where(:session_id => "123", :event_type => "new_visitor").count
|
75
|
+
assert_equal 0, Event.where(:session_id => "321").count
|
76
|
+
assert_equal 4, Event.where(:user_id => "1").count
|
77
|
+
|
78
|
+
end
|
54
79
|
|
55
80
|
end
|
56
81
|
end
|
@@ -6,10 +6,10 @@ module IWonder
|
|
6
6
|
test "scope for metrics requiring updates" do
|
7
7
|
IWonder::Metric.delete_all
|
8
8
|
@m1 = Factory(:metric, :frequency => 1.hour, :last_measurement => nil)
|
9
|
-
@m2 = Factory(:metric, :frequency => 1.hour, :last_measurement => Time.now - 30.minutes)
|
10
|
-
@m3 = Factory(:metric, :frequency => 1.hour, :last_measurement => Time.now - 90.minutes)
|
11
|
-
@m4 = Factory(:metric, :frequency => 1.day, :last_measurement => Time.now - 90.minutes)
|
12
|
-
@m5 = Factory(:metric, :frequency => 1.day, :last_measurement => Time.now - 2.days)
|
9
|
+
@m2 = Factory(:metric, :frequency => 1.hour, :last_measurement => Time.zone.now - 30.minutes)
|
10
|
+
@m3 = Factory(:metric, :frequency => 1.hour, :last_measurement => Time.zone.now - 90.minutes)
|
11
|
+
@m4 = Factory(:metric, :frequency => 1.day, :last_measurement => Time.zone.now - 90.minutes)
|
12
|
+
@m5 = Factory(:metric, :frequency => 1.day, :last_measurement => Time.zone.now - 2.days)
|
13
13
|
@m6 = Factory(:metric, :frequency => -1, :last_measurement => nil)
|
14
14
|
@m7 = Factory(:metric, :frequency => 1.hour, :last_measurement => nil, :archived => true)
|
15
15
|
|
@@ -46,47 +46,72 @@ module IWonder
|
|
46
46
|
@metric_1 = Factory(:metric, :frequency => 1.day)
|
47
47
|
@metric_2 = Factory(:metric, :frequency => 1.day)
|
48
48
|
|
49
|
-
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :
|
50
|
-
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :
|
51
|
-
@snapshot_3 = Factory(:snapshot, :metric => @metric_1, :
|
49
|
+
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 5.days, :end_time => Time.zone.now - 4.days)
|
50
|
+
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 4.days + 1.second, :end_time => Time.zone.now - 3.days)
|
51
|
+
@snapshot_3 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 3.days + 1.second, :end_time => Time.zone.now - 2.days)
|
52
52
|
|
53
53
|
assert_equal @snapshot_3, @metric_1.snapshots.most_recent
|
54
54
|
assert_nil @metric_2.snapshots.most_recent
|
55
|
-
assert_equal [Time.zone.now - 2.day, Time.zone.now - 1.day], @metric_1.send(:timeframe_for_next_snapshot), "Not calculating times from snapshot correctly"
|
55
|
+
assert_equal [Time.zone.now - 2.day + 1.second, Time.zone.now - 1.day], @metric_1.send(:timeframe_for_next_snapshot), "Not calculating times from snapshot correctly"
|
56
56
|
assert_equal [Time.zone.now - 1.day, Time.zone.now], @metric_2.send(:timeframe_for_next_snapshot), "Not calculating times without snapshot correctly"
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
test "grabbing several snapshots if the start_at date is too far back" do
|
61
|
+
Timecop.freeze(2012, 10, 24) do
|
62
|
+
|
63
|
+
@metric_1 = Factory(:metric, :frequency => 1.day, :collection_method => "1", :collection_type => "custom")
|
64
|
+
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 4.days, :end_time => Time.zone.now - 3.days)
|
65
|
+
|
66
|
+
assert_equal @snapshot_1, @metric_1.snapshots.most_recent
|
67
|
+
assert_equal [Time.zone.now - 3.days + 1.second, Time.zone.now - 2.days], @metric_1.send(:timeframe_for_next_snapshot)
|
68
|
+
|
69
|
+
@metric_1.take_snapshot
|
70
|
+
assert_equal 4, @metric_1.snapshots.count
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
60
74
|
test "grabbing values from snapshots in timerange (integers)" do
|
61
75
|
Timecop.freeze(2012, 10, 24) do
|
62
76
|
@metric_1 = Factory(:metric, :name => "Test Metric", :frequency => 1.day)
|
63
|
-
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :
|
64
|
-
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :
|
65
|
-
@snapshot_3 = Factory(:snapshot, :metric => @metric_1, :
|
66
|
-
@snapshot_4 = Factory(:snapshot, :metric => @metric_1, :
|
67
|
-
@snapshot_5 = Factory(:snapshot, :metric => @metric_1, :
|
77
|
+
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 5.days, :end_time => Time.zone.now - 4.days, :data => 1)
|
78
|
+
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 4.days, :end_time => Time.zone.now - 3.days, :data => 2)
|
79
|
+
@snapshot_3 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 3.days, :end_time => Time.zone.now - 2.days, :data => 3)
|
80
|
+
@snapshot_4 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 2.days, :end_time => Time.zone.now - 1.days, :data => 4)
|
81
|
+
@snapshot_5 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 1.days, :end_time => Time.zone.now - 0.days, :data => 5)
|
68
82
|
|
69
83
|
|
70
|
-
res = @metric_1.value_from(Time.zone.now - 4.days, Time.zone.now -
|
71
|
-
assert res.eql?({"Test Metric" => 9.0})
|
84
|
+
res = @metric_1.value_from(Time.zone.now - 4.days, Time.zone.now - 1.days)
|
85
|
+
assert res.eql?({"Test Metric" => 9.0}), res.inspect
|
72
86
|
end
|
73
87
|
end
|
74
88
|
|
75
89
|
test "grabbing values from snapshots in timerange (hashes)" do
|
76
90
|
Timecop.freeze(2012, 10, 24) do
|
77
91
|
@metric_1 = Factory(:metric, :name => "Test Metric", :frequency => 1.day)
|
78
|
-
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :
|
79
|
-
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :
|
80
|
-
@snapshot_3 = Factory(:snapshot, :metric => @metric_1, :
|
81
|
-
@snapshot_4 = Factory(:snapshot, :metric => @metric_1, :
|
82
|
-
@snapshot_5 = Factory(:snapshot, :metric => @metric_1, :
|
92
|
+
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 5.days, :end_time => Time.zone.now - 4.days, :count => nil, :data => {"key_1" => 1})
|
93
|
+
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 4.days, :end_time => Time.zone.now - 3.days, :count => nil, :data => {"key_1" => 2})
|
94
|
+
@snapshot_3 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 3.days, :end_time => Time.zone.now - 2.days, :count => nil, :data => {"key_1" => 3, "key_2" => 1})
|
95
|
+
@snapshot_4 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 2.days, :end_time => Time.zone.now - 1.days, :count => nil, :data => {"key_1" => 4, "key_2" => 2})
|
96
|
+
@snapshot_5 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 1.days, :end_time => Time.zone.now - 0.days, :count => nil, :data => {"key_1" => 5, "key_2" => 3})
|
83
97
|
|
84
98
|
|
85
|
-
res = @metric_1.value_from(Time.zone.now - 4.days, Time.zone.now -
|
86
|
-
assert res.eql?({"key_1" => 9.0, "key_2" => 3.0})
|
99
|
+
res = @metric_1.value_from(Time.zone.now - 4.days, Time.zone.now - 1.days)
|
100
|
+
assert res.eql?({"key_1" => 9.0, "key_2" => 3.0}), res.inspect
|
87
101
|
end
|
88
102
|
end
|
89
103
|
|
104
|
+
test "backdating custom metric" do
|
105
|
+
Timecop.freeze(2012, 10, 24) do
|
106
|
+
@metric = Metric.create(:name => "Test Metric", :frequency => 1.day, :back_date_snapshots => "1", :collection_type => "custom", :collection_method => "1")
|
107
|
+
@metric.reload
|
108
|
+
|
109
|
+
assert_equal 30, @metric.snapshots.count
|
110
|
+
assert_equal Time.zone.now - 30.days + 1.second, @metric.earliest_measurement
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
|
90
115
|
test "grabbing values from no-snapshot collection_method" do
|
91
116
|
Timecop.freeze(2012, 10, 24) do
|
92
117
|
@metric_1 = Factory(:metric, :name => "Test Metric", :frequency => -1, :collection_method => "3")
|
@@ -98,27 +123,26 @@ module IWonder
|
|
98
123
|
end
|
99
124
|
|
100
125
|
test "merging snapshot methods (sumation vs averaging)" do
|
101
|
-
|
102
126
|
Timecop.freeze(2012, 10, 24) do
|
103
127
|
# with the default summation set
|
104
128
|
@metric_1 = Factory(:metric, :name => "Test Metric", :frequency => 1.day)
|
105
|
-
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :
|
106
|
-
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :
|
107
|
-
res = @metric_1.value_from(Time.zone.now - 2.days, Time.zone.now
|
129
|
+
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 2.days, :end_time => Time.zone.now - 1.day, :data => 1)
|
130
|
+
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 1.days, :end_time => Time.zone.now, :data => 3)
|
131
|
+
res = @metric_1.value_from(Time.zone.now - 2.days, Time.zone.now)
|
108
132
|
assert res.eql?({"Test Metric" => 4.0})
|
109
133
|
|
110
134
|
# with the default summation set
|
111
135
|
@metric_1.combination_rule = "average"
|
112
136
|
@metric_1.save
|
113
137
|
|
114
|
-
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :
|
115
|
-
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :
|
138
|
+
@snapshot_1 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 2.days, :end_time => Time.zone.now - 1.days, :data => 1)
|
139
|
+
@snapshot_2 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 1.days, :end_time => Time.zone.now, :data => 3)
|
116
140
|
res = @metric_1.value_from(Time.zone.now - 2.days, Time.zone.now)
|
117
141
|
assert res.eql?({"Test Metric" => 2.0})
|
118
142
|
end
|
119
143
|
end
|
120
144
|
|
121
|
-
|
145
|
+
|
122
146
|
|
123
147
|
end
|
124
148
|
end
|
@@ -46,19 +46,19 @@ module IWonder
|
|
46
46
|
assert !@metric.valid?
|
47
47
|
|
48
48
|
@metric.model_counter_class = "IWonder::Metric"
|
49
|
-
|
49
|
+
assert_valid @metric
|
50
50
|
|
51
51
|
@metric.model_counter_scopes = "fake_scope"
|
52
52
|
assert !@metric.valid?
|
53
53
|
|
54
54
|
@metric.model_counter_scopes = "archived"
|
55
|
-
|
55
|
+
assert_valid @metric
|
56
56
|
|
57
57
|
@metric.model_counter_scopes = "archived.fake_scope"
|
58
58
|
assert !@metric.valid?
|
59
59
|
|
60
60
|
@metric.model_counter_scopes = "archived.takes_snapshots"
|
61
|
-
|
61
|
+
assert_valid @metric
|
62
62
|
end
|
63
63
|
|
64
64
|
test "set_event_collection_method works" do
|
@@ -88,17 +88,19 @@ module IWonder
|
|
88
88
|
|
89
89
|
assert_equal "Account.where(\"created_at >= ? AND created_at < ?\", start_time, end_time).count", @metric.collection_method
|
90
90
|
assert_equal 2, @metric.send(:run_collection_method_from, Time.zone.now-1.day, Time.zone.now)
|
91
|
+
assert_equal "sum", @metric.combination_rule
|
91
92
|
|
92
93
|
@metric.update_attributes(:model_counter_method => "Total Number")
|
93
|
-
assert_equal "
|
94
|
+
assert_equal "average", @metric.combination_rule
|
95
|
+
|
96
|
+
assert_equal "Account.where(\"created_at < ?\", end_time).count", @metric.collection_method
|
94
97
|
assert_equal 3, @metric.send(:run_collection_method_from, Time.zone.now-1.day, Time.zone.now)
|
95
98
|
|
96
99
|
@metric.update_attributes(:model_counter_scopes => ".archived")
|
97
|
-
assert_equal "Account.archived.count", @metric.collection_method
|
100
|
+
assert_equal "Account.archived.where(\"created_at < ?\", end_time).count", @metric.collection_method
|
98
101
|
|
99
102
|
@metric.update_attributes(:model_counter_scopes => "archived")
|
100
|
-
assert_equal "Account.archived.count", @metric.collection_method
|
101
|
-
|
103
|
+
assert_equal "Account.archived.where(\"created_at < ?\", end_time).count", @metric.collection_method
|
102
104
|
end
|
103
105
|
|
104
106
|
end
|
@@ -6,23 +6,23 @@ module IWonder
|
|
6
6
|
test "gathering series data for a line chart" do
|
7
7
|
Timecop.freeze(2012, 10, 24) do
|
8
8
|
@metric_1 = Factory(:metric, :name => "Test Metric 1", :frequency => 1.day)
|
9
|
-
@snapshot_11 = Factory(:snapshot, :metric => @metric_1, :
|
10
|
-
@snapshot_12 = Factory(:snapshot, :metric => @metric_1, :
|
11
|
-
@snapshot_13 = Factory(:snapshot, :metric => @metric_1, :
|
9
|
+
@snapshot_11 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 3.days, :end_time => Time.zone.now - 2.days, :data => 1)
|
10
|
+
@snapshot_12 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 2.days, :end_time => Time.zone.now - 1.days, :data => 2)
|
11
|
+
@snapshot_13 = Factory(:snapshot, :metric => @metric_1, :start_time => Time.zone.now - 1.day, :end_time => Time.zone.now, :data => 3)
|
12
12
|
|
13
13
|
@metric_2 = Factory(:metric, :name => "Test Metric 2", :frequency => 1.day)
|
14
|
-
@snapshot_22 = Factory(:snapshot, :metric => @metric_2, :
|
15
|
-
@snapshot_23 = Factory(:snapshot, :metric => @metric_2, :
|
14
|
+
@snapshot_22 = Factory(:snapshot, :metric => @metric_2, :start_time => Time.zone.now - 2.days, :end_time => Time.zone.now - 1.days, :count => nil, :data => {"key_1" => 3, "key_2" => 1})
|
15
|
+
@snapshot_23 = Factory(:snapshot, :metric => @metric_2, :start_time => Time.zone.now - 1.days, :end_time => Time.zone.now, :count => nil, :data => {"key_1" => 3, "key_2" => 2})
|
16
16
|
|
17
17
|
@report = Factory(:report, :report_type => "line", :metric_ids => [@metric_1.id, @metric_2.id])
|
18
18
|
assert_equal 2, @report.metrics.count
|
19
19
|
|
20
|
-
series_data = @report.send :collect_series_data, Time.now -
|
20
|
+
series_data = @report.send :collect_series_data, Time.zone.now - 3.days, Time.zone.now, 1.day
|
21
21
|
|
22
22
|
proper_results = [
|
23
|
-
{:name=>"Test Metric 1", :pointInterval=>
|
24
|
-
{:name=>"key_1", :pointInterval=>
|
25
|
-
{:name=>"key_2", :pointInterval=>
|
23
|
+
{:name=>"Test Metric 1", :pointStart => (Time.zone.now - 3.days).to_i*1000, :pointInterval=>1.day*1000, :data=>[1.0, 2.0, 3.0]},
|
24
|
+
{:name=>"key_1", :pointStart => (Time.zone.now - 3.days).to_i*1000, :pointInterval=>1.day*1000, :data=>[0.0, 3.0, 3.0]},
|
25
|
+
{:name=>"key_2", :pointStart => (Time.zone.now - 3.days).to_i*1000, :pointInterval=>1.day*1000, :data=>[0.0, 1.0, 2.0]}
|
26
26
|
]
|
27
27
|
|
28
28
|
assert_equal proper_results, series_data
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i_wonder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-26 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2165981860 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2165981860
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &2165981280 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2165981280
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: delayed_job
|
38
|
-
requirement: &
|
38
|
+
requirement: &2165980660 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.1'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2165980660
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: hash_accessor
|
49
|
-
requirement: &
|
49
|
+
requirement: &2165980000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2165980000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: factory_girl_rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &2165977920 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2165977920
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pg
|
71
|
-
requirement: &
|
71
|
+
requirement: &2165977440 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2165977440
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: pry
|
82
|
-
requirement: &
|
82
|
+
requirement: &2165976900 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2165976900
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: sass
|
93
|
-
requirement: &
|
93
|
+
requirement: &2165975900 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '3.1'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2165975900
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: timecop
|
104
|
-
requirement: &
|
104
|
+
requirement: &2165968840 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2165968840
|
113
113
|
description: Analytics and AB Testing awesomeness for rails.
|
114
114
|
email:
|
115
115
|
- development@forrestzeisler.com
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- app/views/i_wonder/metrics/show.html.erb
|
158
158
|
- app/views/i_wonder/reports/_form.html.erb
|
159
159
|
- app/views/i_wonder/reports/_line_report.html.erb
|
160
|
+
- app/views/i_wonder/reports/_line_report.js.erb
|
160
161
|
- app/views/i_wonder/reports/edit.html.erb
|
161
162
|
- app/views/i_wonder/reports/index.html.erb
|
162
163
|
- app/views/i_wonder/reports/new.html.erb
|
@@ -253,7 +254,6 @@ files:
|
|
253
254
|
- test/dummy/tmp/cache/assets/DDF/BA0/sprockets%2F187ad995e2ff3588c339fdbecceba119
|
254
255
|
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
255
256
|
- test/dummy/tmp/cache/assets/E8D/B70/sprockets%2Fd62ab1e993c1edcadba5317fe8c7dffb
|
256
|
-
- test/dummy/tmp/pids/server.pid
|
257
257
|
- test/factories/metric_factory.rb
|
258
258
|
- test/factories/report_factory.rb
|
259
259
|
- test/factories/snapshot_factory.rb
|
@@ -277,7 +277,7 @@ files:
|
|
277
277
|
- test/unit/i_wonder/metric_creation_test.rb
|
278
278
|
- test/unit/i_wonder/report_test.rb
|
279
279
|
- test/unit/i_wonder/snapshot_test.rb
|
280
|
-
homepage: http://
|
280
|
+
homepage: http://github.com/forrest/i_wonder
|
281
281
|
licenses: []
|
282
282
|
post_install_message:
|
283
283
|
rdoc_options: []
|
@@ -379,7 +379,6 @@ test_files:
|
|
379
379
|
- test/dummy/tmp/cache/assets/DDF/BA0/sprockets%2F187ad995e2ff3588c339fdbecceba119
|
380
380
|
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
381
381
|
- test/dummy/tmp/cache/assets/E8D/B70/sprockets%2Fd62ab1e993c1edcadba5317fe8c7dffb
|
382
|
-
- test/dummy/tmp/pids/server.pid
|
383
382
|
- test/factories/metric_factory.rb
|
384
383
|
- test/factories/report_factory.rb
|
385
384
|
- test/factories/snapshot_factory.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
11818
|