ad_man 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/ad_man/advertisements.js +46 -0
- data/app/assets/javascripts/ad_man/application.js +15 -0
- data/app/assets/javascripts/ad_man/keywords.js +2 -0
- data/app/assets/stylesheets/ad_man/advertisements.css +4 -0
- data/app/assets/stylesheets/ad_man/application.css +13 -0
- data/app/assets/stylesheets/ad_man/keywords.css +4 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/ad_man/advertisements_controller.rb +99 -0
- data/app/controllers/ad_man/application_controller.rb +4 -0
- data/app/controllers/ad_man/keywords_controller.rb +77 -0
- data/app/helpers/ad_man/advertisements_helper.rb +4 -0
- data/app/helpers/ad_man/application_helper.rb +28 -0
- data/app/helpers/ad_man/keywords_helper.rb +4 -0
- data/app/models/ad_man/advertisement.rb +54 -0
- data/app/models/ad_man/keyword.rb +22 -0
- data/app/views/ad_man/advertisements/_form.html.erb +57 -0
- data/app/views/ad_man/advertisements/edit.html.erb +6 -0
- data/app/views/ad_man/advertisements/index.html.erb +48 -0
- data/app/views/ad_man/advertisements/new.html.erb +5 -0
- data/app/views/ad_man/advertisements/show.html.erb +39 -0
- data/app/views/ad_man/keywords/_form.html.erb +22 -0
- data/app/views/ad_man/keywords/edit.html.erb +6 -0
- data/app/views/ad_man/keywords/index.html.erb +16 -0
- data/app/views/ad_man/keywords/new.html.erb +5 -0
- data/app/views/ad_man/keywords/show.html.erb +39 -0
- data/app/views/layouts/ad_man/application.html.erb +15 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20120808085322_create_ad_man_advertisements.rb +10 -0
- data/db/migrate/20120808085909_add_attachment_ad_banner_to_advertisements.rb +11 -0
- data/db/migrate/20120808091446_create_ad_man_keywords.rb +9 -0
- data/db/migrate/20120808095330_add_display_count_to_ad_man_advertisements.rb +5 -0
- data/db/migrate/20120808095742_add_priority_to_ad_man_advertisements.rb +6 -0
- data/db/migrate/20120808100040_add_start_date_and_end_date_to_ad_man_advertisements.rb +8 -0
- data/db/migrate/20120808101547_add_keyword_id_to_ad_man_advertisements.rb +5 -0
- data/db/migrate/20120809065243_add_click_count_to_ad_man_advertisements.rb +5 -0
- data/lib/ad_man/engine.rb +14 -0
- data/lib/ad_man/version.rb +3 -0
- data/lib/ad_man.rb +9 -0
- data/lib/tasks/ad_man_tasks.rake +4 -0
- data/test/ad_man_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +15 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/ad_man.rb +22 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +38 -0
- data/test/dummy/log/development.log +35507 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/original/FabTable_01.jpg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/small/FabTable_01.jpg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/728x90_2MM.jpg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/d893babe671c41118c1fece177e0a21a.jpeg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/728x90_2MM.jpg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/d893babe671c41118c1fece177e0a21a.jpeg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/banner/1-NR-728x90-cool-b.gif +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/leaderboard/1-NR-728x90-cool-b.gif +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/original/1-NR-728x90-cool-b.gif +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/banner/9241eb4107b24c588c0ca0042534c03e.png +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/leaderboard/9241eb4107b24c588c0ca0042534c03e.png +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/original/9241eb4107b24c588c0ca0042534c03e.png +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/banner/d893babe671c41118c1fece177e0a21a.jpeg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/leaderboard/d893babe671c41118c1fece177e0a21a.jpeg +0 -0
- data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/original/d893babe671c41118c1fece177e0a21a.jpeg +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/C02/0A0/sprockets%2F625bdc26802f8c498265353870490587 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CE4/9E0/sprockets%2F3f5956491fde7227a651e20e4d756b1a +0 -0
- data/test/dummy/tmp/cache/assets/D31/910/sprockets%2Fc1c18d3d756fe2777d18b236a0aea400 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D3A/220/sprockets%2Fce53c5b352a83645d36d96aff26020fb +0 -0
- data/test/dummy/tmp/cache/assets/D3E/AF0/sprockets%2F317881d54abbd5721deee7d204e70e66 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/DBA/3C0/sprockets%2F9ca84f8118d29c3fd7bfd2876f83dc7e +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DF7/090/sprockets%2Fb3b1a32b0f923d6741fd5dacdf9f59ab +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/fixtures/ad_man/advertisements.yml +9 -0
- data/test/fixtures/ad_man/keywords.yml +7 -0
- data/test/functional/ad_man/advertisements_controller_test.rb +51 -0
- data/test/functional/ad_man/keywords_controller_test.rb +51 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/ad_man/advertisement_test.rb +9 -0
- data/test/unit/ad_man/keyword_test.rb +9 -0
- data/test/unit/helpers/ad_man/advertisements_helper_test.rb +6 -0
- data/test/unit/helpers/ad_man/keywords_helper_test.rb +6 -0
- metadata +280 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/original/FabTable_01.jpg
ADDED
Binary file
|
data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/small/FabTable_01.jpg
ADDED
Binary file
|
data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/728x90_2MM.jpg
ADDED
Binary file
|
Binary file
|
data/test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/728x90_2MM.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
5357
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module AdMan
|
4
|
+
class AdvertisementsControllerTest < ActionController::TestCase
|
5
|
+
setup do
|
6
|
+
@advertisement = advertisements(:one)
|
7
|
+
end
|
8
|
+
|
9
|
+
test "should get index" do
|
10
|
+
get :index
|
11
|
+
assert_response :success
|
12
|
+
assert_not_nil assigns(:advertisements)
|
13
|
+
end
|
14
|
+
|
15
|
+
test "should get new" do
|
16
|
+
get :new
|
17
|
+
assert_response :success
|
18
|
+
end
|
19
|
+
|
20
|
+
test "should create advertisement" do
|
21
|
+
assert_difference('Advertisement.count') do
|
22
|
+
post :create, advertisement: { destination_url: @advertisement.destination_url, title: @advertisement.title }
|
23
|
+
end
|
24
|
+
|
25
|
+
assert_redirected_to advertisement_path(assigns(:advertisement))
|
26
|
+
end
|
27
|
+
|
28
|
+
test "should show advertisement" do
|
29
|
+
get :show, id: @advertisement
|
30
|
+
assert_response :success
|
31
|
+
end
|
32
|
+
|
33
|
+
test "should get edit" do
|
34
|
+
get :edit, id: @advertisement
|
35
|
+
assert_response :success
|
36
|
+
end
|
37
|
+
|
38
|
+
test "should update advertisement" do
|
39
|
+
put :update, id: @advertisement, advertisement: { destination_url: @advertisement.destination_url, title: @advertisement.title }
|
40
|
+
assert_redirected_to advertisement_path(assigns(:advertisement))
|
41
|
+
end
|
42
|
+
|
43
|
+
test "should destroy advertisement" do
|
44
|
+
assert_difference('Advertisement.count', -1) do
|
45
|
+
delete :destroy, id: @advertisement
|
46
|
+
end
|
47
|
+
|
48
|
+
assert_redirected_to advertisements_path
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module AdMan
|
4
|
+
class KeywordsControllerTest < ActionController::TestCase
|
5
|
+
setup do
|
6
|
+
@keyword = keywords(:one)
|
7
|
+
end
|
8
|
+
|
9
|
+
test "should get index" do
|
10
|
+
get :index
|
11
|
+
assert_response :success
|
12
|
+
assert_not_nil assigns(:keywords)
|
13
|
+
end
|
14
|
+
|
15
|
+
test "should get new" do
|
16
|
+
get :new
|
17
|
+
assert_response :success
|
18
|
+
end
|
19
|
+
|
20
|
+
test "should create keyword" do
|
21
|
+
assert_difference('Keyword.count') do
|
22
|
+
post :create, keyword: { name: @keyword.name }
|
23
|
+
end
|
24
|
+
|
25
|
+
assert_redirected_to keyword_path(assigns(:keyword))
|
26
|
+
end
|
27
|
+
|
28
|
+
test "should show keyword" do
|
29
|
+
get :show, id: @keyword
|
30
|
+
assert_response :success
|
31
|
+
end
|
32
|
+
|
33
|
+
test "should get edit" do
|
34
|
+
get :edit, id: @keyword
|
35
|
+
assert_response :success
|
36
|
+
end
|
37
|
+
|
38
|
+
test "should update keyword" do
|
39
|
+
put :update, id: @keyword, keyword: { name: @keyword.name }
|
40
|
+
assert_redirected_to keyword_path(assigns(:keyword))
|
41
|
+
end
|
42
|
+
|
43
|
+
test "should destroy keyword" do
|
44
|
+
assert_difference('Keyword.count', -1) do
|
45
|
+
delete :destroy, id: @keyword
|
46
|
+
end
|
47
|
+
|
48
|
+
assert_redirected_to keywords_path
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,280 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ad_man
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- David Strand
|
9
|
+
- Tyler Hu
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-08-09 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.2.7
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 3.2.7
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: paperclip
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 3.1.2
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.1.2
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sqlite3
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
description: An advertising manager mountable engine
|
64
|
+
email:
|
65
|
+
- connect@kudelabs.com
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- app/assets/javascripts/ad_man/advertisements.js
|
71
|
+
- app/assets/javascripts/ad_man/application.js
|
72
|
+
- app/assets/javascripts/ad_man/keywords.js
|
73
|
+
- app/assets/stylesheets/ad_man/advertisements.css
|
74
|
+
- app/assets/stylesheets/ad_man/application.css
|
75
|
+
- app/assets/stylesheets/ad_man/keywords.css
|
76
|
+
- app/assets/stylesheets/scaffold.css
|
77
|
+
- app/controllers/ad_man/advertisements_controller.rb
|
78
|
+
- app/controllers/ad_man/application_controller.rb
|
79
|
+
- app/controllers/ad_man/keywords_controller.rb
|
80
|
+
- app/helpers/ad_man/advertisements_helper.rb
|
81
|
+
- app/helpers/ad_man/application_helper.rb
|
82
|
+
- app/helpers/ad_man/keywords_helper.rb
|
83
|
+
- app/models/ad_man/advertisement.rb
|
84
|
+
- app/models/ad_man/keyword.rb
|
85
|
+
- app/views/ad_man/advertisements/_form.html.erb
|
86
|
+
- app/views/ad_man/advertisements/edit.html.erb
|
87
|
+
- app/views/ad_man/advertisements/index.html.erb
|
88
|
+
- app/views/ad_man/advertisements/new.html.erb
|
89
|
+
- app/views/ad_man/advertisements/show.html.erb
|
90
|
+
- app/views/ad_man/keywords/_form.html.erb
|
91
|
+
- app/views/ad_man/keywords/edit.html.erb
|
92
|
+
- app/views/ad_man/keywords/index.html.erb
|
93
|
+
- app/views/ad_man/keywords/new.html.erb
|
94
|
+
- app/views/ad_man/keywords/show.html.erb
|
95
|
+
- app/views/layouts/ad_man/application.html.erb
|
96
|
+
- config/routes.rb
|
97
|
+
- db/migrate/20120808085322_create_ad_man_advertisements.rb
|
98
|
+
- db/migrate/20120808085909_add_attachment_ad_banner_to_advertisements.rb
|
99
|
+
- db/migrate/20120808091446_create_ad_man_keywords.rb
|
100
|
+
- db/migrate/20120808095330_add_display_count_to_ad_man_advertisements.rb
|
101
|
+
- db/migrate/20120808095742_add_priority_to_ad_man_advertisements.rb
|
102
|
+
- db/migrate/20120808100040_add_start_date_and_end_date_to_ad_man_advertisements.rb
|
103
|
+
- db/migrate/20120808101547_add_keyword_id_to_ad_man_advertisements.rb
|
104
|
+
- db/migrate/20120809065243_add_click_count_to_ad_man_advertisements.rb
|
105
|
+
- lib/ad_man/engine.rb
|
106
|
+
- lib/ad_man/version.rb
|
107
|
+
- lib/ad_man.rb
|
108
|
+
- lib/tasks/ad_man_tasks.rake
|
109
|
+
- MIT-LICENSE
|
110
|
+
- Rakefile
|
111
|
+
- README.rdoc
|
112
|
+
- test/ad_man_test.rb
|
113
|
+
- test/dummy/app/assets/javascripts/application.js
|
114
|
+
- test/dummy/app/assets/stylesheets/application.css
|
115
|
+
- test/dummy/app/controllers/application_controller.rb
|
116
|
+
- test/dummy/app/helpers/application_helper.rb
|
117
|
+
- test/dummy/app/views/layouts/application.html.erb
|
118
|
+
- test/dummy/config/application.rb
|
119
|
+
- test/dummy/config/boot.rb
|
120
|
+
- test/dummy/config/database.yml
|
121
|
+
- test/dummy/config/environment.rb
|
122
|
+
- test/dummy/config/environments/development.rb
|
123
|
+
- test/dummy/config/environments/production.rb
|
124
|
+
- test/dummy/config/environments/test.rb
|
125
|
+
- test/dummy/config/initializers/ad_man.rb
|
126
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
127
|
+
- test/dummy/config/initializers/inflections.rb
|
128
|
+
- test/dummy/config/initializers/mime_types.rb
|
129
|
+
- test/dummy/config/initializers/secret_token.rb
|
130
|
+
- test/dummy/config/initializers/session_store.rb
|
131
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
132
|
+
- test/dummy/config/locales/en.yml
|
133
|
+
- test/dummy/config/routes.rb
|
134
|
+
- test/dummy/config.ru
|
135
|
+
- test/dummy/db/development.sqlite3
|
136
|
+
- test/dummy/db/schema.rb
|
137
|
+
- test/dummy/log/development.log
|
138
|
+
- test/dummy/public/404.html
|
139
|
+
- test/dummy/public/422.html
|
140
|
+
- test/dummy/public/500.html
|
141
|
+
- test/dummy/public/favicon.ico
|
142
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/original/FabTable_01.jpg
|
143
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/small/FabTable_01.jpg
|
144
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/728x90_2MM.jpg
|
145
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/d893babe671c41118c1fece177e0a21a.jpeg
|
146
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/728x90_2MM.jpg
|
147
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/d893babe671c41118c1fece177e0a21a.jpeg
|
148
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/banner/1-NR-728x90-cool-b.gif
|
149
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/leaderboard/1-NR-728x90-cool-b.gif
|
150
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/original/1-NR-728x90-cool-b.gif
|
151
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/banner/9241eb4107b24c588c0ca0042534c03e.png
|
152
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/leaderboard/9241eb4107b24c588c0ca0042534c03e.png
|
153
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/original/9241eb4107b24c588c0ca0042534c03e.png
|
154
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/banner/d893babe671c41118c1fece177e0a21a.jpeg
|
155
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/leaderboard/d893babe671c41118c1fece177e0a21a.jpeg
|
156
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/original/d893babe671c41118c1fece177e0a21a.jpeg
|
157
|
+
- test/dummy/Rakefile
|
158
|
+
- test/dummy/README.rdoc
|
159
|
+
- test/dummy/script/rails
|
160
|
+
- test/dummy/tmp/cache/assets/C02/0A0/sprockets%2F625bdc26802f8c498265353870490587
|
161
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
162
|
+
- test/dummy/tmp/cache/assets/CE4/9E0/sprockets%2F3f5956491fde7227a651e20e4d756b1a
|
163
|
+
- test/dummy/tmp/cache/assets/D31/910/sprockets%2Fc1c18d3d756fe2777d18b236a0aea400
|
164
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
165
|
+
- test/dummy/tmp/cache/assets/D3A/220/sprockets%2Fce53c5b352a83645d36d96aff26020fb
|
166
|
+
- test/dummy/tmp/cache/assets/D3E/AF0/sprockets%2F317881d54abbd5721deee7d204e70e66
|
167
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
168
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
169
|
+
- test/dummy/tmp/cache/assets/DBA/3C0/sprockets%2F9ca84f8118d29c3fd7bfd2876f83dc7e
|
170
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
171
|
+
- test/dummy/tmp/cache/assets/DF7/090/sprockets%2Fb3b1a32b0f923d6741fd5dacdf9f59ab
|
172
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
173
|
+
- test/dummy/tmp/pids/server.pid
|
174
|
+
- test/fixtures/ad_man/advertisements.yml
|
175
|
+
- test/fixtures/ad_man/keywords.yml
|
176
|
+
- test/functional/ad_man/advertisements_controller_test.rb
|
177
|
+
- test/functional/ad_man/keywords_controller_test.rb
|
178
|
+
- test/integration/navigation_test.rb
|
179
|
+
- test/test_helper.rb
|
180
|
+
- test/unit/ad_man/advertisement_test.rb
|
181
|
+
- test/unit/ad_man/keyword_test.rb
|
182
|
+
- test/unit/helpers/ad_man/advertisements_helper_test.rb
|
183
|
+
- test/unit/helpers/ad_man/keywords_helper_test.rb
|
184
|
+
homepage: http://github.com/wspyder/ad_man
|
185
|
+
licenses: []
|
186
|
+
post_install_message:
|
187
|
+
rdoc_options: []
|
188
|
+
require_paths:
|
189
|
+
- lib
|
190
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
192
|
+
requirements:
|
193
|
+
- - ! '>='
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
|
+
none: false
|
198
|
+
requirements:
|
199
|
+
- - ! '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
requirements: []
|
203
|
+
rubyforge_project:
|
204
|
+
rubygems_version: 1.8.24
|
205
|
+
signing_key:
|
206
|
+
specification_version: 3
|
207
|
+
summary: An advertising manager mountable engine
|
208
|
+
test_files:
|
209
|
+
- test/ad_man_test.rb
|
210
|
+
- test/dummy/app/assets/javascripts/application.js
|
211
|
+
- test/dummy/app/assets/stylesheets/application.css
|
212
|
+
- test/dummy/app/controllers/application_controller.rb
|
213
|
+
- test/dummy/app/helpers/application_helper.rb
|
214
|
+
- test/dummy/app/views/layouts/application.html.erb
|
215
|
+
- test/dummy/config/application.rb
|
216
|
+
- test/dummy/config/boot.rb
|
217
|
+
- test/dummy/config/database.yml
|
218
|
+
- test/dummy/config/environment.rb
|
219
|
+
- test/dummy/config/environments/development.rb
|
220
|
+
- test/dummy/config/environments/production.rb
|
221
|
+
- test/dummy/config/environments/test.rb
|
222
|
+
- test/dummy/config/initializers/ad_man.rb
|
223
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
224
|
+
- test/dummy/config/initializers/inflections.rb
|
225
|
+
- test/dummy/config/initializers/mime_types.rb
|
226
|
+
- test/dummy/config/initializers/secret_token.rb
|
227
|
+
- test/dummy/config/initializers/session_store.rb
|
228
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
229
|
+
- test/dummy/config/locales/en.yml
|
230
|
+
- test/dummy/config/routes.rb
|
231
|
+
- test/dummy/config.ru
|
232
|
+
- test/dummy/db/development.sqlite3
|
233
|
+
- test/dummy/db/schema.rb
|
234
|
+
- test/dummy/log/development.log
|
235
|
+
- test/dummy/public/404.html
|
236
|
+
- test/dummy/public/422.html
|
237
|
+
- test/dummy/public/500.html
|
238
|
+
- test/dummy/public/favicon.ico
|
239
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/original/FabTable_01.jpg
|
240
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/001/small/FabTable_01.jpg
|
241
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/728x90_2MM.jpg
|
242
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/original/d893babe671c41118c1fece177e0a21a.jpeg
|
243
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/728x90_2MM.jpg
|
244
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/002/small/d893babe671c41118c1fece177e0a21a.jpeg
|
245
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/banner/1-NR-728x90-cool-b.gif
|
246
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/leaderboard/1-NR-728x90-cool-b.gif
|
247
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/014/original/1-NR-728x90-cool-b.gif
|
248
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/banner/9241eb4107b24c588c0ca0042534c03e.png
|
249
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/leaderboard/9241eb4107b24c588c0ca0042534c03e.png
|
250
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/015/original/9241eb4107b24c588c0ca0042534c03e.png
|
251
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/banner/d893babe671c41118c1fece177e0a21a.jpeg
|
252
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/leaderboard/d893babe671c41118c1fece177e0a21a.jpeg
|
253
|
+
- test/dummy/public/system/ad_man/advertisements/ad_banners/000/000/016/original/d893babe671c41118c1fece177e0a21a.jpeg
|
254
|
+
- test/dummy/Rakefile
|
255
|
+
- test/dummy/README.rdoc
|
256
|
+
- test/dummy/script/rails
|
257
|
+
- test/dummy/tmp/cache/assets/C02/0A0/sprockets%2F625bdc26802f8c498265353870490587
|
258
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
259
|
+
- test/dummy/tmp/cache/assets/CE4/9E0/sprockets%2F3f5956491fde7227a651e20e4d756b1a
|
260
|
+
- test/dummy/tmp/cache/assets/D31/910/sprockets%2Fc1c18d3d756fe2777d18b236a0aea400
|
261
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
262
|
+
- test/dummy/tmp/cache/assets/D3A/220/sprockets%2Fce53c5b352a83645d36d96aff26020fb
|
263
|
+
- test/dummy/tmp/cache/assets/D3E/AF0/sprockets%2F317881d54abbd5721deee7d204e70e66
|
264
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
265
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
266
|
+
- test/dummy/tmp/cache/assets/DBA/3C0/sprockets%2F9ca84f8118d29c3fd7bfd2876f83dc7e
|
267
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
268
|
+
- test/dummy/tmp/cache/assets/DF7/090/sprockets%2Fb3b1a32b0f923d6741fd5dacdf9f59ab
|
269
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
270
|
+
- test/dummy/tmp/pids/server.pid
|
271
|
+
- test/fixtures/ad_man/advertisements.yml
|
272
|
+
- test/fixtures/ad_man/keywords.yml
|
273
|
+
- test/functional/ad_man/advertisements_controller_test.rb
|
274
|
+
- test/functional/ad_man/keywords_controller_test.rb
|
275
|
+
- test/integration/navigation_test.rb
|
276
|
+
- test/test_helper.rb
|
277
|
+
- test/unit/ad_man/advertisement_test.rb
|
278
|
+
- test/unit/ad_man/keyword_test.rb
|
279
|
+
- test/unit/helpers/ad_man/advertisements_helper_test.rb
|
280
|
+
- test/unit/helpers/ad_man/keywords_helper_test.rb
|