admqr_knife 0.1.1 → 0.1.2

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: db33f670324422622b0c206d7f0613787d9d32b1a2b753afa9729567f1fdbb20
4
- data.tar.gz: 6f49fcf6b3e588002c92c332f0f087f73b3a6aeaed13d45b7fa1f63fec76faf3
3
+ metadata.gz: f941f3ef287b3045821af11a43905f1ad92b74c4fde34222512f645504123aba
4
+ data.tar.gz: a010233306b667c1a0b6463b75506f397cbb1e9e6a04befab7c30f68e92612be
5
5
  SHA512:
6
- metadata.gz: 6ff4f9e155aa7ea02cb3b24dd4fefe4e2b6db4c085ca46f158f618f7dd66d08328a84a95571e50361b1694c21bd3bca8f63ba9f02af81f62f8f1e0ac342cb157
7
- data.tar.gz: eed109ecf9079aa6f58e78e144d3667d6bd0fc24fe610da7898e4be7e82a664b11fd52a0e73ae06b521714d5aa01d89cff74f2d25c0490c58bd4e2e1c33156bd
6
+ metadata.gz: 25fb8abae5f06e22aba0fb824acc53b9c8d6fca78069b37f95b0fab51078df91bacb21bb99aa5fd155e515110b32ad73fd0f07a033083c650f76a4b0cbe45991
7
+ data.tar.gz: 11c812380fb975ed7b4faa2d707651d9d219c0b8531a29327d7bb0204b6344a623d7adfdb58808cc9f4029dc2ffd6b4788c7faf139c4cd92c764651ca6858488
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- admqr_knife (0.1.0)
4
+ admqr_knife (0.1.2)
5
5
  api_tools
6
6
  thor
7
7
 
data/README.md CHANGED
@@ -35,7 +35,7 @@ Or install it yourself as:
35
35
 
36
36
  ### gem 集成
37
37
 
38
- 1. 在 rails 里 initializers 中配置
38
+ 1. 在 rails 里 initializers 中配置
39
39
 
40
40
  ```ruby
41
41
  AdmqrKnife.init(CLIENT_KEY)
@@ -56,7 +56,7 @@ AdmqrKnife.visit unique_code: "唯一标记",
56
56
 
57
57
  这种使用方式不需要安装这个gem
58
58
 
59
- ```
59
+ ```bash
60
60
  curl -X POST \
61
61
  https://www.admqr.com/apic/v1 \
62
62
  -H 'Content-Type: application/json' \
data/exe/admqr_visit CHANGED
@@ -16,7 +16,7 @@ class AdmqrVisitCLI < Thor
16
16
  def record(unique_code)
17
17
  AdmqrKnife.init(options[:client_key])
18
18
  AdmqrKnife.visit(unique_code: unique_code,
19
- ua: options[:ua],
19
+ client_ua: options[:ua],
20
20
  referer: options[:referer],
21
21
  tag: options[:tag],
22
22
  new_to_visit: options[:new_to_visit],
@@ -9,8 +9,8 @@ module AdmqrKnife
9
9
 
10
10
  def base_params
11
11
  {
12
- client_key: AdmqrKnife.knife_client_key,
13
- gem_version: AdmqrKnife::VERSION
12
+ knife_client_key: AdmqrKnife.knife_client_key,
13
+ gem_version: AdmqrKnife::VERSION
14
14
  }
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module AdmqrKnife
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admqr_knife
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - atpking