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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d995bc1205a2da26be62626195e2dbea8f3bcb73359723fb1a986db0ce92af7d
4
- data.tar.gz: 3d3a33bf8e6350f00324678f66726f2b0629b635860e2fac7f157938a41ef0d2
3
+ metadata.gz: fb2fec09987542397fc28aa9cbfb9f3694dfd336e4eaef706beae26591b252f4
4
+ data.tar.gz: 92f6e32abb17339a57c4066024083b5a9849309f21c62c2996a359050a8a62fc
5
5
  SHA512:
6
- metadata.gz: 29b82364755db7c1a86c9f38bf0642cb5cf55b6166ed3eb1ee48b069efabe8cfe60fbec5cca1e6600a2110f5e7d76e17632144ba8642e957ae524c6cc719002d
7
- data.tar.gz: '09a458bc2f823af00c759e2b17bc7165665ab62369c99dbb19fc0d5078a4e189cbb435b05876354f47c448b90b734f114104c946eec46b410520a9bed9771278'
6
+ metadata.gz: 92c31e213cc9a53fa12a3fca67a7dd5b64b5145cc00c787098a6d3866609bd90219d84b80d171269fc87c5efd86629fc2177d5235618c56e68a7ab1d4caa1d0f
7
+ data.tar.gz: dcda062228ad1e53cfae20e7d8c0fcff2ad03f93651dd5a6f838f0f902bd7005552e85f2747ff61d75b4597a21f0606a74bb7ca4e2113a0ce2b64d36d51725da
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## 1.1.4
4
+
5
+ - Fixed typo in class name: `CustomerAcccountCredentials` is now `CustomerAccountCredentials`.
6
+ - The old spelling (`CustomerAcccountCredentials`) still works for backwards compatibility but is deprecated and will print a warning.
7
+
data/README.md CHANGED
@@ -17,11 +17,38 @@ gem 'naver-searchad-api'
17
17
 
18
18
  And then execute:
19
19
 
20
- $ bundle
20
+ ```
21
+ $ bundle
22
+ ```
21
23
 
22
24
  Or install it yourself as:
23
25
 
24
- $ gem install naver-searchad-api
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 CustomerAcccountCredentials
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
- CustomerAcccountCredentials.new(
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
@@ -1,7 +1,7 @@
1
1
  module Naver
2
2
  module Searchad
3
3
  module Api
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.4'
5
5
 
6
6
  OS_VERSION = begin
7
7
  if RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/
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.2
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: 2023-01-13 00:00:00.000000000 Z
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: 3.3.7
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: []