naver-searchad-api 1.1.2 → 1.1.4
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/CHANGELOG.md +7 -0
- data/README.md +29 -2
- data/lib/naver/searchad/api/auth.rb +11 -2
- data/lib/naver/searchad/api/stat-report/service.rb +1 -0
- data/lib/naver/searchad/api/version.rb +1 -1
- metadata +4 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb2fec09987542397fc28aa9cbfb9f3694dfd336e4eaef706beae26591b252f4
|
|
4
|
+
data.tar.gz: 92f6e32abb17339a57c4066024083b5a9849309f21c62c2996a359050a8a62fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92c31e213cc9a53fa12a3fca67a7dd5b64b5145cc00c787098a6d3866609bd90219d84b80d171269fc87c5efd86629fc2177d5235618c56e68a7ab1d4caa1d0f
|
|
7
|
+
data.tar.gz: dcda062228ad1e53cfae20e7d8c0fcff2ad03f93651dd5a6f838f0f902bd7005552e85f2747ff61d75b4597a21f0606a74bb7ca4e2113a0ce2b64d36d51725da
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -17,11 +17,38 @@ gem 'naver-searchad-api'
|
|
|
17
17
|
|
|
18
18
|
And then execute:
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```
|
|
21
|
+
$ bundle
|
|
22
|
+
```
|
|
21
23
|
|
|
22
24
|
Or install it yourself as:
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
```
|
|
27
|
+
$ gem install naver-searchad-api
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Publishing a new release
|
|
31
|
+
|
|
32
|
+
Guide for maintaining and releasing this gem.
|
|
33
|
+
|
|
34
|
+
RubyGems.org credentials are stored in 1Password under **"Rubygems"**.
|
|
35
|
+
|
|
36
|
+
Before releasing a new version, create and push the corresponding tag `v<version>`.
|
|
37
|
+
|
|
38
|
+
**Release steps:**
|
|
39
|
+
|
|
40
|
+
1. Ensure the version in `lib/naver/searchad/api/version.rb` is already updated to the correct release number.
|
|
41
|
+
2. Build the gem:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
gem build naver-searchad-api.gemspec
|
|
45
|
+
```
|
|
46
|
+
3. Push the gem:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
gem push naver-searchad-api-<version>.gem
|
|
50
|
+
```
|
|
51
|
+
4. Verify the new version on RubyGems.org: https://rubygems.org/gems/naver-searchad-api
|
|
25
52
|
|
|
26
53
|
## Compatibility
|
|
27
54
|
|
|
@@ -5,7 +5,7 @@ module Naver
|
|
|
5
5
|
module Searchad
|
|
6
6
|
module Api
|
|
7
7
|
module Auth
|
|
8
|
-
class
|
|
8
|
+
class CustomerAccountCredentials
|
|
9
9
|
TIMESTAMP_HEADER = 'X-Timestamp'.freeze
|
|
10
10
|
API_KEY_HEADER = 'X-API-KEY'.freeze
|
|
11
11
|
CUSTOMER_HEADER = 'X-Customer'.freeze
|
|
@@ -43,13 +43,22 @@ module Naver
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
def self.const_missing(name)
|
|
47
|
+
if name == :CustomerAcccountCredentials
|
|
48
|
+
warn "DEPRECATION WARNING: `CustomerAcccountCredentials` is deprecated. Use `CustomerAccountCredentials` instead."
|
|
49
|
+
CustomerAccountCredentials
|
|
50
|
+
else
|
|
51
|
+
super
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
46
55
|
class DefaultCredentials
|
|
47
56
|
API_KEY_ENV_VAR = 'NAVER_API_KEY'.freeze
|
|
48
57
|
API_SECRET_ENV_VAR = 'NAVER_API_SECRET'.freeze
|
|
49
58
|
CUSTOMER_ID_ENV_VAR = 'NAVER_API_CLIENT_ID'.freeze
|
|
50
59
|
|
|
51
60
|
def self.from_env
|
|
52
|
-
|
|
61
|
+
CustomerAccountCredentials.new(
|
|
53
62
|
ENV[API_KEY_ENV_VAR],
|
|
54
63
|
ENV[API_SECRET_ENV_VAR],
|
|
55
64
|
ENV[CUSTOMER_ID_ENV_VAR]
|
|
@@ -16,6 +16,7 @@ module Naver
|
|
|
16
16
|
|
|
17
17
|
command = make_download_command(:get, uri.path, options)
|
|
18
18
|
command.query['authtoken'] = uri.query_values['authtoken']
|
|
19
|
+
command.query['fileVersion'] = uri.query_values['fileVersion'] || 'v2'
|
|
19
20
|
command.download_dest = file_path
|
|
20
21
|
execute_command(command, &block)
|
|
21
22
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: naver-searchad-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Min Kim
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: httpclient
|
|
@@ -111,6 +110,7 @@ files:
|
|
|
111
110
|
- ".gitignore"
|
|
112
111
|
- ".rspec"
|
|
113
112
|
- ".travis.yml"
|
|
113
|
+
- CHANGELOG.md
|
|
114
114
|
- Gemfile
|
|
115
115
|
- LICENSE
|
|
116
116
|
- README.md
|
|
@@ -144,7 +144,6 @@ homepage: https://github.com/forward3d/naver-searchad-api
|
|
|
144
144
|
licenses:
|
|
145
145
|
- MIT
|
|
146
146
|
metadata: {}
|
|
147
|
-
post_install_message:
|
|
148
147
|
rdoc_options: []
|
|
149
148
|
require_paths:
|
|
150
149
|
- lib
|
|
@@ -159,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
159
158
|
- !ruby/object:Gem::Version
|
|
160
159
|
version: '0'
|
|
161
160
|
requirements: []
|
|
162
|
-
rubygems_version:
|
|
163
|
-
signing_key:
|
|
161
|
+
rubygems_version: 4.0.10
|
|
164
162
|
specification_version: 4
|
|
165
163
|
summary: Naver Searchad API ruby client
|
|
166
164
|
test_files: []
|