impressionist 1.4.1 → 1.4.2

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.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -1
  3. data/Rakefile +17 -4
  4. data/app/models/impressionist/impressionable.rb +2 -2
  5. data/impressionist.gemspec +4 -3
  6. data/lib/impressionist/engine.rb +8 -25
  7. data/lib/impressionist/load.rb +6 -4
  8. data/lib/impressionist/models/active_record/impression.rb +5 -2
  9. data/lib/impressionist/models/mongoid/impression.rb +8 -15
  10. data/lib/impressionist/models/mongoid/impressionist/impressionable.rb +13 -32
  11. data/lib/impressionist/rails_toggle.rb +22 -0
  12. data/lib/impressionist/setup_association.rb +48 -0
  13. data/lib/impressionist/version.rb +1 -1
  14. data/tests/README +1 -0
  15. data/tests/spec/minitest_helper.rb +4 -0
  16. data/tests/spec/rails_toggle_spec.rb +26 -0
  17. data/tests/spec/setup_association_spec.rb +55 -0
  18. data/{test_app → tests/test_app}/.gitignore +0 -0
  19. data/{test_app → tests/test_app}/.rspec +0 -0
  20. data/{test_app → tests/test_app}/Gemfile +4 -15
  21. data/{test_app → tests/test_app}/README +0 -0
  22. data/{test_app → tests/test_app}/README.rdoc +0 -0
  23. data/{test_app → tests/test_app}/Rakefile +0 -0
  24. data/{test_app → tests/test_app}/app/assets/images/rails.png +0 -0
  25. data/{test_app → tests/test_app}/app/assets/javascripts/application.js +0 -0
  26. data/{test_app → tests/test_app}/app/assets/stylesheets/application.css +0 -0
  27. data/{test_app → tests/test_app}/app/controllers/application_controller.rb +0 -0
  28. data/{test_app → tests/test_app}/app/controllers/articles_controller.rb +0 -0
  29. data/{test_app → tests/test_app}/app/controllers/dummy_controller.rb +0 -0
  30. data/{test_app → tests/test_app}/app/controllers/posts_controller.rb +0 -0
  31. data/{test_app → tests/test_app}/app/controllers/widgets_controller.rb +0 -0
  32. data/{test_app → tests/test_app}/app/helpers/application_helper.rb +0 -0
  33. data/{test_app → tests/test_app}/app/mailers/.gitkeep +0 -0
  34. data/{test_app → tests/test_app}/app/models/.gitkeep +0 -0
  35. data/{test_app → tests/test_app}/app/models/article.rb +0 -0
  36. data/{test_app → tests/test_app}/app/models/dummy.rb +0 -0
  37. data/{test_app → tests/test_app}/app/models/post.rb +0 -0
  38. data/{test_app → tests/test_app}/app/models/user.rb +0 -0
  39. data/{test_app → tests/test_app}/app/models/widget.rb +0 -0
  40. data/{test_app → tests/test_app}/app/views/articles/index.html.erb +0 -0
  41. data/{test_app → tests/test_app}/app/views/articles/show.html.erb +0 -0
  42. data/{test_app → tests/test_app}/app/views/dummy/index.html.erb +0 -0
  43. data/{test_app → tests/test_app}/app/views/layouts/application.html.erb +0 -0
  44. data/{test_app → tests/test_app}/app/views/posts/edit.html.erb +0 -0
  45. data/{test_app → tests/test_app}/app/views/posts/index.html.erb +0 -0
  46. data/{test_app → tests/test_app}/app/views/posts/show.html.erb +0 -0
  47. data/{test_app → tests/test_app}/app/views/widgets/index.html.erb +0 -0
  48. data/{test_app → tests/test_app}/app/views/widgets/new.html.erb +0 -0
  49. data/{test_app → tests/test_app}/app/views/widgets/show.html.erb +0 -0
  50. data/{test_app → tests/test_app}/config.ru +0 -0
  51. data/{test_app → tests/test_app}/config/application.rb +0 -0
  52. data/{test_app → tests/test_app}/config/boot.rb +0 -0
  53. data/{test_app → tests/test_app}/config/cucumber.yml +0 -0
  54. data/{test_app → tests/test_app}/config/database.yml +0 -0
  55. data/{test_app → tests/test_app}/config/environment.rb +0 -0
  56. data/{test_app → tests/test_app}/config/environments/development.rb +0 -0
  57. data/{test_app → tests/test_app}/config/environments/pg_test.rb +0 -0
  58. data/{test_app → tests/test_app}/config/environments/production.rb +0 -0
  59. data/{test_app → tests/test_app}/config/environments/test.rb +0 -0
  60. data/{test_app → tests/test_app}/config/initializers/backtrace_silencers.rb +0 -0
  61. data/tests/test_app/config/initializers/impression.rb +2 -0
  62. data/{test_app → tests/test_app}/config/initializers/inflections.rb +0 -0
  63. data/{test_app → tests/test_app}/config/initializers/mime_types.rb +0 -0
  64. data/{test_app → tests/test_app}/config/initializers/secret_token.rb +0 -0
  65. data/{test_app → tests/test_app}/config/initializers/session_store.rb +0 -0
  66. data/{test_app → tests/test_app}/config/initializers/wrap_parameters.rb +0 -0
  67. data/{test_app → tests/test_app}/config/locales/en.yml +0 -0
  68. data/{test_app → tests/test_app}/config/routes.rb +0 -0
  69. data/{test_app → tests/test_app}/db/migrate/20110201153144_create_articles.rb +0 -0
  70. data/{test_app → tests/test_app}/db/migrate/20110210205028_create_posts.rb +0 -0
  71. data/{test_app → tests/test_app}/db/migrate/20111127184039_create_widgets.rb +0 -0
  72. data/tests/test_app/db/schema.rb +60 -0
  73. data/{test_app → tests/test_app}/db/seeds.rb +0 -0
  74. data/{test_app → tests/test_app}/lib/assets/.gitkeep +0 -0
  75. data/{test_app → tests/test_app}/lib/tasks/.gitkeep +0 -0
  76. data/{test_app → tests/test_app}/lib/tasks/cucumber.rake +0 -0
  77. data/{test_app → tests/test_app}/log/.gitkeep +0 -0
  78. data/{test_app → tests/test_app}/public/404.html +0 -0
  79. data/{test_app → tests/test_app}/public/422.html +0 -0
  80. data/{test_app → tests/test_app}/public/500.html +0 -0
  81. data/{test_app → tests/test_app}/public/favicon.ico +0 -0
  82. data/{test_app → tests/test_app}/public/images/rails.png +0 -0
  83. data/{test_app → tests/test_app}/public/index.html +0 -0
  84. data/{test_app → tests/test_app}/public/javascripts/application.js +0 -0
  85. data/{test_app → tests/test_app}/public/javascripts/controls.js +0 -0
  86. data/{test_app → tests/test_app}/public/javascripts/dragdrop.js +0 -0
  87. data/{test_app → tests/test_app}/public/javascripts/effects.js +0 -0
  88. data/{test_app → tests/test_app}/public/javascripts/prototype.js +0 -0
  89. data/{test_app → tests/test_app}/public/javascripts/rails.js +0 -0
  90. data/{test_app → tests/test_app}/public/robots.txt +0 -0
  91. data/{test_app → tests/test_app}/public/stylesheets/.gitkeep +0 -0
  92. data/{test_app → tests/test_app}/script/cucumber +0 -0
  93. data/{test_app → tests/test_app}/script/rails +0 -0
  94. data/{test_app → tests/test_app}/spec/controllers/articles_controller_spec.rb +0 -0
  95. data/{test_app → tests/test_app}/spec/controllers/dummy_controller_spec.rb +0 -0
  96. data/{test_app → tests/test_app}/spec/controllers/impressionist_uniqueness_spec.rb +45 -45
  97. data/{test_app → tests/test_app}/spec/controllers/posts_controller_spec.rb +0 -0
  98. data/{test_app → tests/test_app}/spec/controllers/widgets_controller_spec.rb +2 -2
  99. data/{test_app → tests/test_app}/spec/fixtures/articles.yml +0 -0
  100. data/{test_app → tests/test_app}/spec/fixtures/impressions.yml +0 -0
  101. data/{test_app → tests/test_app}/spec/fixtures/posts.yml +0 -0
  102. data/{test_app → tests/test_app}/spec/fixtures/widgets.yml +0 -0
  103. data/{test_app → tests/test_app}/spec/initializers/initializers_spec.rb +0 -0
  104. data/{test_app → tests/test_app}/spec/models/bots_spec.rb +0 -0
  105. data/{test_app → tests/test_app}/spec/models/counter_caching_spec.rb +0 -0
  106. data/{test_app → tests/test_app}/spec/models/model_spec.rb +0 -0
  107. data/{test_app → tests/test_app}/spec/rails_generators/rails_generators_spec.rb +0 -0
  108. data/tests/test_app/spec/spec_helper.rb +31 -0
  109. metadata +224 -99
  110. data/lib/impressionist/set_up_association.rb +0 -14
  111. data/spec/spec_helper.rb +0 -5
  112. data/test_app/config/initializers/impression.rb +0 -5
  113. data/test_app/spec/spec_helper.rb +0 -38
@@ -17,13 +17,13 @@ describe WidgetsController do
17
17
  end
18
18
 
19
19
  it "should not log impression when user-agent is in wildcard list" do
20
- request.stub!(:user_agent).and_return('somebot')
20
+ request.stub(:user_agent).and_return('somebot')
21
21
  get "show", :id=> 1
22
22
  Impression.all.size.should eq 11
23
23
  end
24
24
 
25
25
  it "should not log impression when user-agent is in the bot list" do
26
- request.stub!(:user_agent).and_return('Acoon Robot v1.50.001')
26
+ request.stub(:user_agent).and_return('Acoon Robot v1.50.001')
27
27
  get "show", :id=> 1
28
28
  Impression.all.size.should eq 11
29
29
  end
@@ -0,0 +1,31 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+
3
+ unless ENV['CI']
4
+ require 'simplecov'
5
+ SimpleCov.start 'rails'
6
+ end
7
+
8
+ require File.
9
+ expand_path("../../config/environment", __FILE__)
10
+
11
+ require 'rspec/rails'
12
+ require 'capybara/rails'
13
+
14
+ # Custom matchers and macros, etc...
15
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f|
16
+ require f
17
+ }
18
+
19
+ RSpec.configure do |config|
20
+ config.mock_with :rspec
21
+
22
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
23
+
24
+ config.use_transactional_fixtures = true
25
+
26
+ # make the rails logger usable in the tests as logger.xxx "..."
27
+ def logger
28
+ Rails.logger
29
+ end
30
+
31
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: impressionist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnmcaliley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-06 00:00:00.000000000 Z
11
+ date: 2013-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '3.1'
75
+ version: 3.2.12
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: '3.1'
82
+ version: 3.2.12
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rdoc
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,34 @@ dependencies:
150
150
  - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: minitest
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: minitest-rails
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
153
181
  description: Log impressions from controller actions or from a model
154
182
  email: john.mcaliley@gmail.com
155
183
  executables: []
@@ -187,101 +215,106 @@ files:
187
215
  - lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb
188
216
  - lib/impressionist/models/mongoid/impression.rb
189
217
  - lib/impressionist/models/mongoid/impressionist/impressionable.rb
190
- - lib/impressionist/set_up_association.rb
218
+ - lib/impressionist/rails_toggle.rb
219
+ - lib/impressionist/setup_association.rb
191
220
  - lib/impressionist/update_counters.rb
192
221
  - lib/impressionist/version.rb
193
222
  - logo.png
194
- - spec/spec_helper.rb
195
- - test_app/.gitignore
196
- - test_app/.rspec
197
- - test_app/Gemfile
198
- - test_app/README
199
- - test_app/README.rdoc
200
- - test_app/Rakefile
201
- - test_app/app/assets/images/rails.png
202
- - test_app/app/assets/javascripts/application.js
203
- - test_app/app/assets/stylesheets/application.css
204
- - test_app/app/controllers/application_controller.rb
205
- - test_app/app/controllers/articles_controller.rb
206
- - test_app/app/controllers/dummy_controller.rb
207
- - test_app/app/controllers/posts_controller.rb
208
- - test_app/app/controllers/widgets_controller.rb
209
- - test_app/app/helpers/application_helper.rb
210
- - test_app/app/mailers/.gitkeep
211
- - test_app/app/models/.gitkeep
212
- - test_app/app/models/article.rb
213
- - test_app/app/models/dummy.rb
214
- - test_app/app/models/post.rb
215
- - test_app/app/models/user.rb
216
- - test_app/app/models/widget.rb
217
- - test_app/app/views/articles/index.html.erb
218
- - test_app/app/views/articles/show.html.erb
219
- - test_app/app/views/dummy/index.html.erb
220
- - test_app/app/views/layouts/application.html.erb
221
- - test_app/app/views/posts/edit.html.erb
222
- - test_app/app/views/posts/index.html.erb
223
- - test_app/app/views/posts/show.html.erb
224
- - test_app/app/views/widgets/index.html.erb
225
- - test_app/app/views/widgets/new.html.erb
226
- - test_app/app/views/widgets/show.html.erb
227
- - test_app/config.ru
228
- - test_app/config/application.rb
229
- - test_app/config/boot.rb
230
- - test_app/config/cucumber.yml
231
- - test_app/config/database.yml
232
- - test_app/config/environment.rb
233
- - test_app/config/environments/development.rb
234
- - test_app/config/environments/pg_test.rb
235
- - test_app/config/environments/production.rb
236
- - test_app/config/environments/test.rb
237
- - test_app/config/initializers/backtrace_silencers.rb
238
- - test_app/config/initializers/impression.rb
239
- - test_app/config/initializers/inflections.rb
240
- - test_app/config/initializers/mime_types.rb
241
- - test_app/config/initializers/secret_token.rb
242
- - test_app/config/initializers/session_store.rb
243
- - test_app/config/initializers/wrap_parameters.rb
244
- - test_app/config/locales/en.yml
245
- - test_app/config/routes.rb
246
- - test_app/db/migrate/20110201153144_create_articles.rb
247
- - test_app/db/migrate/20110210205028_create_posts.rb
248
- - test_app/db/migrate/20111127184039_create_widgets.rb
249
- - test_app/db/seeds.rb
250
- - test_app/lib/assets/.gitkeep
251
- - test_app/lib/tasks/.gitkeep
252
- - test_app/lib/tasks/cucumber.rake
253
- - test_app/log/.gitkeep
254
- - test_app/public/404.html
255
- - test_app/public/422.html
256
- - test_app/public/500.html
257
- - test_app/public/favicon.ico
258
- - test_app/public/images/rails.png
259
- - test_app/public/index.html
260
- - test_app/public/javascripts/application.js
261
- - test_app/public/javascripts/controls.js
262
- - test_app/public/javascripts/dragdrop.js
263
- - test_app/public/javascripts/effects.js
264
- - test_app/public/javascripts/prototype.js
265
- - test_app/public/javascripts/rails.js
266
- - test_app/public/robots.txt
267
- - test_app/public/stylesheets/.gitkeep
268
- - test_app/script/cucumber
269
- - test_app/script/rails
270
- - test_app/spec/controllers/articles_controller_spec.rb
271
- - test_app/spec/controllers/dummy_controller_spec.rb
272
- - test_app/spec/controllers/impressionist_uniqueness_spec.rb
273
- - test_app/spec/controllers/posts_controller_spec.rb
274
- - test_app/spec/controllers/widgets_controller_spec.rb
275
- - test_app/spec/fixtures/articles.yml
276
- - test_app/spec/fixtures/impressions.yml
277
- - test_app/spec/fixtures/posts.yml
278
- - test_app/spec/fixtures/widgets.yml
279
- - test_app/spec/initializers/initializers_spec.rb
280
- - test_app/spec/models/bots_spec.rb
281
- - test_app/spec/models/counter_caching_spec.rb
282
- - test_app/spec/models/model_spec.rb
283
- - test_app/spec/rails_generators/rails_generators_spec.rb
284
- - test_app/spec/spec_helper.rb
223
+ - tests/README
224
+ - tests/spec/minitest_helper.rb
225
+ - tests/spec/rails_toggle_spec.rb
226
+ - tests/spec/setup_association_spec.rb
227
+ - tests/test_app/.gitignore
228
+ - tests/test_app/.rspec
229
+ - tests/test_app/Gemfile
230
+ - tests/test_app/README
231
+ - tests/test_app/README.rdoc
232
+ - tests/test_app/Rakefile
233
+ - tests/test_app/app/assets/images/rails.png
234
+ - tests/test_app/app/assets/javascripts/application.js
235
+ - tests/test_app/app/assets/stylesheets/application.css
236
+ - tests/test_app/app/controllers/application_controller.rb
237
+ - tests/test_app/app/controllers/articles_controller.rb
238
+ - tests/test_app/app/controllers/dummy_controller.rb
239
+ - tests/test_app/app/controllers/posts_controller.rb
240
+ - tests/test_app/app/controllers/widgets_controller.rb
241
+ - tests/test_app/app/helpers/application_helper.rb
242
+ - tests/test_app/app/mailers/.gitkeep
243
+ - tests/test_app/app/models/.gitkeep
244
+ - tests/test_app/app/models/article.rb
245
+ - tests/test_app/app/models/dummy.rb
246
+ - tests/test_app/app/models/post.rb
247
+ - tests/test_app/app/models/user.rb
248
+ - tests/test_app/app/models/widget.rb
249
+ - tests/test_app/app/views/articles/index.html.erb
250
+ - tests/test_app/app/views/articles/show.html.erb
251
+ - tests/test_app/app/views/dummy/index.html.erb
252
+ - tests/test_app/app/views/layouts/application.html.erb
253
+ - tests/test_app/app/views/posts/edit.html.erb
254
+ - tests/test_app/app/views/posts/index.html.erb
255
+ - tests/test_app/app/views/posts/show.html.erb
256
+ - tests/test_app/app/views/widgets/index.html.erb
257
+ - tests/test_app/app/views/widgets/new.html.erb
258
+ - tests/test_app/app/views/widgets/show.html.erb
259
+ - tests/test_app/config.ru
260
+ - tests/test_app/config/application.rb
261
+ - tests/test_app/config/boot.rb
262
+ - tests/test_app/config/cucumber.yml
263
+ - tests/test_app/config/database.yml
264
+ - tests/test_app/config/environment.rb
265
+ - tests/test_app/config/environments/development.rb
266
+ - tests/test_app/config/environments/pg_test.rb
267
+ - tests/test_app/config/environments/production.rb
268
+ - tests/test_app/config/environments/test.rb
269
+ - tests/test_app/config/initializers/backtrace_silencers.rb
270
+ - tests/test_app/config/initializers/impression.rb
271
+ - tests/test_app/config/initializers/inflections.rb
272
+ - tests/test_app/config/initializers/mime_types.rb
273
+ - tests/test_app/config/initializers/secret_token.rb
274
+ - tests/test_app/config/initializers/session_store.rb
275
+ - tests/test_app/config/initializers/wrap_parameters.rb
276
+ - tests/test_app/config/locales/en.yml
277
+ - tests/test_app/config/routes.rb
278
+ - tests/test_app/db/migrate/20110201153144_create_articles.rb
279
+ - tests/test_app/db/migrate/20110210205028_create_posts.rb
280
+ - tests/test_app/db/migrate/20111127184039_create_widgets.rb
281
+ - tests/test_app/db/schema.rb
282
+ - tests/test_app/db/seeds.rb
283
+ - tests/test_app/lib/assets/.gitkeep
284
+ - tests/test_app/lib/tasks/.gitkeep
285
+ - tests/test_app/lib/tasks/cucumber.rake
286
+ - tests/test_app/log/.gitkeep
287
+ - tests/test_app/public/404.html
288
+ - tests/test_app/public/422.html
289
+ - tests/test_app/public/500.html
290
+ - tests/test_app/public/favicon.ico
291
+ - tests/test_app/public/images/rails.png
292
+ - tests/test_app/public/index.html
293
+ - tests/test_app/public/javascripts/application.js
294
+ - tests/test_app/public/javascripts/controls.js
295
+ - tests/test_app/public/javascripts/dragdrop.js
296
+ - tests/test_app/public/javascripts/effects.js
297
+ - tests/test_app/public/javascripts/prototype.js
298
+ - tests/test_app/public/javascripts/rails.js
299
+ - tests/test_app/public/robots.txt
300
+ - tests/test_app/public/stylesheets/.gitkeep
301
+ - tests/test_app/script/cucumber
302
+ - tests/test_app/script/rails
303
+ - tests/test_app/spec/controllers/articles_controller_spec.rb
304
+ - tests/test_app/spec/controllers/dummy_controller_spec.rb
305
+ - tests/test_app/spec/controllers/impressionist_uniqueness_spec.rb
306
+ - tests/test_app/spec/controllers/posts_controller_spec.rb
307
+ - tests/test_app/spec/controllers/widgets_controller_spec.rb
308
+ - tests/test_app/spec/fixtures/articles.yml
309
+ - tests/test_app/spec/fixtures/impressions.yml
310
+ - tests/test_app/spec/fixtures/posts.yml
311
+ - tests/test_app/spec/fixtures/widgets.yml
312
+ - tests/test_app/spec/initializers/initializers_spec.rb
313
+ - tests/test_app/spec/models/bots_spec.rb
314
+ - tests/test_app/spec/models/counter_caching_spec.rb
315
+ - tests/test_app/spec/models/model_spec.rb
316
+ - tests/test_app/spec/rails_generators/rails_generators_spec.rb
317
+ - tests/test_app/spec/spec_helper.rb
285
318
  - upgrade_migrations/version_0_3_0.rb
286
319
  - upgrade_migrations/version_0_4_0.rb
287
320
  homepage: http://github.com/charlotte-ruby/impressionist
@@ -308,4 +341,96 @@ rubygems_version: 2.0.2
308
341
  signing_key:
309
342
  specification_version: 4
310
343
  summary: Easy way to log impressions
311
- test_files: []
344
+ test_files:
345
+ - tests/spec/minitest_helper.rb
346
+ - tests/spec/rails_toggle_spec.rb
347
+ - tests/spec/setup_association_spec.rb
348
+ - tests/test_app/Gemfile
349
+ - tests/test_app/README
350
+ - tests/test_app/README.rdoc
351
+ - tests/test_app/Rakefile
352
+ - tests/test_app/app/assets/images/rails.png
353
+ - tests/test_app/app/assets/javascripts/application.js
354
+ - tests/test_app/app/assets/stylesheets/application.css
355
+ - tests/test_app/app/controllers/application_controller.rb
356
+ - tests/test_app/app/controllers/articles_controller.rb
357
+ - tests/test_app/app/controllers/dummy_controller.rb
358
+ - tests/test_app/app/controllers/posts_controller.rb
359
+ - tests/test_app/app/controllers/widgets_controller.rb
360
+ - tests/test_app/app/helpers/application_helper.rb
361
+ - tests/test_app/app/mailers/.gitkeep
362
+ - tests/test_app/app/models/.gitkeep
363
+ - tests/test_app/app/models/article.rb
364
+ - tests/test_app/app/models/dummy.rb
365
+ - tests/test_app/app/models/post.rb
366
+ - tests/test_app/app/models/user.rb
367
+ - tests/test_app/app/models/widget.rb
368
+ - tests/test_app/app/views/articles/index.html.erb
369
+ - tests/test_app/app/views/articles/show.html.erb
370
+ - tests/test_app/app/views/dummy/index.html.erb
371
+ - tests/test_app/app/views/layouts/application.html.erb
372
+ - tests/test_app/app/views/posts/edit.html.erb
373
+ - tests/test_app/app/views/posts/index.html.erb
374
+ - tests/test_app/app/views/posts/show.html.erb
375
+ - tests/test_app/app/views/widgets/index.html.erb
376
+ - tests/test_app/app/views/widgets/new.html.erb
377
+ - tests/test_app/app/views/widgets/show.html.erb
378
+ - tests/test_app/config.ru
379
+ - tests/test_app/config/application.rb
380
+ - tests/test_app/config/boot.rb
381
+ - tests/test_app/config/cucumber.yml
382
+ - tests/test_app/config/database.yml
383
+ - tests/test_app/config/environment.rb
384
+ - tests/test_app/config/environments/development.rb
385
+ - tests/test_app/config/environments/pg_test.rb
386
+ - tests/test_app/config/environments/production.rb
387
+ - tests/test_app/config/environments/test.rb
388
+ - tests/test_app/config/initializers/backtrace_silencers.rb
389
+ - tests/test_app/config/initializers/impression.rb
390
+ - tests/test_app/config/initializers/inflections.rb
391
+ - tests/test_app/config/initializers/mime_types.rb
392
+ - tests/test_app/config/initializers/secret_token.rb
393
+ - tests/test_app/config/initializers/session_store.rb
394
+ - tests/test_app/config/initializers/wrap_parameters.rb
395
+ - tests/test_app/config/locales/en.yml
396
+ - tests/test_app/config/routes.rb
397
+ - tests/test_app/db/migrate/20110201153144_create_articles.rb
398
+ - tests/test_app/db/migrate/20110210205028_create_posts.rb
399
+ - tests/test_app/db/migrate/20111127184039_create_widgets.rb
400
+ - tests/test_app/db/schema.rb
401
+ - tests/test_app/db/seeds.rb
402
+ - tests/test_app/lib/assets/.gitkeep
403
+ - tests/test_app/lib/tasks/.gitkeep
404
+ - tests/test_app/lib/tasks/cucumber.rake
405
+ - tests/test_app/log/.gitkeep
406
+ - tests/test_app/public/404.html
407
+ - tests/test_app/public/422.html
408
+ - tests/test_app/public/500.html
409
+ - tests/test_app/public/favicon.ico
410
+ - tests/test_app/public/images/rails.png
411
+ - tests/test_app/public/index.html
412
+ - tests/test_app/public/javascripts/application.js
413
+ - tests/test_app/public/javascripts/controls.js
414
+ - tests/test_app/public/javascripts/dragdrop.js
415
+ - tests/test_app/public/javascripts/effects.js
416
+ - tests/test_app/public/javascripts/prototype.js
417
+ - tests/test_app/public/javascripts/rails.js
418
+ - tests/test_app/public/robots.txt
419
+ - tests/test_app/public/stylesheets/.gitkeep
420
+ - tests/test_app/script/cucumber
421
+ - tests/test_app/script/rails
422
+ - tests/test_app/spec/controllers/articles_controller_spec.rb
423
+ - tests/test_app/spec/controllers/dummy_controller_spec.rb
424
+ - tests/test_app/spec/controllers/impressionist_uniqueness_spec.rb
425
+ - tests/test_app/spec/controllers/posts_controller_spec.rb
426
+ - tests/test_app/spec/controllers/widgets_controller_spec.rb
427
+ - tests/test_app/spec/fixtures/articles.yml
428
+ - tests/test_app/spec/fixtures/impressions.yml
429
+ - tests/test_app/spec/fixtures/posts.yml
430
+ - tests/test_app/spec/fixtures/widgets.yml
431
+ - tests/test_app/spec/initializers/initializers_spec.rb
432
+ - tests/test_app/spec/models/bots_spec.rb
433
+ - tests/test_app/spec/models/counter_caching_spec.rb
434
+ - tests/test_app/spec/models/model_spec.rb
435
+ - tests/test_app/spec/rails_generators/rails_generators_spec.rb
436
+ - tests/test_app/spec/spec_helper.rb
@@ -1,14 +0,0 @@
1
- module Impressionist
2
- module SetUpAssociation
3
-
4
- def self.included(base)
5
- base.attr_accessible(:impressionable_type,:impressionable_id,
6
- :user_id,:controller_name,:action_name,:view_name,:request_hash,
7
- :ip_address,:session_hash,:message,:referrer)
8
-
9
- base.belongs_to(:impressionable, :polymorphic => true)
10
- end
11
-
12
- end
13
-
14
- end