admqr_knife 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +6 -5
- data/UPGRADE.md +2 -0
- data/admqr_knife.gemspec +2 -2
- data/lib/admqr_knife/version.rb +1 -1
- data/lib/admqr_knife.rb +3 -3
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 399ccf79f702cccc09d5f1dfc02f27b86ad7704ab2a731f8a646e7a0502da3be
|
4
|
+
data.tar.gz: ef4c0781525fab5eafc6c78e8f2922d71d26bed6f5a37160df854f5b55f3b95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34f811e9caa362a2c9bf6efa85fd68d30b0fd5cda70251a31417493d775ea4df37f6d41fa0361ab50a7cb13bdab5e912057c61a54f2e527cc003f28afb48c674
|
7
|
+
data.tar.gz: 4d19386a341d5c3eb973fddd62e3ee19a55fba565f425a2cc643c66cf6114a1951107ca102ef1287c39887cb3ee75952a16d9a78b1222e470109ae49fb833218
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
admqr_knife (0.
|
4
|
+
admqr_knife (0.2.0)
|
5
5
|
api_tools
|
6
6
|
thor
|
7
7
|
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
mime-types-data (3.2019.1009)
|
24
24
|
multi_json (1.14.1)
|
25
25
|
netrc (0.11.0)
|
26
|
-
rake (
|
26
|
+
rake (13.0.6)
|
27
27
|
rest-client (2.1.0)
|
28
28
|
http-accept (>= 1.7.0, < 2.0)
|
29
29
|
http-cookie (>= 1.0.2, < 2.0)
|
@@ -54,8 +54,8 @@ DEPENDENCIES
|
|
54
54
|
admqr_knife!
|
55
55
|
bundler (~> 2.0)
|
56
56
|
byebug
|
57
|
-
rake (~>
|
57
|
+
rake (~> 13.0)
|
58
58
|
rspec (~> 3.0)
|
59
59
|
|
60
60
|
BUNDLED WITH
|
61
|
-
2.
|
61
|
+
2.4.6
|
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
通过第三方转发统计信息给毛驴短链, 这样就可以做到不用用户访问访问, 将用户的信息直接转发即可
|
4
4
|
|
5
|
-
特别适合与做漏斗
|
5
|
+
特别适合与做漏斗
|
6
6
|
|
7
|
-
比如曝光页面用毛驴做了统计
|
7
|
+
比如曝光页面用毛驴做了统计
|
8
8
|
|
9
9
|
就可以在注册的时候再次发起一次统计, 即可得出曝光转化比
|
10
10
|
|
@@ -30,7 +30,7 @@ Or install it yourself as:
|
|
30
30
|
|
31
31
|
`admqr_visit record 标签名称 -t CLIENT_KEY`
|
32
32
|
|
33
|
-
更多参数可以使用 `admqr_visit help record` 进行查看
|
33
|
+
更多参数可以使用 `admqr_visit help record` 进行查看
|
34
34
|
|
35
35
|
|
36
36
|
### gem 集成
|
@@ -58,12 +58,13 @@ AdmqrKnife.visit unique_code: "唯一标记",
|
|
58
58
|
|
59
59
|
```bash
|
60
60
|
curl -X POST \
|
61
|
-
https://www.
|
61
|
+
https://www.maolvdl.com/apic/v1/api/knifes/statis \
|
62
62
|
-H 'Content-Type: application/json' \
|
63
63
|
-d '{
|
64
64
|
"client_key": "你的CLIENT_KEY",
|
65
65
|
"unique_code": "自己取的唯一标志",
|
66
|
-
|
66
|
+
"tag": "分组名, 可以不传",
|
67
|
+
"extra": {a: 1, b:2}, 一层hash 值, 可不传
|
67
68
|
"client_ua": "用户UA, 可以不传",
|
68
69
|
"referer": "来自于, 可以不传",
|
69
70
|
"new_to_visit": 是否是首次访问 true or false, 可以不传, 默认为true
|
data/UPGRADE.md
ADDED
data/admqr_knife.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = 'send vsist record to admqr service'
|
12
12
|
spec.description = 'send vsist record to admqr service'
|
13
|
-
spec.homepage = "https://www.
|
13
|
+
spec.homepage = "https://www.maolvdl.com"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 2.0"
|
29
|
-
spec.add_development_dependency "rake", "~>
|
29
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
31
|
spec.add_development_dependency "byebug"
|
32
32
|
|
data/lib/admqr_knife/version.rb
CHANGED
data/lib/admqr_knife.rb
CHANGED
@@ -12,8 +12,8 @@ module AdmqrKnife
|
|
12
12
|
attr_accessor :knife_client_key, :knife_base_uri, :logger
|
13
13
|
|
14
14
|
def init(client_key = nil, options = {})
|
15
|
-
@knife_client_key = client_key || ENV['ADMQR_KNIFE_CLIENT_KEY']
|
16
|
-
@knife_base_uri = ENV['KNIFE_BASE_URI'] || 'https://www.
|
15
|
+
@knife_client_key = client_key || ENV['ADMQR_KNIFE_CLIENT_KEY']
|
16
|
+
@knife_base_uri = ENV['KNIFE_BASE_URI'] || 'https://www.maolvdl.com/apic/v1/'
|
17
17
|
@logger = options[:logger] || select_logger
|
18
18
|
end
|
19
19
|
|
@@ -29,7 +29,7 @@ module AdmqrKnife
|
|
29
29
|
tag = options[:tag]
|
30
30
|
new_to_visit = options[:new_to_visit]
|
31
31
|
remote_ip = options[:remote_ip]
|
32
|
-
extra = options[:extra]
|
32
|
+
extra = options[:extra]
|
33
33
|
CubeService.post('/api/knifes/statis',
|
34
34
|
{ unique_code: unique_code,
|
35
35
|
client_ua: ua,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: admqr_knife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- atpking
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- LICENSE.txt
|
112
112
|
- README.md
|
113
113
|
- Rakefile
|
114
|
+
- UPGRADE.md
|
114
115
|
- admqr_knife.gemspec
|
115
116
|
- bin/console
|
116
117
|
- bin/setup
|
@@ -118,12 +119,12 @@ files:
|
|
118
119
|
- lib/admqr_knife.rb
|
119
120
|
- lib/admqr_knife/cube_service.rb
|
120
121
|
- lib/admqr_knife/version.rb
|
121
|
-
homepage: https://www.
|
122
|
+
homepage: https://www.maolvdl.com
|
122
123
|
licenses:
|
123
124
|
- MIT
|
124
125
|
metadata:
|
125
|
-
homepage_uri: https://www.
|
126
|
-
post_install_message:
|
126
|
+
homepage_uri: https://www.maolvdl.com
|
127
|
+
post_install_message:
|
127
128
|
rdoc_options: []
|
128
129
|
require_paths:
|
129
130
|
- lib
|
@@ -138,8 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
139
|
- !ruby/object:Gem::Version
|
139
140
|
version: '0'
|
140
141
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
142
|
-
signing_key:
|
142
|
+
rubygems_version: 3.1.6
|
143
|
+
signing_key:
|
143
144
|
specification_version: 4
|
144
145
|
summary: send vsist record to admqr service
|
145
146
|
test_files: []
|