rackamole 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/History.txt +4 -0
  2. data/README.txt +93 -0
  3. data/Rakefile +28 -0
  4. data/aaa.txt +36 -0
  5. data/bin/rackamole +8 -0
  6. data/images/mole_logo.png +0 -0
  7. data/images/mole_logo.psd +0 -0
  8. data/images/mole_logo_small.png +0 -0
  9. data/images/mole_logo_small.psd +0 -0
  10. data/lib/rackamole.rb +46 -0
  11. data/lib/rackamole/interceptor.rb +20 -0
  12. data/lib/rackamole/logger.rb +121 -0
  13. data/lib/rackamole/mole.rb +134 -0
  14. data/lib/rackamole/store/log.rb +55 -0
  15. data/lib/rackamole/store/mongo.rb +104 -0
  16. data/samples/rails/moled/README +243 -0
  17. data/samples/rails/moled/Rakefile +10 -0
  18. data/samples/rails/moled/app/controllers/application_controller.rb +13 -0
  19. data/samples/rails/moled/app/controllers/fred_controller.rb +4 -0
  20. data/samples/rails/moled/app/helpers/application_helper.rb +3 -0
  21. data/samples/rails/moled/app/views/fred/index.html.erb +1 -0
  22. data/samples/rails/moled/config/boot.rb +110 -0
  23. data/samples/rails/moled/config/database.yml +22 -0
  24. data/samples/rails/moled/config/environment.rb +45 -0
  25. data/samples/rails/moled/config/environments/development.rb +17 -0
  26. data/samples/rails/moled/config/environments/production.rb +28 -0
  27. data/samples/rails/moled/config/environments/test.rb +28 -0
  28. data/samples/rails/moled/config/initializers/backtrace_silencers.rb +7 -0
  29. data/samples/rails/moled/config/initializers/inflections.rb +10 -0
  30. data/samples/rails/moled/config/initializers/mime_types.rb +5 -0
  31. data/samples/rails/moled/config/initializers/new_rails_defaults.rb +19 -0
  32. data/samples/rails/moled/config/initializers/session_store.rb +15 -0
  33. data/samples/rails/moled/config/locales/en.yml +5 -0
  34. data/samples/rails/moled/config/routes.rb +43 -0
  35. data/samples/rails/moled/db/development.sqlite3 +0 -0
  36. data/samples/rails/moled/doc/README_FOR_APP +2 -0
  37. data/samples/rails/moled/log/development.log +30 -0
  38. data/samples/rails/moled/log/production.log +0 -0
  39. data/samples/rails/moled/log/server.log +0 -0
  40. data/samples/rails/moled/log/test.log +0 -0
  41. data/samples/rails/moled/public/404.html +30 -0
  42. data/samples/rails/moled/public/422.html +30 -0
  43. data/samples/rails/moled/public/500.html +30 -0
  44. data/samples/rails/moled/public/favicon.ico +0 -0
  45. data/samples/rails/moled/public/images/rails.png +0 -0
  46. data/samples/rails/moled/public/index.html +275 -0
  47. data/samples/rails/moled/public/javascripts/application.js +2 -0
  48. data/samples/rails/moled/public/javascripts/controls.js +963 -0
  49. data/samples/rails/moled/public/javascripts/dragdrop.js +973 -0
  50. data/samples/rails/moled/public/javascripts/effects.js +1128 -0
  51. data/samples/rails/moled/public/javascripts/prototype.js +4320 -0
  52. data/samples/rails/moled/public/robots.txt +5 -0
  53. data/samples/rails/moled/script/about +4 -0
  54. data/samples/rails/moled/script/console +3 -0
  55. data/samples/rails/moled/script/dbconsole +3 -0
  56. data/samples/rails/moled/script/destroy +3 -0
  57. data/samples/rails/moled/script/generate +3 -0
  58. data/samples/rails/moled/script/performance/benchmarker +3 -0
  59. data/samples/rails/moled/script/performance/profiler +3 -0
  60. data/samples/rails/moled/script/plugin +3 -0
  61. data/samples/rails/moled/script/runner +3 -0
  62. data/samples/rails/moled/script/server +3 -0
  63. data/samples/rails/moled/test/performance/browsing_test.rb +9 -0
  64. data/samples/rails/moled/test/test_helper.rb +38 -0
  65. data/samples/sinatra/moled.rb +20 -0
  66. data/spec/expected_results/mole_exception.log +17 -0
  67. data/spec/expected_results/mole_feature.log +15 -0
  68. data/spec/expected_results/mole_perf.log +16 -0
  69. data/spec/rackamole/interceptor_spec.rb +33 -0
  70. data/spec/rackamole/logger_spec.rb +55 -0
  71. data/spec/rackamole/mole_spec.rb +90 -0
  72. data/spec/rackamole/store/log_spec.rb +54 -0
  73. data/spec/rackamole/store/mongo_spec.rb +120 -0
  74. data/spec/rackamole_spec.rb +20 -0
  75. data/spec/spec_helper.rb +8 -0
  76. data/tasks/ann.rake +80 -0
  77. data/tasks/bones.rake +20 -0
  78. data/tasks/gem.rake +201 -0
  79. data/tasks/git.rake +40 -0
  80. data/tasks/notes.rake +27 -0
  81. data/tasks/post_load.rake +34 -0
  82. data/tasks/rdoc.rake +51 -0
  83. data/tasks/rubyforge.rake +55 -0
  84. data/tasks/setup.rb +292 -0
  85. data/tasks/spec.rake +54 -0
  86. data/tasks/svn.rake +47 -0
  87. data/tasks/test.rake +40 -0
  88. data/tasks/zentest.rake +36 -0
  89. metadata +198 -0
data/tasks/test.rake ADDED
@@ -0,0 +1,40 @@
1
+
2
+ if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
3
+ require 'rake/testtask'
4
+
5
+ namespace :test do
6
+
7
+ Rake::TestTask.new(:run) do |t|
8
+ t.libs = PROJ.libs
9
+ t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file]
10
+ else PROJ.test.files end
11
+ t.ruby_opts += PROJ.ruby_opts
12
+ t.ruby_opts += PROJ.test.opts
13
+ end
14
+
15
+ if HAVE_RCOV
16
+ desc 'Run rcov on the unit tests'
17
+ task :rcov => :clobber_rcov do
18
+ opts = PROJ.rcov.opts.dup << '-o' << PROJ.rcov.dir
19
+ opts = opts.join(' ')
20
+ files = if test(?f, PROJ.test.file) then [PROJ.test.file]
21
+ else PROJ.test.files end
22
+ files = files.join(' ')
23
+ sh "#{RCOV} #{files} #{opts}"
24
+ end
25
+
26
+ task :clobber_rcov do
27
+ rm_r 'coverage' rescue nil
28
+ end
29
+ end
30
+
31
+ end # namespace :test
32
+
33
+ desc 'Alias to test:run'
34
+ task :test => 'test:run'
35
+
36
+ task :clobber => 'test:clobber_rcov' if HAVE_RCOV
37
+
38
+ end
39
+
40
+ # EOF
@@ -0,0 +1,36 @@
1
+ if HAVE_ZENTEST
2
+
3
+ # --------------------------------------------------------------------------
4
+ if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
5
+ require 'autotest'
6
+
7
+ namespace :test do
8
+ task :autotest do
9
+ Autotest.run
10
+ end
11
+ end
12
+
13
+ desc "Run the autotest loop"
14
+ task :autotest => 'test:autotest'
15
+
16
+ end # if test
17
+
18
+ # --------------------------------------------------------------------------
19
+ if HAVE_SPEC_RAKE_SPECTASK and not PROJ.spec.files.to_a.empty?
20
+ require 'autotest/rspec'
21
+
22
+ namespace :spec do
23
+ task :autotest do
24
+ load '.autotest' if test(?f, '.autotest')
25
+ Autotest::Rspec.run
26
+ end
27
+ end
28
+
29
+ desc "Run the autotest loop"
30
+ task :autotest => 'spec:autotest'
31
+
32
+ end # if rspec
33
+
34
+ end # if HAVE_ZENTEST
35
+
36
+ # EOF
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rackamole
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Fernand Galiana
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-14 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: logging
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.2
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hitimes
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.3
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: mongodb-mongo
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.14.1
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: bones
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 2.5.1
54
+ version:
55
+ description: "The MOle is a rack application that monitors user interactions with your web site. We are not \n\
56
+ talking about counting page hits here. The MOle tracks all the information available to capture\n\
57
+ the essence of a user interaction with your application. Using the MOle, you are able to see\n\
58
+ which feature is a hit or a bust. As an added bonus, the MOle also track performance and exceptions \n\
59
+ that might have escaped your test suites or alpha env. To boot your managers will love you for it! \n\n\
60
+ Whether you are releasing a new application or improving on an old one, it is always a good thing \n\
61
+ to know if anyone is using your application and if they are, how they are using it. \n\
62
+ What features are your users most fond of and which features find their way into the abyss? \n\
63
+ You will be able to rapidly assess whether or not your application is a hit and if\n\
64
+ your coolest features are thought as such by your users. You will be able to elegantly record user\n\
65
+ interactions and leverage these findings for the next iteration of your application. "
66
+ email: fernand.galiana@gmail.com
67
+ executables:
68
+ - rackamole
69
+ extensions: []
70
+
71
+ extra_rdoc_files:
72
+ - History.txt
73
+ - README.txt
74
+ - aaa.txt
75
+ - bin/rackamole
76
+ - samples/rails/moled/public/robots.txt
77
+ files:
78
+ - History.txt
79
+ - README.txt
80
+ - Rakefile
81
+ - aaa.txt
82
+ - bin/rackamole
83
+ - images/mole_logo.png
84
+ - images/mole_logo.psd
85
+ - images/mole_logo_small.png
86
+ - images/mole_logo_small.psd
87
+ - lib/rackamole.rb
88
+ - lib/rackamole/interceptor.rb
89
+ - lib/rackamole/logger.rb
90
+ - lib/rackamole/mole.rb
91
+ - lib/rackamole/store/log.rb
92
+ - lib/rackamole/store/mongo.rb
93
+ - samples/rails/moled/README
94
+ - samples/rails/moled/Rakefile
95
+ - samples/rails/moled/app/controllers/application_controller.rb
96
+ - samples/rails/moled/app/controllers/fred_controller.rb
97
+ - samples/rails/moled/app/helpers/application_helper.rb
98
+ - samples/rails/moled/app/views/fred/index.html.erb
99
+ - samples/rails/moled/config/boot.rb
100
+ - samples/rails/moled/config/database.yml
101
+ - samples/rails/moled/config/environment.rb
102
+ - samples/rails/moled/config/environments/development.rb
103
+ - samples/rails/moled/config/environments/production.rb
104
+ - samples/rails/moled/config/environments/test.rb
105
+ - samples/rails/moled/config/initializers/backtrace_silencers.rb
106
+ - samples/rails/moled/config/initializers/inflections.rb
107
+ - samples/rails/moled/config/initializers/mime_types.rb
108
+ - samples/rails/moled/config/initializers/new_rails_defaults.rb
109
+ - samples/rails/moled/config/initializers/session_store.rb
110
+ - samples/rails/moled/config/locales/en.yml
111
+ - samples/rails/moled/config/routes.rb
112
+ - samples/rails/moled/db/development.sqlite3
113
+ - samples/rails/moled/doc/README_FOR_APP
114
+ - samples/rails/moled/log/development.log
115
+ - samples/rails/moled/log/production.log
116
+ - samples/rails/moled/log/server.log
117
+ - samples/rails/moled/log/test.log
118
+ - samples/rails/moled/public/404.html
119
+ - samples/rails/moled/public/422.html
120
+ - samples/rails/moled/public/500.html
121
+ - samples/rails/moled/public/favicon.ico
122
+ - samples/rails/moled/public/images/rails.png
123
+ - samples/rails/moled/public/index.html
124
+ - samples/rails/moled/public/javascripts/application.js
125
+ - samples/rails/moled/public/javascripts/controls.js
126
+ - samples/rails/moled/public/javascripts/dragdrop.js
127
+ - samples/rails/moled/public/javascripts/effects.js
128
+ - samples/rails/moled/public/javascripts/prototype.js
129
+ - samples/rails/moled/public/robots.txt
130
+ - samples/rails/moled/script/about
131
+ - samples/rails/moled/script/console
132
+ - samples/rails/moled/script/dbconsole
133
+ - samples/rails/moled/script/destroy
134
+ - samples/rails/moled/script/generate
135
+ - samples/rails/moled/script/performance/benchmarker
136
+ - samples/rails/moled/script/performance/profiler
137
+ - samples/rails/moled/script/plugin
138
+ - samples/rails/moled/script/runner
139
+ - samples/rails/moled/script/server
140
+ - samples/rails/moled/test/performance/browsing_test.rb
141
+ - samples/rails/moled/test/test_helper.rb
142
+ - samples/sinatra/moled.rb
143
+ - spec/expected_results/mole_exception.log
144
+ - spec/expected_results/mole_feature.log
145
+ - spec/expected_results/mole_perf.log
146
+ - spec/rackamole/interceptor_spec.rb
147
+ - spec/rackamole/logger_spec.rb
148
+ - spec/rackamole/mole_spec.rb
149
+ - spec/rackamole/store/log_spec.rb
150
+ - spec/rackamole/store/mongo_spec.rb
151
+ - spec/rackamole_spec.rb
152
+ - spec/spec_helper.rb
153
+ - tasks/ann.rake
154
+ - tasks/bones.rake
155
+ - tasks/gem.rake
156
+ - tasks/git.rake
157
+ - tasks/notes.rake
158
+ - tasks/post_load.rake
159
+ - tasks/rdoc.rake
160
+ - tasks/rubyforge.rake
161
+ - tasks/setup.rb
162
+ - tasks/spec.rake
163
+ - tasks/svn.rake
164
+ - tasks/test.rake
165
+ - tasks/zentest.rake
166
+ has_rdoc: true
167
+ homepage: http://rackamole.liquidrail.com
168
+ licenses: []
169
+
170
+ post_install_message:
171
+ rdoc_options:
172
+ - --main
173
+ - README.txt
174
+ require_paths:
175
+ - lib
176
+ required_ruby_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: "0"
181
+ version:
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: "0"
187
+ version:
188
+ requirements: []
189
+
190
+ rubyforge_project: !binary |
191
+ AA==
192
+
193
+ rubygems_version: 1.3.5
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: The MOle is a rack application that monitors user interactions with your web site
197
+ test_files: []
198
+