mitamirri 0.13.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/.document +5 -0
  2. data/.gitignore +26 -0
  3. data/README.rdoc +117 -0
  4. data/Rakefile +26 -0
  5. data/VERSION +1 -0
  6. data/app/controllers/application_controller.rb +10 -0
  7. data/app/controllers/trackable_actions_controller.rb +10 -0
  8. data/app/controllers/trackable_sessions_controller.rb +100 -0
  9. data/app/helpers/application_helper.rb +2 -0
  10. data/app/models/trackable_action.rb +193 -0
  11. data/app/models/trackable_location.rb +19 -0
  12. data/app/models/trackable_session.rb +352 -0
  13. data/app/models/trackable_stat.rb +64 -0
  14. data/app/views/layouts/application.html.erb +20 -0
  15. data/app/views/trackable_sessions/_keywords_graph.html.erb +24 -0
  16. data/app/views/trackable_sessions/_print_buttons.html.erb +3 -0
  17. data/app/views/trackable_sessions/_sessions.html.erb +26 -0
  18. data/app/views/trackable_sessions/_top_referrers.html.erb +24 -0
  19. data/app/views/trackable_sessions/_traffic_summary_all.html.erb +64 -0
  20. data/app/views/trackable_sessions/_traffic_summary_by_kind.html.erb +48 -0
  21. data/app/views/trackable_sessions/_visits_graph.html.erb +25 -0
  22. data/app/views/trackable_sessions/content.html.erb +119 -0
  23. data/app/views/trackable_sessions/explorer.html.erb +67 -0
  24. data/app/views/trackable_sessions/export.xls.erb +5 -0
  25. data/app/views/trackable_sessions/index.html.erb +47 -0
  26. data/app/views/trackable_sessions/intersite.html.erb +97 -0
  27. data/app/views/trackable_sessions/leads.html.erb +98 -0
  28. data/app/views/trackable_sessions/show.html.erb +113 -0
  29. data/app/views/trackable_sessions/visitor_profile.html.erb +114 -0
  30. data/config/boot.rb +110 -0
  31. data/config/database.yml +0 -0
  32. data/config/environment.rb +24 -0
  33. data/config/environments/development.rb +17 -0
  34. data/config/environments/production.rb +28 -0
  35. data/config/environments/test.rb +31 -0
  36. data/config/initializers/backtrace_silencers.rb +7 -0
  37. data/config/initializers/database.rb +1 -0
  38. data/config/initializers/inflections.rb +10 -0
  39. data/config/initializers/mime_types.rb +5 -0
  40. data/config/initializers/new_rails_defaults.rb +21 -0
  41. data/config/initializers/session_store.rb +15 -0
  42. data/config/locales/en.yml +5 -0
  43. data/config/routes.rb +11 -0
  44. data/db/development.sqlite3 +0 -0
  45. data/db/migrate/20100810173533_create_trackable_sessions.rb +23 -0
  46. data/db/migrate/20100810173605_create_trackable_actions.rb +20 -0
  47. data/db/test.sqlite3 +1 -0
  48. data/doc/README_FOR_APP +2 -0
  49. data/init.rb +8 -0
  50. data/lib/mitamirri/content_report.rb +75 -0
  51. data/lib/mitamirri/helper.rb +106 -0
  52. data/lib/mitamirri/intersite_traffic_report.rb +122 -0
  53. data/lib/mitamirri/leads_report.rb +90 -0
  54. data/lib/mitamirri/session_report.rb +219 -0
  55. data/lib/mitamirri/stat_report.rb +216 -0
  56. data/lib/mitamirri/tasks.rb +27 -0
  57. data/lib/mitamirri/visitor_profile_report.rb +127 -0
  58. data/lib/mitamirri.rb +15 -0
  59. data/log/development.log +0 -0
  60. data/log/production.log +0 -0
  61. data/log/server.log +0 -0
  62. data/log/test.log +0 -0
  63. data/mitamirri.gemspec +125 -0
  64. data/public/stylesheets/mitamirri.css +736 -0
  65. data/script/about +4 -0
  66. data/script/console +3 -0
  67. data/script/dbconsole +3 -0
  68. data/script/destroy +3 -0
  69. data/script/generate +3 -0
  70. data/script/performance/benchmarker +3 -0
  71. data/script/performance/profiler +3 -0
  72. data/script/plugin +3 -0
  73. data/script/runner +3 -0
  74. data/script/server +3 -0
  75. data/spec/controllers/trackable_actions_controller_spec.rb +5 -0
  76. data/spec/controllers/trackable_sessions_controller_spec.rb +5 -0
  77. data/spec/custom_matchers.rb +23 -0
  78. data/spec/helpers/application_helper_spec.rb +57 -0
  79. data/spec/lib/content_report_spec.rb +37 -0
  80. data/spec/lib/intersite_traffic_report_spec.rb +51 -0
  81. data/spec/lib/leads_report_spec.rb +46 -0
  82. data/spec/lib/session_report_spec.rb +107 -0
  83. data/spec/lib/stat_report_spec.rb +106 -0
  84. data/spec/models/trackable_action_spec.rb +42 -0
  85. data/spec/models/trackable_session_spec.rb +154 -0
  86. data/spec/rcov.opts +4 -0
  87. data/spec/schema.rb +34 -0
  88. data/spec/spec.opts +4 -0
  89. data/spec/spec_helper.rb +32 -0
  90. metadata +155 -0
data/spec/rcov.opts ADDED
@@ -0,0 +1,4 @@
1
+ --include-file 'campfire/app,campfire/lib'
2
+ --exclude 'camp/,spec,gems'
3
+ --rails
4
+ --threshold 100
data/spec/schema.rb ADDED
@@ -0,0 +1,34 @@
1
+ ActiveRecord::Schema.define(:version => 0) do
2
+ create_table "trackable_actions", :force => true do |t|
3
+ t.integer "trackable_session_id"
4
+ t.string "kind"
5
+ t.string "label"
6
+ t.string "referrer"
7
+ t.string "url"
8
+ t.datetime "created_at"
9
+ t.datetime "updated_at"
10
+ end
11
+
12
+ add_index "trackable_actions", ["kind"], :name => "index_trackable_actions_on_kind"
13
+ add_index "trackable_actions", ["label"], :name => "index_trackable_actions_on_label"
14
+ add_index "trackable_actions", ["trackable_session_id"], :name => "index_trackable_actions_on_trackable_session_id"
15
+ add_index "trackable_actions", ["url"], :name => "index_trackable_actions_on_url"
16
+
17
+ create_table "trackable_sessions", :force => true do |t|
18
+ t.string "kind"
19
+ t.string "ip_address"
20
+ t.string "site"
21
+ t.string "referrer"
22
+ t.string "session_id"
23
+ t.boolean "new_visit"
24
+ t.datetime "created_at"
25
+ t.datetime "updated_at"
26
+ end
27
+
28
+ add_index "trackable_sessions", ["ip_address"], :name => "index_trackable_sessions_on_ip_address"
29
+ add_index "trackable_sessions", ["kind"], :name => "index_trackable_sessions_on_kind"
30
+ add_index "trackable_sessions", ["new_visit"], :name => "index_trackable_sessions_on_new_visit"
31
+ add_index "trackable_sessions", ["referrer"], :name => "index_trackable_sessions_on_referrer"
32
+ add_index "trackable_sessions", ["session_id"], :name => "index_trackable_sessions_on_session_id"
33
+ add_index "trackable_sessions", ["site"], :name => "index_trackable_sessions_on_site"
34
+ end
data/spec/spec.opts ADDED
@@ -0,0 +1,4 @@
1
+ --colour
2
+ --format profile:doc/profile.txt
3
+ --format progress
4
+ --loadby mtime
@@ -0,0 +1,32 @@
1
+ require File.dirname(__FILE__) + "/custom_matchers"
2
+
3
+
4
+ ENV["RAILS_ENV"] ||= 'test'
5
+ require "config/environment" unless defined?(RAILS_ROOT)
6
+ require 'spec/rails'
7
+
8
+ pwd = File.dirname(__FILE__)
9
+ # Requires supporting files with custom matchers and macros, etc,
10
+ # in ./support/ and its subdirectories.
11
+ Dir["#{pwd}/support/**/*.rb"].each {|f| require f}
12
+
13
+ Spec::Runner.configure do |config|
14
+ config.include(CustomMatcher)
15
+ end
16
+
17
+ # Helper methods
18
+
19
+ Spec::Matchers.define :equal_the_set do |_array_2|
20
+ match do |_array_1|
21
+ (_array_1 - _array_2).size == 0
22
+ end
23
+ failure_message_for_should do |_array_1|
24
+ "expected the sets to be the same (differences: #{(_array_1 - _array_2).inspect})"
25
+ end
26
+ failure_message_for_should_not do |_array_1|
27
+ "expected the sets to be different"
28
+ end
29
+ description do
30
+ "expected a two arrays to contain the same elements in any order"
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,155 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mitamirri
3
+ version: !ruby/object:Gem::Version
4
+ hash: 59
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 13
9
+ - 8
10
+ version: 0.13.8
11
+ platform: ruby
12
+ authors:
13
+ - Corey Ehmke
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-07-28 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: View and action tracking for Rails 2.x.
23
+ email: corey@seologic.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README.rdoc
30
+ files:
31
+ - .document
32
+ - .gitignore
33
+ - README.rdoc
34
+ - Rakefile
35
+ - VERSION
36
+ - app/controllers/application_controller.rb
37
+ - app/controllers/trackable_actions_controller.rb
38
+ - app/controllers/trackable_sessions_controller.rb
39
+ - app/helpers/application_helper.rb
40
+ - app/models/trackable_action.rb
41
+ - app/models/trackable_location.rb
42
+ - app/models/trackable_session.rb
43
+ - app/models/trackable_stat.rb
44
+ - app/views/layouts/application.html.erb
45
+ - app/views/trackable_sessions/_keywords_graph.html.erb
46
+ - app/views/trackable_sessions/_print_buttons.html.erb
47
+ - app/views/trackable_sessions/_sessions.html.erb
48
+ - app/views/trackable_sessions/_top_referrers.html.erb
49
+ - app/views/trackable_sessions/_traffic_summary_all.html.erb
50
+ - app/views/trackable_sessions/_traffic_summary_by_kind.html.erb
51
+ - app/views/trackable_sessions/_visits_graph.html.erb
52
+ - app/views/trackable_sessions/content.html.erb
53
+ - app/views/trackable_sessions/explorer.html.erb
54
+ - app/views/trackable_sessions/export.xls.erb
55
+ - app/views/trackable_sessions/index.html.erb
56
+ - app/views/trackable_sessions/intersite.html.erb
57
+ - app/views/trackable_sessions/leads.html.erb
58
+ - app/views/trackable_sessions/show.html.erb
59
+ - app/views/trackable_sessions/visitor_profile.html.erb
60
+ - config/boot.rb
61
+ - config/database.yml
62
+ - config/environment.rb
63
+ - config/environments/development.rb
64
+ - config/environments/production.rb
65
+ - config/environments/test.rb
66
+ - config/initializers/backtrace_silencers.rb
67
+ - config/initializers/database.rb
68
+ - config/initializers/inflections.rb
69
+ - config/initializers/mime_types.rb
70
+ - config/initializers/new_rails_defaults.rb
71
+ - config/initializers/session_store.rb
72
+ - config/locales/en.yml
73
+ - config/routes.rb
74
+ - db/development.sqlite3
75
+ - db/migrate/20100810173533_create_trackable_sessions.rb
76
+ - db/migrate/20100810173605_create_trackable_actions.rb
77
+ - db/test.sqlite3
78
+ - doc/README_FOR_APP
79
+ - init.rb
80
+ - lib/mitamirri.rb
81
+ - lib/mitamirri/content_report.rb
82
+ - lib/mitamirri/helper.rb
83
+ - lib/mitamirri/intersite_traffic_report.rb
84
+ - lib/mitamirri/leads_report.rb
85
+ - lib/mitamirri/session_report.rb
86
+ - lib/mitamirri/stat_report.rb
87
+ - lib/mitamirri/tasks.rb
88
+ - lib/mitamirri/visitor_profile_report.rb
89
+ - log/development.log
90
+ - log/production.log
91
+ - log/server.log
92
+ - log/test.log
93
+ - mitamirri.gemspec
94
+ - public/stylesheets/mitamirri.css
95
+ - script/about
96
+ - script/console
97
+ - script/dbconsole
98
+ - script/destroy
99
+ - script/generate
100
+ - script/performance/benchmarker
101
+ - script/performance/profiler
102
+ - script/plugin
103
+ - script/runner
104
+ - script/server
105
+ - spec/controllers/trackable_actions_controller_spec.rb
106
+ - spec/controllers/trackable_sessions_controller_spec.rb
107
+ - spec/custom_matchers.rb
108
+ - spec/helpers/application_helper_spec.rb
109
+ - spec/lib/content_report_spec.rb
110
+ - spec/lib/intersite_traffic_report_spec.rb
111
+ - spec/lib/leads_report_spec.rb
112
+ - spec/lib/session_report_spec.rb
113
+ - spec/lib/stat_report_spec.rb
114
+ - spec/models/trackable_action_spec.rb
115
+ - spec/models/trackable_session_spec.rb
116
+ - spec/rcov.opts
117
+ - spec/schema.rb
118
+ - spec/spec.opts
119
+ - spec/spec_helper.rb
120
+ has_rdoc: true
121
+ homepage: http://github.com/Bantik/mitamarri
122
+ licenses: []
123
+
124
+ post_install_message:
125
+ rdoc_options:
126
+ - --charset=UTF-8
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
136
+ - 0
137
+ version: "0"
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
146
+ version: "0"
147
+ requirements: []
148
+
149
+ rubyforge_project:
150
+ rubygems_version: 1.3.7
151
+ signing_key:
152
+ specification_version: 3
153
+ summary: View and action tracking for Rails 2.x.
154
+ test_files: []
155
+