Commit Graph

63 Commits

Author SHA1 Message Date
John McAliley 23ce2b201e fix spec and use controller_path in mongoid 2013-04-01 22:40:09 -04:00
Ty Rauber 495e0a4273 Test coverage around impressions for non-restful controller actions. Added dummy route, index method, view and dummy controller spec. 2013-03-30 13:30:56 -07:00
Asif S Kalam 9104ddb7b7 Avoid updating timestamp when updating counter_cache. 2012-07-04 19:53:25 +05:30
Erik Michaels-Ober 63ea4d5663 Merge pull request #36 from challengepost/namespace_impressionable_methods
Namespace impressionable methods
2012-03-21 12:48:51 -07:00
Erik Michaels-Ober 95125f4627 Merge pull request #37 from challengepost/optimize_impressionist_count
Optimize impressionist_count query via arel count with distinct option
2012-03-21 12:47:18 -07:00
Ross Kaffenberger 3a64d4b9ab Add extract controller logic for bypassing impression to bot? method 2012-03-20 17:04:00 -04:00
Ross Kaffenberger fcfacdfdc9 Optimize impressionist_count query via arel count with distinct option 2012-03-19 18:27:41 -04:00
Ross Kaffenberger 51144d4c86 Typo in test 2012-03-19 16:04:43 -04:00
Ross Kaffenberger f59f897d25 Deprecation warning for counter_caching? 2012-03-19 15:56:42 -04:00
Ross Kaffenberger 4c2c09ca69 Rename instance method update_counter_cache => update_impressionist_counter_cache 2012-03-19 14:33:19 -04:00
Ross Kaffenberger 380f49cf62 namespace impressionable model module class methods with 'impressionist_' 2012-03-19 14:31:05 -04:00
Tute Costa 14067b0164 Requiring generic model code. 2012-03-15 09:42:32 -03:00
John McAliley 15f255ff98 Merge pull request #31 from tute/master
Adds mongo_mapper ORM support
2012-03-12 20:19:41 -07:00
Erik Michaels-Ober ccb575ba68 Specify special sqlite adapter on JRuby in top-level Gemfile 2012-03-12 19:21:32 -05:00
Erik Michaels-Ober d0e7326f2b Use special sqlite adapter on JRuby 2012-03-12 19:08:59 -05:00
Erik Michaels-Ober 474ea03281 Encoding is unnecessary and allow tests to pass in Ruby 1.8 2012-03-12 19:03:18 -05:00
Erik Michaels-Ober 174869a910 Don't start SimpleCov during CI builds 2012-03-12 18:32:24 -05:00
Erik Michaels-Ober 5640e3625a Revert "use relative_require so specs work with root Rakefile. TODO: remove"
This reverts commit 58467eba69, which was
causing specs to break on Ruby 1.8.
2012-03-12 18:32:23 -05:00
Tute Costa 1c3f809da8 Moves ORM specific code to lib/impressionist/:orm/models. Adds mongo_mapper models.
Adds config/initializers/impression.rb file on install.
2012-03-12 19:54:29 -03:00
Tute Costa 0e7d75d1ec Impressionable now extends ActiveSupport::Concern. Adds pg gem to test_app. 2012-03-12 18:10:25 -03:00
Tute Costa d1f1a352d4 Removing useless files/folders. 2012-03-12 17:27:26 -03:00
Erik Michaels-Ober 1b4f2f85f4 America won the Revolutionary War, so we can spell color however we like 2012-03-12 11:50:29 -05:00
John McAliley 58467eba69 use relative_require so specs work with root Rakefile. TODO: remove
test_app, mv spec dir under gem root and use dummy app instead
2012-03-11 21:47:31 -04:00
John McAliley 3f4f9f299e delete test generated migration and ignore it 2012-03-11 21:45:07 -04:00
Erik Michaels-Ober de59454742 Remove lots of (apparently) unused gems from Gemfile 2012-03-06 15:47:54 -08:00
Erik Michaels-Ober e7382069fa Mark failing tests as pending 2012-03-06 15:35:41 -08:00
Erik Michaels-Ober cdcb2a78c5 Use be_true instead of be true for cleaner output 2012-03-06 15:28:45 -08:00
Erik Michaels-Ober 8b4ecc2a2e Add simplecov 2012-03-06 15:24:13 -08:00
Erik Michaels-Ober 5e0319f646 Update migration 2012-03-06 15:24:00 -08:00
Erik Michaels-Ober 92f6e10304 Ignore Gemfile.lock in test_app 2012-03-06 15:23:15 -08:00
Erik Michaels-Ober 3a4c98307c Upgrade test_app to Rails 3.2.2 2012-03-06 15:19:07 -08:00
Erik Michaels-Ober b606e8b0a3 Move test dependencies into test_app 2012-03-06 15:11:51 -08:00
Erik Michaels-Ober 1174647779 Cleanup trailing whitespace
Trailing whitespace isn't friendly to git or vim users.
2012-03-06 14:04:32 -08:00
mio 7a113edeb2 added :dependent => :destroy to is_impressionable 2011-12-13 13:51:23 +01:00
John McAliley 2c4e81bc53 new gem spec, exclude test_app files and remove zentest/autotest from Gemfile 2011-11-30 12:25:17 -05:00
Cory Schires 5ed4d5f163 Forgot to remove an old migration. 2011-11-27 13:52:51 -06:00
Cory Schires 1a8d6c5a94 Updated readme. 2011-11-27 13:51:51 -06:00
Cory Schires e2ee248fba Added documentation for ability to set conditions for recording impressions. Also, Had to do some work to get the tests passing
Merge remote branch 'upstream/master'

Conflicts:
  test_app/Gemfile.lock
2011-11-27 13:39:45 -06:00
mio 5d77a1a2a0 added tests for uniqueness feature 2011-11-10 14:16:57 +01:00
mio e63e835936 added draft for impressionist(...) uniqueness 2011-11-09 18:10:35 +01:00
mio 09bfa2f27e implemented first version for unique check on controller level. 2011-11-07 20:41:51 +01:00
Cory Schires 5386874eca Better tests for counter caching. 2011-10-31 13:19:03 -05:00
Cory Schires 77219d23a5 Added tests for counter cache logic 2011-10-31 12:02:31 -05:00
John McAliley 436492333e add new count method tests 2011-06-03 12:08:41 -04:00
John McAliley ff5e76a60b add new method that takes options hash, instead of using ugly method names.
fix for postgres select bug
upgrades in test_app Gemfile
2011-06-03 11:54:58 -04:00
John McAliley ae5ae23e1c Add referrer to impression model.
remove unused features dir.
2011-06-03 11:52:42 -04:00
cowboycoded 405d376366 add session_hash to impression model
changed migration template
added upgrade migration template
added unique_impression_count_session to impressionable model
fixed controller_spec
2011-03-06 23:22:39 -05:00
cowboycoded bfb03eeb1c 2 model methods for unique impression account - based on unique ip_address & request_hash 2011-02-17 09:53:01 -05:00
cowboycoded 7c1ac8ccdc log the controller_name and action_name when impressionist is called manually inside a controller action 2011-02-17 08:11:06 -05:00
cowboycoded 68298065fd change PATH variable to IMPRESSIONIST_PATH. PATH used by Rails 2011-02-15 12:08:35 -05:00