epom_rails 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/lib/epom_rails/acts_as.rb +63 -0
- data/lib/epom_rails/version.rb +3 -0
- data/lib/epom_rails.rb +14 -0
- data/lib/tasks/epom_rails_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/advertisers.js +2 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/campaigns.js +2 -0
- data/test/dummy/app/assets/stylesheets/advertisers.css +4 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/assets/stylesheets/campaigns.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/advertisers_controller.rb +58 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/campaigns_controller.rb +58 -0
- data/test/dummy/app/helpers/advertisers_helper.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/campaigns_helper.rb +2 -0
- data/test/dummy/app/models/advertiser.rb +3 -0
- data/test/dummy/app/models/campaign.rb +3 -0
- data/test/dummy/app/views/advertisers/_form.html.erb +37 -0
- data/test/dummy/app/views/advertisers/edit.html.erb +6 -0
- data/test/dummy/app/views/advertisers/index.html.erb +35 -0
- data/test/dummy/app/views/advertisers/new.html.erb +5 -0
- data/test/dummy/app/views/advertisers/show.html.erb +29 -0
- data/test/dummy/app/views/campaigns/_form.html.erb +33 -0
- data/test/dummy/app/views/campaigns/edit.html.erb +6 -0
- data/test/dummy/app/views/campaigns/index.html.erb +33 -0
- data/test/dummy/app/views/campaigns/new.html.erb +5 -0
- data/test/dummy/app/views/campaigns/show.html.erb +24 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +61 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20150603151041_create_advertisers.rb +12 -0
- data/test/dummy/db/migrate/20150604125603_add_epom_id_to_advertiser.rb +5 -0
- data/test/dummy/db/migrate/20150608194916_create_campaigns.rb +12 -0
- data/test/dummy/db/schema.rb +36 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/advertisers_controller_test.rb +49 -0
- data/test/dummy/test/controllers/campaigns_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/advertisers.yml +13 -0
- data/test/dummy/test/fixtures/campaigns.yml +13 -0
- data/test/dummy/test/models/advertiser_test.rb +7 -0
- data/test/dummy/test/models/campaign_test.rb +7 -0
- data/test/epom_rails/acts_as_advertiser_test.rb +65 -0
- data/test/epom_rails_test.rb +7 -0
- data/test/test_helper.rb +27 -0
- metadata +229 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class AdvertisersControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@advertiser = advertisers(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:advertisers)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create advertiser" do
|
20
|
+
assert_difference('Advertiser.count') do
|
21
|
+
post :create, advertiser: { contact_email: @advertiser.contact_email, contact_name: @advertiser.contact_name, description: @advertiser.description, epom_id: @advertiser.epom_id, name: @advertiser.name }
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to advertiser_path(assigns(:advertiser))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show advertiser" do
|
28
|
+
get :show, id: @advertiser
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @advertiser
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update advertiser" do
|
38
|
+
patch :update, id: @advertiser, advertiser: { contact_email: @advertiser.contact_email, contact_name: @advertiser.contact_name, description: @advertiser.description, epom_id: @advertiser.epom_id, name: @advertiser.name }
|
39
|
+
assert_redirected_to advertiser_path(assigns(:advertiser))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy advertiser" do
|
43
|
+
assert_difference('Advertiser.count', -1) do
|
44
|
+
delete :destroy, id: @advertiser
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to advertisers_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CampaignsControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@campaign = campaigns(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:campaigns)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create campaign" do
|
20
|
+
assert_difference('Campaign.count') do
|
21
|
+
post :create, campaign: { advertiser_id: @campaign.advertiser_id, description: @campaign.description, name: @campaign.name, weight: @campaign.weight }
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to campaign_path(assigns(:campaign))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show campaign" do
|
28
|
+
get :show, id: @campaign
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @campaign
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update campaign" do
|
38
|
+
patch :update, id: @campaign, campaign: { advertiser_id: @campaign.advertiser_id, description: @campaign.description, name: @campaign.name, weight: @campaign.weight }
|
39
|
+
assert_redirected_to campaign_path(assigns(:campaign))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy campaign" do
|
43
|
+
assert_difference('Campaign.count', -1) do
|
44
|
+
delete :destroy, id: @campaign
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to campaigns_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
name: MyString
|
5
|
+
contact_name: MyString
|
6
|
+
contact_email:
|
7
|
+
description: MyText
|
8
|
+
|
9
|
+
two:
|
10
|
+
name: MyString
|
11
|
+
contact_name: MyString
|
12
|
+
contact_email:
|
13
|
+
description: MyText
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ActsAsAdvertiserTest < ActiveSupport::TestCase
|
4
|
+
def epom_field(field)
|
5
|
+
Advertiser.epom_fields.key(field)
|
6
|
+
end
|
7
|
+
|
8
|
+
test 'fancy_method' do
|
9
|
+
assert_raises NoMethodError do Advertiser.fancy_method end
|
10
|
+
end
|
11
|
+
|
12
|
+
test 'save an advertiser' do
|
13
|
+
advertiser = advertisers(:one)
|
14
|
+
|
15
|
+
assert advertiser.save
|
16
|
+
assert_instance_of Fixnum, advertiser.send(epom_field('id'))
|
17
|
+
|
18
|
+
# testing save_advertiser
|
19
|
+
epom_response = Epom::Advertiser.get_advertiser_permissions_for_user({}, {})
|
20
|
+
assert_instance_of Array, epom_response
|
21
|
+
epom_advertiser = epom_response.find{|a| a['id'] == advertiser.send(epom_field('id'))}
|
22
|
+
assert_equal advertiser.send(epom_field('name')), epom_advertiser['name']
|
23
|
+
assert_equal "Is Owner", epom_advertiser['shareType']
|
24
|
+
|
25
|
+
# testing update_advertiser
|
26
|
+
assert advertiser.update name: 'otro string'
|
27
|
+
epom_response = Epom::Advertiser.get_advertiser_permissions_for_user({}, {})
|
28
|
+
assert_instance_of Array, epom_response
|
29
|
+
epom_advertiser = epom_response.find{|a| a['id'] == advertiser.send(epom_field('id'))}
|
30
|
+
assert_equal advertiser.send(epom_field('name')), epom_advertiser['name']
|
31
|
+
assert_equal "Is Owner", epom_advertiser['shareType']
|
32
|
+
end
|
33
|
+
|
34
|
+
test 'delete an advertiser' do
|
35
|
+
advertiser = advertisers(:one)
|
36
|
+
|
37
|
+
assert advertiser.save
|
38
|
+
assert_instance_of Fixnum, advertiser.send(epom_field('id'))
|
39
|
+
|
40
|
+
epom_id = advertiser.send(epom_field('id'))
|
41
|
+
assert advertiser.destroy
|
42
|
+
end
|
43
|
+
|
44
|
+
test 'epom methods' do
|
45
|
+
response = Advertiser.get_advertisers_tree({}, {})
|
46
|
+
|
47
|
+
assert_instance_of Array, response
|
48
|
+
if response.count > 0
|
49
|
+
first = response[0]
|
50
|
+
assert_instance_of Fixnum, first['id']
|
51
|
+
assert_instance_of Array, first['category']
|
52
|
+
assert_instance_of String, first['name']
|
53
|
+
assert_instance_of Array, first['campaigns']
|
54
|
+
|
55
|
+
advertiser = first
|
56
|
+
response = Advertiser.get_campaigns_for_advertiser({:advertiserId => advertiser['id']}, {})
|
57
|
+
assert_instance_of Array, response
|
58
|
+
if response.count > 0
|
59
|
+
first = response[0]
|
60
|
+
assert_instance_of Fixnum, first['id']
|
61
|
+
assert_instance_of String, first['name']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require 'yaml'
|
5
|
+
env_file = File.join(Pathname.new(__FILE__).parent.parent, 'config', 'application.yml')
|
6
|
+
YAML.load(File.open(env_file)).each do |key, value|
|
7
|
+
ENV[key.to_s] = value.to_s
|
8
|
+
end if File.exists?(env_file)
|
9
|
+
|
10
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
11
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
12
|
+
require "rails/test_help"
|
13
|
+
|
14
|
+
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
15
|
+
# to be shown.
|
16
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
17
|
+
|
18
|
+
# Load support files
|
19
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
20
|
+
|
21
|
+
# Load fixtures from the engine
|
22
|
+
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
23
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../dummy/test/fixtures", __FILE__)
|
24
|
+
ActiveSupport::TestCase.fixtures :all
|
25
|
+
end
|
26
|
+
|
27
|
+
Epom::EpomElement.login(ENV['username'], ENV['password'])
|
metadata
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: epom_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.2'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adrian Chang
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: epom
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: The EpomRails gem is wrapper for Epom gem in Rails
|
56
|
+
email:
|
57
|
+
- adrian.chang.alcover@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- MIT-LICENSE
|
63
|
+
- README.rdoc
|
64
|
+
- Rakefile
|
65
|
+
- lib/epom_rails.rb
|
66
|
+
- lib/epom_rails/acts_as.rb
|
67
|
+
- lib/epom_rails/version.rb
|
68
|
+
- lib/tasks/epom_rails_tasks.rake
|
69
|
+
- test/dummy/README.rdoc
|
70
|
+
- test/dummy/Rakefile
|
71
|
+
- test/dummy/app/assets/javascripts/advertisers.js
|
72
|
+
- test/dummy/app/assets/javascripts/application.js
|
73
|
+
- test/dummy/app/assets/javascripts/campaigns.js
|
74
|
+
- test/dummy/app/assets/stylesheets/advertisers.css
|
75
|
+
- test/dummy/app/assets/stylesheets/application.css
|
76
|
+
- test/dummy/app/assets/stylesheets/campaigns.css
|
77
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
78
|
+
- test/dummy/app/controllers/advertisers_controller.rb
|
79
|
+
- test/dummy/app/controllers/application_controller.rb
|
80
|
+
- test/dummy/app/controllers/campaigns_controller.rb
|
81
|
+
- test/dummy/app/helpers/advertisers_helper.rb
|
82
|
+
- test/dummy/app/helpers/application_helper.rb
|
83
|
+
- test/dummy/app/helpers/campaigns_helper.rb
|
84
|
+
- test/dummy/app/models/advertiser.rb
|
85
|
+
- test/dummy/app/models/campaign.rb
|
86
|
+
- test/dummy/app/views/advertisers/_form.html.erb
|
87
|
+
- test/dummy/app/views/advertisers/edit.html.erb
|
88
|
+
- test/dummy/app/views/advertisers/index.html.erb
|
89
|
+
- test/dummy/app/views/advertisers/new.html.erb
|
90
|
+
- test/dummy/app/views/advertisers/show.html.erb
|
91
|
+
- test/dummy/app/views/campaigns/_form.html.erb
|
92
|
+
- test/dummy/app/views/campaigns/edit.html.erb
|
93
|
+
- test/dummy/app/views/campaigns/index.html.erb
|
94
|
+
- test/dummy/app/views/campaigns/new.html.erb
|
95
|
+
- test/dummy/app/views/campaigns/show.html.erb
|
96
|
+
- test/dummy/app/views/layouts/application.html.erb
|
97
|
+
- test/dummy/bin/bundle
|
98
|
+
- test/dummy/bin/rails
|
99
|
+
- test/dummy/bin/rake
|
100
|
+
- test/dummy/bin/setup
|
101
|
+
- test/dummy/config.ru
|
102
|
+
- test/dummy/config/application.rb
|
103
|
+
- test/dummy/config/boot.rb
|
104
|
+
- test/dummy/config/database.yml
|
105
|
+
- test/dummy/config/environment.rb
|
106
|
+
- test/dummy/config/environments/development.rb
|
107
|
+
- test/dummy/config/environments/production.rb
|
108
|
+
- test/dummy/config/environments/test.rb
|
109
|
+
- test/dummy/config/initializers/assets.rb
|
110
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
111
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
112
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
113
|
+
- test/dummy/config/initializers/inflections.rb
|
114
|
+
- test/dummy/config/initializers/mime_types.rb
|
115
|
+
- test/dummy/config/initializers/session_store.rb
|
116
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
117
|
+
- test/dummy/config/locales/en.yml
|
118
|
+
- test/dummy/config/routes.rb
|
119
|
+
- test/dummy/config/secrets.yml
|
120
|
+
- test/dummy/db/migrate/20150603151041_create_advertisers.rb
|
121
|
+
- test/dummy/db/migrate/20150604125603_add_epom_id_to_advertiser.rb
|
122
|
+
- test/dummy/db/migrate/20150608194916_create_campaigns.rb
|
123
|
+
- test/dummy/db/schema.rb
|
124
|
+
- test/dummy/public/404.html
|
125
|
+
- test/dummy/public/422.html
|
126
|
+
- test/dummy/public/500.html
|
127
|
+
- test/dummy/public/favicon.ico
|
128
|
+
- test/dummy/test/controllers/advertisers_controller_test.rb
|
129
|
+
- test/dummy/test/controllers/campaigns_controller_test.rb
|
130
|
+
- test/dummy/test/fixtures/advertisers.yml
|
131
|
+
- test/dummy/test/fixtures/campaigns.yml
|
132
|
+
- test/dummy/test/models/advertiser_test.rb
|
133
|
+
- test/dummy/test/models/campaign_test.rb
|
134
|
+
- test/epom_rails/acts_as_advertiser_test.rb
|
135
|
+
- test/epom_rails_test.rb
|
136
|
+
- test/test_helper.rb
|
137
|
+
homepage: https://github.com/kewelta/epom_rails
|
138
|
+
licenses:
|
139
|
+
- MIT
|
140
|
+
metadata: {}
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.4.6
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: EpomRails gem.
|
161
|
+
test_files:
|
162
|
+
- test/test_helper.rb
|
163
|
+
- test/epom_rails_test.rb
|
164
|
+
- test/epom_rails/acts_as_advertiser_test.rb
|
165
|
+
- test/dummy/config.ru
|
166
|
+
- test/dummy/Rakefile
|
167
|
+
- test/dummy/README.rdoc
|
168
|
+
- test/dummy/test/models/campaign_test.rb
|
169
|
+
- test/dummy/test/models/advertiser_test.rb
|
170
|
+
- test/dummy/test/fixtures/campaigns.yml
|
171
|
+
- test/dummy/test/fixtures/advertisers.yml
|
172
|
+
- test/dummy/test/controllers/campaigns_controller_test.rb
|
173
|
+
- test/dummy/test/controllers/advertisers_controller_test.rb
|
174
|
+
- test/dummy/public/favicon.ico
|
175
|
+
- test/dummy/public/500.html
|
176
|
+
- test/dummy/public/422.html
|
177
|
+
- test/dummy/public/404.html
|
178
|
+
- test/dummy/db/schema.rb
|
179
|
+
- test/dummy/db/migrate/20150608194916_create_campaigns.rb
|
180
|
+
- test/dummy/db/migrate/20150604125603_add_epom_id_to_advertiser.rb
|
181
|
+
- test/dummy/db/migrate/20150603151041_create_advertisers.rb
|
182
|
+
- test/dummy/config/secrets.yml
|
183
|
+
- test/dummy/config/routes.rb
|
184
|
+
- test/dummy/config/environment.rb
|
185
|
+
- test/dummy/config/database.yml
|
186
|
+
- test/dummy/config/boot.rb
|
187
|
+
- test/dummy/config/application.rb
|
188
|
+
- test/dummy/config/locales/en.yml
|
189
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
190
|
+
- test/dummy/config/initializers/session_store.rb
|
191
|
+
- test/dummy/config/initializers/mime_types.rb
|
192
|
+
- test/dummy/config/initializers/inflections.rb
|
193
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
194
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
195
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
196
|
+
- test/dummy/config/initializers/assets.rb
|
197
|
+
- test/dummy/config/environments/test.rb
|
198
|
+
- test/dummy/config/environments/production.rb
|
199
|
+
- test/dummy/config/environments/development.rb
|
200
|
+
- test/dummy/bin/setup
|
201
|
+
- test/dummy/bin/rake
|
202
|
+
- test/dummy/bin/rails
|
203
|
+
- test/dummy/bin/bundle
|
204
|
+
- test/dummy/app/views/layouts/application.html.erb
|
205
|
+
- test/dummy/app/views/campaigns/show.html.erb
|
206
|
+
- test/dummy/app/views/campaigns/new.html.erb
|
207
|
+
- test/dummy/app/views/campaigns/index.html.erb
|
208
|
+
- test/dummy/app/views/campaigns/edit.html.erb
|
209
|
+
- test/dummy/app/views/campaigns/_form.html.erb
|
210
|
+
- test/dummy/app/views/advertisers/show.html.erb
|
211
|
+
- test/dummy/app/views/advertisers/new.html.erb
|
212
|
+
- test/dummy/app/views/advertisers/index.html.erb
|
213
|
+
- test/dummy/app/views/advertisers/edit.html.erb
|
214
|
+
- test/dummy/app/views/advertisers/_form.html.erb
|
215
|
+
- test/dummy/app/models/campaign.rb
|
216
|
+
- test/dummy/app/models/advertiser.rb
|
217
|
+
- test/dummy/app/helpers/campaigns_helper.rb
|
218
|
+
- test/dummy/app/helpers/application_helper.rb
|
219
|
+
- test/dummy/app/helpers/advertisers_helper.rb
|
220
|
+
- test/dummy/app/controllers/campaigns_controller.rb
|
221
|
+
- test/dummy/app/controllers/application_controller.rb
|
222
|
+
- test/dummy/app/controllers/advertisers_controller.rb
|
223
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
224
|
+
- test/dummy/app/assets/stylesheets/campaigns.css
|
225
|
+
- test/dummy/app/assets/stylesheets/application.css
|
226
|
+
- test/dummy/app/assets/stylesheets/advertisers.css
|
227
|
+
- test/dummy/app/assets/javascripts/campaigns.js
|
228
|
+
- test/dummy/app/assets/javascripts/application.js
|
229
|
+
- test/dummy/app/assets/javascripts/advertisers.js
|