naver-searchad-api 1.1.3 → 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: 3fc2f78e1704d93ad2ccf1313b1f2112c81b711544173e49142d4430bd342c8a
4
- data.tar.gz: 5b782b28493af0c429f64de50b769dfdc83df32f4ae56e5f1483314e465b97b9
3
+ metadata.gz: fb2fec09987542397fc28aa9cbfb9f3694dfd336e4eaef706beae26591b252f4
4
+ data.tar.gz: 92f6e32abb17339a57c4066024083b5a9849309f21c62c2996a359050a8a62fc
5
5
  SHA512:
6
- metadata.gz: ba8b6a3cdad1747bafa1eb0ac894f2c67418a81c2cdb77eb665e349af7509620e80202207d69222ea7e78087a0ce51994f5a2f0bccda15e9f7f54f607ac30c42
7
- data.tar.gz: 6530ed56a86278e63e0476f8bf780b219145537f15720a7bd1dcfce21468bd60fa7f1b00b89c36fee148fce0784619d57f55d2ac802e8d8e97a857327c9c2415
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]
@@ -1,7 +1,7 @@
1
1
  module Naver
2
2
  module Searchad
3
3
  module Api
4
- VERSION = '1.1.3'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naver-searchad-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Min Kim
@@ -110,6 +110,7 @@ files:
110
110
  - ".gitignore"
111
111
  - ".rspec"
112
112
  - ".travis.yml"
113
+ - CHANGELOG.md
113
114
  - Gemfile
114
115
  - LICENSE
115
116
  - README.md
@@ -157,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
159
160
  requirements: []
160
- rubygems_version: 3.6.7
161
+ rubygems_version: 4.0.10
161
162
  specification_version: 4
162
163
  summary: Naver Searchad API ruby client
163
164
  test_files: []