mountain-goat 1.0.5 → 1.0.6pre1
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/generators/mg/templates/mountain_goat_reports.rake +1 -1
- data/init.rb +1 -1
- data/lib/.gitignore +1 -0
- data/lib/mountain-goat/controllers/mg/mg.rb +1 -0
- data/lib/mountain-goat/helpers/mg/mg_helper.rb +3 -0
- data/lib/mountain-goat/mg_core.rb +2 -2
- data/lib/mountain-goat/models/mg/choice.rb +1 -1
- data/lib/mountain-goat/models/mg/gi_meta.rb +1 -1
- data/lib/mountain-goat/models/mg/goal.rb +1 -1
- data/lib/mountain-goat/models/mg/goal_meta_type.rb +1 -1
- data/lib/mountain-goat/models/mg/gs_meta.rb +1 -1
- data/lib/mountain-goat/models/mg/record.rb +1 -1
- data/lib/mountain-goat/models/mg/report.rb +1 -1
- data/lib/mountain-goat/models/mg/report_item.rb +1 -1
- data/lib/mountain-goat/models/mg/report_mailer.rb +1 -1
- data/lib/mountain-goat/models/mg/test.rb +1 -1
- data/lib/mountain-goat/version.rb +1 -1
- data/lib/{mountain-goat.rb → mountain_goat.rb} +7 -1
- metadata +38 -66
data/init.rb
CHANGED
data/lib/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
**~
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.join([File.dirname(__FILE__), 'switch_choice'])
|
2
2
|
|
3
3
|
module MgCore
|
4
|
-
|
4
|
+
=begin
|
5
5
|
#Metric Tracking routes
|
6
6
|
class << ActionController::Routing::Routes;self;end.class_eval do
|
7
7
|
define_method :clear!, lambda {}
|
@@ -26,7 +26,7 @@ module MgCore
|
|
26
26
|
mg.connect '/public/:file', :controller => :mountain_goat, :action => :fetch
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
29
|
+
=end
|
30
30
|
module Controller
|
31
31
|
|
32
32
|
#This is just for testing
|
@@ -12,7 +12,7 @@
|
|
12
12
|
# switch_type:: Is this a switch-type choice
|
13
13
|
# deleted_at:: Is this choice still active?
|
14
14
|
class Mg::Choice < ActiveRecord::Base
|
15
|
-
|
15
|
+
self.table_name = 'mg_choices'
|
16
16
|
|
17
17
|
# ActiveRecord Associations
|
18
18
|
belongs_to :mg_test, :class_name => "Mg::Test"
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# deleted_at:: Is this goal deleted? (MG Console)
|
7
7
|
# is_hidden:: Is this goal hidden? (MG Console)
|
8
8
|
class Mg::Goal < ActiveRecord::Base
|
9
|
-
|
9
|
+
self.table_name = 'mg_goals'
|
10
10
|
|
11
11
|
# ActiveRecord Associations
|
12
12
|
has_many :mg_records, :class_name => "Mg::Record", :foreign_key => "mg_goal_id"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class Mg::GoalMetaType < ActiveRecord::Base
|
2
|
-
|
2
|
+
self.table_name = 'mg_goal_meta_types'
|
3
3
|
|
4
4
|
belongs_to :mg_goal, :class_name => "Mg::Goal"
|
5
5
|
has_many :gi_metas, :dependent => :destroy, :class_name => "Mg::GiMeta", :foreign_key => "mg_goal_meta_type_id"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class Mg::Report < ActiveRecord::Base
|
2
|
-
|
2
|
+
self.table_name = 'mg_reports'
|
3
3
|
|
4
4
|
has_many :mg_report_items, :class_name => "Mg::ReportItem", :foreign_key => "mg_report_id", :order => "mg_report_items.order"
|
5
5
|
has_many :reportables, :through => :mg_report_items
|
@@ -8,7 +8,7 @@
|
|
8
8
|
# deleted_at:: Is this test deleted? (MG Console)
|
9
9
|
# is_hidden:: Is this test hidden? (MG Console)
|
10
10
|
class Mg::Test < ActiveRecord::Base
|
11
|
-
|
11
|
+
self.table_name = 'mg_tests'
|
12
12
|
|
13
13
|
# ActiveRecord Associations
|
14
14
|
has_many :mg_choices, :class_name => "Mg::Choice", :foreign_key => "mg_test_id"
|
@@ -1,8 +1,14 @@
|
|
1
1
|
|
2
2
|
require 'rubygems'
|
3
|
+
|
3
4
|
require 'active_support'
|
4
5
|
require 'action_controller'
|
5
|
-
require '
|
6
|
+
require 'action_mailer'
|
7
|
+
require 'active_record'
|
8
|
+
# require 'action_controller/routing'
|
9
|
+
|
10
|
+
# This is a hack -- Rails 2 + Ruby 1.9.3 = helper issues
|
11
|
+
MissingSourceFile::REGEXPS << [/^cannot load such file -- (.+)$/i, 1]
|
6
12
|
|
7
13
|
require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mg/mg'])
|
8
14
|
require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mg/mountain_goat_controller'])
|
metadata
CHANGED
@@ -1,66 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mountain-goat
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 5
|
10
|
-
version: 1.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.6pre1
|
5
|
+
prerelease: 5
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Geoffrey Hayes
|
14
9
|
- meloncard.com
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-07-07 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: rspec
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &70104889515620 !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
19
|
+
requirements:
|
28
20
|
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 7
|
31
|
-
segments:
|
32
|
-
- 2
|
33
|
-
- 2
|
34
|
-
- 0
|
21
|
+
- !ruby/object:Gem::Version
|
35
22
|
version: 2.2.0
|
36
23
|
type: :development
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: rack-test
|
40
24
|
prerelease: false
|
41
|
-
|
25
|
+
version_requirements: *70104889515620
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rack-test
|
28
|
+
requirement: &70104889515060 !ruby/object:Gem::Requirement
|
42
29
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 7
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 5
|
50
|
-
- 6
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
51
33
|
version: 0.5.6
|
52
34
|
type: :development
|
53
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *70104889515060
|
54
37
|
description: A/B test everything and get awesome in-house analytics
|
55
|
-
email:
|
38
|
+
email:
|
56
39
|
- geoff@meloncard.com
|
57
40
|
executables: []
|
58
|
-
|
59
41
|
extensions: []
|
60
|
-
|
61
42
|
extra_rdoc_files: []
|
62
|
-
|
63
|
-
files:
|
43
|
+
files:
|
64
44
|
- .gitignore
|
65
45
|
- Gemfile
|
66
46
|
- Gemfile.lock
|
@@ -79,7 +59,7 @@ files:
|
|
79
59
|
- generators/mg/templates/update_mountain_goat_tables_v2.rb
|
80
60
|
- init.rb
|
81
61
|
- install.rb
|
82
|
-
- lib
|
62
|
+
- lib/.gitignore
|
83
63
|
- lib/mountain-goat/analytics.rb
|
84
64
|
- lib/mountain-goat/controllers/mg/choices_controller.rb
|
85
65
|
- lib/mountain-goat/controllers/mg/converts_controller.rb
|
@@ -91,6 +71,7 @@ files:
|
|
91
71
|
- lib/mountain-goat/controllers/mg/report_items_controller.rb
|
92
72
|
- lib/mountain-goat/controllers/mg/reports_controller.rb
|
93
73
|
- lib/mountain-goat/controllers/mg/tests_controller.rb
|
74
|
+
- lib/mountain-goat/helpers/mg/mg_helper.rb
|
94
75
|
- lib/mountain-goat/m_g.rb
|
95
76
|
- lib/mountain-goat/mg_core.rb
|
96
77
|
- lib/mountain-goat/models/mg/choice.rb
|
@@ -170,6 +151,7 @@ files:
|
|
170
151
|
- lib/mountain-goat/views/mountain_goat/mg/tests/index.html.erb
|
171
152
|
- lib/mountain-goat/views/mountain_goat/mg/tests/new.html.erb
|
172
153
|
- lib/mountain-goat/views/mountain_goat/mg/tests/show.html.erb
|
154
|
+
- lib/mountain_goat.rb
|
173
155
|
- mountain-goat.gemspec
|
174
156
|
- test/fixtures/mg_ci_metas.yml
|
175
157
|
- test/fixtures/mg_convert_meta_types.yml
|
@@ -194,41 +176,31 @@ files:
|
|
194
176
|
- test/mg_report_test.rb
|
195
177
|
- test/mg_reports_controller_test.rb
|
196
178
|
- test/test_helper.rb
|
197
|
-
has_rdoc: true
|
198
179
|
homepage: http://github.com/hayesgm/mountain_goat
|
199
180
|
licenses: []
|
200
|
-
|
201
181
|
post_install_message:
|
202
182
|
rdoc_options: []
|
203
|
-
|
204
|
-
require_paths:
|
183
|
+
require_paths:
|
205
184
|
- lib
|
206
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
207
186
|
none: false
|
208
|
-
requirements:
|
209
|
-
- -
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
|
212
|
-
|
213
|
-
- 0
|
214
|
-
version: "0"
|
215
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - ! '>='
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
192
|
none: false
|
217
|
-
requirements:
|
218
|
-
- -
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
|
221
|
-
segments:
|
222
|
-
- 0
|
223
|
-
version: "0"
|
193
|
+
requirements:
|
194
|
+
- - ! '>'
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: 1.3.1
|
224
197
|
requirements: []
|
225
|
-
|
226
198
|
rubyforge_project: mountain-goat
|
227
|
-
rubygems_version: 1.
|
199
|
+
rubygems_version: 1.8.17
|
228
200
|
signing_key:
|
229
201
|
specification_version: 3
|
230
202
|
summary: A/B Testing to the edge
|
231
|
-
test_files:
|
203
|
+
test_files:
|
232
204
|
- test/fixtures/mg_ci_metas.yml
|
233
205
|
- test/fixtures/mg_convert_meta_types.yml
|
234
206
|
- test/fixtures/mg_converts.yml
|