ad_space 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a12f9c56d13a27770794f6a45cbcfeab74b967ac816f80c64c71dff93a2bca1e
4
- data.tar.gz: 4c2a6883b683c9ea101b18761c441bbfa03840d42ed30b5503f5167463e1b3a4
3
+ metadata.gz: '09dc41f264c6ba61458f33ba2f7ba77f6c74b34f4869611bc813f9a717f0c892'
4
+ data.tar.gz: 579ccf651a7363ca8534531d3b19dcc2f5ebe4f0bc0ee31e661ece8df185f7bd
5
5
  SHA512:
6
- metadata.gz: 6f50e5b0cac4b17d987d2bc5e44dd2a685628cadeec7e280be3605f21e4bafc2020b8ce8d1d47e8af8d8e9cbe144c09a8c657c0dd1a5ce047fdec7b8a8e0d745
7
- data.tar.gz: 30e0cb33ac32f287f6b8607d81c627736705ea177cdb0af138403cc63db09a1662bf6e9f7b56f09d601e894d1847616442bc12c7f4cb26a1d750635e7c7abaf1
6
+ metadata.gz: 98fa30d1192e0980b765f011527737cbc0d77db63d0f95ed1a1a5b4335bf039488e1f1cdfe0be26cc2cf0ab5c1c1c83dbfee32eef03fc176d58c4d748c6f0e86
7
+ data.tar.gz: 34c19fb812e5501d93423cd708cacfd99c0cb93dae46d6eac28a64ba3a79140bc4a8eab77a569e36c2316408756c5d02d22a9dcf95838b4238ea2393aab06f89
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ad_space (0.1.0)
4
+ ad_space (0.1.1)
5
5
  active_model_serializers
6
6
  dotenv-rails
7
7
  rails (>= 7.1.1)
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
- - 调整UI
89
- - 接口支持 缓存
90
- - toast 消息
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
@@ -4,6 +4,7 @@ class CreateAdSpaceSlots < ActiveRecord::Migration[7.1]
4
4
  t.string :name
5
5
  t.string :uuid
6
6
  t.text :remark
7
+ t.boolean :is_splash, default: false
7
8
 
8
9
  t.timestamps
9
10
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AdSpace
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-10-31 00:00:00.000000000 Z
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
@@ -1,5 +0,0 @@
1
- class AddIsSplashToAdSpaceSlots < ActiveRecord::Migration[7.1]
2
- def change
3
- add_column :ad_space_slots, :is_splash, :boolean, default: false
4
- end
5
- end