advert_selector 1.0.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -2
  3. data/app/controllers/advert_selector/banners_controller.rb +12 -3
  4. data/app/controllers/advert_selector/placements_controller.rb +8 -2
  5. data/app/models/advert_selector/banner.rb +4 -4
  6. data/app/models/advert_selector/helper_item.rb +1 -1
  7. data/app/models/advert_selector/placement.rb +1 -1
  8. data/lib/advert_selector/version.rb +1 -1
  9. data/test/dummy/config/application.rb +0 -6
  10. data/test/dummy/config/environments/development.rb +2 -10
  11. data/test/dummy/config/environments/production.rb +2 -0
  12. data/test/dummy/config/environments/test.rb +2 -6
  13. data/test/dummy/config/initializers/secret_token.rb +1 -0
  14. data/test/dummy/config/routes.rb +1 -1
  15. data/test/dummy/db/schema.rb +2 -1
  16. data/test/dummy/db/test.sqlite3 +0 -0
  17. data/test/dummy/log/test.log +12284 -0
  18. data/test/dummy/tmp/cache/943/570/advert_selector_errors +0 -0
  19. data/test/dummy/tmp/cache/A2C/760/AdvertSelectorBanner_207249520 +0 -0
  20. data/test/dummy/tmp/cache/A3E/CF0/AdvertSelectorBanner_394627963 +0 -0
  21. data/test/dummy/tmp/cache/A3F/BF0/AdvertSelectorBanner_814558298 +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/29d128e73dc86136df2098f4f07b329e +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/525d41e84c3ce46551409cdc850d503d +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/5652340e6744eb036df1049edad63537 +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/593b93ec1ad4cc8ce7600f8e12d88cc9 +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/707a1c711633514ec09e3b0db7af6a5a +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sprockets/944f8848b1aba2a21ebef0953b936bf6 +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/9ed04fae7d867f32cb42d0e04f63b8bf +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/a13866390005bb0cb0260ff16310f297 +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/b0dbd1b692646a34448176cbe61aaaa9 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/c86fef58da823d573f7f056e36cb7383 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/c92e792d86138e5fbfe5943b2d52f712 +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sprockets/e6c50dbeca8d4e64c67ba957a890391c +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sprockets/f01ec931c4f952cbfeb68d7af79916c8 +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sprockets/f91c23f8ecc5dc4e4b58788a10287786 +0 -0
  44. data/test/integration/banner_shows_test.rb +4 -4
  45. data/test/unit/advert_selector/banner_test.rb +4 -4
  46. data/test/unit/advert_selector/placement_test.rb +1 -1
  47. metadata +304 -327
  48. data/test/dummy/db/migrate/20120928114159_create_advert_selector_placements.advert_selector.rb +0 -12
  49. data/test/dummy/db/migrate/20120928114160_create_advert_selector_banners.advert_selector.rb +0 -24
  50. data/test/dummy/db/migrate/20120928114161_create_advert_selector_helper_items.advert_selector.rb +0 -19
@@ -1,12 +0,0 @@
1
- # This migration comes from advert_selector (originally 20120924165938)
2
- class CreateAdvertSelectorPlacements < ActiveRecord::Migration
3
- def change
4
- create_table :advert_selector_placements do |t|
5
- t.string :name, :null => false
6
- t.boolean :only_once_per_session
7
- t.text :conflicting_placements_array
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,24 +0,0 @@
1
- # This migration comes from advert_selector (originally 20120925122858)
2
- class CreateAdvertSelectorBanners < ActiveRecord::Migration
3
- def change
4
- create_table :advert_selector_banners do |t|
5
- t.string :name, :null => false
6
- t.datetime :start_time
7
- t.datetime :end_time
8
- t.integer :priority, :null => false, :default => 0
9
- t.integer :target_view_count
10
- t.integer :running_view_count, :null => false, :default => 0
11
- t.integer :frequency
12
- t.boolean :fast_mode, :null => false, :default => false
13
- t.text :comment
14
- t.boolean :confirmed, :null => false, :default => false
15
- t.integer :placement_id, :null => false
16
- #t.boolean :in_serve_cache, :null => false, :default => false
17
-
18
- t.timestamps
19
- end
20
-
21
- #add_index(:advert_selector_banners, [:in_serve_cache, :priority])
22
- add_index(:advert_selector_banners, [:end_time])
23
- end
24
- end
@@ -1,19 +0,0 @@
1
- # This migration comes from advert_selector (originally 20120926132649)
2
- class CreateAdvertSelectorHelperItems < ActiveRecord::Migration
3
- def change
4
- create_table :advert_selector_helper_items do |t|
5
- t.integer :banner_id
6
-
7
- #t.references :master, :polymorphic => true
8
-
9
- t.integer :position
10
- t.string :name
11
- t.boolean :content_for
12
- t.text :content
13
-
14
- t.timestamps
15
- end
16
-
17
- add_index(:advert_selector_helper_items, [:banner_id, :position], :name => 'index_banner_position')
18
- end
19
- end