gsiener-analytical 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. data/.document +5 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +56 -0
  4. data/Guardfile +8 -0
  5. data/LICENSE +20 -0
  6. data/README.rdoc +117 -0
  7. data/Rakefile +42 -0
  8. data/VERSION +1 -0
  9. data/analytical.gemspec +183 -0
  10. data/example/.gitignore +4 -0
  11. data/example/Gemfile +27 -0
  12. data/example/Gemfile.lock +80 -0
  13. data/example/README +244 -0
  14. data/example/Rakefile +10 -0
  15. data/example/app/controllers/application_controller.rb +6 -0
  16. data/example/app/controllers/page_controller.rb +18 -0
  17. data/example/app/helpers/application_helper.rb +2 -0
  18. data/example/app/helpers/page_helper.rb +2 -0
  19. data/example/app/views/layouts/application.html.erb +17 -0
  20. data/example/app/views/page/index.html.erb +6 -0
  21. data/example/app/views/page/test_a.html.erb +11 -0
  22. data/example/app/views/page/test_b.html.erb +7 -0
  23. data/example/config/analytical.yml +30 -0
  24. data/example/config/application.rb +46 -0
  25. data/example/config/boot.rb +6 -0
  26. data/example/config/database.yml +22 -0
  27. data/example/config/environment.rb +7 -0
  28. data/example/config/environments/development.rb +21 -0
  29. data/example/config/environments/production.rb +42 -0
  30. data/example/config/environments/test.rb +32 -0
  31. data/example/config/initializers/backtrace_silencers.rb +7 -0
  32. data/example/config/initializers/inflections.rb +10 -0
  33. data/example/config/initializers/mime_types.rb +5 -0
  34. data/example/config/initializers/secret_token.rb +7 -0
  35. data/example/config/initializers/session_store.rb +8 -0
  36. data/example/config/locales/en.yml +5 -0
  37. data/example/config/routes.rb +63 -0
  38. data/example/config.ru +4 -0
  39. data/example/db/seeds.rb +7 -0
  40. data/example/doc/README_FOR_APP +2 -0
  41. data/example/lib/tasks/.gitkeep +0 -0
  42. data/example/public/404.html +26 -0
  43. data/example/public/422.html +26 -0
  44. data/example/public/500.html +26 -0
  45. data/example/public/favicon.ico +0 -0
  46. data/example/public/images/rails.png +0 -0
  47. data/example/public/javascripts/application.js +2 -0
  48. data/example/public/javascripts/controls.js +965 -0
  49. data/example/public/javascripts/dragdrop.js +974 -0
  50. data/example/public/javascripts/effects.js +1123 -0
  51. data/example/public/javascripts/prototype.js +4874 -0
  52. data/example/public/javascripts/rails.js +118 -0
  53. data/example/public/robots.txt +5 -0
  54. data/example/public/stylesheets/.gitkeep +0 -0
  55. data/example/script/rails +9 -0
  56. data/example/test/functional/page_controller_test.rb +19 -0
  57. data/example/test/performance/browsing_test.rb +9 -0
  58. data/example/test/test_helper.rb +13 -0
  59. data/example/test/unit/helpers/page_helper_test.rb +4 -0
  60. data/example/vendor/plugins/.gitkeep +0 -0
  61. data/gsiener-analytical.gemspec +167 -0
  62. data/lib/analytical/api.rb +117 -0
  63. data/lib/analytical/bot_detector.rb +46 -0
  64. data/lib/analytical/command_store.rb +19 -0
  65. data/lib/analytical/modules/adroll.rb +38 -0
  66. data/lib/analytical/modules/adwords.rb +80 -0
  67. data/lib/analytical/modules/base.rb +83 -0
  68. data/lib/analytical/modules/chartbeat.rb +49 -0
  69. data/lib/analytical/modules/click_tale.rb +47 -0
  70. data/lib/analytical/modules/clicky.rb +49 -0
  71. data/lib/analytical/modules/comscore.rb +25 -0
  72. data/lib/analytical/modules/console.rb +82 -0
  73. data/lib/analytical/modules/crazy_egg.rb +24 -0
  74. data/lib/analytical/modules/google.rb +44 -0
  75. data/lib/analytical/modules/google_optimizer.rb +62 -0
  76. data/lib/analytical/modules/hubspot.rb +28 -0
  77. data/lib/analytical/modules/kiss_metrics.rb +54 -0
  78. data/lib/analytical/modules/loopfuse.rb +30 -0
  79. data/lib/analytical/modules/microsoft_ads.rb +58 -0
  80. data/lib/analytical/modules/mixpanel.rb +56 -0
  81. data/lib/analytical/modules/optimizely.rb +23 -0
  82. data/lib/analytical/modules/performancing.rb +34 -0
  83. data/lib/analytical/modules/quantcast.rb +49 -0
  84. data/lib/analytical/modules/reinvigorate.rb +48 -0
  85. data/lib/analytical/modules/totango.rb +49 -0
  86. data/lib/analytical/session_command_store.rb +39 -0
  87. data/lib/analytical.rb +56 -0
  88. data/rails/init.rb +1 -0
  89. data/spec/analytical/api_spec.rb +157 -0
  90. data/spec/analytical/bot_detector_spec.rb +24 -0
  91. data/spec/analytical/command_store_spec.rb +36 -0
  92. data/spec/analytical/modules/adroll_spec.rb +27 -0
  93. data/spec/analytical/modules/adwords_spec.rb +76 -0
  94. data/spec/analytical/modules/base_spec.rb +138 -0
  95. data/spec/analytical/modules/chartbeat_spec.rb +26 -0
  96. data/spec/analytical/modules/clicky_spec.rb +50 -0
  97. data/spec/analytical/modules/comscore_spec.rb +27 -0
  98. data/spec/analytical/modules/google_spec.rb +45 -0
  99. data/spec/analytical/modules/kiss_metrics_spec.rb +51 -0
  100. data/spec/analytical/modules/mixpanel_spec.rb +71 -0
  101. data/spec/analytical/modules/optimizely_spec.rb +26 -0
  102. data/spec/analytical/modules/quantcast.rb +26 -0
  103. data/spec/analytical/modules/reinvigorate_spec.rb +35 -0
  104. data/spec/analytical/session_command_store_spec.rb +50 -0
  105. data/spec/analytical_spec.rb +79 -0
  106. data/spec/config/analytical.yml +9 -0
  107. data/spec/spec.opts +5 -0
  108. data/spec/spec_helper.rb +19 -0
  109. metadata +294 -0
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source :rubygems
2
+
3
+ group :development do
4
+ gem 'jeweler'
5
+ gem 'rspec', '1.3'
6
+ gem 'diff-lcs'
7
+ gem 'rails', '~> 2.3'
8
+ gem 'guard'
9
+ gem 'guard-rspec'
10
+ gem 'rb-fsevent'
11
+ gem 'growl'
12
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,56 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (2.3.11)
5
+ actionpack (= 2.3.11)
6
+ actionpack (2.3.11)
7
+ activesupport (= 2.3.11)
8
+ rack (~> 1.1.0)
9
+ activerecord (2.3.11)
10
+ activesupport (= 2.3.11)
11
+ activeresource (2.3.11)
12
+ activesupport (= 2.3.11)
13
+ activesupport (2.3.11)
14
+ configuration (1.2.0)
15
+ diff-lcs (1.1.2)
16
+ git (1.2.5)
17
+ growl (1.0.3)
18
+ guard (0.3.0)
19
+ open_gem (~> 1.4.2)
20
+ thor (~> 0.14.6)
21
+ guard-rspec (0.2.0)
22
+ guard (>= 0.2.2)
23
+ jeweler (1.5.2)
24
+ bundler (~> 1.0.0)
25
+ git (>= 1.2.5)
26
+ rake
27
+ launchy (0.3.7)
28
+ configuration (>= 0.0.5)
29
+ rake (>= 0.8.1)
30
+ open_gem (1.4.2)
31
+ launchy (~> 0.3.5)
32
+ rack (1.1.2)
33
+ rails (2.3.11)
34
+ actionmailer (= 2.3.11)
35
+ actionpack (= 2.3.11)
36
+ activerecord (= 2.3.11)
37
+ activeresource (= 2.3.11)
38
+ activesupport (= 2.3.11)
39
+ rake (>= 0.8.3)
40
+ rake (0.8.7)
41
+ rb-fsevent (0.4.0)
42
+ rspec (1.3.0)
43
+ thor (0.14.6)
44
+
45
+ PLATFORMS
46
+ ruby
47
+
48
+ DEPENDENCIES
49
+ diff-lcs
50
+ growl
51
+ guard
52
+ guard-rspec
53
+ jeweler
54
+ rails (~> 2.3)
55
+ rb-fsevent
56
+ rspec (= 1.3)
data/Guardfile ADDED
@@ -0,0 +1,8 @@
1
+ # A sample Guardfile
2
+ # More info at http://github.com/guard/guard#readme
3
+
4
+ guard 'rspec', :version => 1 do
5
+ watch(/^spec\/(.*)_spec.rb/)
6
+ watch(/^spec\/spec_helper.rb/) { "spec" }
7
+ watch(/^lib\/(.*)\.rb/) { |m| "spec/lib/#{m[1]}_spec.rb" }
8
+ end
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Joshua Krall
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,117 @@
1
+ = Analytical
2
+
3
+ Gem for managing multiple analytics services in your rails app.
4
+
5
+ Service implementations include:
6
+ * Google Analytics
7
+ * Google Adwords (conversion tracking)
8
+ * Clicky[http://getclicky.com]
9
+ * KISSMetrics[http://kissmetrics.com]
10
+ * Hubspot[http://hubspot.com]
11
+ * CrazyEgg[http://www.crazyegg.com]
12
+ * Chartbeat[http://chartbeat.com]
13
+ * {ComScore Direct}[http://direct.comscore.com]
14
+ * Optimizely[http://www.optimizely.com]
15
+ * Loopfuse
16
+ * Clicktale
17
+ * Google Website Optimizer
18
+ * Performancing
19
+ * Quantcast[http://www.quantcast.com]
20
+
21
+ == Usage
22
+
23
+ Add the following to your controllers:
24
+
25
+ analytical :modules=>[:console, :google, :clicky]
26
+
27
+ Add a configuration file (config/analytical.yml) to declare your API keys, like so:
28
+
29
+ google:
30
+ key: UA-5555555-5
31
+ clicky:
32
+ key: 55555
33
+
34
+ Then, in your template files, you'll want to add the analytical helper methods for initializing the tracking javascript:
35
+
36
+ <!DOCTYPE html>
37
+ <html>
38
+ <head>
39
+ <%= raw analytical.head_prepend_javascript %>
40
+ <title>Example</title>
41
+ <%= stylesheet_link_tag :all %>
42
+ <%= javascript_include_tag :defaults %>
43
+ <%= csrf_meta_tag %>
44
+ <% analytical.identify '5', :email=>'josh@transfs.com' %>
45
+ <%= raw analytical.head_append_javascript %>
46
+ </head>
47
+ <body>
48
+ <%= raw analytical.body_prepend_javascript %>
49
+ <%= yield %>
50
+ <%= raw analytical.body_append_javascript %>
51
+ </body>
52
+ </html>
53
+
54
+ Note the example above also includes an identify() command that will apply to every page. More likely, you'll want to make this identify() command conditional so that it only applies when you have a logged-in user:
55
+
56
+ <% analytical.identify(current_user.id, :email=>current_user.email) if current_user %>
57
+
58
+ You can sprinkle the track() and event() tracking methods throughout your views & controllers as needed.
59
+
60
+ analytical.track '/a/really/nice/url'
61
+ analytical.event 'Some Awesome Event', :with=>:data
62
+
63
+ By default, Analytical will be disabled in all environments except 'production'... and it will enable the Console module only. To change this behavior, you can pass a Proc/lambda to the :disable_if option, as well as specify the :development_modules that you want to use:
64
+
65
+ analytical :modules=>[:google], :development_modules=>[], :disable_if=>lambda{ |controller| controller.i_can_haz_tracking? }
66
+
67
+ == Adding new modules
68
+
69
+ New modules should be fairly easy to add. Follow the structure that I've used in the Clicky, Google, and KISSMetrics modules... and you should be fine. All modules should include the Analytical::Base::Api module, so that they have some default behavior for methods that they don't support or need.
70
+
71
+ == Session-based command queues
72
+
73
+ By default, any Analytical commands that are queued in a controller that subsequently redirects won't be emitted to the client. This is because the redirect triggers a new request, and everything is cleared out at the beginning of each request.
74
+
75
+ However, if you would like to be able to queue commands between requests... there's a new option that supports this behavior:
76
+
77
+ analytical :modules=>[:console, :google], :use_session_store=>true
78
+
79
+ This will store the queued commands in the user session, clearing them out when they are emitted to the client, but allowing you to make calls like:
80
+
81
+ analytical.track 'something'
82
+
83
+ ... in your controller. After a redirect, the corresponding track() call will be emitted in the next request made by the client.
84
+ NOTE: This is new and somewhat experimental, and could cause problems if you store large amounts of data in the session. (there is a 4k limit to session data)
85
+
86
+
87
+ == Note on Patches/Pull Requests
88
+
89
+ I would be extremely happy to accept contributions to this project! If you think something should work differently, send me a message and I'd love to discuss your ideas. Even better:
90
+
91
+ * Fork the project.
92
+ * Make your feature addition or bug fix.
93
+ * Add specs for it. This is important so I don't break it in a future version unintentionally.
94
+ * Commit, do not mess with rakefile, version, or history.
95
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
96
+ * Send me a pull request. Bonus points for topic branches.
97
+
98
+ == Current Contributors
99
+
100
+ These fine folks have contributed patches and new features to this project:
101
+
102
+ * {Adam Anderson}[http://github.com/scudco]
103
+ * {Bryan Liles}[http://github.com/bryanl]
104
+ * {Nathan Phelps}[http://github.com/nwp]
105
+ * {Adam Anderson}[http://github.com/scudco]
106
+ * {Kevin Menard}[http://github.com/nirvdrum]
107
+ * {Ablyamitov Ablyamit}[http://github.com/unlimit]
108
+ * {Kurt Werle}[http://github.com/kwerle]
109
+ * {Olivier Lauzon}[http://github.com/olauzon]
110
+ * {Chris Ricca}[https://github.com/ChrisRicca]
111
+
112
+ Thanks guys!
113
+
114
+
115
+ == Copyright
116
+
117
+ Copyright (c) 2010 Joshua Krall. See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,42 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "gsiener-analytical"
8
+ gem.summary = %Q{Gem for managing multiple analytics services in your rails app.}
9
+ gem.description = %Q{Gem for managing multiple analytics services in your rails app.}
10
+ gem.email = "josh@feefighters.com"
11
+ gem.homepage = "http://github.com/gsiener/analytical"
12
+ gem.authors = ["Joshua Krall", "Nathan Phelps", "Adam Anderson", "Kevin Menard", "Ablyamitov Ablyamit", "Kurt Werle", "Olivier Lauzon"]
13
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
+ end
15
+ Jeweler::GemcutterTasks.new
16
+ rescue LoadError
17
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
18
+ end
19
+
20
+ require 'spec/rake/spectask'
21
+ Spec::Rake::SpecTask.new(:spec) do |spec|
22
+ spec.libs << 'lib' << 'spec'
23
+ spec.spec_files = FileList['spec/**/*_spec.rb']
24
+ end
25
+
26
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
27
+ spec.libs << 'lib' << 'spec'
28
+ spec.pattern = 'spec/**/*_spec.rb'
29
+ spec.rcov = true
30
+ end
31
+
32
+ task :default => :spec
33
+
34
+ require 'rake/rdoctask'
35
+ Rake::RDocTask.new do |rdoc|
36
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
37
+
38
+ rdoc.rdoc_dir = 'rdoc'
39
+ rdoc.title = "analytical #{version}"
40
+ rdoc.rdoc_files.include('README*')
41
+ rdoc.rdoc_files.include('lib/**/*.rb')
42
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.10.0
@@ -0,0 +1,183 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{analytical}
8
+ s.version = "2.9.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Joshua Krall", "Nathan Phelps", "Adam Anderson", "Kevin Menard", "Ablyamitov Ablyamit", "Kurt Werle", "Olivier Lauzon"]
12
+ s.date = %q{2011-04-20}
13
+ s.description = %q{Gem for managing multiple analytics services in your rails app.}
14
+ s.email = %q{josh@feefighters.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "Guardfile",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "analytical.gemspec",
29
+ "example/.gitignore",
30
+ "example/Gemfile",
31
+ "example/Gemfile.lock",
32
+ "example/README",
33
+ "example/Rakefile",
34
+ "example/app/controllers/application_controller.rb",
35
+ "example/app/controllers/page_controller.rb",
36
+ "example/app/helpers/application_helper.rb",
37
+ "example/app/helpers/page_helper.rb",
38
+ "example/app/views/layouts/application.html.erb",
39
+ "example/app/views/page/index.html.erb",
40
+ "example/app/views/page/test_a.html.erb",
41
+ "example/app/views/page/test_b.html.erb",
42
+ "example/config.ru",
43
+ "example/config/analytical.yml",
44
+ "example/config/application.rb",
45
+ "example/config/boot.rb",
46
+ "example/config/database.yml",
47
+ "example/config/environment.rb",
48
+ "example/config/environments/development.rb",
49
+ "example/config/environments/production.rb",
50
+ "example/config/environments/test.rb",
51
+ "example/config/initializers/backtrace_silencers.rb",
52
+ "example/config/initializers/inflections.rb",
53
+ "example/config/initializers/mime_types.rb",
54
+ "example/config/initializers/secret_token.rb",
55
+ "example/config/initializers/session_store.rb",
56
+ "example/config/locales/en.yml",
57
+ "example/config/routes.rb",
58
+ "example/db/seeds.rb",
59
+ "example/doc/README_FOR_APP",
60
+ "example/lib/tasks/.gitkeep",
61
+ "example/public/404.html",
62
+ "example/public/422.html",
63
+ "example/public/500.html",
64
+ "example/public/favicon.ico",
65
+ "example/public/images/rails.png",
66
+ "example/public/javascripts/application.js",
67
+ "example/public/javascripts/controls.js",
68
+ "example/public/javascripts/dragdrop.js",
69
+ "example/public/javascripts/effects.js",
70
+ "example/public/javascripts/prototype.js",
71
+ "example/public/javascripts/rails.js",
72
+ "example/public/robots.txt",
73
+ "example/public/stylesheets/.gitkeep",
74
+ "example/script/rails",
75
+ "example/test/functional/page_controller_test.rb",
76
+ "example/test/performance/browsing_test.rb",
77
+ "example/test/test_helper.rb",
78
+ "example/test/unit/helpers/page_helper_test.rb",
79
+ "example/vendor/plugins/.gitkeep",
80
+ "lib/analytical.rb",
81
+ "lib/analytical/api.rb",
82
+ "lib/analytical/bot_detector.rb",
83
+ "lib/analytical/command_store.rb",
84
+ "lib/analytical/modules/adroll.rb",
85
+ "lib/analytical/modules/adwords.rb",
86
+ "lib/analytical/modules/base.rb",
87
+ "lib/analytical/modules/chartbeat.rb",
88
+ "lib/analytical/modules/click_tale.rb",
89
+ "lib/analytical/modules/clicky.rb",
90
+ "lib/analytical/modules/comscore.rb",
91
+ "lib/analytical/modules/console.rb",
92
+ "lib/analytical/modules/crazy_egg.rb",
93
+ "lib/analytical/modules/google.rb",
94
+ "lib/analytical/modules/google_optimizer.rb",
95
+ "lib/analytical/modules/hubspot.rb",
96
+ "lib/analytical/modules/kiss_metrics.rb",
97
+ "lib/analytical/modules/loopfuse.rb",
98
+ "lib/analytical/modules/microsoft_ads.rb",
99
+ "lib/analytical/modules/mixpanel.rb",
100
+ "lib/analytical/modules/optimizely.rb",
101
+ "lib/analytical/modules/performancing.rb",
102
+ "lib/analytical/modules/quantcast.rb",
103
+ "lib/analytical/session_command_store.rb",
104
+ "rails/init.rb",
105
+ "spec/analytical/api_spec.rb",
106
+ "spec/analytical/bot_detector_spec.rb",
107
+ "spec/analytical/command_store_spec.rb",
108
+ "spec/analytical/modules/adroll_spec.rb",
109
+ "spec/analytical/modules/adwords_spec.rb",
110
+ "spec/analytical/modules/base_spec.rb",
111
+ "spec/analytical/modules/chartbeat_spec.rb",
112
+ "spec/analytical/modules/clicky_spec.rb",
113
+ "spec/analytical/modules/comscore_spec.rb",
114
+ "spec/analytical/modules/google_spec.rb",
115
+ "spec/analytical/modules/kiss_metrics_spec.rb",
116
+ "spec/analytical/modules/mixpanel_spec.rb",
117
+ "spec/analytical/modules/optimizely_spec.rb",
118
+ "spec/analytical/modules/quantcast.rb",
119
+ "spec/analytical/session_command_store_spec.rb",
120
+ "spec/analytical_spec.rb",
121
+ "spec/config/analytical.yml",
122
+ "spec/spec.opts",
123
+ "spec/spec_helper.rb"
124
+ ]
125
+ s.homepage = %q{http://github.com/jkrall/analytical}
126
+ s.require_paths = ["lib"]
127
+ s.rubygems_version = %q{1.3.7}
128
+ s.summary = %q{Gem for managing multiple analytics services in your rails app.}
129
+ s.test_files = [
130
+ "spec/analytical/api_spec.rb",
131
+ "spec/analytical/bot_detector_spec.rb",
132
+ "spec/analytical/command_store_spec.rb",
133
+ "spec/analytical/modules/adroll_spec.rb",
134
+ "spec/analytical/modules/adwords_spec.rb",
135
+ "spec/analytical/modules/base_spec.rb",
136
+ "spec/analytical/modules/chartbeat_spec.rb",
137
+ "spec/analytical/modules/clicky_spec.rb",
138
+ "spec/analytical/modules/comscore_spec.rb",
139
+ "spec/analytical/modules/google_spec.rb",
140
+ "spec/analytical/modules/kiss_metrics_spec.rb",
141
+ "spec/analytical/modules/mixpanel_spec.rb",
142
+ "spec/analytical/modules/optimizely_spec.rb",
143
+ "spec/analytical/modules/quantcast.rb",
144
+ "spec/analytical/session_command_store_spec.rb",
145
+ "spec/analytical_spec.rb",
146
+ "spec/spec_helper.rb"
147
+ ]
148
+
149
+ if s.respond_to? :specification_version then
150
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
151
+ s.specification_version = 3
152
+
153
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
154
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
155
+ s.add_development_dependency(%q<rspec>, ["= 1.3"])
156
+ s.add_development_dependency(%q<diff-lcs>, [">= 0"])
157
+ s.add_development_dependency(%q<rails>, ["~> 2.3"])
158
+ s.add_development_dependency(%q<guard>, [">= 0"])
159
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
160
+ s.add_development_dependency(%q<rb-fsevent>, [">= 0"])
161
+ s.add_development_dependency(%q<growl>, [">= 0"])
162
+ else
163
+ s.add_dependency(%q<jeweler>, [">= 0"])
164
+ s.add_dependency(%q<rspec>, ["= 1.3"])
165
+ s.add_dependency(%q<diff-lcs>, [">= 0"])
166
+ s.add_dependency(%q<rails>, ["~> 2.3"])
167
+ s.add_dependency(%q<guard>, [">= 0"])
168
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
169
+ s.add_dependency(%q<rb-fsevent>, [">= 0"])
170
+ s.add_dependency(%q<growl>, [">= 0"])
171
+ end
172
+ else
173
+ s.add_dependency(%q<jeweler>, [">= 0"])
174
+ s.add_dependency(%q<rspec>, ["= 1.3"])
175
+ s.add_dependency(%q<diff-lcs>, [">= 0"])
176
+ s.add_dependency(%q<rails>, ["~> 2.3"])
177
+ s.add_dependency(%q<guard>, [">= 0"])
178
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
179
+ s.add_dependency(%q<rb-fsevent>, [">= 0"])
180
+ s.add_dependency(%q<growl>, [">= 0"])
181
+ end
182
+ end
183
+
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ db/*.sqlite3
3
+ log/*.log
4
+ tmp/**/*
data/example/Gemfile ADDED
@@ -0,0 +1,27 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'rails'
4
+
5
+ # Bundle edge Rails instead:
6
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
+
8
+ gem 'sqlite3-ruby', :require => 'sqlite3'
9
+ gem 'analytical', :path => '..'
10
+
11
+ # Use unicorn as the web server
12
+ # gem 'unicorn'
13
+
14
+ # Deploy with Capistrano
15
+ # gem 'capistrano'
16
+
17
+ # Bundle the extra gems:
18
+ # gem 'bj'
19
+ # gem 'nokogiri', '1.4.1'
20
+ # gem 'sqlite3-ruby', :require => 'sqlite3'
21
+ # gem 'aws-s3', :require => 'aws/s3'
22
+
23
+ # Bundle gems for certain environments:
24
+ # gem 'rspec', :group => :test
25
+ # group :test do
26
+ # gem 'webrat'
27
+ # end
@@ -0,0 +1,80 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ analytical (2.4.0)
5
+ activesupport
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ abstract (1.0.0)
11
+ actionmailer (3.0.0)
12
+ actionpack (= 3.0.0)
13
+ mail (~> 2.2.5)
14
+ actionpack (3.0.0)
15
+ activemodel (= 3.0.0)
16
+ activesupport (= 3.0.0)
17
+ builder (~> 2.1.2)
18
+ erubis (~> 2.6.6)
19
+ i18n (~> 0.4.1)
20
+ rack (~> 1.2.1)
21
+ rack-mount (~> 0.6.12)
22
+ rack-test (~> 0.5.4)
23
+ tzinfo (~> 0.3.23)
24
+ activemodel (3.0.0)
25
+ activesupport (= 3.0.0)
26
+ builder (~> 2.1.2)
27
+ i18n (~> 0.4.1)
28
+ activerecord (3.0.0)
29
+ activemodel (= 3.0.0)
30
+ activesupport (= 3.0.0)
31
+ arel (~> 1.0.0)
32
+ tzinfo (~> 0.3.23)
33
+ activeresource (3.0.0)
34
+ activemodel (= 3.0.0)
35
+ activesupport (= 3.0.0)
36
+ activesupport (3.0.0)
37
+ arel (1.0.1)
38
+ activesupport (~> 3.0.0)
39
+ builder (2.1.2)
40
+ erubis (2.6.6)
41
+ abstract (>= 1.0.0)
42
+ i18n (0.4.1)
43
+ mail (2.2.5)
44
+ activesupport (>= 2.3.6)
45
+ mime-types
46
+ treetop (>= 1.4.5)
47
+ mime-types (1.16)
48
+ polyglot (0.3.1)
49
+ rack (1.2.1)
50
+ rack-mount (0.6.13)
51
+ rack (>= 1.0.0)
52
+ rack-test (0.5.4)
53
+ rack (>= 1.0)
54
+ rails (3.0.0)
55
+ actionmailer (= 3.0.0)
56
+ actionpack (= 3.0.0)
57
+ activerecord (= 3.0.0)
58
+ activeresource (= 3.0.0)
59
+ activesupport (= 3.0.0)
60
+ bundler (~> 1.0.0)
61
+ railties (= 3.0.0)
62
+ railties (3.0.0)
63
+ actionpack (= 3.0.0)
64
+ activesupport (= 3.0.0)
65
+ rake (>= 0.8.4)
66
+ thor (~> 0.14.0)
67
+ rake (0.8.7)
68
+ sqlite3-ruby (1.3.1)
69
+ thor (0.14.0)
70
+ treetop (1.4.8)
71
+ polyglot (>= 0.3.1)
72
+ tzinfo (0.3.23)
73
+
74
+ PLATFORMS
75
+ ruby
76
+
77
+ DEPENDENCIES
78
+ analytical!
79
+ rails
80
+ sqlite3-ruby