rails-pinterest 0.1.7 → 0.1.9

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: a2f83c10be54b1f34b8b545a6584ea3f5ffe887bbc0f04f06d1205db2a5b3a14
4
- data.tar.gz: af8d74bcbf422f68788fa5860ad8764be636e036b54bc9fce712abb3f0884142
3
+ metadata.gz: de21c67b169331db4e159f70fcc91368f49ff5943efce3028648626ed4cec444
4
+ data.tar.gz: '092dce98edd2c07fed522b7f15f138fa1f5f2ae9112e03729b23ee175bd0d49e'
5
5
  SHA512:
6
- metadata.gz: b13f4be8606aa68623fccdec6b06cd25528a8bc0c5bde719ce62d3407ed6e7c677b9710a5f853286dd3a7501df34d7577711056b8ab265ba77c5369847ba8eae
7
- data.tar.gz: 4228e1b9c51e3bde908df5a87aa9bfcfe3c9ee56620058b92b6ccdc642169114bbc8734c04101c182902da402c240b6a671c3b9116ef72134aff50fcf187d73c
6
+ metadata.gz: f7691dd8aab99b018044827af463299ff2f40cc410b7657a73bcbd33a2ba54134f8714b1e1333d0ba2438e4f8513aaeaccb5af410e1a84fffba43727b6694755
7
+ data.tar.gz: 7b06745a60caecb08fc762f8f6715acfc5b8525a13102d376ac3317fedc9903629ca5edbbc305e67297e6cd10e4c9277822dbfb5fe2245f2117bc3510a4dbb6a
data/CHANGELOG.md CHANGED
@@ -26,4 +26,10 @@
26
26
  - Update suggested related terms to use limit of 10 instead of 4.
27
27
 
28
28
  ## [0.1.7] - 2024-02-24
29
- - Update URL of keyword metrics
29
+ - Update URL of keyword metrics
30
+
31
+ ## [0.1.8] - 2024-02-24
32
+ - Bump version for changes in ReadMe.
33
+
34
+ ## [0.1.9] - 2024-02-24
35
+ - Correct the parameters for keyword metrics, get_country_keyword_metrics
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-pinterest (0.1.7)
4
+ rails-pinterest (0.1.9)
5
5
  faraday (>= 1)
6
6
  faraday-multipart (>= 1)
7
7
 
data/README.md CHANGED
@@ -245,7 +245,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
245
245
 
246
246
  ## Release
247
247
 
248
- Update the version number in `version.rb`, update `CHANGELOG.md`, run `bundle install` to update Gemfile.lock, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
248
+ Update the version number in `version.rb`, update `CHANGELOG.md`, run `bundle install` to update Gemfile.lock, delete previous `rails-pinterest-{number}.gem`, run `gem build rails-pinterest.gemspec`, and then run `sudo bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org) by `gem push rails-pinterest-{number}.gem`.
249
249
 
250
250
  ## Contributing
251
251
 
@@ -16,8 +16,8 @@ module Pinterest
16
16
  @client.patch(path: "/ad_accounts/#{ad_account_id}/keywords", parameters: parameters)
17
17
  end
18
18
 
19
- def get_country_keyword_metrics(ad_account_id:, parameters: {})
20
- @client.get(path: "/ad_accounts/#{ad_account_id}/keywords/metrics", parameters: parameters)
19
+ def get_country_keyword_metrics(ad_account_id:, country_code:, keywords:, parameters: {})
20
+ @client.get(path: "/ad_accounts/#{ad_account_id}/keywords/metrics?country_code=#{country_code}&keywords=#{keywords}", parameters: parameters)
21
21
  end
22
22
 
23
23
  # Region list: "US" "CA" "DE" "FR" "ES" "IT" "DE+AT+CH" "GB+IE" "IT+ES+PT+GR+MT" "PL+RO+HU+SK+CZ" "SE+DK+FI+NO" "NL+BE+LU" "AR" "BR" "CO" "MX" "MX+AR+CO+CL" "AU+NZ"
@@ -1,3 +1,3 @@
1
1
  module Pinterest
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-pinterest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Lee