ad_space 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +22 -0
- data/Gemfile.lock +240 -0
- data/MIT-LICENSE +20 -0
- data/README.md +92 -0
- data/Rakefile +8 -0
- data/ad_space.gemspec +25 -0
- data/app/assets/builds/application.js +7397 -0
- data/app/assets/builds/application.js.map +7 -0
- data/app/assets/config/ad_space_manifest.js +2 -0
- data/app/assets/javascript/ad_space/application.js +0 -0
- data/app/assets/stylesheets/ad_space/application.css +15 -0
- data/app/controllers/ad_space/advertisements_controller.rb +121 -0
- data/app/controllers/ad_space/api/v1/advertisements_controller.rb +36 -0
- data/app/controllers/ad_space/application_controller.rb +30 -0
- data/app/controllers/ad_space/dashboard_controller.rb +6 -0
- data/app/controllers/ad_space/slots_controller.rb +70 -0
- data/app/helpers/ad_space/advertisements_helper.rb +4 -0
- data/app/helpers/ad_space/application_helper.rb +15 -0
- data/app/helpers/ad_space/dashboard_helper.rb +4 -0
- data/app/helpers/ad_space/slots_helper.rb +4 -0
- data/app/javascript/application.js +3 -0
- data/app/javascript/controllers/application.js +9 -0
- data/app/javascript/controllers/hello_controller.js +153 -0
- data/app/javascript/controllers/image_upload_controller.js +46 -0
- data/app/javascript/controllers/index.js +11 -0
- data/app/jobs/ad_space/application_job.rb +4 -0
- data/app/mailers/ad_space/application_mailer.rb +6 -0
- data/app/models/ad_space/advertisement.rb +67 -0
- data/app/models/ad_space/application_record.rb +5 -0
- data/app/models/ad_space/breadcrumb.rb +14 -0
- data/app/models/ad_space/slot.rb +27 -0
- data/app/serializers/v1/advertisement_serializer.rb +30 -0
- data/app/validators/url_or_custom_scheme_validator.rb +20 -0
- data/app/views/ad_space/advertisements/_advertisement.html.erb +102 -0
- data/app/views/ad_space/advertisements/_form.html.erb +143 -0
- data/app/views/ad_space/advertisements/edit.html.erb +10 -0
- data/app/views/ad_space/advertisements/index.html.erb +15 -0
- data/app/views/ad_space/advertisements/new.html.erb +9 -0
- data/app/views/ad_space/advertisements/show.html.erb +13 -0
- data/app/views/ad_space/dashboard/index.html.erb +7 -0
- data/app/views/ad_space/slots/_form.html.erb +44 -0
- data/app/views/ad_space/slots/_slot.html.erb +30 -0
- data/app/views/ad_space/slots/edit.html.erb +10 -0
- data/app/views/ad_space/slots/index.html.erb +14 -0
- data/app/views/ad_space/slots/new.html.erb +9 -0
- data/app/views/ad_space/slots/show.html.erb +10 -0
- data/app/views/layouts/ad_space/application.html.erb +43 -0
- data/config/routes.rb +22 -0
- data/db/migrate/20231026152912_create_ad_space_slots.rb +11 -0
- data/db/migrate/20231026160758_create_ad_space_advertisements.rb +25 -0
- data/db/migrate/20231027070536_add_scheme_url_to_ad_space_advertisements.rb +10 -0
- data/db/migrate/20231027083935_add_target_version_code_to_ad_space_advertisements.rb +6 -0
- data/db/migrate/20231027115707_add_is_splash_to_ad_space_slots.rb +5 -0
- data/lib/ad_space/app.rb +16 -0
- data/lib/ad_space/configuration.rb +32 -0
- data/lib/ad_space/engine.rb +12 -0
- data/lib/ad_space/version.rb +3 -0
- data/lib/ad_space.rb +17 -0
- data/lib/tasks/ad_space_tasks.rake +4 -0
- metadata +161 -0
data/lib/ad_space.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "zeitwerk"
|
2
|
+
require "ad_space/version"
|
3
|
+
require "ad_space/engine"
|
4
|
+
|
5
|
+
require "active_model_serializers"
|
6
|
+
require "turbo-rails"
|
7
|
+
require 'dotenv/load'
|
8
|
+
|
9
|
+
loader = Zeitwerk::Loader.for_gem
|
10
|
+
loader.setup
|
11
|
+
|
12
|
+
module AdSpace
|
13
|
+
IN_DEVELOPMENT = ENV["AD_SPACE_IN_DEVELOPMENT"] == "1"
|
14
|
+
PACKED = !IN_DEVELOPMENT
|
15
|
+
end
|
16
|
+
|
17
|
+
loader.eager_load
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ad_space
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- 42up
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-10-31 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: 7.1.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.1.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: active_model_serializers
|
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: turbo-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: AdSpace
|
70
|
+
email:
|
71
|
+
- foobar@v2up.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- Gemfile
|
77
|
+
- Gemfile.lock
|
78
|
+
- MIT-LICENSE
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- ad_space.gemspec
|
82
|
+
- app/assets/builds/application.js
|
83
|
+
- app/assets/builds/application.js.map
|
84
|
+
- app/assets/config/ad_space_manifest.js
|
85
|
+
- app/assets/javascript/ad_space/application.js
|
86
|
+
- app/assets/stylesheets/ad_space/application.css
|
87
|
+
- app/controllers/ad_space/advertisements_controller.rb
|
88
|
+
- app/controllers/ad_space/api/v1/advertisements_controller.rb
|
89
|
+
- app/controllers/ad_space/application_controller.rb
|
90
|
+
- app/controllers/ad_space/dashboard_controller.rb
|
91
|
+
- app/controllers/ad_space/slots_controller.rb
|
92
|
+
- app/helpers/ad_space/advertisements_helper.rb
|
93
|
+
- app/helpers/ad_space/application_helper.rb
|
94
|
+
- app/helpers/ad_space/dashboard_helper.rb
|
95
|
+
- app/helpers/ad_space/slots_helper.rb
|
96
|
+
- app/javascript/application.js
|
97
|
+
- app/javascript/controllers/application.js
|
98
|
+
- app/javascript/controllers/hello_controller.js
|
99
|
+
- app/javascript/controllers/image_upload_controller.js
|
100
|
+
- app/javascript/controllers/index.js
|
101
|
+
- app/jobs/ad_space/application_job.rb
|
102
|
+
- app/mailers/ad_space/application_mailer.rb
|
103
|
+
- app/models/ad_space/advertisement.rb
|
104
|
+
- app/models/ad_space/application_record.rb
|
105
|
+
- app/models/ad_space/breadcrumb.rb
|
106
|
+
- app/models/ad_space/slot.rb
|
107
|
+
- app/serializers/v1/advertisement_serializer.rb
|
108
|
+
- app/validators/url_or_custom_scheme_validator.rb
|
109
|
+
- app/views/ad_space/advertisements/_advertisement.html.erb
|
110
|
+
- app/views/ad_space/advertisements/_form.html.erb
|
111
|
+
- app/views/ad_space/advertisements/edit.html.erb
|
112
|
+
- app/views/ad_space/advertisements/index.html.erb
|
113
|
+
- app/views/ad_space/advertisements/new.html.erb
|
114
|
+
- app/views/ad_space/advertisements/show.html.erb
|
115
|
+
- app/views/ad_space/dashboard/index.html.erb
|
116
|
+
- app/views/ad_space/slots/_form.html.erb
|
117
|
+
- app/views/ad_space/slots/_slot.html.erb
|
118
|
+
- app/views/ad_space/slots/edit.html.erb
|
119
|
+
- app/views/ad_space/slots/index.html.erb
|
120
|
+
- app/views/ad_space/slots/new.html.erb
|
121
|
+
- app/views/ad_space/slots/show.html.erb
|
122
|
+
- app/views/layouts/ad_space/application.html.erb
|
123
|
+
- config/routes.rb
|
124
|
+
- db/migrate/20231026152912_create_ad_space_slots.rb
|
125
|
+
- db/migrate/20231026160758_create_ad_space_advertisements.rb
|
126
|
+
- db/migrate/20231027070536_add_scheme_url_to_ad_space_advertisements.rb
|
127
|
+
- db/migrate/20231027083935_add_target_version_code_to_ad_space_advertisements.rb
|
128
|
+
- db/migrate/20231027115707_add_is_splash_to_ad_space_slots.rb
|
129
|
+
- lib/ad_space.rb
|
130
|
+
- lib/ad_space/app.rb
|
131
|
+
- lib/ad_space/configuration.rb
|
132
|
+
- lib/ad_space/engine.rb
|
133
|
+
- lib/ad_space/version.rb
|
134
|
+
- lib/tasks/ad_space_tasks.rake
|
135
|
+
homepage: https://github.com/42up/ad_space.git
|
136
|
+
licenses:
|
137
|
+
- MIT
|
138
|
+
metadata:
|
139
|
+
homepage_uri: https://github.com/42up/ad_space.git
|
140
|
+
source_code_uri: https://github.com/42up/ad_space.git
|
141
|
+
changelog_uri: https://github.com/42up/ad_space.git
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubygems_version: 3.2.22
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: AdSpace
|
161
|
+
test_files: []
|