ad_space 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +20 -5
- data/db/migrate/20231026152912_create_ad_space_slots.rb +1 -0
- data/db/migrate/20231026160758_create_ad_space_advertisements.rb +9 -0
- data/lib/ad_space/version.rb +1 -1
- metadata +2 -5
- data/db/migrate/20231027070536_add_scheme_url_to_ad_space_advertisements.rb +0 -10
- data/db/migrate/20231027083935_add_target_version_code_to_ad_space_advertisements.rb +0 -6
- data/db/migrate/20231027115707_add_is_splash_to_ad_space_slots.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09dc41f264c6ba61458f33ba2f7ba77f6c74b34f4869611bc813f9a717f0c892'
|
4
|
+
data.tar.gz: 579ccf651a7363ca8534531d3b19dcc2f5ebe4f0bc0ee31e661ece8df185f7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98fa30d1192e0980b765f011527737cbc0d77db63d0f95ed1a1a5b4335bf039488e1f1cdfe0be26cc2cf0ab5c1c1c83dbfee32eef03fc176d58c4d748c6f0e86
|
7
|
+
data.tar.gz: 34c19fb812e5501d93423cd708cacfd99c0cb93dae46d6eac28a64ba3a79140bc4a8eab77a569e36c2316408756c5d02d22a9dcf95838b4238ea2393aab06f89
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -81,12 +81,27 @@ mount AdSpace::Engine => "/ad_space"
|
|
81
81
|
# - 没有权限会直接返回到 main_app.root_path
|
82
82
|
```
|
83
83
|
|
84
|
+
1. 将db migrate合并起来,重新发布
|
85
|
+
2. 加到句读里 确保接口可以正常访问到
|
86
|
+
3. 接口支持 缓存 每次更新了模型 都刷新一遍缓存,简单有效
|
87
|
+
4. i18n-task i18n中文化
|
88
|
+
|
89
|
+
|
84
90
|
## TODO
|
85
|
-
- i18n-task i18n中文化
|
86
91
|
- 预览广告功能,支持参数可以直接在手机端拉取自定广告,展示在特定的位置
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
92
|
+
- 效果指标统计功能,ai 方案,计算成本
|
93
|
+
- slot 编码 弄小一点,uuid 都弄小点
|
94
|
+
- uuid 改为 trace_id 追踪码?
|
95
|
+
- 各个指标如何统计
|
96
|
+
- 异步任务规则,打点,异步通过阿里云日志写回,sidekiq 测试
|
97
|
+
- tacker id 跟阿里云 获取统计 异步结算
|
98
|
+
- user_views_count 通过device_id去重 分别的维度和统计规则
|
99
|
+
- 点击量,展示量,人次去重 readme,写到 home page 说明里
|
100
|
+
- 通过客户端 写cli 脚本片段,生成测试日志数据,获取统计
|
101
|
+
- 自动汇总结果 统计每天的,自动获取累积规则
|
102
|
+
- 网站nginx 日志之东写到 阿里云 测试
|
103
|
+
- chartkick 指标维护说明
|
91
104
|
- https://simplecss.org/
|
105
|
+
- 操作 调整UI
|
106
|
+
- toast 消息
|
92
107
|
- tailwindcss
|
@@ -10,10 +10,18 @@ class CreateAdSpaceAdvertisements < ActiveRecord::Migration[7.1]
|
|
10
10
|
t.integer :platform
|
11
11
|
t.datetime :archived_at
|
12
12
|
t.integer :weight, default: 0
|
13
|
+
t.integer :ad_type
|
14
|
+
t.integer :visibility
|
15
|
+
t.string :scheme_url
|
16
|
+
t.integer :splash_ui_type
|
17
|
+
t.integer :splash_countdown, default: 5
|
18
|
+
t.integer :dsp_type
|
19
|
+
|
13
20
|
t.text :remark
|
14
21
|
t.integer :pv_count, default: 0
|
15
22
|
t.integer :uv_count, default: 0
|
16
23
|
t.integer :click_count, default: 0
|
24
|
+
t.integer :target_version_codes, array: true, default: [0]
|
17
25
|
|
18
26
|
t.timestamps
|
19
27
|
end
|
@@ -21,5 +29,6 @@ class CreateAdSpaceAdvertisements < ActiveRecord::Migration[7.1]
|
|
21
29
|
add_index :ad_space_advertisements, :platform
|
22
30
|
add_index :ad_space_advertisements, :published_at
|
23
31
|
add_index :ad_space_advertisements, [:started_at, :ended_at]
|
32
|
+
add_index :ad_space_advertisements, :target_version_codes, using: :gin
|
24
33
|
end
|
25
34
|
end
|
data/lib/ad_space/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ad_space
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 42up
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -123,9 +123,6 @@ files:
|
|
123
123
|
- config/routes.rb
|
124
124
|
- db/migrate/20231026152912_create_ad_space_slots.rb
|
125
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
126
|
- lib/ad_space.rb
|
130
127
|
- lib/ad_space/app.rb
|
131
128
|
- lib/ad_space/configuration.rb
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class AddSchemeUrlToAdSpaceAdvertisements < ActiveRecord::Migration[7.1]
|
2
|
-
def change
|
3
|
-
add_column :ad_space_advertisements, :ad_type, :integer
|
4
|
-
add_column :ad_space_advertisements, :visibility, :integer
|
5
|
-
add_column :ad_space_advertisements, :scheme_url, :string
|
6
|
-
add_column :ad_space_advertisements, :splash_ui_type, :integer
|
7
|
-
add_column :ad_space_advertisements, :splash_countdown, :integer, default: 5
|
8
|
-
add_column :ad_space_advertisements, :dsp_type, :integer
|
9
|
-
end
|
10
|
-
end
|
@@ -1,6 +0,0 @@
|
|
1
|
-
class AddTargetVersionCodeToAdSpaceAdvertisements < ActiveRecord::Migration[7.1]
|
2
|
-
def change
|
3
|
-
add_column :ad_space_advertisements, :target_version_codes, :bigint, array: true, default: [0]
|
4
|
-
add_index :ad_space_advertisements, :target_version_codes, using: :gin
|
5
|
-
end
|
6
|
-
end
|